arm64: dts: renesas: r8a77995: draak: enable PWM channel 0 and 1
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 4 Oct 2017 10:27:31 +0000 (19:27 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 10 Oct 2017 07:51:15 +0000 (09:51 +0200)
This patch enables PWM channel 0 and 1 on the draak. Each channel
connects to LTC2644 for brightness control.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/r8a77995-draak.dts

index fac58be8338366f9807d6a48fac5c7e30530279e..09de73b11db8aab2c3e0639d4296dd31d5b598aa 100644 (file)
                };
        };
 
+       pwm0_pins: pwm0 {
+               groups = "pwm0_c";
+               function = "pwm0";
+       };
+
+       pwm1_pins: pwm1 {
+               groups = "pwm1_c";
+               function = "pwm1";
+       };
+
        scif2_pins: scif2 {
                groups = "scif2_data";
                function = "scif2";
        status = "okay";
 };
 
+&pwm0 {
+       pinctrl-0 = <&pwm0_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+};
+
+&pwm1 {
+       pinctrl-0 = <&pwm1_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+};
+
 &rwdt {
        timeout-sec = <60>;
        status = "okay";