James Ban | 7524c1c | 2016-06-29 16:49:32 +0900 | [diff] [blame] | 1 | * Dialog Semiconductor DA9211/DA9212/DA9213/DA9214/DA9215 Voltage Regulator |
James Ban | bf3baca | 2014-08-27 11:47:07 +0900 | [diff] [blame] | 2 | |
| 3 | Required properties: |
James Ban | 7524c1c | 2016-06-29 16:49:32 +0900 | [diff] [blame] | 4 | - compatible: "dlg,da9211" or "dlg,da9212" or "dlg,da9213" |
| 5 | or "dlg,da9214" or "dlg,da9215" |
James Ban | bf3baca | 2014-08-27 11:47:07 +0900 | [diff] [blame] | 6 | - reg: I2C slave address, usually 0x68. |
| 7 | - interrupts: the interrupt outputs of the controller |
| 8 | - regulators: A node that houses a sub-node for each regulator within the |
| 9 | device. Each sub-node is identified using the node's name, with valid |
| 10 | values listed below. The content of each sub-node is defined by the |
| 11 | standard binding for regulators; see regulator.txt. |
| 12 | BUCKA and BUCKB. |
| 13 | |
| 14 | Optional properties: |
James Ban | 8c7dd8b | 2015-01-28 09:28:08 +0900 | [diff] [blame] | 15 | - enable-gpios: platform gpio for control of BUCKA/BUCKB. |
James Ban | bf3baca | 2014-08-27 11:47:07 +0900 | [diff] [blame] | 16 | - Any optional property defined in regulator.txt |
| 17 | |
| 18 | Example 1) DA9211 |
| 19 | |
| 20 | pmic: da9211@68 { |
| 21 | compatible = "dlg,da9211"; |
| 22 | reg = <0x68>; |
| 23 | interrupts = <3 27>; |
| 24 | |
| 25 | regulators { |
| 26 | BUCKA { |
| 27 | regulator-name = "VBUCKA"; |
| 28 | regulator-min-microvolt = < 300000>; |
| 29 | regulator-max-microvolt = <1570000>; |
| 30 | regulator-min-microamp = <2000000>; |
| 31 | regulator-max-microamp = <5000000>; |
James Ban | 8c7dd8b | 2015-01-28 09:28:08 +0900 | [diff] [blame] | 32 | enable-gpios = <&gpio 27 0>; |
James Ban | bf3baca | 2014-08-27 11:47:07 +0900 | [diff] [blame] | 33 | }; |
James Ban | 7524c1c | 2016-06-29 16:49:32 +0900 | [diff] [blame] | 34 | }; |
| 35 | }; |
| 36 | |
| 37 | Example 2) DA9212 |
| 38 | |
| 39 | pmic: da9212@68 { |
| 40 | compatible = "dlg,da9212"; |
| 41 | reg = <0x68>; |
| 42 | interrupts = <3 27>; |
| 43 | |
| 44 | regulators { |
| 45 | BUCKA { |
| 46 | regulator-name = "VBUCKA"; |
| 47 | regulator-min-microvolt = < 300000>; |
| 48 | regulator-max-microvolt = <1570000>; |
| 49 | regulator-min-microamp = <2000000>; |
| 50 | regulator-max-microamp = <5000000>; |
| 51 | enable-gpios = <&gpio 27 0>; |
| 52 | }; |
James Ban | bf3baca | 2014-08-27 11:47:07 +0900 | [diff] [blame] | 53 | BUCKB { |
| 54 | regulator-name = "VBUCKB"; |
| 55 | regulator-min-microvolt = < 300000>; |
| 56 | regulator-max-microvolt = <1570000>; |
| 57 | regulator-min-microamp = <2000000>; |
| 58 | regulator-max-microamp = <5000000>; |
James Ban | 8c7dd8b | 2015-01-28 09:28:08 +0900 | [diff] [blame] | 59 | enable-gpios = <&gpio 17 0>; |
James Ban | bf3baca | 2014-08-27 11:47:07 +0900 | [diff] [blame] | 60 | }; |
| 61 | }; |
| 62 | }; |
| 63 | |
James Ban | 7524c1c | 2016-06-29 16:49:32 +0900 | [diff] [blame] | 64 | Example 3) DA9213 |
James Ban | bf3baca | 2014-08-27 11:47:07 +0900 | [diff] [blame] | 65 | pmic: da9213@68 { |
| 66 | compatible = "dlg,da9213"; |
| 67 | reg = <0x68>; |
| 68 | interrupts = <3 27>; |
| 69 | |
| 70 | regulators { |
| 71 | BUCKA { |
| 72 | regulator-name = "VBUCKA"; |
| 73 | regulator-min-microvolt = < 300000>; |
| 74 | regulator-max-microvolt = <1570000>; |
| 75 | regulator-min-microamp = <3000000>; |
| 76 | regulator-max-microamp = <6000000>; |
James Ban | 8c7dd8b | 2015-01-28 09:28:08 +0900 | [diff] [blame] | 77 | enable-gpios = <&gpio 27 0>; |
James Ban | bf3baca | 2014-08-27 11:47:07 +0900 | [diff] [blame] | 78 | }; |
James Ban | 7524c1c | 2016-06-29 16:49:32 +0900 | [diff] [blame] | 79 | }; |
| 80 | }; |
| 81 | |
| 82 | Example 4) DA9214 |
| 83 | pmic: da9214@68 { |
| 84 | compatible = "dlg,da9214"; |
| 85 | reg = <0x68>; |
| 86 | interrupts = <3 27>; |
| 87 | |
| 88 | regulators { |
| 89 | BUCKA { |
| 90 | regulator-name = "VBUCKA"; |
| 91 | regulator-min-microvolt = < 300000>; |
| 92 | regulator-max-microvolt = <1570000>; |
| 93 | regulator-min-microamp = <3000000>; |
| 94 | regulator-max-microamp = <6000000>; |
| 95 | enable-gpios = <&gpio 27 0>; |
| 96 | }; |
James Ban | bf3baca | 2014-08-27 11:47:07 +0900 | [diff] [blame] | 97 | BUCKB { |
| 98 | regulator-name = "VBUCKB"; |
| 99 | regulator-min-microvolt = < 300000>; |
| 100 | regulator-max-microvolt = <1570000>; |
| 101 | regulator-min-microamp = <3000000>; |
| 102 | regulator-max-microamp = <6000000>; |
James Ban | 8c7dd8b | 2015-01-28 09:28:08 +0900 | [diff] [blame] | 103 | enable-gpios = <&gpio 17 0>; |
James Ban | bf3baca | 2014-08-27 11:47:07 +0900 | [diff] [blame] | 104 | }; |
| 105 | }; |
| 106 | }; |
James Ban | 7bd3935 | 2015-06-30 13:39:39 +0900 | [diff] [blame] | 107 | |
James Ban | 7524c1c | 2016-06-29 16:49:32 +0900 | [diff] [blame] | 108 | Example 5) DA9215 |
James Ban | 7bd3935 | 2015-06-30 13:39:39 +0900 | [diff] [blame] | 109 | pmic: da9215@68 { |
| 110 | compatible = "dlg,da9215"; |
| 111 | reg = <0x68>; |
| 112 | interrupts = <3 27>; |
| 113 | |
| 114 | regulators { |
| 115 | BUCKA { |
| 116 | regulator-name = "VBUCKA"; |
| 117 | regulator-min-microvolt = < 300000>; |
| 118 | regulator-max-microvolt = <1570000>; |
| 119 | regulator-min-microamp = <4000000>; |
| 120 | regulator-max-microamp = <7000000>; |
| 121 | enable-gpios = <&gpio 27 0>; |
| 122 | }; |
| 123 | BUCKB { |
| 124 | regulator-name = "VBUCKB"; |
| 125 | regulator-min-microvolt = < 300000>; |
| 126 | regulator-max-microvolt = <1570000>; |
| 127 | regulator-min-microamp = <4000000>; |
| 128 | regulator-max-microamp = <7000000>; |
| 129 | enable-gpios = <&gpio 17 0>; |
| 130 | }; |
| 131 | }; |
| 132 | }; |
| 133 | |