ARM: dts: aspeed: Use 24MHz fixed clock for pwm
authorLei YU <mine260309@gmail.com>
Wed, 9 May 2018 09:35:59 +0000 (17:35 +0800)
committerJoel Stanley <joel@jms.id.au>
Wed, 18 Jul 2018 13:07:21 +0000 (22:37 +0930)
The aspeed pwm driver always sets the clock source to 24MHz, specify
the fixed clock in device tree to make sure the driver is using the
correct clock frequency to calculate the fan speed.

Signed-off-by: Lei YU <mine260309@gmail.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-g4.dtsi
arch/arm/boot/dts/aspeed-g5.dtsi

index 54524564037cc97003c5d41cf1709115378503f6..680336ac06f81cd871a077682bcb99faa00c224b 100644 (file)
                                #address-cells = <1>;
                                #size-cells = <0>;
                                reg = <0x1e786000 0x1000>;
-                               clocks = <&syscon ASPEED_CLK_APB>;
+                               clocks = <&syscon ASPEED_CLK_24M>;
                                resets = <&syscon ASPEED_RESET_PWM>;
                                status = "disabled";
                        };
index 6274d3eaf3744129be80db711ae6f31a9ff13d55..02e70ad3ab70dfef3ffc52ae2d4c1d1731866659 100644 (file)
                                #address-cells = <1>;
                                #size-cells = <0>;
                                reg = <0x1e786000 0x1000>;
-                               clocks = <&syscon ASPEED_CLK_APB>;
+                               clocks = <&syscon ASPEED_CLK_24M>;
                                resets = <&syscon ASPEED_RESET_PWM>;
                                status = "disabled";
                        };