Skip to content

Commit 276c2fe

Browse files
nxpfranklibroonie
authored andcommitted
regulator: dt-bindings: pca9450: Add nxp,pf9453 compatible string
Add the compatible string "nxp,pf9453" for the PF9453 regulator. The PF9453 is similar to the PCA9460 but supports only LDO1, LDO2, LDO_SVNS, and BUCK[1-4]. Restrict LDO and BUCK numbers for nxp,pf9453 and keep the same restriction for other compatible strings. Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Frank Li <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 248bc01 commit 276c2fe

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ description: |
1717
Datasheet is available at
1818
https://www.nxp.com/docs/en/data-sheet/PCA9450DS.pdf
1919
20+
Support PF9453, Datasheet is available at
21+
https://www.nxp.com/docs/en/data-sheet/PF9453_SDS.pdf
22+
2023
# The valid names for PCA9450 regulator nodes are:
2124
# BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6,
2225
# LDO1, LDO2, LDO3, LDO4, LDO5
@@ -30,6 +33,7 @@ properties:
3033
- nxp,pca9450c
3134
- nxp,pca9451a
3235
- nxp,pca9452
36+
- nxp,pf9453
3337

3438
reg:
3539
maxItems: 1
@@ -65,7 +69,7 @@ properties:
6569
unevaluatedProperties: false
6670

6771
patternProperties:
68-
"^LDO[1-4]$":
72+
"^LDO([1-4]|-SNVS)$":
6973
type: object
7074
$ref: regulator.yaml#
7175
description:
@@ -118,6 +122,24 @@ required:
118122

119123
additionalProperties: false
120124

125+
allOf:
126+
- if:
127+
properties:
128+
compatible:
129+
contains:
130+
const: nxp,pf9453
131+
then:
132+
properties:
133+
regulators:
134+
patternProperties:
135+
"^LDO[3-4]$": false
136+
"^BUCK[5-6]$": false
137+
else:
138+
properties:
139+
regulators:
140+
properties:
141+
LDO-SNVS: false
142+
121143
examples:
122144
- |
123145
#include <dt-bindings/interrupt-controller/irq.h>

0 commit comments

Comments
 (0)