boards: dts: Configure lpc flexcomm nodes as usart at the board level
Don't assume in the soc level device trees that flexcomm nodes will always be configured as usart. Instead, configure flexcomm nodes at the board level for lpcxpresso55s69 and lpcxpresso54114 boards. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
dd6038d954
commit
1a149ef75b
9 changed files with 56 additions and 50 deletions
|
@ -9,6 +9,7 @@
|
||||||
led0 = &red_led;
|
led0 = &red_led;
|
||||||
led1 = &green_led;
|
led1 = &green_led;
|
||||||
led2 = &blue_led;
|
led2 = &blue_led;
|
||||||
|
usart-0 = &flexcomm0;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
@ -31,6 +32,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&flexcomm0 {
|
||||||
|
compatible = "nxp,lpc-usart";
|
||||||
|
current-speed = <115200>;
|
||||||
|
};
|
||||||
|
|
||||||
arduino_i2c: &flexcomm4 {
|
arduino_i2c: &flexcomm4 {
|
||||||
compatible = "nxp,lpc-i2c";
|
compatible = "nxp,lpc-i2c";
|
||||||
clock-frequency = <I2C_BITRATE_STANDARD>;
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
chosen {
|
chosen {
|
||||||
zephyr,sram = &sram2;
|
zephyr,sram = &sram2;
|
||||||
zephyr,flash = &sram1;
|
zephyr,flash = &sram1;
|
||||||
/*zephyr,console = &usart0; uncomment to use console on M0 */
|
/*zephyr,console = &flexcomm0; uncomment to use console on M0 */
|
||||||
/*zephyr,shell-uart = &usart0; uncomment to use shell on M0 */
|
/*zephyr,shell-uart = &flexcomm0; uncomment to use shell on M0 */
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
chosen {
|
chosen {
|
||||||
zephyr,sram = &sram0;
|
zephyr,sram = &sram0;
|
||||||
zephyr,flash = &flash0;
|
zephyr,flash = &flash0;
|
||||||
zephyr,console = &usart0;
|
zephyr,console = &flexcomm0;
|
||||||
zephyr,shell-uart = &usart0;
|
zephyr,shell-uart = &flexcomm0;
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
|
@ -47,11 +47,6 @@
|
||||||
clock-frequency = <48000000>;
|
clock-frequency = <48000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&usart0 {
|
|
||||||
status = "okay";
|
|
||||||
current-speed = <115200>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&mailbox0 {
|
&mailbox0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -68,6 +63,10 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&flexcomm0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&flexcomm4 {
|
&flexcomm4 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
led0 = &red_led;
|
led0 = &red_led;
|
||||||
led1 = &green_led;
|
led1 = &green_led;
|
||||||
led2 = &blue_led;
|
led2 = &blue_led;
|
||||||
|
usart-0 = &flexcomm0;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
@ -31,6 +32,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&flexcomm0 {
|
||||||
|
compatible = "nxp,lpc-usart";
|
||||||
|
current-speed = <115200>;
|
||||||
|
};
|
||||||
|
|
||||||
arduino_i2c: &flexcomm4 {
|
arduino_i2c: &flexcomm4 {
|
||||||
compatible = "nxp,lpc-i2c";
|
compatible = "nxp,lpc-i2c";
|
||||||
clock-frequency = <I2C_BITRATE_STANDARD>;
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
zephyr,sram = &sram0;
|
zephyr,sram = &sram0;
|
||||||
zephyr,flash = &flash0;
|
zephyr,flash = &flash0;
|
||||||
zephyr,code-partition = &sramx;
|
zephyr,code-partition = &sramx;
|
||||||
zephyr,console = &usart0;
|
zephyr,console = &flexcomm0;
|
||||||
zephyr,shell-uart = &usart0;
|
zephyr,shell-uart = &flexcomm0;
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
|
@ -48,11 +48,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&usart0 {
|
|
||||||
status = "okay";
|
|
||||||
current-speed = <115200>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&gpio0 {
|
&gpio0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -69,6 +64,10 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&flexcomm0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&flexcomm4 {
|
&flexcomm4 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
chosen {
|
chosen {
|
||||||
zephyr,sram = &sram0;
|
zephyr,sram = &sram0;
|
||||||
zephyr,flash = &flash0;
|
zephyr,flash = &flash0;
|
||||||
zephyr,console = &usart0;
|
zephyr,console = &flexcomm0;
|
||||||
zephyr,shell-uart = &usart0;
|
zephyr,shell-uart = &flexcomm0;
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio_keys {
|
gpio_keys {
|
||||||
|
@ -47,11 +47,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&usart0 {
|
|
||||||
status = "okay";
|
|
||||||
current-speed = <115200>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&gpio0 {
|
&gpio0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -72,6 +67,10 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&flexcomm0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&spi8 {
|
&spi8 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
gpio-1 = &gpio1;
|
gpio-1 = &gpio1;
|
||||||
mailbox-0 = &mailbox0;
|
mailbox-0 = &mailbox0;
|
||||||
spi-5 = &spi5;
|
spi-5 = &spi5;
|
||||||
usart-0 = &usart0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
cpus {
|
cpus {
|
||||||
|
@ -58,14 +57,6 @@
|
||||||
reg = <0 0x40000>;
|
reg = <0 0x40000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
usart0:usart@40086000 {
|
|
||||||
compatible = "nxp,lpc-usart";
|
|
||||||
reg = <0x40086000 0xE44>;
|
|
||||||
interrupts = <14 0>;
|
|
||||||
label = "USART_0";
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio0: gpio@0 {
|
gpio0: gpio@0 {
|
||||||
compatible = "nxp,lpc-gpio";
|
compatible = "nxp,lpc-gpio";
|
||||||
reg = <0x4008c000 0x2488>;
|
reg = <0x4008c000 0x2488>;
|
||||||
|
@ -92,6 +83,14 @@
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flexcomm0: flexcomm@40086000 {
|
||||||
|
compatible = "nxp,lpc-flexcomm";
|
||||||
|
reg = <0x40086000 0x1000>;
|
||||||
|
interrupts = <14 0>;
|
||||||
|
label = "FLEXCOMM_0";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
flexcomm4: flexcomm@4008a000 {
|
flexcomm4: flexcomm@4008a000 {
|
||||||
compatible = "nxp,lpc-flexcomm";
|
compatible = "nxp,lpc-flexcomm";
|
||||||
reg = <0x4008a000 0x1000>;
|
reg = <0x4008a000 0x1000>;
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
gpio-2 = &gpio2;
|
gpio-2 = &gpio2;
|
||||||
gpio-3 = &gpio3;
|
gpio-3 = &gpio3;
|
||||||
spi-8 = &spi8;
|
spi-8 = &spi8;
|
||||||
usart-0 = &usart0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
cpus {
|
cpus {
|
||||||
|
@ -102,14 +101,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
usart0: usart@50086000 {
|
|
||||||
compatible = "nxp,lpc-usart";
|
|
||||||
reg = <0x50086000 0xE44>;
|
|
||||||
interrupts = <14 0>;
|
|
||||||
label = "USART_0";
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio0: gpio@0 {
|
gpio0: gpio@0 {
|
||||||
compatible = "nxp,lpc-gpio";
|
compatible = "nxp,lpc-gpio";
|
||||||
reg = <0x5008c000 0x2488>;
|
reg = <0x5008c000 0x2488>;
|
||||||
|
@ -144,6 +135,14 @@
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flexcomm0: flexcomm@50086000 {
|
||||||
|
compatible = "nxp,lpc-flexcomm";
|
||||||
|
reg = <0x50086000 0x1000>;
|
||||||
|
interrupts = <14 0>;
|
||||||
|
label = "FLEXCOMM_0";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
flexcomm4: flexcomm@5008a000 {
|
flexcomm4: flexcomm@5008a000 {
|
||||||
compatible = "nxp,lpc-flexcomm";
|
compatible = "nxp,lpc-flexcomm";
|
||||||
reg = <0x5008a000 0x1000>;
|
reg = <0x5008a000 0x1000>;
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
gpio-2 = &gpio2;
|
gpio-2 = &gpio2;
|
||||||
gpio-3 = &gpio3;
|
gpio-3 = &gpio3;
|
||||||
spi-8 = &spi8;
|
spi-8 = &spi8;
|
||||||
usart-0 = &usart0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
cpus {
|
cpus {
|
||||||
|
@ -99,14 +98,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
usart0: usart@40086000 {
|
|
||||||
compatible = "nxp,lpc-usart";
|
|
||||||
reg = <0x40086000 0xe44>;
|
|
||||||
interrupts = <14 0>;
|
|
||||||
label = "USART_0";
|
|
||||||
status = "disabled";
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio0: gpio@0 {
|
gpio0: gpio@0 {
|
||||||
compatible = "nxp,kinetis-gpio";
|
compatible = "nxp,kinetis-gpio";
|
||||||
reg = <0x4008c000 0x2488>;
|
reg = <0x4008c000 0x2488>;
|
||||||
|
@ -141,6 +132,14 @@
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flexcomm0: flexcomm@40086000 {
|
||||||
|
compatible = "nxp,lpc-flexcomm";
|
||||||
|
reg = <0x40086000 0x1000>;
|
||||||
|
interrupts = <14 0>;
|
||||||
|
label = "FLEXCOMM_0";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
spi8: spi@4009f000 {
|
spi8: spi@4009f000 {
|
||||||
compatible = "nxp,lpc-spi";
|
compatible = "nxp,lpc-spi";
|
||||||
reg = <0x4009f000 0x1000>;
|
reg = <0x4009f000 0x1000>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue