ARM: dts: aspeed: Add PWM and tachometer node
authorJoel Stanley <joel@jms.id.au>
Tue, 28 Nov 2017 13:47:52 +0000 (00:17 +1030)
committerJoel Stanley <joel@jms.id.au>
Thu, 21 Dec 2017 03:33:17 +0000 (14:03 +1030)
The PWM/tach unit has a clock and reset phandle. It needs both in order
to function correctly.

Signed-off-by: Joel Stanley <joel@jms.id.au>
--
v3:
 Add the pwm reset phandle

arch/arm/boot/dts/aspeed-g4.dtsi
arch/arm/boot/dts/aspeed-g5.dtsi

index d2a82850b05bc0feaaf4324c7c84f082a92711c1..91aea96c10c839fb82c18a03d489b29732aef3b7 100644 (file)
                                clocks = <&syscon ASPEED_CLK_APB>;
                        };
 
+                       pwm_tacho: pwm-tacho-controller@1e786000 {
+                               compatible = "aspeed,ast2400-pwm-tacho";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reg = <0x1e786000 0x1000>;
+                               clocks = <&syscon ASPEED_CLK_APB>;
+                               resets = <&syscon ASPEED_RESET_PWM>;
+                               status = "disabled";
+                       };
+
                        vuart: serial@1e787000 {
                                compatible = "aspeed,ast2400-vuart";
                                reg = <0x1e787000 0x40>;
index 3a25fa48d4f66a7cfeb463fb67ff27cf4f9db95f..af3869ec87bbec2365c3d59086b5fc3f25f1e66b 100644 (file)
                                status = "disabled";
                        };
 
+                       pwm_tacho: pwm-tacho-controller@1e786000 {
+                               compatible = "aspeed,ast2500-pwm-tacho";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reg = <0x1e786000 0x1000>;
+                               clocks = <&syscon ASPEED_CLK_APB>;
+                               resets = <&syscon ASPEED_RESET_PWM>;
+                               status = "disabled";
+                       };
+
                        vuart: serial@1e787000 {
                                compatible = "aspeed,ast2500-vuart";
                                reg = <0x1e787000 0x40>;