diff --git a/boards/arc/hsdk/hsdk.dts b/boards/arc/hsdk/hsdk.dts index 0c47fdefa52..f5c56674943 100644 --- a/boards/arc/hsdk/hsdk.dts +++ b/boards/arc/hsdk/hsdk.dts @@ -47,7 +47,7 @@ status = "okay"; clock-frequency = <33333333>; - cs-gpios = <&gpio0 9 0>; + cs-gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; ili9340@0 { compatible = "ilitek,ili9340"; cmd-data-gpios = <&gpio0 21 0>; diff --git a/boards/arm/96b_wistrio/96b_wistrio.dts b/boards/arm/96b_wistrio/96b_wistrio.dts index d1188e14521..807be2d0de3 100644 --- a/boards/arm/96b_wistrio/96b_wistrio.dts +++ b/boards/arm/96b_wistrio/96b_wistrio.dts @@ -60,7 +60,7 @@ &spi1 { status = "okay"; - cs-gpios = <&gpiob 0 0>; + cs-gpios = <&gpiob 0 GPIO_ACTIVE_LOW>; lora: sx1276@0 { compatible = "semtech,sx1276"; diff --git a/boards/arm/atsamd20_xpro/atsamd20_xpro.dts b/boards/arm/atsamd20_xpro/atsamd20_xpro.dts index 59a3a039b3f..8d9042554f1 100644 --- a/boards/arm/atsamd20_xpro/atsamd20_xpro.dts +++ b/boards/arm/atsamd20_xpro/atsamd20_xpro.dts @@ -52,7 +52,7 @@ dopo = <1>; #address-cells = <1>; #size-cells = <0>; - cs-gpios = <&porta 5 0>; + cs-gpios = <&porta 5 GPIO_ACTIVE_LOW>; }; &sercom2 { diff --git a/boards/arm/bl652_dvk/bl652_dvk.dts b/boards/arm/bl652_dvk/bl652_dvk.dts index d22b9fc278d..f3c6a845f4c 100644 --- a/boards/arm/bl652_dvk/bl652_dvk.dts +++ b/boards/arm/bl652_dvk/bl652_dvk.dts @@ -95,7 +95,7 @@ sck-pin = <25>; mosi-pin = <23>; miso-pin = <24>; - cs-gpios = <&gpio0 22 0>; + cs-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; }; &spi1 { @@ -104,7 +104,7 @@ sck-pin = <16>; mosi-pin = <20>; miso-pin = <14>; - cs-gpios = <&gpio0 12 0>; + cs-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; &flash0 { diff --git a/boards/arm/bl654_dvk/bl654_dvk.dts b/boards/arm/bl654_dvk/bl654_dvk.dts index 4b96f02753b..81224505847 100644 --- a/boards/arm/bl654_dvk/bl654_dvk.dts +++ b/boards/arm/bl654_dvk/bl654_dvk.dts @@ -119,7 +119,7 @@ sck-pin = <41>; mosi-pin = <40>; miso-pin = <4>; - cs-gpios = <&gpio1 12 0>; + cs-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; }; &spi1 { @@ -128,7 +128,7 @@ sck-pin = <19>; mosi-pin = <20>; miso-pin = <21>; - cs-gpios = <&gpio0 17 0>; + cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; mx25r6435f@0 { compatible = "jedec,spi-nor"; reg = <0>; diff --git a/boards/arm/cc1352r1_launchxl/cc1352r1_launchxl.dts b/boards/arm/cc1352r1_launchxl/cc1352r1_launchxl.dts index 510fe9cd098..e0e3e268aaf 100644 --- a/boards/arm/cc1352r1_launchxl/cc1352r1_launchxl.dts +++ b/boards/arm/cc1352r1_launchxl/cc1352r1_launchxl.dts @@ -92,7 +92,7 @@ mosi-pin = <9>; miso-pin = <8>; cs-pin = <11>; - cs-gpios = <&gpio0 11 0>; + cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; &rtc { diff --git a/boards/arm/cc26x2r1_launchxl/cc26x2r1_launchxl.dts b/boards/arm/cc26x2r1_launchxl/cc26x2r1_launchxl.dts index 5d996275d29..c07c4a409bf 100644 --- a/boards/arm/cc26x2r1_launchxl/cc26x2r1_launchxl.dts +++ b/boards/arm/cc26x2r1_launchxl/cc26x2r1_launchxl.dts @@ -92,7 +92,7 @@ mosi-pin = <9>; miso-pin = <8>; cs-pin = <11>; - cs-gpios = <&gpio0 11 0>; + cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; &rtc { diff --git a/boards/arm/efr32_radio/efr32_radio.dtsi b/boards/arm/efr32_radio/efr32_radio.dtsi index 16f49665f36..39779c9e3e1 100644 --- a/boards/arm/efr32_radio/efr32_radio.dtsi +++ b/boards/arm/efr32_radio/efr32_radio.dtsi @@ -67,7 +67,7 @@ location-tx = ; location-clk = ; - cs-gpios = <&gpioa 4 0>; + cs-gpios = <&gpioa 4 GPIO_ACTIVE_LOW>; status = "okay"; diff --git a/boards/arm/efr32mg_sltb004a/efr32mg_sltb004a.dts b/boards/arm/efr32mg_sltb004a/efr32mg_sltb004a.dts index e430a1f2ee2..c7c361537b8 100644 --- a/boards/arm/efr32mg_sltb004a/efr32mg_sltb004a.dts +++ b/boards/arm/efr32mg_sltb004a/efr32mg_sltb004a.dts @@ -76,7 +76,7 @@ location-tx = ; location-clk = ; - cs-gpios = <&gpiok 1 0>; + cs-gpios = <&gpiok 1 GPIO_ACTIVE_LOW>; status = "okay"; diff --git a/boards/arm/nrf51_ble400/nrf51_ble400.dts b/boards/arm/nrf51_ble400/nrf51_ble400.dts index 69cded44b64..961aacb5bf6 100644 --- a/boards/arm/nrf51_ble400/nrf51_ble400.dts +++ b/boards/arm/nrf51_ble400/nrf51_ble400.dts @@ -92,7 +92,7 @@ sck-pin = <25>; mosi-pin = <24>; miso-pin = <23>; - cs-gpios = <&gpio0 30 0>; + cs-gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; }; &uart0 { diff --git a/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts b/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts index 96dcb732a7b..6daf38f27fe 100644 --- a/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts +++ b/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts @@ -188,7 +188,7 @@ arduino_spi: &spi3 { sck-pin = <23>; miso-pin = <22>; mosi-pin = <21>; - cs-gpios = <&arduino_header 16 0>; /* D10 */ + cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ }; &flash0 { diff --git a/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts b/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts index b6be4fc7c07..3659cd20f57 100644 --- a/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts +++ b/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts @@ -228,7 +228,7 @@ arduino_spi: &spi3 { sck-pin = <47>; miso-pin = <46>; mosi-pin = <45>; - cs-gpios = <&arduino_header 16 0>; /* D10 */ + cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ }; &flash0 { diff --git a/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts b/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts index 10eb9112c2d..35ce5326aab 100644 --- a/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts +++ b/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts @@ -190,7 +190,7 @@ arduino_spi: &spi2 { sck-pin = <25>; mosi-pin = <23>; miso-pin = <24>; - cs-gpios = <&arduino_header 16 0>; /* D10 */ + cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ }; &flash0 { diff --git a/boards/arm/particle_argon/dts/mesh_feather.dtsi b/boards/arm/particle_argon/dts/mesh_feather.dtsi index 05991ec4b51..22687e24b40 100644 --- a/boards/arm/particle_argon/dts/mesh_feather.dtsi +++ b/boards/arm/particle_argon/dts/mesh_feather.dtsi @@ -193,7 +193,7 @@ feather_i2c: &i2c0 { }; sck-pin = <19>; mosi-pin = <20>; miso-pin = <21>; - cs-gpios = <&gpio0 17 0>; + cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; mx25l32: mx25l3233f@0 { compatible = "jedec,spi-nor"; label = "MX25L3233F"; diff --git a/boards/arm/particle_boron/dts/mesh_feather.dtsi b/boards/arm/particle_boron/dts/mesh_feather.dtsi index 05991ec4b51..22687e24b40 100644 --- a/boards/arm/particle_boron/dts/mesh_feather.dtsi +++ b/boards/arm/particle_boron/dts/mesh_feather.dtsi @@ -193,7 +193,7 @@ feather_i2c: &i2c0 { }; sck-pin = <19>; mosi-pin = <20>; miso-pin = <21>; - cs-gpios = <&gpio0 17 0>; + cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; mx25l32: mx25l3233f@0 { compatible = "jedec,spi-nor"; label = "MX25L3233F"; diff --git a/boards/arm/particle_xenon/dts/mesh_feather.dtsi b/boards/arm/particle_xenon/dts/mesh_feather.dtsi index 05991ec4b51..22687e24b40 100644 --- a/boards/arm/particle_xenon/dts/mesh_feather.dtsi +++ b/boards/arm/particle_xenon/dts/mesh_feather.dtsi @@ -193,7 +193,7 @@ feather_i2c: &i2c0 { }; sck-pin = <19>; mosi-pin = <20>; miso-pin = <21>; - cs-gpios = <&gpio0 17 0>; + cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; mx25l32: mx25l3233f@0 { compatible = "jedec,spi-nor"; label = "MX25L3233F"; diff --git a/boards/arm/reel_board/dts/reel_board.dtsi b/boards/arm/reel_board/dts/reel_board.dtsi index a712c420575..a5f1ac6aa80 100644 --- a/boards/arm/reel_board/dts/reel_board.dtsi +++ b/boards/arm/reel_board/dts/reel_board.dtsi @@ -159,7 +159,7 @@ arduino_spi: &spi3 { sck-pin = <47>; miso-pin = <46>; mosi-pin = <45>; - cs-gpios = <&arduino_header 16 0>; /* D10 */ + cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ }; &flash0 { diff --git a/boards/arm/ruuvi_ruuvitag/ruuvi_ruuvitag.dts b/boards/arm/ruuvi_ruuvitag/ruuvi_ruuvitag.dts index 93bd6cca211..8b527a6ea26 100644 --- a/boards/arm/ruuvi_ruuvitag/ruuvi_ruuvitag.dts +++ b/boards/arm/ruuvi_ruuvitag/ruuvi_ruuvitag.dts @@ -78,7 +78,7 @@ sck-pin = <29>; mosi-pin = <25>; 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 { compatible = "bosch,bme280"; diff --git a/boards/arm/sensortile_box/sensortile_box.dts b/boards/arm/sensortile_box/sensortile_box.dts index e1214bb6bf8..9dcdae4dab2 100644 --- a/boards/arm/sensortile_box/sensortile_box.dts +++ b/boards/arm/sensortile_box/sensortile_box.dts @@ -81,7 +81,7 @@ &spi1 { 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 { compatible = "st,lis2dw12"; @@ -111,7 +111,7 @@ &spi3 { status = "okay"; - cs-gpios = <&gpioa 15 0>; + cs-gpios = <&gpioa 15 GPIO_ACTIVE_LOW>; lis2mdl@0 { compatible = "st,lis2mdl"; diff --git a/boards/arm/stm32f429i_disc1/stm32f429i_disc1.dts b/boards/arm/stm32f429i_disc1/stm32f429i_disc1.dts index ac0c2ef0b3d..cf79eb1a67c 100644 --- a/boards/arm/stm32f429i_disc1/stm32f429i_disc1.dts +++ b/boards/arm/stm32f429i_disc1/stm32f429i_disc1.dts @@ -66,7 +66,7 @@ &spi5 { status = "okay"; - cs-gpios = <&gpioc 2 0>; + cs-gpios = <&gpioc 2 GPIO_ACTIVE_LOW>; ili9340@0 { compatible = "ilitek,ili9340"; label = "DISPLAY"; diff --git a/boards/riscv/rv32m1_vega/rv32m1_vega.dtsi b/boards/riscv/rv32m1_vega/rv32m1_vega.dtsi index 4539eea2a96..5811ebff083 100644 --- a/boards/riscv/rv32m1_vega/rv32m1_vega.dtsi +++ b/boards/riscv/rv32m1_vega/rv32m1_vega.dtsi @@ -137,7 +137,7 @@ arduino_spi: &lpspi0 { &lpspi1 { status = "okay"; - cs-gpios = <&gpiob 22 0>; + cs-gpios = <&gpiob 22 GPIO_ACTIVE_LOW>; mx25r32: mx25r3235f@0 { compatible = "jedec,spi-nor"; reg = <0>; diff --git a/boards/shields/dfrobot_can_bus_v2_0/dfrobot_can_bus_v2_0.overlay b/boards/shields/dfrobot_can_bus_v2_0/dfrobot_can_bus_v2_0.overlay index 27a7621788c..5b522669cfd 100644 --- a/boards/shields/dfrobot_can_bus_v2_0/dfrobot_can_bus_v2_0.overlay +++ b/boards/shields/dfrobot_can_bus_v2_0/dfrobot_can_bus_v2_0.overlay @@ -6,7 +6,7 @@ &arduino_spi { status = "okay"; - cs-gpios = <&arduino_header 16 0>; /* D10 */ + cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ can1: mcp2515@0 { compatible = "microchip,mcp2515"; diff --git a/boards/shields/mikroe_eth_click/mikroe_eth_click.overlay b/boards/shields/mikroe_eth_click/mikroe_eth_click.overlay index 0ffa02e81d5..6ff55f61250 100644 --- a/boards/shields/mikroe_eth_click/mikroe_eth_click.overlay +++ b/boards/shields/mikroe_eth_click/mikroe_eth_click.overlay @@ -4,7 +4,7 @@ &mikrobus_spi { status = "okay"; - cs-gpios = <&mikrobus_header 2 0>; /* CS */ + cs-gpios = <&mikrobus_header 2 GPIO_ACTIVE_LOW>; /* CS */ eth_click@0 { compatible = "microchip,enc28j60"; diff --git a/doc/reference/storage/disk/sdhc.rst b/doc/reference/storage/disk/sdhc.rst index 5cdb34b2b04..6d0ce5c0193 100644 --- a/doc/reference/storage/disk/sdhc.rst +++ b/doc/reference/storage/disk/sdhc.rst @@ -33,7 +33,7 @@ SDHC card has been initialized: &spi1 { status = "okay"; - cs-gpios = <&porta 27 0>; + cs-gpios = <&porta 27 GPIO_ACTIVE_LOW>; sdhc0: sdhc@0 { compatible = "zephyr,mmc-spi-slot"; diff --git a/dts/arm/nxp/nxp_lpc55S6x_common.dtsi b/dts/arm/nxp/nxp_lpc55S6x_common.dtsi index 37a1eaaa624..6be20ce7983 100644 --- a/dts/arm/nxp/nxp_lpc55S6x_common.dtsi +++ b/dts/arm/nxp/nxp_lpc55S6x_common.dtsi @@ -192,8 +192,10 @@ hs_lspi: spi@9f000 { compatible = "nxp,lpc-spi"; - cs-gpios = <&gpio0 20 0>,<&gpio1 1 0>,<&gpio1 12 0>, - <&gpio1 26 0>; + cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>, + <&gpio1 1 GPIO_ACTIVE_LOW>, + <&gpio1 12 GPIO_ACTIVE_LOW>, + <&gpio1 26 GPIO_ACTIVE_LOW>; reg = <0x9f000 0x1000>; interrupts = <59 0>; label = "HS_LSPI"; diff --git a/samples/drivers/spi_flash_at45/nrf9160dk_nrf9160.overlay b/samples/drivers/spi_flash_at45/nrf9160dk_nrf9160.overlay index ddaa1a25051..5fb3e01b9be 100644 --- a/samples/drivers/spi_flash_at45/nrf9160dk_nrf9160.overlay +++ b/samples/drivers/spi_flash_at45/nrf9160dk_nrf9160.overlay @@ -8,7 +8,7 @@ sck-pin = <11>; mosi-pin = <12>; 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 { compatible = "atmel,at45"; diff --git a/samples/net/wifi/boards/reel_board.overlay b/samples/net/wifi/boards/reel_board.overlay index ffd4bdf24ad..3037bddbcb6 100644 --- a/samples/net/wifi/boards/reel_board.overlay +++ b/samples/net/wifi/boards/reel_board.overlay @@ -6,7 +6,7 @@ &spi3 { status = "ok"; - cs-gpios = <&gpio1 3 0>; + cs-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; sck-pin = <36>; mosi-pin = <37>; miso-pin = <38>; diff --git a/samples/sensor/adxl362/boards/nrf52dk_nrf52832.overlay b/samples/sensor/adxl362/boards/nrf52dk_nrf52832.overlay index 6ec97e4ce28..4410637c6c1 100644 --- a/samples/sensor/adxl362/boards/nrf52dk_nrf52832.overlay +++ b/samples/sensor/adxl362/boards/nrf52dk_nrf52832.overlay @@ -9,7 +9,7 @@ sck-pin = <25>; mosi-pin = <23>; miso-pin = <24>; - cs-gpios = <&gpio0 22 0>; + cs-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; adxl362@0 { compatible = "adi,adxl362"; diff --git a/samples/sensor/adxl372/boards/nrf52dk_nrf52832.overlay b/samples/sensor/adxl372/boards/nrf52dk_nrf52832.overlay index 97034244431..9ee75ef525d 100644 --- a/samples/sensor/adxl372/boards/nrf52dk_nrf52832.overlay +++ b/samples/sensor/adxl372/boards/nrf52dk_nrf52832.overlay @@ -5,7 +5,7 @@ */ &spi2 { - cs-gpios = <&gpio0 22 0>; + cs-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; adxl372@0 { compatible = "adi,adxl372"; reg = <0>;