185 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2# Copyright 2019 BayLibre, SAS3%YAML 1.24---5$id: http://devicetree.org/schemas/power/amlogic,meson-ee-pwrc.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: Amlogic Meson Everything-Else Power Domains9 10maintainers:11 - Neil Armstrong <neil.armstrong@linaro.org>12 13description: |+14 The Everything-Else Power Domains node should be the child of a syscon15 node with the required property:16 17 - compatible: Should be the following:18 "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon"19 20 Refer to the bindings described in21 Documentation/devicetree/bindings/mfd/syscon.yaml22 23properties:24 compatible:25 enum:26 - amlogic,meson8-pwrc27 - amlogic,meson8b-pwrc28 - amlogic,meson8m2-pwrc29 - amlogic,meson-gxbb-pwrc30 - amlogic,meson-axg-pwrc31 - amlogic,meson-g12a-pwrc32 - amlogic,meson-sm1-pwrc33 34 clocks:35 minItems: 136 maxItems: 237 38 clock-names:39 minItems: 140 items:41 - const: vpu42 - const: vapb43 44 resets:45 minItems: 546 maxItems: 1247 48 reset-names:49 minItems: 550 maxItems: 1251 52 "#power-domain-cells":53 const: 154 55 amlogic,ao-sysctrl:56 description: phandle to the AO sysctrl node57 $ref: /schemas/types.yaml#/definitions/phandle58 59allOf:60 - if:61 properties:62 compatible:63 enum:64 - amlogic,meson8b-pwrc65 - amlogic,meson8m2-pwrc66 then:67 properties:68 reset-names:69 items:70 - const: dblk71 - const: pic_dc72 - const: hdmi_apb73 - const: hdmi_system74 - const: venci75 - const: vencp76 - const: vdac77 - const: vencl78 - const: viu79 - const: venc80 - const: rdma81 required:82 - resets83 - reset-names84 85 - if:86 properties:87 compatible:88 enum:89 - amlogic,meson-gxbb-pwrc90 then:91 properties:92 reset-names:93 items:94 - const: viu95 - const: venc96 - const: vcbus97 - const: bt65698 - const: dvin99 - const: rdma100 - const: venci101 - const: vencp102 - const: vdac103 - const: vdi6104 - const: vencl105 - const: vid_lock106 required:107 - resets108 - reset-names109 110 - if:111 properties:112 compatible:113 enum:114 - amlogic,meson-axg-pwrc115 then:116 properties:117 reset-names:118 items:119 - const: viu120 - const: venc121 - const: vcbus122 - const: vencl123 - const: vid_lock124 required:125 - resets126 - reset-names127 128 - if:129 properties:130 compatible:131 enum:132 - amlogic,meson-g12a-pwrc133 - amlogic,meson-sm1-pwrc134 then:135 properties:136 reset-names:137 items:138 - const: viu139 - const: venc140 - const: vcbus141 - const: bt656142 - const: rdma143 - const: venci144 - const: vencp145 - const: vdac146 - const: vdi6147 - const: vencl148 - const: vid_lock149 required:150 - resets151 - reset-names152 153required:154 - compatible155 - clocks156 - clock-names157 - "#power-domain-cells"158 - amlogic,ao-sysctrl159 160additionalProperties: false161 162examples:163 - |164 pwrc: power-controller {165 compatible = "amlogic,meson-sm1-pwrc";166 #power-domain-cells = <1>;167 amlogic,ao-sysctrl = <&rti>;168 resets = <&reset_viu>,169 <&reset_venc>,170 <&reset_vcbus>,171 <&reset_bt656>,172 <&reset_rdma>,173 <&reset_venci>,174 <&reset_vencp>,175 <&reset_vdac>,176 <&reset_vdi6>,177 <&reset_vencl>,178 <&reset_vid_lock>;179 reset-names = "viu", "venc", "vcbus", "bt656",180 "rdma", "venci", "vencp", "vdac",181 "vdi6", "vencl", "vid_lock";182 clocks = <&clk_vpu>, <&clk_vapb>;183 clock-names = "vpu", "vapb";184 };185