1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.1/target/linux/bcm27xx/patches-6.1/950-0455-overlays-pisound-Make-button-pins-owned-by-card.patch
Ycarus (Yannick Chabanois) 3743692973 Fix RPI5 support
2023-11-17 17:31:36 +01:00

49 lines
1.6 KiB
Diff

From 3ad2851293ef51728c901a8a3aaead2cce0cd7fc Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Wed, 2 Nov 2022 09:54:39 +0000
Subject: [PATCH] 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: https://github.com/raspberrypi/linux/issues/5235
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
arch/arm/boot/dts/overlays/pisound-overlay.dts | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
--- a/arch/arm/boot/dts/overlays/pisound-overlay.dts
+++ b/arch/arm/boot/dts/overlays/pisound-overlay.dts
@@ -55,8 +55,6 @@
pisound_spi: pisound_spi@0{
compatible = "blokaslabs,pisound-spi";
reg = <0>;
- pinctrl-names = "default";
- pinctrl-0 = <&spi0_pins>;
spi-max-frequency = <1000000>;
};
};
@@ -80,6 +78,7 @@
i2s-controller = <&i2s>;
status = "okay";
+ pinctrl-names = "default";
pinctrl-0 = <&pisound_button_pins>;
osr-gpios =
@@ -100,9 +99,6 @@
fragment@6 {
target = <&gpio>;
__overlay__ {
- pinctrl-names = "default";
- pinctrl-0 = <&pisound_button_pins>;
-
pisound_button_pins: pisound_button_pins {
brcm,pins = <17>;
brcm,function = <0>; // Input