ARM: dts: meson8: add the PWM controller nodes
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Tue, 11 Jul 2017 22:20:15 +0000 (00:20 +0200)
committerKevin Hilman <khilman@baylibre.com>
Fri, 28 Jul 2017 16:42:11 +0000 (09:42 -0700)
pwm_ab and pwm_cd are already inherited from meson.dtsi, we only need to
define the correct "compatible" string so the pwm-meson driver can
choose the parent clocks correctly.
pwm_ef is added to meson8.dtsi directly (similar to how it's done in
meson8b.dtsi) as this controller only exists on Meson8 and Meson8b.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/meson8.dtsi

index cada35828931e49a4e37d750bfbe837064488262..6fe6a159e960b9830cd978c3cea9c32e530bee3e 100644 (file)
                reg = <0x8000 0x4>, <0x4000 0x460>;
        };
 
+       pwm_ef: pwm@86c0 {
+               compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
+               reg = <0x86c0 0x10>;
+               #pwm-cells = <3>;
+               status = "disabled";
+       };
+
        pinctrl_cbus: pinctrl@9880 {
                compatible = "amlogic,meson8-cbus-pinctrl";
                reg = <0x9880 0x10>;
        arm,filter-ranges = <0x100000 0xc0000000>;
 };
 
+&pwm_ab {
+       compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
+};
+
+&pwm_cd {
+       compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
+};
+
 &saradc {
        compatible = "amlogic,meson8-saradc", "amlogic,meson-saradc";
        clocks = <&clkc CLKID_XTAL>,