diff mbox series

[v3,01/13] arm: dts: owl-s500: Add Clock Management Unit

Message ID d05d2d0907ffcd090b36e17918039867780b8355.1609263738.git.cristian.ciocaltea@gmail.com
State Accepted
Commit b4d1e231fcdc343fb48d76c48b7518f89f3b7350
Headers show
Series Add CMU/RMU/DMA/MMC/I2C support for Actions Semi | expand

Commit Message

Cristian Ciocaltea Dec. 29, 2020, 9:17 p.m. UTC
Add Clock Management Unit for Actions Semi S500 SoC.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
Changes in v3:
 - Added Reviewed-by from Mani

 arch/arm/boot/dts/owl-s500.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comments

Cristian Ciocaltea Jan. 9, 2021, 4:32 p.m. UTC | #1
On Sat, Jan 09, 2021 at 12:38:13AM -0300, Matheus Castello wrote:
> 

> 

> Em 12/29/2020 6:17 PM, Cristian Ciocaltea escreveu:

> > Add Clock Management Unit for Actions Semi S500 SoC.

> > 

> > Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>

> > Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>


[...]

> Tested-by: Matheus Castello <matheus@castello.eng.br>


Thanks for testing this patch series!

Regards,
Cristi
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/owl-s500.dtsi b/arch/arm/boot/dts/owl-s500.dtsi
index 1dbe4e8b38ac..5d5ad9db549b 100644
--- a/arch/arm/boot/dts/owl-s500.dtsi
+++ b/arch/arm/boot/dts/owl-s500.dtsi
@@ -5,6 +5,7 @@ 
  * Copyright (c) 2016-2017 Andreas Färber
  */
 
+#include <dt-bindings/clock/actions,s500-cmu.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/power/owl-s500-powergate.h>
 
@@ -70,6 +71,12 @@  hosc: hosc {
 		#clock-cells = <0>;
 	};
 
+	losc: losc {
+		compatible = "fixed-clock";
+		clock-frequency = <32768>;
+		#clock-cells = <0>;
+	};
+
 	soc {
 		compatible = "simple-bus";
 		#address-cells = <1>;
@@ -169,6 +176,13 @@  uart6: serial@b012c000 {
 			status = "disabled";
 		};
 
+		cmu: clock-controller@b0160000 {
+			compatible = "actions,s500-cmu";
+			reg = <0xb0160000 0x8000>;
+			clocks = <&hosc>, <&losc>;
+			#clock-cells = <1>;
+		};
+
 		timer: timer@b0168000 {
 			compatible = "actions,s500-timer";
 			reg = <0xb0168000 0x8000>;