From 0b318ea183bb88f3c0849af6ed9942861fce0316 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Thu, 24 May 2018 10:05:42 +0800 Subject: [PATCH] arm64: dts: rockchip: px30: Add bus_apll device node Change-Id: I6f2ea99e58069962bd04461b959d208c8453f42b Signed-off-by: Finley Xiao --- arch/arm64/boot/dts/rockchip/px30.dtsi | 67 +++++++++++++++++--------- 1 file changed, 45 insertions(+), 22 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/px30.dtsi b/arch/arm64/boot/dts/rockchip/px30.dtsi index 76338ffcc6cf..7717ad41e92f 100644 --- a/arch/arm64/boot/dts/rockchip/px30.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30.dtsi @@ -203,6 +203,51 @@ interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; }; + bus_soc: bus-soc { + compatible = "rockchip,px30-bus"; + rockchip,busfreq-policy = "autocs"; + soc-bus0 { + bus-id = <0>; + timer-us = <20>; + enable-msk = <0x40f7>; + }; + soc-bus1 { + bus-id = <1>; + timer-us = <200>; + enable-msk = <0x40bf>; + status = "disabled"; + }; + soc-bus2 { + bus-id = <2>; + timer-us = <200>; + enable-msk = <0x4007>; + status = "disabled"; + }; + }; + + bus_apll: bus-apll { + compatible = "rockchip,px30-bus"; + rockchip,busfreq-policy = "clkfreq"; + clocks = <&cru PLL_APLL>; + clock-names = "bus"; + operating-points-v2 = <&bus_apll_opp_table>; + status = "disabled"; + }; + + bus_apll_opp_table: bus-apll-opp-table { + compatible = "operating-points-v2"; + opp-shared; + + opp-1512000000 { + opp-hz = /bits/ 64 <1512000000>; + opp-microvolt = <1000000>; + }; + opp-1008000000 { + opp-hz = /bits/ 64 <1008000000>; + opp-microvolt = <950000>; + }; + }; + cpuinfo { compatible = "rockchip,cpuinfo"; nvmem-cells = <&otp_id>; @@ -256,28 +301,6 @@ >; }; - soc_bus: soc-bus { - compatible = "rockchip,px30-bus"; - - soc-bus0 { - bus-id = <0>; - timer-us = <20>; - enable-msk = <0x40f7>; - }; - soc-bus1 { - bus-id = <1>; - timer-us = <200>; - enable-msk = <0x40bf>; - status = "disabled"; - }; - soc-bus2 { - bus-id = <2>; - timer-us = <200>; - enable-msk = <0x4007>; - status = "disabled"; - }; - }; - timer { compatible = "arm,armv8-timer"; interrupts = ,