Skip to content

Commit

Permalink
dts: bcm2712-rpi: The SoC gpiochips start at 10
Browse files Browse the repository at this point in the history
Make the BCM2712's onboard GPIOs start at gpiochip10, marking them out
as system resources and preventing accidental use by existing Pi 5
code.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell committed Aug 5, 2024
1 parent 9493731 commit 90fc433
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
gpio3 = &pinctrl;
gpio4 = &pinctrl_aon;
gpiochip0 = &gpio;
gpiochip10 = &gio;
i2c = &i2c_arm;
i2c0 = &i2c0;
i2c1 = &i2c1;
Expand Down

2 comments on commit 90fc433

@cbxbiker61
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is "gpiochip10 = &gio;" right? Or should that be "gpiochip10 = &gpio;" ?

@pelwell
Copy link
Contributor Author

@pelwell pelwell commented on 90fc433 Aug 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice that you've got my back, but it is actually correct. gio is the label on the main SoC GPIO controller - gpio is the controller for the GPIOs on the 40-pin header.

Please sign in to comment.