Skip to content

Commit 557949a

Browse files
pelwellpopcornmix
authored andcommitted
overlays: pisound: Make button pins owned by card
The pisound overlay claims a number of GPIOs using a pinctrl node, but for some reason hangs this claim on the main gpio node. This obscures the ownership of the pins (as shown by gpioinfo and in the kernel logs) and isn't scalable - only one overlay can use the trick at a time. Change the overlay to make the pin ownership clear and avoid any future conflicts, removing a bogus claim on pins_spi0 at the same time. See: #5235 Signed-off-by: Phil Elwell <[email protected]>
1 parent daecda9 commit 557949a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
pisound_spi: pisound_spi@0{
5656
compatible = "blokaslabs,pisound-spi";
5757
reg = <0>;
58-
pinctrl-names = "default";
59-
pinctrl-0 = <&spi0_pins>;
6058
spi-max-frequency = <1000000>;
6159
};
6260
};
@@ -80,6 +78,7 @@
8078
i2s-controller = <&i2s>;
8179
status = "okay";
8280

81+
pinctrl-names = "default";
8382
pinctrl-0 = <&pisound_button_pins>;
8483

8584
osr-gpios =
@@ -100,9 +99,6 @@
10099
fragment@6 {
101100
target = <&gpio>;
102101
__overlay__ {
103-
pinctrl-names = "default";
104-
pinctrl-0 = <&pisound_button_pins>;
105-
106102
pisound_button_pins: pisound_button_pins {
107103
brcm,pins = <17>;
108104
brcm,function = <0>; // Input

0 commit comments

Comments
 (0)