|
43 | 43 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
44 | 44 | #include <dt-bindings/pinctrl/rockchip.h> |
45 | 45 | #include <dt-bindings/clock/rk3036-cru.h> |
| 46 | +#include <dt-bindings/power/rk3036-power.h> |
46 | 47 | #include <dt-bindings/soc/rockchip,boot-mode.h> |
47 | 48 | #include "skeleton.dtsi" |
48 | 49 |
|
|
248 | 249 | assigned-clocks = <&cru ACLK_VCODEC>; |
249 | 250 | assigned-clock-rates = <297000000>; |
250 | 251 | assigned-clock-parents = <&cru PLL_GPLL>; |
| 252 | + power-domains = <&power RK3036_PD_VPU>; |
251 | 253 | status = "disabled"; |
252 | 254 | }; |
253 | 255 |
|
|
259 | 261 | interrupt-names = "irq_dec"; |
260 | 262 | iommus = <&vpu_mmu>; |
261 | 263 | allocator = <1>; |
| 264 | + power-domains = <&power RK3036_PD_VPU>; |
262 | 265 | }; |
263 | 266 |
|
264 | 267 | vpu_mmu: iommu@10108800 { |
|
267 | 270 | interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; |
268 | 271 | interrupt-names = "vpu_mmu"; |
269 | 272 | #iommu-cells = <0>; |
| 273 | + power-domains = <&power RK3036_PD_VPU>; |
270 | 274 | status = "disabled"; |
271 | 275 | }; |
272 | 276 |
|
|
278 | 282 | interrupt-names = "irq_dec"; |
279 | 283 | allocator = <1>; |
280 | 284 | iommus = <&hevc_mmu>; |
| 285 | + power-domains = <&power RK3036_PD_VPU>; |
281 | 286 | }; |
282 | 287 |
|
283 | 288 | hevc_mmu: iommu@1010c440 { |
|
286 | 291 | interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; |
287 | 292 | interrupt-names = "hevc_mmu"; |
288 | 293 | #iommu-cells = <0>; |
| 294 | + power-domains = <&power RK3036_PD_VPU>; |
289 | 295 | status = "disabled"; |
290 | 296 | }; |
291 | 297 |
|
|
306 | 312 | resets = <&cru SRST_VCODEC_A>, <&cru SRST_VCODEC_H>, |
307 | 313 | <&cru SRST_HEVC>; |
308 | 314 | reset-names = "video_a", "video_h", "video"; |
| 315 | + power-domains = <&power RK3036_PD_VPU>; |
309 | 316 | status = "disabled"; |
310 | 317 | }; |
311 | 318 |
|
|
486 | 493 | mode-loader = <BOOT_BL_DOWNLOAD>; |
487 | 494 | mode-ums = <BOOT_UMS>; |
488 | 495 | }; |
| 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 | + }; |
489 | 511 | }; |
490 | 512 |
|
491 | 513 | acodec: acodec-ana@20030000 { |
|
0 commit comments