dts: boards: Define dts aliases at soc level for i.mx rt socs

Defines device tree aliases for on-chip peripherals at the soc level
instead of the board level for all i.mx rt socs. The eliminates some
duplicate code in the board level device trees, and will allow drivers
to use device-tree generated macros directly instead of through dts
fixups.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2020-01-10 09:56:56 -06:00 committed by Anas Nashif
commit 201f8897cd
9 changed files with 31 additions and 47 deletions

View file

@ -10,6 +10,33 @@
#include <dt-bindings/i2c/i2c.h>
/ {
aliases {
eth = &eth;
gpio-1 = &gpio1;
gpio-2 = &gpio2;
gpio-3 = &gpio3;
gpio-4 = &gpio4;
gpio-5 = &gpio5;
i2c-1 = &i2c1;
i2c-2 = &i2c2;
i2c-3 = &i2c3;
i2c-4 = &i2c4;
spi-1 = &spi1;
spi-2 = &spi2;
spi-3 = &spi3;
spi-4 = &spi4;
uart-1 = &uart1;
uart-2 = &uart2;
uart-3 = &uart3;
uart-4 = &uart4;
uart-5 = &uart5;
uart-6 = &uart6;
uart-7 = &uart7;
uart-8 = &uart8;
usbd-1 = &usbd1;
usbd-2 = &usbd2;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;