Skip to content

Commit 4fd8f2b

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 9757ffa commit 4fd8f2b

File tree

8 files changed

+272
-84
lines changed

8 files changed

+272
-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.2.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ Boards
3232
Device Drivers and Devicetree
3333
*****************************
3434

35+
GPIO
36+
====
37+
38+
* To support the RP2350B, which has many pins, the RaspberryPi-GPIO configuration has
39+
been changed. The previous role of :dtcompatible:`raspberrypi,rpi-gpio` has been migrated to
40+
:dtcompatible:`raspberrypi,rpi-gpio-port`, and :dtcompatible:`raspberrypi,rpi-gpio` is
41+
now left as a placeholder and mapper.
42+
The labels have also been changed along, so no changes are necessary for regular use.
43+
3544
Bluetooth
3645
*********
3746

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)