mediatek: Add support for Xiaomi Redmi Router AX6S
[openwrt/staging/mkresin.git] / target / linux / bcm53xx / patches-5.4 / 033-v5.10-0001-ARM-dts-BCM5301X-Specify-PWM-in-the-DT.patch
1 From 0ea4b29d149586667d96767f1fc8e57ee942c1b0 Mon Sep 17 00:00:00 2001
2 From: Christian Lamparter <chunkeey@gmail.com>
3 Date: Sat, 22 Aug 2020 18:19:19 +0200
4 Subject: [PATCH] ARM: dts: BCM5301X: Specify PWM in the DT
5
6 The BCM53016 in the Meraki MR32 uses the on-chip PWM
7 controller to drive a tri-color RGB LED. Since I plan
8 to use the PWM, I made a label for the pwm's pinmux
9 node. This way, it can be easily referenced.... And
10 Also included a label for the i2c since I'm going to
11 need it in the future too.
12
13 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
14 Acked-by: Scott Branden <scott.branden@broadcom.com>
15 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
16
17 --- a/arch/arm/boot/dts/bcm5301x.dtsi
18 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
19 @@ -352,6 +352,14 @@
20 };
21 };
22
23 + pwm: pwm@18002000 {
24 + compatible = "brcm,iproc-pwm";
25 + reg = <0x18002000 0x28>;
26 + clocks = <&osc>;
27 + #pwm-cells = <3>;
28 + status = "disabled";
29 + };
30 +
31 mdio: mdio@18003000 {
32 compatible = "brcm,iproc-mdio";
33 reg = <0x18003000 0x8>;
34 @@ -419,12 +427,12 @@
35 function = "spi";
36 };
37
38 - i2c {
39 + pinmux_i2c: i2c {
40 groups = "i2c_grp";
41 function = "i2c";
42 };
43
44 - pwm {
45 + pinmux_pwm: pwm {
46 groups = "pwm0_grp", "pwm1_grp",
47 "pwm2_grp", "pwm3_grp";
48 function = "pwm";