Skip to content

Commit 894c1f0

Browse files
Caesar-githubrkhuangtao
authored andcommitted
ARM: dts: rockchip: add the needed power domain node on rk3036
As the vpu needed handle the power domain for reset function, this patch supported the vpu domain for rk3036 Socs. Change-Id: I67ad6085e2eb9a213c364d58713f02cc78ce6849 Signed-off-by: Caesar Wang <wxt@rock-chips.com>
1 parent 1f232f6 commit 894c1f0

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

arch/arm/boot/dts/rk3036.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include <dt-bindings/interrupt-controller/arm-gic.h>
4444
#include <dt-bindings/pinctrl/rockchip.h>
4545
#include <dt-bindings/clock/rk3036-cru.h>
46+
#include <dt-bindings/power/rk3036-power.h>
4647
#include <dt-bindings/soc/rockchip,boot-mode.h>
4748
#include "skeleton.dtsi"
4849

@@ -248,6 +249,7 @@
248249
assigned-clocks = <&cru ACLK_VCODEC>;
249250
assigned-clock-rates = <297000000>;
250251
assigned-clock-parents = <&cru PLL_GPLL>;
252+
power-domains = <&power RK3036_PD_VPU>;
251253
status = "disabled";
252254
};
253255

@@ -259,6 +261,7 @@
259261
interrupt-names = "irq_dec";
260262
iommus = <&vpu_mmu>;
261263
allocator = <1>;
264+
power-domains = <&power RK3036_PD_VPU>;
262265
};
263266

264267
vpu_mmu: iommu@10108800 {
@@ -267,6 +270,7 @@
267270
interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
268271
interrupt-names = "vpu_mmu";
269272
#iommu-cells = <0>;
273+
power-domains = <&power RK3036_PD_VPU>;
270274
status = "disabled";
271275
};
272276

@@ -278,6 +282,7 @@
278282
interrupt-names = "irq_dec";
279283
allocator = <1>;
280284
iommus = <&hevc_mmu>;
285+
power-domains = <&power RK3036_PD_VPU>;
281286
};
282287

283288
hevc_mmu: iommu@1010c440 {
@@ -286,6 +291,7 @@
286291
interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
287292
interrupt-names = "hevc_mmu";
288293
#iommu-cells = <0>;
294+
power-domains = <&power RK3036_PD_VPU>;
289295
status = "disabled";
290296
};
291297

@@ -306,6 +312,7 @@
306312
resets = <&cru SRST_VCODEC_A>, <&cru SRST_VCODEC_H>,
307313
<&cru SRST_HEVC>;
308314
reset-names = "video_a", "video_h", "video";
315+
power-domains = <&power RK3036_PD_VPU>;
309316
status = "disabled";
310317
};
311318

@@ -486,6 +493,21 @@
486493
mode-loader = <BOOT_BL_DOWNLOAD>;
487494
mode-ums = <BOOT_UMS>;
488495
};
496+
497+
power: power-controller {
498+
compatible = "rockchip,rk3036-power-controller";
499+
#power-domain-cells = <1>;
500+
#address-cells = <1>;
501+
#size-cells = <0>;
502+
503+
pd_vpu@RK3036_PD_VPU {
504+
reg = <RK3036_PD_VPU>;
505+
clocks = <&cru ACLK_VCODEC>,
506+
<&cru HCLK_VCODEC>,
507+
<&cru ACLK_HEVC>;
508+
};
509+
510+
};
489511
};
490512

491513
acodec: acodec-ana@20030000 {

0 commit comments

Comments
 (0)