spi-device: set CS gpio flags for all devices that had none
The generic SPI GPIO chip select support now respects devicetree flags for signal active level. Update all cs-gpios properties to specify active low. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
a0f025995d
commit
9dc7640ede
29 changed files with 35 additions and 33 deletions
|
@ -47,7 +47,7 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
clock-frequency = <33333333>;
|
clock-frequency = <33333333>;
|
||||||
|
|
||||||
cs-gpios = <&gpio0 9 0>;
|
cs-gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
|
||||||
ili9340@0 {
|
ili9340@0 {
|
||||||
compatible = "ilitek,ili9340";
|
compatible = "ilitek,ili9340";
|
||||||
cmd-data-gpios = <&gpio0 21 0>;
|
cmd-data-gpios = <&gpio0 21 0>;
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
|
|
||||||
&spi1 {
|
&spi1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
cs-gpios = <&gpiob 0 0>;
|
cs-gpios = <&gpiob 0 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
lora: sx1276@0 {
|
lora: sx1276@0 {
|
||||||
compatible = "semtech,sx1276";
|
compatible = "semtech,sx1276";
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
dopo = <1>;
|
dopo = <1>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
cs-gpios = <&porta 5 0>;
|
cs-gpios = <&porta 5 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&sercom2 {
|
&sercom2 {
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
sck-pin = <25>;
|
sck-pin = <25>;
|
||||||
mosi-pin = <23>;
|
mosi-pin = <23>;
|
||||||
miso-pin = <24>;
|
miso-pin = <24>;
|
||||||
cs-gpios = <&gpio0 22 0>;
|
cs-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi1 {
|
&spi1 {
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
sck-pin = <16>;
|
sck-pin = <16>;
|
||||||
mosi-pin = <20>;
|
mosi-pin = <20>;
|
||||||
miso-pin = <14>;
|
miso-pin = <14>;
|
||||||
cs-gpios = <&gpio0 12 0>;
|
cs-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&flash0 {
|
&flash0 {
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
sck-pin = <41>;
|
sck-pin = <41>;
|
||||||
mosi-pin = <40>;
|
mosi-pin = <40>;
|
||||||
miso-pin = <4>;
|
miso-pin = <4>;
|
||||||
cs-gpios = <&gpio1 12 0>;
|
cs-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi1 {
|
&spi1 {
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
sck-pin = <19>;
|
sck-pin = <19>;
|
||||||
mosi-pin = <20>;
|
mosi-pin = <20>;
|
||||||
miso-pin = <21>;
|
miso-pin = <21>;
|
||||||
cs-gpios = <&gpio0 17 0>;
|
cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
|
||||||
mx25r6435f@0 {
|
mx25r6435f@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
mosi-pin = <9>;
|
mosi-pin = <9>;
|
||||||
miso-pin = <8>;
|
miso-pin = <8>;
|
||||||
cs-pin = <11>;
|
cs-pin = <11>;
|
||||||
cs-gpios = <&gpio0 11 0>;
|
cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&rtc {
|
&rtc {
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
mosi-pin = <9>;
|
mosi-pin = <9>;
|
||||||
miso-pin = <8>;
|
miso-pin = <8>;
|
||||||
cs-pin = <11>;
|
cs-pin = <11>;
|
||||||
cs-gpios = <&gpio0 11 0>;
|
cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&rtc {
|
&rtc {
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
location-tx = <GECKO_LOCATION(11) GECKO_PORT_C GECKO_PIN(6)>;
|
location-tx = <GECKO_LOCATION(11) GECKO_PORT_C GECKO_PIN(6)>;
|
||||||
location-clk = <GECKO_LOCATION(11) GECKO_PORT_C GECKO_PIN(8)>;
|
location-clk = <GECKO_LOCATION(11) GECKO_PORT_C GECKO_PIN(8)>;
|
||||||
|
|
||||||
cs-gpios = <&gpioa 4 0>;
|
cs-gpios = <&gpioa 4 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
location-tx = <GECKO_LOCATION(29) GECKO_PORT_K GECKO_PIN(0)>;
|
location-tx = <GECKO_LOCATION(29) GECKO_PORT_K GECKO_PIN(0)>;
|
||||||
location-clk = <GECKO_LOCATION(18) GECKO_PORT_F GECKO_PIN(7)>;
|
location-clk = <GECKO_LOCATION(18) GECKO_PORT_F GECKO_PIN(7)>;
|
||||||
|
|
||||||
cs-gpios = <&gpiok 1 0>;
|
cs-gpios = <&gpiok 1 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
sck-pin = <25>;
|
sck-pin = <25>;
|
||||||
mosi-pin = <24>;
|
mosi-pin = <24>;
|
||||||
miso-pin = <23>;
|
miso-pin = <23>;
|
||||||
cs-gpios = <&gpio0 30 0>;
|
cs-gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&uart0 {
|
&uart0 {
|
||||||
|
|
|
@ -188,7 +188,7 @@ arduino_spi: &spi3 {
|
||||||
sck-pin = <23>;
|
sck-pin = <23>;
|
||||||
miso-pin = <22>;
|
miso-pin = <22>;
|
||||||
mosi-pin = <21>;
|
mosi-pin = <21>;
|
||||||
cs-gpios = <&arduino_header 16 0>; /* D10 */
|
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
|
||||||
};
|
};
|
||||||
|
|
||||||
&flash0 {
|
&flash0 {
|
||||||
|
|
|
@ -228,7 +228,7 @@ arduino_spi: &spi3 {
|
||||||
sck-pin = <47>;
|
sck-pin = <47>;
|
||||||
miso-pin = <46>;
|
miso-pin = <46>;
|
||||||
mosi-pin = <45>;
|
mosi-pin = <45>;
|
||||||
cs-gpios = <&arduino_header 16 0>; /* D10 */
|
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
|
||||||
};
|
};
|
||||||
|
|
||||||
&flash0 {
|
&flash0 {
|
||||||
|
|
|
@ -190,7 +190,7 @@ arduino_spi: &spi2 {
|
||||||
sck-pin = <25>;
|
sck-pin = <25>;
|
||||||
mosi-pin = <23>;
|
mosi-pin = <23>;
|
||||||
miso-pin = <24>;
|
miso-pin = <24>;
|
||||||
cs-gpios = <&arduino_header 16 0>; /* D10 */
|
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
|
||||||
};
|
};
|
||||||
|
|
||||||
&flash0 {
|
&flash0 {
|
||||||
|
|
|
@ -193,7 +193,7 @@ feather_i2c: &i2c0 { };
|
||||||
sck-pin = <19>;
|
sck-pin = <19>;
|
||||||
mosi-pin = <20>;
|
mosi-pin = <20>;
|
||||||
miso-pin = <21>;
|
miso-pin = <21>;
|
||||||
cs-gpios = <&gpio0 17 0>;
|
cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
|
||||||
mx25l32: mx25l3233f@0 {
|
mx25l32: mx25l3233f@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
label = "MX25L3233F";
|
label = "MX25L3233F";
|
||||||
|
|
|
@ -193,7 +193,7 @@ feather_i2c: &i2c0 { };
|
||||||
sck-pin = <19>;
|
sck-pin = <19>;
|
||||||
mosi-pin = <20>;
|
mosi-pin = <20>;
|
||||||
miso-pin = <21>;
|
miso-pin = <21>;
|
||||||
cs-gpios = <&gpio0 17 0>;
|
cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
|
||||||
mx25l32: mx25l3233f@0 {
|
mx25l32: mx25l3233f@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
label = "MX25L3233F";
|
label = "MX25L3233F";
|
||||||
|
|
|
@ -193,7 +193,7 @@ feather_i2c: &i2c0 { };
|
||||||
sck-pin = <19>;
|
sck-pin = <19>;
|
||||||
mosi-pin = <20>;
|
mosi-pin = <20>;
|
||||||
miso-pin = <21>;
|
miso-pin = <21>;
|
||||||
cs-gpios = <&gpio0 17 0>;
|
cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
|
||||||
mx25l32: mx25l3233f@0 {
|
mx25l32: mx25l3233f@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
label = "MX25L3233F";
|
label = "MX25L3233F";
|
||||||
|
|
|
@ -159,7 +159,7 @@ arduino_spi: &spi3 {
|
||||||
sck-pin = <47>;
|
sck-pin = <47>;
|
||||||
miso-pin = <46>;
|
miso-pin = <46>;
|
||||||
mosi-pin = <45>;
|
mosi-pin = <45>;
|
||||||
cs-gpios = <&arduino_header 16 0>; /* D10 */
|
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
|
||||||
};
|
};
|
||||||
|
|
||||||
&flash0 {
|
&flash0 {
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
sck-pin = <29>;
|
sck-pin = <29>;
|
||||||
mosi-pin = <25>;
|
mosi-pin = <25>;
|
||||||
miso-pin = <28>;
|
miso-pin = <28>;
|
||||||
cs-gpios = <&gpio0 3 0>, <&gpio0 8 0>;
|
cs-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>, <&gpio0 8 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
bme280@0 {
|
bme280@0 {
|
||||||
compatible = "bosch,bme280";
|
compatible = "bosch,bme280";
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
&spi1 {
|
&spi1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
cs-gpios = <&gpioe 11 0>, <&gpioe 12 0>, <&gpioe 10 0>;
|
cs-gpios = <&gpioe 11 GPIO_ACTIVE_LOW>, <&gpioe 12 GPIO_ACTIVE_LOW>, <&gpioe 10 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
lis2dw12@0 {
|
lis2dw12@0 {
|
||||||
compatible = "st,lis2dw12";
|
compatible = "st,lis2dw12";
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
&spi3 {
|
&spi3 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
cs-gpios = <&gpioa 15 0>;
|
cs-gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
lis2mdl@0 {
|
lis2mdl@0 {
|
||||||
compatible = "st,lis2mdl";
|
compatible = "st,lis2mdl";
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
&spi5 {
|
&spi5 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
cs-gpios = <&gpioc 2 0>;
|
cs-gpios = <&gpioc 2 GPIO_ACTIVE_LOW>;
|
||||||
ili9340@0 {
|
ili9340@0 {
|
||||||
compatible = "ilitek,ili9340";
|
compatible = "ilitek,ili9340";
|
||||||
label = "DISPLAY";
|
label = "DISPLAY";
|
||||||
|
|
|
@ -137,7 +137,7 @@ arduino_spi: &lpspi0 {
|
||||||
|
|
||||||
&lpspi1 {
|
&lpspi1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
cs-gpios = <&gpiob 22 0>;
|
cs-gpios = <&gpiob 22 GPIO_ACTIVE_LOW>;
|
||||||
mx25r32: mx25r3235f@0 {
|
mx25r32: mx25r3235f@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
&arduino_spi {
|
&arduino_spi {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
cs-gpios = <&arduino_header 16 0>; /* D10 */
|
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
|
||||||
|
|
||||||
can1: mcp2515@0 {
|
can1: mcp2515@0 {
|
||||||
compatible = "microchip,mcp2515";
|
compatible = "microchip,mcp2515";
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
&mikrobus_spi {
|
&mikrobus_spi {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
cs-gpios = <&mikrobus_header 2 0>; /* CS */
|
cs-gpios = <&mikrobus_header 2 GPIO_ACTIVE_LOW>; /* CS */
|
||||||
|
|
||||||
eth_click@0 {
|
eth_click@0 {
|
||||||
compatible = "microchip,enc28j60";
|
compatible = "microchip,enc28j60";
|
||||||
|
|
|
@ -33,7 +33,7 @@ SDHC card has been initialized:
|
||||||
|
|
||||||
&spi1 {
|
&spi1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
cs-gpios = <&porta 27 0>;
|
cs-gpios = <&porta 27 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
sdhc0: sdhc@0 {
|
sdhc0: sdhc@0 {
|
||||||
compatible = "zephyr,mmc-spi-slot";
|
compatible = "zephyr,mmc-spi-slot";
|
||||||
|
|
|
@ -192,8 +192,10 @@
|
||||||
|
|
||||||
hs_lspi: spi@9f000 {
|
hs_lspi: spi@9f000 {
|
||||||
compatible = "nxp,lpc-spi";
|
compatible = "nxp,lpc-spi";
|
||||||
cs-gpios = <&gpio0 20 0>,<&gpio1 1 0>,<&gpio1 12 0>,
|
cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>,
|
||||||
<&gpio1 26 0>;
|
<&gpio1 1 GPIO_ACTIVE_LOW>,
|
||||||
|
<&gpio1 12 GPIO_ACTIVE_LOW>,
|
||||||
|
<&gpio1 26 GPIO_ACTIVE_LOW>;
|
||||||
reg = <0x9f000 0x1000>;
|
reg = <0x9f000 0x1000>;
|
||||||
interrupts = <59 0>;
|
interrupts = <59 0>;
|
||||||
label = "HS_LSPI";
|
label = "HS_LSPI";
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
sck-pin = <11>;
|
sck-pin = <11>;
|
||||||
mosi-pin = <12>;
|
mosi-pin = <12>;
|
||||||
miso-pin = <13>;
|
miso-pin = <13>;
|
||||||
cs-gpios = <&gpio0 20 0>, <&gpio0 10 0>;
|
cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>, <&gpio0 10 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
at45db041e@0 {
|
at45db041e@0 {
|
||||||
compatible = "atmel,at45";
|
compatible = "atmel,at45";
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
&spi3 {
|
&spi3 {
|
||||||
status = "ok";
|
status = "ok";
|
||||||
cs-gpios = <&gpio1 3 0>;
|
cs-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
|
||||||
sck-pin = <36>;
|
sck-pin = <36>;
|
||||||
mosi-pin = <37>;
|
mosi-pin = <37>;
|
||||||
miso-pin = <38>;
|
miso-pin = <38>;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
sck-pin = <25>;
|
sck-pin = <25>;
|
||||||
mosi-pin = <23>;
|
mosi-pin = <23>;
|
||||||
miso-pin = <24>;
|
miso-pin = <24>;
|
||||||
cs-gpios = <&gpio0 22 0>;
|
cs-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
adxl362@0 {
|
adxl362@0 {
|
||||||
compatible = "adi,adxl362";
|
compatible = "adi,adxl362";
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
&spi2 {
|
&spi2 {
|
||||||
cs-gpios = <&gpio0 22 0>;
|
cs-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
|
||||||
adxl372@0 {
|
adxl372@0 {
|
||||||
compatible = "adi,adxl372";
|
compatible = "adi,adxl372";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue