Skip to content

Commit 656382e

Browse files
erwangocarlescufi
authored andcommitted
doc: porting: shields: Update instructions for nodelabel definitions
Update requirements regarding board connectors compatibility now that dtc versions prior to 1.4.2 can't be used anymore (current required version is 1.4.6). Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 43f270a commit 656382e

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

doc/hardware/porting/shields.rst

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,12 @@ This should be done at two different level:
5050
* Pinmux: Connector pins should be correctly configured to match shield pins
5151

5252
* Devicetree: A board :ref:`devicetree <dt-guide>` file,
53-
:file:`BOARD.dts` should define a node alias for each connector interface.
53+
:file:`BOARD.dts` should define an alternate nodelabel for each connector interface.
5454
For example, for Arduino I2C:
5555

5656
.. code-block:: devicetree
5757
58-
#define arduino_i2c i2c1
59-
60-
aliases {
61-
arduino,i2c = &i2c1;
62-
};
63-
64-
Note: With support of dtc v1.4.2, above will be replaced with the recently
65-
introduced overriding node element:
66-
67-
.. code-block:: devicetree
68-
69-
arduino_i2c:i2c1{};
58+
arduino_i2c: &i2c1 {};
7059
7160
Board specific shield configuration
7261
-----------------------------------

0 commit comments

Comments
 (0)