|
4 | 4 | $id: http://devicetree.org/schemas/mfd/rockchip,rk817.yaml#
|
5 | 5 | $schema: http://devicetree.org/meta-schemas/core.yaml#
|
6 | 6 |
|
7 |
| -title: RK817 Power Management Integrated Circuit |
| 7 | +title: RK809/RK817 Power Management Integrated Circuit |
8 | 8 |
|
9 | 9 | maintainers:
|
10 | 10 |
|
11 | 11 |
|
12 | 12 |
|
13 | 13 | description: |
|
14 |
| - Rockchip RK817 series PMIC. This device consists of an i2c controlled MFD |
15 |
| - that includes regulators, an RTC, a power button, an audio codec, and a |
16 |
| - battery charger manager. |
| 14 | + Rockchip RK809/RK817 series PMIC. This device consists of an i2c controlled |
| 15 | + MFD that includes regulators, an RTC, a power button and an audio codec. |
| 16 | + The RK817 variant also provides a battery charger manager. |
17 | 17 |
|
18 | 18 | properties:
|
19 | 19 | compatible:
|
20 | 20 | enum:
|
| 21 | + - rockchip,rk809 |
21 | 22 | - rockchip,rk817
|
22 | 23 |
|
23 | 24 | reg:
|
@@ -89,20 +90,20 @@ properties:
|
89 | 90 |
|
90 | 91 | vcc8-supply:
|
91 | 92 | description:
|
92 |
| - The input supply for BOOST. |
| 93 | + The input supply for BOOST on RK817, or for SWITCH_REG2 on RK809. |
93 | 94 |
|
94 | 95 | vcc9-supply:
|
95 | 96 | description:
|
96 |
| - The input supply for OTG_SWITCH. |
| 97 | + The input supply for OTG_SWITCH on RK817, |
| 98 | + or for DCDC_REG5 and SWITCH_REG1 on RK809. |
97 | 99 |
|
98 | 100 | regulators:
|
99 | 101 | type: object
|
100 | 102 | patternProperties:
|
101 |
| - "^(LDO_REG[1-9]|DCDC_REG[1-4]|BOOST|OTG_SWITCH)$": |
102 |
| - type: object |
| 103 | + "^(LDO_REG[1-9]|DCDC_REG[1-5]|BOOST|OTG_SWITCH|SWITCH_REG[1-2])$": |
| 104 | + $ref: /schemas/regulator/regulator.yaml |
103 | 105 | unevaluatedProperties: false
|
104 |
| - $ref: /schemas/regulator/regulator.yaml# |
105 |
| - unevaluatedProperties: false |
| 106 | + additionalProperties: false |
106 | 107 |
|
107 | 108 | codec:
|
108 | 109 | type: object
|
@@ -172,6 +173,22 @@ allOf:
|
172 | 173 | clock-output-names:
|
173 | 174 | maxItems: 2
|
174 | 175 |
|
| 176 | + - if: |
| 177 | + properties: |
| 178 | + compatible: |
| 179 | + contains: |
| 180 | + const: rockchip,rk817 |
| 181 | + then: |
| 182 | + properties: |
| 183 | + regulators: |
| 184 | + patternProperties: |
| 185 | + "^(DCDC_REG5|SWITCH_REG[1-2])$": false |
| 186 | + else: |
| 187 | + properties: |
| 188 | + regulators: |
| 189 | + patternProperties: |
| 190 | + "^(BOOST|OTG_SWITCH)$": false |
| 191 | + |
175 | 192 | required:
|
176 | 193 | - compatible
|
177 | 194 | - reg
|
|
0 commit comments