From 80859cc1d12f2fc9f255d2f17178217565686e54 Mon Sep 17 00:00:00 2001 From: Xiao Feng Date: Wed, 3 Feb 2016 18:21:58 +0800 Subject: [PATCH] ARM64: dts: add power-management node for rk3366 add pd parameters in the dtsi. support pd for rk3366. Change-Id: Id8a7c7b84038e4987aea8cb0e9846fbe187af0e9 Signed-off-by: Xiao Feng --- arch/arm64/boot/dts/rockchip/rk3366.dtsi | 105 +++++++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3366.dtsi b/arch/arm64/boot/dts/rockchip/rk3366.dtsi index 7d6e8cf084cd..d152f15da5d7 100644 --- a/arch/arm64/boot/dts/rockchip/rk3366.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3366.dtsi @@ -46,6 +46,7 @@ #include #include #include +#include / { compatible = "rockchip,rk3366"; @@ -402,6 +403,110 @@ status = "disabled"; }; + pmu: power-management@ff730000 { + compatible = "rockchip,rk3366-pmu", "syscon", "simple-mfd"; + reg = <0x0 0xff730000 0x0 0x1000>; + + power: power-controller { + status = "disabled"; + compatible = "rockchip,rk3366-power-controller"; + #power-domain-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + + /* + * Note: Although SCLK_* are the working clocks + * of device without including on the NOC, needed for + * synchronous reset. + * + * The clocks on the which NOC: + * ACLK_IEP/ACLK_VOP0 are on ACLK_VIO0_NIU. + * ACLK_RGA/ACLK_VOP1 are on ACLK_RGA_NIU. + * ACLK_ISP is on ACLK_ISP_NIU. + * ACLK_HDCP is on ACLK_HDCP_NIU. + * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU. + * + * Which clock are device clocks: + * clocks devices + * *_IEP IEP:Image Enhancement Processor + * *_ISP ISP:Image Signal Processing + * *_VOP* VOP:Visual Output Processor + * *_RGA RGA + * *_DPHY* LVDS + * *_HDMI HDMI + * *_MIPI_* MIPI + */ + pd_vio { + reg = ; + clocks = <&cru ACLK_IEP>, + <&cru ACLK_ISP>, + <&cru ACLK_RGA>, + <&cru ACLK_HDCP>, + <&cru ACLK_VOP_FULL>, + <&cru ACLK_VOP_LITE>, + <&cru ACLK_VOP_IEP>, + <&cru DCLK_VOP_FULL>, + <&cru DCLK_VOP_LITE>, + <&cru HCLK_IEP>, + <&cru HCLK_ISP>, + <&cru HCLK_RGA>, + <&cru HCLK_VOP_FULL>, + <&cru HCLK_VOP_LITE>, + <&cru HCLK_VIO_HDCPMMU>, + <&cru PCLK_HDMI_CTRL>, + <&cru PCLK_HDCP>, + <&cru PCLK_MIPI_DSI0>, + <&cru SCLK_VOP_FULL_PWM>, + <&cru SCLK_HDCP>, + <&cru SCLK_ISP>, + <&cru SCLK_RGA>, + <&cru SCLK_HDMI_CEC>, + <&cru SCLK_HDMI_HDCP>; + }; + + /* + * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC + * (video endecoder & decoder) clocks that on the + * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC). + */ + pd_vpu { + reg = ; + clocks = <&cru ACLK_VIDEO>, + <&cru HCLK_VIDEO>; + }; + + /* + * Note: ACLK_RKVDEC/HCLK_RKVDEC are RKVDEC + * (video decoder) clocks that on the + * ACLK_RKVDEC_NIU and HCLK_RKVDEC_NIU (NOC). + */ + pd_rkvdec { + reg = ; + clocks = <&cru ACLK_RKVDEC>, + <&cru HCLK_RKVDEC>; + }; + + pd_video { + reg = ; + clocks = <&cru ACLK_VIDEO>, + <&cru ACLK_RKVDEC>, + <&cru HCLK_VIDEO>, + <&cru HCLK_RKVDEC>, + <&cru SCLK_HEVC_CABAC>, + <&cru SCLK_HEVC_CORE>; + }; + + /* + * Note: ACLK_GPU is the GPU clock, + * and on the ACLK_GPU_NIU (NOC). + */ + pd_gpu { + reg = ; + clocks = <&cru ACLK_GPU>; + }; + }; + }; + pmugrf: syscon@ff738000 { compatible = "rockchip,rk3366-pmugrf", "syscon"; reg = <0x0 0xff738000 0x0 0x1000>; -- 2.34.1