Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/regulator/onnn,fan53880.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Onsemi FAN53880 PMIC |
| 8 | |
| 9 | maintainers: |
| 10 | - Christoph Fritz <chf.fritz@googlemail.com> |
| 11 | |
| 12 | description: | |
| 13 | The FAN53880 is an I2C porgrammable power management IC (PMIC) |
| 14 | that contains a BUCK (step-down converter), four low dropouts (LDO) |
| 15 | and one BOOST (step-up converter) output. It is designed for mobile |
| 16 | power applications. |
| 17 | |
| 18 | properties: |
| 19 | $nodename: |
| 20 | pattern: "pmic@[0-9a-f]{1,2}" |
| 21 | compatible: |
| 22 | enum: |
| 23 | - onnn,fan53880 |
| 24 | |
| 25 | reg: |
| 26 | maxItems: 1 |
| 27 | |
| 28 | VIN12-supply: |
| 29 | description: Input supply phandle(s) for LDO1 and LDO2 |
| 30 | |
| 31 | VIN3-supply: |
| 32 | description: Input supply phandle(s) for LDO3 |
| 33 | |
| 34 | VIN4-supply: |
| 35 | description: Input supply phandle(s) for LDO4 |
| 36 | |
| 37 | PVIN-supply: |
| 38 | description: Input supply phandle(s) for BUCK and BOOST |
| 39 | |
| 40 | regulators: |
| 41 | type: object |
| 42 | $ref: regulator.yaml# |
| 43 | description: | |
| 44 | list of regulators provided by this controller, must be named |
| 45 | after their hardware counterparts LDO[1-4], BUCK and BOOST |
| 46 | |
| 47 | patternProperties: |
| 48 | "^LDO[1-4]$": |
| 49 | type: object |
| 50 | $ref: regulator.yaml# |
| 51 | unevaluatedProperties: false |
| 52 | |
| 53 | "^BUCK|BOOST$": |
| 54 | type: object |
| 55 | $ref: regulator.yaml# |
| 56 | unevaluatedProperties: false |
| 57 | |
| 58 | additionalProperties: false |
| 59 | |
| 60 | required: |
| 61 | - compatible |
| 62 | - reg |
| 63 | - regulators |
| 64 | |
| 65 | additionalProperties: false |
| 66 | |
| 67 | examples: |
| 68 | - | |
| 69 | i2c { |
| 70 | #address-cells = <1>; |
| 71 | #size-cells = <0>; |
| 72 | |
| 73 | pmic@35 { |
| 74 | compatible = "onnn,fan53880"; |
| 75 | reg = <0x35>; |
| 76 | |
| 77 | PVIN-supply = <&fixreg_example_vcc>; |
| 78 | |
| 79 | regulators { |
| 80 | BUCK { |
| 81 | regulator-min-microvolt = <1200000>; |
| 82 | regulator-max-microvolt = <1200000>; |
| 83 | }; |
| 84 | }; |
| 85 | }; |
| 86 | }; |
| 87 | ... |