Skip to content

Commit 7f7d964

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 b511ec0 commit 7f7d964

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
@@ -44,6 +44,15 @@ Boards
4444
Device Drivers and Devicetree
4545
*****************************
4646

47+
GPIO
48+
====
49+
50+
* To support the RP2350B, which has many pins, the RaspberryPi-GPIO configuration has
51+
been changed. The previous role of :dtcompatible:`raspberrypi,rpi-gpio` has been migrated to
52+
:dtcompatible:`raspberrypi,rpi-gpio-port`, and :dtcompatible:`raspberrypi,rpi-gpio` is
53+
now left as a placeholder and mapper.
54+
The labels have also been changed along, so no changes are necessary for regular use.
55+
4756
Bluetooth
4857
*********
4958

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)