bcm27xx: update 6.1 patches from RPi foundation
[openwrt/staging/xback.git] / target / linux / bcm27xx / patches-6.1 / 950-0522-overlays-audremap-Fix-setting-of-the-pin-function.patch
1 From afb542abe9793ff22690244e6e07c5069f829628 Mon Sep 17 00:00:00 2001
2 From: Krzysztof Kotlenga <k.kotlenga@sims.pl>
3 Date: Thu, 29 Dec 2022 19:14:32 +0100
4 Subject: [PATCH] overlays: audremap: Fix setting of the pin function
5
6 The brcm,function property must be set in the overlay fragment too -
7 otherwise the parametrization won't work. At least that's the case for
8 bcm2711-rpi-cm4.dts which starts with empty properties:
9
10 &gpio {
11 audio_pins: audio_pins {
12 brcm,pins = <>;
13 brcm,function = <>;
14 };
15 };
16
17 This was broken since a56df85d2f42fd461fdc05f33617141aca5ba465.
18
19 Signed-off-by: Krzysztof Kotlenga <k.kotlenga@sims.pl>
20 ---
21 arch/arm/boot/dts/overlays/audremap-overlay.dts | 1 +
22 1 file changed, 1 insertion(+)
23
24 --- a/arch/arm/boot/dts/overlays/audremap-overlay.dts
25 +++ b/arch/arm/boot/dts/overlays/audremap-overlay.dts
26 @@ -8,6 +8,7 @@
27 target = <&audio_pins>;
28 frag0: __overlay__ {
29 brcm,pins = <12 13>;
30 + brcm,function = <4>; /* alt0 alt0 */
31 };
32 };
33