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:
parent
ce90e24d25
commit
201f8897cd
9 changed files with 31 additions and 47 deletions
|
@ -13,11 +13,6 @@
|
||||||
compatible = "nxp,mimxrt1010";
|
compatible = "nxp,mimxrt1010";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
gpio-1= &gpio1;
|
|
||||||
gpio-2= &gpio2_rt1010;
|
|
||||||
gpio-5= &gpio5;
|
|
||||||
i2c-1 = &i2c1;
|
|
||||||
uart-1 = &uart1;
|
|
||||||
led0 = &green_led;
|
led0 = &green_led;
|
||||||
sw0 = &user_button;
|
sw0 = &user_button;
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,14 +13,6 @@
|
||||||
compatible = "nxp,mimxrt1015";
|
compatible = "nxp,mimxrt1015";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
gpio-1= &gpio1;
|
|
||||||
gpio-2= &gpio2;
|
|
||||||
gpio-3= &gpio3;
|
|
||||||
gpio-4= &gpio4;
|
|
||||||
gpio-5= &gpio5;
|
|
||||||
i2c-1 = &i2c1;
|
|
||||||
uart-1 = &uart1;
|
|
||||||
uart-4 = &uart4;
|
|
||||||
led0 = &green_led;
|
led0 = &green_led;
|
||||||
sw0 = &user_button;
|
sw0 = &user_button;
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,17 +13,8 @@
|
||||||
compatible = "nxp,mimxrt1021";
|
compatible = "nxp,mimxrt1021";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
gpio-1= &gpio1;
|
|
||||||
gpio-2= &gpio2;
|
|
||||||
gpio-3= &gpio3;
|
|
||||||
gpio-4= &gpio4;
|
|
||||||
gpio-5= &gpio5;
|
|
||||||
i2c-1 = &i2c1;
|
|
||||||
i2c-4 = &i2c4;
|
|
||||||
uart-1 = &uart1;
|
|
||||||
led0 = &green_led;
|
led0 = &green_led;
|
||||||
sw0 = &user_button;
|
sw0 = &user_button;
|
||||||
eth = ð
|
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
|
|
|
@ -13,18 +13,8 @@
|
||||||
compatible = "nxp,mimxrt1052";
|
compatible = "nxp,mimxrt1052";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
gpio-1= &gpio1;
|
|
||||||
gpio-2= &gpio2;
|
|
||||||
gpio-3= &gpio3;
|
|
||||||
gpio-4= &gpio4;
|
|
||||||
gpio-5= &gpio5;
|
|
||||||
i2c-1 = &i2c1;
|
|
||||||
uart-1 = &uart1;
|
|
||||||
uart-3 = &uart3;
|
|
||||||
led0 = &green_led;
|
led0 = &green_led;
|
||||||
sw0 = &user_button;
|
sw0 = &user_button;
|
||||||
spi-3 = &spi3;
|
|
||||||
eth = ð
|
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
|
|
|
@ -13,15 +13,8 @@
|
||||||
compatible = "nxp,mimxrt1062";
|
compatible = "nxp,mimxrt1062";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
gpio-1= &gpio1;
|
|
||||||
gpio-2= &gpio2;
|
|
||||||
gpio-3= &gpio3;
|
|
||||||
gpio-4= &gpio4;
|
|
||||||
gpio-5= &gpio5;
|
|
||||||
uart-1 = &uart1;
|
|
||||||
led0 = &green_led;
|
led0 = &green_led;
|
||||||
sw0 = &user_button;
|
sw0 = &user_button;
|
||||||
eth = ð
|
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
|
|
|
@ -13,16 +13,9 @@
|
||||||
compatible = "nxp,mimxrt1064";
|
compatible = "nxp,mimxrt1064";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
gpio-1= &gpio1;
|
|
||||||
gpio-2= &gpio2;
|
|
||||||
gpio-3= &gpio3;
|
|
||||||
gpio-4= &gpio4;
|
|
||||||
gpio-5= &gpio5;
|
|
||||||
uart-1 = &uart1;
|
|
||||||
led0 = &green_led;
|
led0 = &green_led;
|
||||||
pwm-led0 = &green_pwm_led;
|
pwm-led0 = &green_pwm_led;
|
||||||
sw0 = &user_button;
|
sw0 = &user_button;
|
||||||
eth = ð
|
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
compatible = "nxp,mimxrt1052";
|
compatible = "nxp,mimxrt1052";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
uart-1 = &uart1;
|
|
||||||
led0 = &green_led;
|
led0 = &green_led;
|
||||||
led1 = &red_led;
|
led1 = &red_led;
|
||||||
led2 = &blue_led;
|
led2 = &blue_led;
|
||||||
|
|
|
@ -10,6 +10,33 @@
|
||||||
#include <dt-bindings/i2c/i2c.h>
|
#include <dt-bindings/i2c/i2c.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
aliases {
|
||||||
|
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 {
|
cpus {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
|
@ -72,6 +72,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
aliases {
|
||||||
|
gpio-2 = &gpio2_rt1010;
|
||||||
|
};
|
||||||
|
|
||||||
soc {
|
soc {
|
||||||
gpio2_rt1010: gpio@42000000 {
|
gpio2_rt1010: gpio@42000000 {
|
||||||
compatible = "nxp,imx-gpio";
|
compatible = "nxp,imx-gpio";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue