mediatek: copy patches-6.1 to patches-6.6
[openwrt/staging/981213.git] / target / linux / mediatek / patches-6.6 / 013-v6.5-arm64-dts-mt7986-add-PWM-to-BPI-R3.patch
1 From 35e482bb599df010b4869017ff576dbb7a4d4c2e Mon Sep 17 00:00:00 2001
2 From: Frank Wunderlich <frank-w@public-files.de>
3 Date: Fri, 21 Apr 2023 15:20:45 +0200
4 Subject: [PATCH 13/19] arm64: dts: mt7986: add PWM to BPI-R3
5
6 Add pwm node and pinctrl to BananaPi R3 devicetree.
7
8 Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
9 Link: https://lore.kernel.org/r/20230421132047.42166-6-linux@fw-web.de
10 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
11 ---
12 .../boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 13 +++++++++++++
13 1 file changed, 13 insertions(+)
14
15 --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
16 +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
17 @@ -275,6 +275,13 @@
18 };
19 };
20
21 + pwm_pins: pwm-pins {
22 + mux {
23 + function = "pwm";
24 + groups = "pwm0", "pwm1_0";
25 + };
26 + };
27 +
28 spi_flash_pins: spi-flash-pins {
29 mux {
30 function = "spi";
31 @@ -345,6 +352,12 @@
32 };
33 };
34
35 +&pwm {
36 + pinctrl-names = "default";
37 + pinctrl-0 = <&pwm_pins>;
38 + status = "okay";
39 +};
40 +
41 &spi0 {
42 pinctrl-names = "default";
43 pinctrl-0 = <&spi_flash_pins>;