Skip to content

Commit 49dda19

Browse files
finley1226Liang Chen
authored andcommitted
arm: dts: rockchip: Add clock assign for rk3126 and rk3128 cru
Add "assigned-clocks" for rk3126 and rk3128 cru nodes, to intalize clock rate for plls, bus and peripher. Change-Id: Ie91c8b194feff5db91af6e9930d5f475175242f9 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
1 parent 557c1d8 commit 49dda19

3 files changed

Lines changed: 19 additions & 15 deletions

File tree

arch/arm/boot/dts/rk3126.dtsi

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,8 @@
4242

4343
/ {
4444
compatible = "rockchip,rk3126";
45+
};
4546

46-
cru: clock-controller@20000000 {
47-
compatible = "rockchip,rk3126-cru";
48-
reg = <0x20000000 0x1000>;
49-
rockchip,grf = <&grf>;
50-
#clock-cells = <1>;
51-
#reset-cells = <1>;
52-
};
47+
&cru {
48+
compatible = "rockchip,rk3126-cru";
5349
};

arch/arm/boot/dts/rk3128.dtsi

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,6 @@
4747
compatible = "syscon";
4848
reg = <0x1012f080 0x20>;
4949
};
50-
51-
cru: clock-controller@20000000 {
52-
compatible = "rockchip,rk3128-cru";
53-
reg = <0x20000000 0x1000>;
54-
rockchip,grf = <&grf>;
55-
#clock-cells = <1>;
56-
#reset-cells = <1>;
57-
};
5850
};
5951

6052
&pd_vio {

arch/arm/boot/dts/rk312x.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,22 @@
743743
status = "disabled";
744744
};
745745

746+
cru: clock-controller@20000000 {
747+
compatible = "rockchip,rk3128-cru";
748+
reg = <0x20000000 0x1000>;
749+
rockchip,grf = <&grf>;
750+
#clock-cells = <1>;
751+
#reset-cells = <1>;
752+
assigned-clocks = <&cru PLL_GPLL>, <&cru PLL_CPLL>,
753+
<&cru ACLK_CPU>, <&cru HCLK_CPU>,
754+
<&cru PCLK_CPU>, <&cru ACLK_PERI>,
755+
<&cru HCLK_PERI>, <&cru PCLK_PERI>;
756+
assigned-clock-rates = <594000000>, <400000000>,
757+
<300000000>, <150000000>,
758+
<75000000>, <300000000>,
759+
<150000000>, <75000000>;
760+
};
761+
746762
grf: syscon@20008000 {
747763
compatible = "rockchip,rk3128-grf", "syscon", "simple-mfd";
748764
reg = <0x20008000 0x1000>;

0 commit comments

Comments
 (0)