Merge tag 'visconti-arm-dt-for-v5.14' of https://git.kernel.org/pub/scm/linux/kernel...
authorOlof Johansson <olof@lixom.net>
Tue, 15 Jun 2021 15:18:09 +0000 (08:18 -0700)
committerOlof Johansson <olof@lixom.net>
Tue, 15 Jun 2021 15:18:11 +0000 (08:18 -0700)
Visconti device tree updates for 5.14

- Add DT support for Toshiba Visconti5 PWM driver

* tag 'visconti-arm-dt-for-v5.14' of https://git.kernel.org/pub/scm/linux/kernel/git/iwamatsu/linux-visconti:
  arm64: dts: visconti: Add PWM support for TMPV7708 SoC

Link: https://lore.kernel.org/r/20210614234654.2u3xetnn5rwhymwz@toshiba.co.jp
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm64/boot/dts/toshiba/tmpv7708-rm-mbrc.dts
arch/arm64/boot/dts/toshiba/tmpv7708.dtsi
arch/arm64/boot/dts/toshiba/tmpv7708_pins.dtsi

index bf0620a..29a4d9f 100644 (file)
 &gpio {
        status = "okay";
 };
+
+&pwm_mux {
+       groups = "pwm0_gpio16_grp", "pwm1_gpio17_grp", "pwm2_gpio18_grp", "pwm3_gpio19_grp";
+};
+
+&pwm {
+       status = "okay";
+};
index 17934fd..4b4231f 100644 (file)
                        reg = <0 0x28330000 0 0x1000>;
                        status = "disabled";
                };
+
+               pwm: pwm@241c0000 {
+                       compatible = "toshiba,visconti-pwm";
+                       reg = <0 0x241c0000 0 0x1000>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pwm_mux>;
+                       #pwm-cells = <2>;
+                       status = "disabled";
+               };
        };
 };
 
index 34de000..a480c6b 100644 (file)
@@ -90,4 +90,9 @@
                groups = "i2c8_grp";
                bias-pull-up;
        };
+
+       pwm_mux: pwm_mux {
+               function = "pwm";
+       };
+
 };