Skip to content

Commit 427ef32

Browse files
committed
drivers: gpio: rpi_pico: Add support for RP2350B
As the RP2350B has more than 32 GPIO pins, we changed the configuration so that it is split into two ports. To do this, we created a `raspberrypi,pico-gpio-port` node and moved the previous `raspberrypi,pico-gpio-port` functions to it. This became a child node of `raspberrypi,pico-gpio-port`, and `raspberrypi,pico-gpio-port` will remain a gpio mapper. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 06be6eb commit 427ef32

File tree

8 files changed

+268
-84
lines changed

8 files changed

+268
-84
lines changed

boards/raspberrypi/rpi_pico2/rpi_pico2.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
pinctrl-names = "default";
9898
};
9999

100-
&gpio0 {
100+
gpio0_lo: &gpio0 {
101101
status = "okay";
102102
};
103103

doc/releases/migration-guide-4.1.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ GPIO
238238
* Renamed the device tree property ``off_val`` to ``off-val``.
239239
* Renamed the device tree property ``on_val`` to ``on-val``.
240240
* Renamed the ``compatible`` from ``ti,ads114s0x-gpio`` to :dtcompatible:`ti,ads1x4s0x-gpio`.
241+
* To support the RP2350B, which has many pins, the RaspberryPi-GPIO configuration has
242+
been changed. The previous role of :dtcompatible:`raspberrypi,rpi-gpio` has been migrated to
243+
:dtcompatible:`raspberrypi,rpi-gpio-port`, and :dtcompatible:`raspberrypi,rpi-gpio` is
244+
now left as a placeholder and mapper.
245+
The labels have also been changed along, so no changes are necessary for regular use.
241246

242247
HWSPINLOCK
243248
==========

drivers/gpio/Kconfig.rpi_pico

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
config GPIO_RPI_PICO
55
default y
6-
depends on DT_HAS_RASPBERRYPI_PICO_GPIO_ENABLED
6+
depends on DT_HAS_RASPBERRYPI_PICO_GPIO_PORT_ENABLED
77
select PICOSDK_USE_GPIO
88
select PINCTRL
99
bool "Raspberry Pi Pico GPIO driver"

0 commit comments

Comments
 (0)