arm64: dts: zx296718: add PWM device support
authorShawn Guo <shawn.guo@linaro.org>
Wed, 9 Aug 2017 06:30:47 +0000 (14:30 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 14 Aug 2017 01:51:15 +0000 (09:51 +0800)
It adds PWM device support which will be used to control voltage of core
supply on some boards.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm64/boot/dts/zte/zx296718.dtsi

index 177cbf5066d6cdbb83cf8e154db71e6f049dae9f..2689e2fb8c9f6935882769725eb921faee031790 100644 (file)
                        #clock-cells = <1>;
                };
 
+               pwm: pwm@1439000 {
+                       compatible = "zte,zx296718-pwm";
+                       reg = <0x1439000 0x1000>;
+                       clocks = <&lsp1crm LSP1_PWM_PCLK>,
+                                <&lsp1crm LSP1_PWM_WCLK>;
+                       clock-names = "pclk", "wclk";
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
                vou: vou@1440000 {
                        compatible = "zte,zx296718-vou";
                        #address-cells = <1>;