boards: dts: Configure lpc flexcomm nodes as spi at the board level

Don't assume in the soc level device trees that flexcomm nodes will
always be configured as spi. 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:
Maureen Helm 2020-04-04 12:53:32 -05:00 committed by Kumar Gala
commit 9baf1760df
10 changed files with 26 additions and 25 deletions

View file

@ -9,6 +9,7 @@
led0 = &red_led; led0 = &red_led;
led1 = &green_led; led1 = &green_led;
led2 = &blue_led; led2 = &blue_led;
spi-5 = &flexcomm5;
usart-0 = &flexcomm0; usart-0 = &flexcomm0;
}; };
@ -44,4 +45,8 @@ arduino_i2c: &flexcomm4 {
#size-cells = <0>; #size-cells = <0>;
}; };
arduino_spi: &spi5 {}; arduino_spi: &flexcomm5 {
compatible = "nxp,lpc-spi";
#address-cells = <1>;
#size-cells = <0>;
};

View file

@ -71,6 +71,6 @@
status = "okay"; status = "okay";
}; };
&spi5 { &flexcomm5 {
status = "okay"; status = "okay";
}; };

View file

@ -9,6 +9,7 @@
led0 = &red_led; led0 = &red_led;
led1 = &green_led; led1 = &green_led;
led2 = &blue_led; led2 = &blue_led;
spi-8 = &flexcomm8;
usart-0 = &flexcomm0; usart-0 = &flexcomm0;
}; };
@ -51,4 +52,8 @@ arduino_i2c: &flexcomm4 {
}; };
}; };
arduino_spi: &spi8 {}; arduino_spi: &flexcomm8 {
compatible = "nxp,lpc-spi";
#address-cells = <1>;
#size-cells = <0>;
};

View file

@ -72,7 +72,7 @@
status = "okay"; status = "okay";
}; };
&spi8 { &flexcomm8 {
status = "okay"; status = "okay";
}; };

View file

@ -71,6 +71,6 @@
status = "okay"; status = "okay";
}; };
&spi8 { &flexcomm8 {
status = "okay"; status = "okay";
}; };

View file

@ -12,7 +12,6 @@
gpio-0 = &gpio0; gpio-0 = &gpio0;
gpio-1 = &gpio1; gpio-1 = &gpio1;
mailbox-0 = &mailbox0; mailbox-0 = &mailbox0;
spi-5 = &spi5;
}; };
cpus { cpus {
@ -99,14 +98,12 @@
status = "disabled"; status = "disabled";
}; };
spi5: spi@40096000 { flexcomm5: flexcomm@40096000 {
compatible = "nxp,lpc-spi"; compatible = "nxp,lpc-flexcomm";
reg = <0x40096000 0x1000>; reg = <0x40096000 0x1000>;
interrupts = <19 0>; interrupts = <19 0>;
label = "SPI_5"; label = "FLEXCOMM_5";
status = "disabled"; status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
}; };
}; };
}; };

View file

@ -15,7 +15,6 @@
gpio-1 = &gpio1; gpio-1 = &gpio1;
gpio-2 = &gpio2; gpio-2 = &gpio2;
gpio-3 = &gpio3; gpio-3 = &gpio3;
spi-8 = &spi8;
}; };
cpus { cpus {
@ -151,14 +150,12 @@
status = "disabled"; status = "disabled";
}; };
spi8: spi@5009f000 { flexcomm8: flexcomm@5009f000 {
compatible = "nxp,lpc-spi"; compatible = "nxp,lpc-flexcomm";
reg = <0x5009f000 0x1000>; reg = <0x5009f000 0x1000>;
interrupts = <59 0>; interrupts = <59 0>;
label = "SPI_8"; label = "FLEXCOMM_8";
status = "disabled"; status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
}; };
}; };
}; };

View file

@ -14,7 +14,6 @@
gpio-1 = &gpio1; gpio-1 = &gpio1;
gpio-2 = &gpio2; gpio-2 = &gpio2;
gpio-3 = &gpio3; gpio-3 = &gpio3;
spi-8 = &spi8;
}; };
cpus { cpus {
@ -140,14 +139,12 @@
status = "disabled"; status = "disabled";
}; };
spi8: spi@4009f000 { flexcomm8: flexcomm@4009f000 {
compatible = "nxp,lpc-spi"; compatible = "nxp,lpc-flexcomm";
reg = <0x4009f000 0x1000>; reg = <0x4009f000 0x1000>;
interrupts = <59 0>; interrupts = <59 0>;
label = "SPI_8"; label = "FLEXCOMM_8";
status = "disabled"; status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
}; };
}; };
}; };

View file

@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_5" CONFIG_SPI_LOOPBACK_DRV_NAME="FLEXCOMM_5"
CONFIG_SPI_LOOPBACK_SLAVE_NUMBER=2 CONFIG_SPI_LOOPBACK_SLAVE_NUMBER=2
CONFIG_SPI_LOOPBACK_SLOW_FREQ=5000 CONFIG_SPI_LOOPBACK_SLOW_FREQ=5000
CONFIG_SPI_LOOPBACK_FAST_FREQ=160000 CONFIG_SPI_LOOPBACK_FAST_FREQ=160000

View file

@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_8" CONFIG_SPI_LOOPBACK_DRV_NAME="FLEXCOMM_8"
CONFIG_SPI_LOOPBACK_SLAVE_NUMBER=1 CONFIG_SPI_LOOPBACK_SLAVE_NUMBER=1
CONFIG_SPI_LOOPBACK_SLOW_FREQ=5000 CONFIG_SPI_LOOPBACK_SLOW_FREQ=5000
CONFIG_SPI_LOOPBACK_FAST_FREQ=160000 CONFIG_SPI_LOOPBACK_FAST_FREQ=160000