Gyungoh Yoo | a91d2f8 | 2012-08-15 10:28:46 -0600 | [diff] [blame] | 1 | MAX8907 regulator |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible: "maxim,max8907" |
| 5 | - reg: I2C slave address |
| 6 | - interrupts: The interrupt output of the controller |
| 7 | - mbatt-supply: The input supply for MBATT, BBAT, SDBY, VRTC. |
| 8 | - in-v1-supply: The input supply for SD1. |
| 9 | - in-v2-supply: The input supply for SD2. |
| 10 | - in-v3-supply: The input supply for SD3. |
| 11 | - in1-supply: The input supply for LDO1. |
| 12 | ... |
| 13 | - in20-supply: The input supply for LDO20. |
| 14 | - regulators: A node that houses a sub-node for each regulator within the |
| 15 | device. Each sub-node is identified using the regulator-compatible |
| 16 | property, with valid values listed below. The content of each sub-node |
| 17 | is defined by the standard binding for regulators; see regulator.txt. |
| 18 | |
Stephen Warren | 9582fdc | 2012-09-18 16:51:19 -0600 | [diff] [blame^] | 19 | Optional properties: |
| 20 | - maxim,system-power-controller: Boolean property indicating that the PMIC |
| 21 | controls the overall system power. |
| 22 | |
Gyungoh Yoo | a91d2f8 | 2012-08-15 10:28:46 -0600 | [diff] [blame] | 23 | Valid regulator-compatible values are: |
| 24 | |
| 25 | sd1, sd2, sd3, ldo1, ldo2, ldo3, ldo4, ldo5, ldo6, ldo7, ldo8, ldo9, ldo10, |
| 26 | ldo11, ldo12, ldo13, ldo14, ldo15, ldo16, ldo17, ldo18, ldo19, ldo20, out5v, |
| 27 | out33v, bbat, sdby, vrtc. |
| 28 | |
| 29 | Example: |
| 30 | |
| 31 | max8907@3c { |
| 32 | compatible = "maxim,max8907"; |
| 33 | reg = <0x3c>; |
| 34 | interrupts = <0 86 0x4>; |
| 35 | |
Stephen Warren | 9582fdc | 2012-09-18 16:51:19 -0600 | [diff] [blame^] | 36 | maxim,system-power-controller; |
| 37 | |
Gyungoh Yoo | a91d2f8 | 2012-08-15 10:28:46 -0600 | [diff] [blame] | 38 | mbatt-supply = <&some_reg>; |
| 39 | in-v1-supply = <&mbatt_reg>; |
| 40 | ... |
| 41 | in1-supply = <&mbatt_reg>; |
| 42 | ... |
| 43 | |
| 44 | regulators { |
| 45 | #address-cells = <1>; |
| 46 | #size-cells = <0>; |
| 47 | |
| 48 | mbatt_reg: regulator@0 { |
| 49 | reg = <0>; |
| 50 | regulator-compatible = "mbatt"; |
| 51 | regulator-name = "vbat_pmu"; |
| 52 | regulator-min-microvolt = <5000000>; |
| 53 | regulator-max-microvolt = <5000000>; |
| 54 | regulator-always-on; |
| 55 | }; |
| 56 | |
| 57 | regulator@1 { |
| 58 | reg = <1>; |
| 59 | regulator-compatible = "sd1"; |
| 60 | regulator-name = "nvvdd_sv1,vdd_cpu_pmu"; |
| 61 | regulator-min-microvolt = <1000000>; |
| 62 | regulator-max-microvolt = <1000000>; |
| 63 | regulator-always-on; |
| 64 | }; |
| 65 | |
| 66 | regulator@2 { |
| 67 | reg = <2>; |
| 68 | regulator-compatible = "sd2"; |
| 69 | regulator-name = "nvvdd_sv2,vdd_core"; |
| 70 | regulator-min-microvolt = <1200000>; |
| 71 | regulator-max-microvolt = <1200000>; |
| 72 | regulator-always-on; |
| 73 | }; |
| 74 | ... |
| 75 | }; |
| 76 | }; |
| 77 | }; |