xref: /freebsd/sys/contrib/device-tree/Bindings/power/amlogic,meson-gx-pwrc.txt (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1*cb7aa33aSEmmanuel VadotAmlogic Meson Power Controller (deprecated)
2*cb7aa33aSEmmanuel Vadot===========================================
3c66ec88fSEmmanuel Vadot
4c66ec88fSEmmanuel VadotThe Amlogic Meson SoCs embeds an internal Power domain controller.
5c66ec88fSEmmanuel Vadot
6c66ec88fSEmmanuel VadotVPU Power Domain
7c66ec88fSEmmanuel Vadot----------------
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel VadotThe Video Processing Unit power domain is controlled by this power controller,
10c66ec88fSEmmanuel Vadotbut the domain requires some external resources to meet the correct power
11c66ec88fSEmmanuel Vadotsequences.
12c66ec88fSEmmanuel VadotThe bindings must respect the power domain bindings as described in the file
13c66ec88fSEmmanuel Vadotpower-domain.yaml
14c66ec88fSEmmanuel Vadot
15c66ec88fSEmmanuel VadotDevice Tree Bindings:
16c66ec88fSEmmanuel Vadot---------------------
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel VadotRequired properties:
19c66ec88fSEmmanuel Vadot- compatible: should be one of the following :
20c66ec88fSEmmanuel Vadot	- "amlogic,meson-gx-pwrc-vpu" for the Meson GX SoCs
21c66ec88fSEmmanuel Vadot	- "amlogic,meson-g12a-pwrc-vpu" for the Meson G12A SoCs
22c66ec88fSEmmanuel Vadot- #power-domain-cells: should be 0
23c66ec88fSEmmanuel Vadot- amlogic,hhi-sysctrl: phandle to the HHI sysctrl node
24c66ec88fSEmmanuel Vadot- resets: phandles to the reset lines needed for this power demain sequence
25c66ec88fSEmmanuel Vadot	as described in ../reset/reset.txt
26c66ec88fSEmmanuel Vadot- clocks: from common clock binding: handle to VPU and VAPB clocks
27c66ec88fSEmmanuel Vadot- clock-names: from common clock binding: must contain "vpu", "vapb"
28c66ec88fSEmmanuel Vadot	corresponding to entry in the clocks property.
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel VadotParent node should have the following properties :
31c66ec88fSEmmanuel Vadot- compatible: "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd"
32c66ec88fSEmmanuel Vadot- reg: base address and size of the AO system control register space.
33c66ec88fSEmmanuel Vadot
34c66ec88fSEmmanuel VadotExample:
35c66ec88fSEmmanuel Vadot-------
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadotao_sysctrl: sys-ctrl@0 {
38c66ec88fSEmmanuel Vadot	compatible = "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd";
39c66ec88fSEmmanuel Vadot	reg =  <0x0 0x0 0x0 0x100>;
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot	pwrc_vpu: power-controller-vpu {
42c66ec88fSEmmanuel Vadot		compatible = "amlogic,meson-gx-pwrc-vpu";
43c66ec88fSEmmanuel Vadot		#power-domain-cells = <0>;
44c66ec88fSEmmanuel Vadot		amlogic,hhi-sysctrl = <&sysctrl>;
45c66ec88fSEmmanuel Vadot		resets = <&reset RESET_VIU>,
46c66ec88fSEmmanuel Vadot			 <&reset RESET_VENC>,
47c66ec88fSEmmanuel Vadot			 <&reset RESET_VCBUS>,
48c66ec88fSEmmanuel Vadot			 <&reset RESET_BT656>,
49c66ec88fSEmmanuel Vadot			 <&reset RESET_DVIN_RESET>,
50c66ec88fSEmmanuel Vadot			 <&reset RESET_RDMA>,
51c66ec88fSEmmanuel Vadot			 <&reset RESET_VENCI>,
52c66ec88fSEmmanuel Vadot			 <&reset RESET_VENCP>,
53c66ec88fSEmmanuel Vadot			 <&reset RESET_VDAC>,
54c66ec88fSEmmanuel Vadot			 <&reset RESET_VDI6>,
55c66ec88fSEmmanuel Vadot			 <&reset RESET_VENCL>,
56c66ec88fSEmmanuel Vadot			 <&reset RESET_VID_LOCK>;
57c66ec88fSEmmanuel Vadot		clocks = <&clkc CLKID_VPU>,
58c66ec88fSEmmanuel Vadot			 <&clkc CLKID_VAPB>;
59c66ec88fSEmmanuel Vadot		clock-names = "vpu", "vapb";
60c66ec88fSEmmanuel Vadot	};
61c66ec88fSEmmanuel Vadot};
62c66ec88fSEmmanuel Vadot
63c66ec88fSEmmanuel Vadot
64