Skip to content

Commit 384ad7f

Browse files
6by9pelwell
authored andcommitted
dtoverlays: Fix noints mode of mcp23017
noints mode disables 2 fragments that configure a GPIO to be used for the interrupt line from the MCP23017, but fails to remove the pinctrl-0 reference or pinctrl-names. It therefore fails to load due to an invalid phandle. Move the pinctrl-0 and pinctrl-names properties so they also get disabled by the noints override. https://forums.raspberrypi.com/viewtopic.php?t=370907 Signed-off-by: Dave Stevenson <[email protected]>
1 parent c40b423 commit 384ad7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/boot/dts/overlays/mcp23017-overlay.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
target = <&mcp23017>;
3535
mcp23017_irq: __overlay__ {
3636
#interrupt-cells=<2>;
37+
pinctrl-name = "default";
38+
pinctrl-0 = <&mcp23017_pins>;
3739
interrupt-parent = <&gpio>;
3840
interrupts = <4 2>;
3941
interrupt-controller;
@@ -49,8 +51,6 @@
4951

5052
mcp23017: mcp@20 {
5153
compatible = "microchip,mcp23017";
52-
pinctrl-name = "default";
53-
pinctrl-0 = <&mcp23017_pins>;
5454
reg = <0x20>;
5555
gpio-controller;
5656
#gpio-cells = <2>;

0 commit comments

Comments
 (0)