Skip to contentSkip to conversation

ARM: dts: fix PWM clock found on RK3288 Socs

PATCH In review Caesar Wang 2 participants 3 messages Nov 19, 2014 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: fix PWM clock found on RK3288 Socs

We use the new PWM IP on RK3288,but the PWM's clock indeed incorrect.

---
 arch/arm/boot/dts/rk3288.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/rk3288.dtsi +4 -4
index cb18bb4..76bff02 100644
@@ -418,7 +418,7 @@
 		#pwm-cells = <3>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pwm0_pin>;
-		clocks = <&cru PCLK_PWM>;
+		clocks = <&cru PCLK_RKPWM>;
 		clock-names = "pwm";
 		status = "disabled";
 	};
@@ -429,7 +429,7 @@
 		#pwm-cells = <3>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pwm1_pin>;
-		clocks = <&cru PCLK_PWM>;
+		clocks = <&cru PCLK_RKPWM>;
 		clock-names = "pwm";
 		status = "disabled";
 	};
@@ -440,7 +440,7 @@
 		#pwm-cells = <3>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pwm2_pin>;
-		clocks = <&cru PCLK_PWM>;
+		clocks = <&cru PCLK_RKPWM>;
 		clock-names = "pwm";
 		status = "disabled";
 	};
@@ -451,7 +451,7 @@
 		#pwm-cells = <2>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pwm3_pin>;
-		clocks = <&cru PCLK_PWM>;
+		clocks = <&cru PCLK_RKPWM>;
 		clock-names = "pwm";
 		status = "disabled";
 	};
Signature · 1 line
1.9.1
#1 lore raw

Caesar,

Quoted 6 lines · Caesar Wang

We use the new PWM IP on RK3288,but the PWM's clock indeed incorrect.

---
 arch/arm/boot/dts/rk3288.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Right, I reported this when Kever was doing his "unused clocks" patch. That's why this clock is currently "ignore unused".

...but though your change is right, I'd rather your change doesn't land quite yet. It totally wrecks havoc with the PWM regulator used on many rk3288 boards and will glitch the main "logic" voltage at bootup. I have some patches that are MASSIVELY WIP:

https://chromium-review.googlesource.com/230640
WIP: regulator: pwm: Tell regulator framework that we can't turn off

https://chromium-review.googlesource.com/230641
WIP: PWM: handle the fact that firmware might have left us enabled

https://chromium-review.googlesource.com/230642
WIP: pwm-regulator stuff

I think that last one might blow up into several patches. We need to solve the problems from those patches before yours can really land.

It's pretty high on my list to finish the above patches, but right now suspend/resume issues are higher priority so it's a bit stalled... If someone wants to hijack any of the above patches please let me know--I won't be offended.

-Doug

#2 lore raw

Doug,

Quoted 26 lines · Doug Anderson

Caesar,

Quoted 6 lines · Caesar Wang

We use the new PWM IP on RK3288,but the PWM's clock indeed incorrect.

---
  arch/arm/boot/dts/rk3288.dtsi | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

Right, I reported this when Kever was doing his "unused clocks" patch. That's why this clock is currently "ignore unused".

...but though your change is right, I'd rather your change doesn't land quite yet. It totally wrecks havoc with the PWM regulator used on many rk3288 boards and will glitch the main "logic" voltage at bootup. I have some patches that are MASSIVELY WIP:

https://chromium-review.googlesource.com/230640
WIP: regulator: pwm: Tell regulator framework that we can't turn off

https://chromium-review.googlesource.com/230641
WIP: PWM: handle the fact that firmware might have left us enabled

https://chromium-review.googlesource.com/230642
WIP: pwm-regulator stuff

Quoted 8 lines

I think that last one might blow up into several patches. We need to solve the problems from those patches before yours can really land.

It's pretty high on my list to finish the above patches, but right now suspend/resume issues are higher priority so it's a bit stalled... If someone wants to hijack any of the above patches please let me know--I won't be offended.

OK,I see.

Quoted 4 lines

-Doug

Signature · 2 lines
Best regards,
Caesar