aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/rk3188.dtsi
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2014-04-14 19:16:44 -0400
committerHeiko Stuebner <heiko@sntech.de>2014-07-26 17:15:22 -0400
commitb13d2a7b43654c7f52aba9dc04f93cf7055ebc8b (patch)
tree612405f09cfa849f3067ac412dafc9b2f5c5d952 /arch/arm/boot/dts/rk3188.dtsi
parent1fe69496cf463b654d2d6e1a9a10fb8d99f10831 (diff)
ARM: dts: rockchip: add cru nodes and update device clocks to use it
This adds a node for the clock and reset unit on rk3188 and rk3066 SoCs and also updates the device nodes retrieve their clocks from there, instead of the previous gate clock nodes. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Acked-By: Max Schwarz <max.schwarz@online.de> Tested-By: Max Schwarz <max.schwarz@online.de>
Diffstat (limited to 'arch/arm/boot/dts/rk3188.dtsi')
-rw-r--r--arch/arm/boot/dts/rk3188.dtsi18
1 files changed, 14 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi
index 238c996d4a7f..bf0741a89b7c 100644
--- a/arch/arm/boot/dts/rk3188.dtsi
+++ b/arch/arm/boot/dts/rk3188.dtsi
@@ -15,6 +15,7 @@
15 15
16#include <dt-bindings/gpio/gpio.h> 16#include <dt-bindings/gpio/gpio.h>
17#include <dt-bindings/pinctrl/rockchip.h> 17#include <dt-bindings/pinctrl/rockchip.h>
18#include <dt-bindings/clock/rk3188-cru.h>
18#include "rk3xxx.dtsi" 19#include "rk3xxx.dtsi"
19#include "rk3188-clocks.dtsi" 20#include "rk3188-clocks.dtsi"
20 21
@@ -74,6 +75,15 @@
74 }; 75 };
75 }; 76 };
76 77
78 cru: clock-controller@20000000 {
79 compatible = "rockchip,rk3188-cru";
80 reg = <0x20000000 0x1000>;
81 rockchip,grf = <&grf>;
82
83 #clock-cells = <1>;
84 #reset-cells = <1>;
85 };
86
77 pinctrl@20008000 { 87 pinctrl@20008000 {
78 compatible = "rockchip,rk3188-pinctrl"; 88 compatible = "rockchip,rk3188-pinctrl";
79 rockchip,grf = <&grf>; 89 rockchip,grf = <&grf>;
@@ -87,7 +97,7 @@
87 compatible = "rockchip,rk3188-gpio-bank0"; 97 compatible = "rockchip,rk3188-gpio-bank0";
88 reg = <0x2000a000 0x100>; 98 reg = <0x2000a000 0x100>;
89 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; 99 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
90 clocks = <&clk_gates8 9>; 100 clocks = <&cru PCLK_GPIO0>;
91 101
92 gpio-controller; 102 gpio-controller;
93 #gpio-cells = <2>; 103 #gpio-cells = <2>;
@@ -100,7 +110,7 @@
100 compatible = "rockchip,gpio-bank"; 110 compatible = "rockchip,gpio-bank";
101 reg = <0x2003c000 0x100>; 111 reg = <0x2003c000 0x100>;
102 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; 112 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
103 clocks = <&clk_gates8 10>; 113 clocks = <&cru PCLK_GPIO1>;
104 114
105 gpio-controller; 115 gpio-controller;
106 #gpio-cells = <2>; 116 #gpio-cells = <2>;
@@ -113,7 +123,7 @@
113 compatible = "rockchip,gpio-bank"; 123 compatible = "rockchip,gpio-bank";
114 reg = <0x2003e000 0x100>; 124 reg = <0x2003e000 0x100>;
115 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; 125 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
116 clocks = <&clk_gates8 11>; 126 clocks = <&cru PCLK_GPIO2>;
117 127
118 gpio-controller; 128 gpio-controller;
119 #gpio-cells = <2>; 129 #gpio-cells = <2>;
@@ -126,7 +136,7 @@
126 compatible = "rockchip,gpio-bank"; 136 compatible = "rockchip,gpio-bank";
127 reg = <0x20080000 0x100>; 137 reg = <0x20080000 0x100>;
128 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>; 138 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
129 clocks = <&clk_gates8 12>; 139 clocks = <&cru PCLK_GPIO3>;
130 140
131 gpio-controller; 141 gpio-controller;
132 #gpio-cells = <2>; 142 #gpio-cells = <2>;