From 62a44a10ac35851c316de3533aae1f2e5cf19861 Mon Sep 17 00:00:00 2001 From: Stephan Linz Date: Sat, 23 Dec 2023 23:59:21 +0100 Subject: [PATCH 1/4] drivers: gpio: update drivers to use devicetree Kconfig symbol Update gpio drivers to use DT_HAS__ENABLED Kconfig symbol to expose the driver and enable it by default based on devicetree. Signed-off-by: Stephan Linz --- drivers/gpio/Kconfig.pca9554 | 2 ++ drivers/gpio/Kconfig.pca9555 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpio/Kconfig.pca9554 b/drivers/gpio/Kconfig.pca9554 index 6c5c296436..c7a855590f 100644 --- a/drivers/gpio/Kconfig.pca9554 +++ b/drivers/gpio/Kconfig.pca9554 @@ -5,6 +5,8 @@ menuconfig GPIO_PCA9554 bool "PCA9554 I2C-based GPIO chip" + default y + depends on DT_HAS_NXP_PCA9554_ENABLED depends on I2C help Enable driver for PCA9554 I2C-based GPIO chip. diff --git a/drivers/gpio/Kconfig.pca9555 b/drivers/gpio/Kconfig.pca9555 index bcec4ee04d..2187fab72f 100644 --- a/drivers/gpio/Kconfig.pca9555 +++ b/drivers/gpio/Kconfig.pca9555 @@ -5,6 +5,8 @@ menuconfig GPIO_PCA9555 bool "PCA9555 I2C-based GPIO chip" + default y + depends on DT_HAS_NXP_PCA9555_ENABLED depends on I2C help Enable driver for PCA9555 I2C-based GPIO chip. From 9980e96e3caf2cd6958b83a61def9dd2b6d93792 Mon Sep 17 00:00:00 2001 From: Stephan Linz Date: Mon, 1 Jan 2024 22:38:55 +0100 Subject: [PATCH 2/4] boards: waveshare_rp2040: upgrade to ws2812-rpi_pico-pio Signed-off-by: Stephan Linz --- boards/arm/waveshare_rp2040/rp2040mini_led_ws2812.dtsi | 3 +-- boards/arm/waveshare_rp2040/rpipico_led_ws2812.dtsi | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/boards/arm/waveshare_rp2040/rp2040mini_led_ws2812.dtsi b/boards/arm/waveshare_rp2040/rp2040mini_led_ws2812.dtsi index 1e66c0231e..d721e167f9 100644 --- a/boards/arm/waveshare_rp2040/rp2040mini_led_ws2812.dtsi +++ b/boards/arm/waveshare_rp2040/rp2040mini_led_ws2812.dtsi @@ -17,7 +17,7 @@ status = "okay"; pio-ws2812 { - compatible = "raspberrypi,pico-pio-ws2812"; + compatible = "worldsemi,ws2812-rpi_pico-pio"; status = "okay"; pinctrl-0 = <&pio0_ws2812_mini_default>; @@ -25,7 +25,6 @@ bit-waveform = <3>, <3>, <4>; led_strip: ws2812 { - compatible = "worldsemi,ws2812-rpi_pico-pio"; status = "okay"; chain-length = <1>; diff --git a/boards/arm/waveshare_rp2040/rpipico_led_ws2812.dtsi b/boards/arm/waveshare_rp2040/rpipico_led_ws2812.dtsi index 667f75263a..3e036a2e53 100644 --- a/boards/arm/waveshare_rp2040/rpipico_led_ws2812.dtsi +++ b/boards/arm/waveshare_rp2040/rpipico_led_ws2812.dtsi @@ -17,7 +17,7 @@ status = "okay"; pio-ws2812 { - compatible = "raspberrypi,pico-pio-ws2812"; + compatible = "worldsemi,ws2812-rpi_pico-pio"; status = "okay"; pinctrl-0 = <&pio0_ws2812_pico_default>; @@ -25,7 +25,6 @@ bit-waveform = <3>, <3>, <4>; led_strip: ws2812 { - compatible = "worldsemi,ws2812-rpi_pico-pio"; status = "okay"; chain-length = <1>; From 34d13b92e37960d598adac67c10d9baa9469dde1 Mon Sep 17 00:00:00 2001 From: Stephan Linz Date: Mon, 1 Jan 2024 22:39:15 +0100 Subject: [PATCH 3/4] boards: cytron_rp2040: upgrade to ws2812-rpi_pico-pio Signed-off-by: Stephan Linz --- boards/arm/cytron_rp2040/makerpi_led_ws2812.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/boards/arm/cytron_rp2040/makerpi_led_ws2812.dtsi b/boards/arm/cytron_rp2040/makerpi_led_ws2812.dtsi index d38867755a..184e9c6c1e 100644 --- a/boards/arm/cytron_rp2040/makerpi_led_ws2812.dtsi +++ b/boards/arm/cytron_rp2040/makerpi_led_ws2812.dtsi @@ -17,7 +17,7 @@ status = "okay"; pio-ws2812 { - compatible = "raspberrypi,pico-pio-ws2812"; + compatible = "worldsemi,ws2812-rpi_pico-pio"; status = "okay"; pinctrl-0 = <&pio0_ws2812_makerpi>; @@ -25,7 +25,6 @@ bit-waveform = <3>, <3>, <4>; led_strip: ws2812 { - compatible = "worldsemi,ws2812-rpi_pico-pio"; status = "okay"; chain-length = <2>; From a123d7254ce482b908d5a286c1c886ca85754b7a Mon Sep 17 00:00:00 2001 From: Stephan Linz Date: Sun, 24 Dec 2023 00:01:55 +0100 Subject: [PATCH 4/4] release: add draft notes for upcoming 3.6.0 Signed-off-by: Stephan Linz --- doc/bridle/releases/release-notes-3.6.0.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/bridle/releases/release-notes-3.6.0.rst b/doc/bridle/releases/release-notes-3.6.0.rst index 88e22093e9..2e14d105e1 100644 --- a/doc/bridle/releases/release-notes-3.6.0.rst +++ b/doc/bridle/releases/release-notes-3.6.0.rst @@ -163,6 +163,8 @@ Change log * Add the new *PWM Servomotor Preset Snippet (pwm-servo)* for quite board specific preperations of the standard Zephyr Servomotor sample. Add support for the following boards: +* Update GPIO to use ``DT_HAS__ENABLED`` Kconfig symbol to expose the + driver and enable it by default based on devicetree. * Cytron Maker Pi RP2040