From: Zhangbin Tong <zebulun.tong@rock-chips.com>
Date: Mon, 17 Jul 2017 08:00:22 +0000 (+0800)
Subject: arm64: dts: rockchip: rk3368-r88: Select xin32k from pwm1 out
X-Git-Tag: release-20171130_firefly~4^2~166
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4408897c1ff9211c1934cc7533bc5d34c1b5cc1f;p=firefly-linux-kernel-4.4.55.git

arm64: dts: rockchip: rk3368-r88: Select xin32k from pwm1 out

Change-Id: Iff675d47600cd7bf1d30564ca82697ce3b1fd9f4
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
---

diff --git a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts
index 497c0ab78c87..9bddbb930ad3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts
@@ -49,6 +49,15 @@
 	model = "Rockchip R88";
 	compatible = "rockchip,r88", "rockchip,rk3368";
 
+	xin32k: xin32k {
+		status = "okay";
+		compatible = "pwm-clock";
+		#clock-cells = <0>;
+		clock-frequency = <32768>;
+		clock-output-names = "xin32k";
+		pwms = <&pwm1 0 30518 0>; /* 1 / 30518 ns = 32.7675 KHz */
+	};
+
 	hdmi_sound: hdmi-sound {
 		status = "okay";
 		compatible = "simple-audio-card";
@@ -236,7 +245,7 @@
 		rockchip,system-power-controller;
 		wakeup-source;
 		#clock-cells = <1>;
-		clock-output-names = "xin32k", "rk808-clkout2";
+		clock-output-names = "rk808-clkout1", "rk808-clkout2";
 
 		vcc1-supply = <&vcc_sys>;
 		vcc2-supply = <&vcc_sys>;
@@ -654,6 +663,10 @@
 	>;
 };
 
+&pwm1 {
+	status = "okay";
+};
+
 &pwm3 {
 	status = "okay";