Skip to content

Commit

Permalink
ARM: dts: Add strict_gpiod dtparam
Browse files Browse the repository at this point in the history
Setting strict_gpiod disables the GPIO output persistence, such that
pins are returned to being inputs when they are released. Note that
this applies to the GPIO/pinctrl driver for the user-facing GPIOs,
not the SoC GPIOs on Pi 5.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
  • Loading branch information
pelwell committed Apr 19, 2024
1 parent 3668014 commit 27fdf92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/broadcom/bcm270x-rpi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@
drm_fb0_vc4 = <&aliases>, "drm-fb0=",&vc4;
drm_fb1_vc4 = <&aliases>, "drm-fb1=",&vc4;
drm_fb2_vc4 = <&aliases>, "drm-fb2=",&vc4;

strict_gpiod = <&chosen>, "bootargs=pinctrl_bcm2835.strict_gpiod=y";
};
};

Expand Down
1 change: 1 addition & 0 deletions arch/arm/boot/dts/broadcom/bcm2712-rpi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
nvmem_cust_rw = <&nvmem_cust>,"rw?";
nvmem_priv_rw = <&nvmem_priv>,"rw?";
nvmem_mac_rw = <&nvmem_mac>,"rw?";
strict_gpiod = <&chosen>, "bootargs=pinctrl_rp1.strict_gpiod=y";
};
};

Expand Down

0 comments on commit 27fdf92

Please sign in to comment.