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 <erwan.gouriou@linaro.org>
This commit is contained in:
parent
43f270ad11
commit
656382e7a4
1 changed files with 2 additions and 13 deletions
|
@ -50,23 +50,12 @@ This should be done at two different level:
|
|||
* Pinmux: Connector pins should be correctly configured to match shield pins
|
||||
|
||||
* Devicetree: A board :ref:`devicetree <dt-guide>` file,
|
||||
:file:`BOARD.dts` should define a node alias for each connector interface.
|
||||
:file:`BOARD.dts` should define an alternate nodelabel for each connector interface.
|
||||
For example, for Arduino I2C:
|
||||
|
||||
.. code-block:: devicetree
|
||||
|
||||
#define arduino_i2c i2c1
|
||||
|
||||
aliases {
|
||||
arduino,i2c = &i2c1;
|
||||
};
|
||||
|
||||
Note: With support of dtc v1.4.2, above will be replaced with the recently
|
||||
introduced overriding node element:
|
||||
|
||||
.. code-block:: devicetree
|
||||
|
||||
arduino_i2c:i2c1{};
|
||||
arduino_i2c: &i2c1 {};
|
||||
|
||||
Board specific shield configuration
|
||||
-----------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue