Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: dt-bindings: mediatek,mt6397-regulator: convert to YAML

Convert the MediaTek MT6397 regulator bindings to DT schema.

Signed-off-by: Sen Chu <sen.chu@mediatek.com>
Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20240807091738.18387-1-macpaul.lin@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Macpaul Lin and committed by
Mark Brown
1b4ec561 08b856b3

+238 -220
+238
Documentation/devicetree/bindings/regulator/mediatek,mt6397-regulator.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/regulator/mediatek,mt6397-regulator.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MediaTek MT6397 Regulator 8 + 9 + maintainers: 10 + - Sen Chu <sen.chu@mediatek.com> 11 + - Macpaul Lin <macpaul.lin@mediatek.com> 12 + 13 + description: 14 + Regulator node of the PMIC. This node should under the PMIC's device node. 15 + All voltage regulators provided by the PMIC are described as sub-nodes of 16 + this node. 17 + 18 + properties: 19 + compatible: 20 + items: 21 + - const: mediatek,mt6397-regulator 22 + 23 + patternProperties: 24 + "^(buck_)?v(core|drm|gpu|io18|pca(7|15)|sramca(7|15))$": 25 + description: Buck regulators 26 + type: object 27 + $ref: regulator.yaml# 28 + properties: 29 + regulator-allowed-modes: 30 + description: | 31 + BUCK regulators can set regulator-initial-mode and regulator-allowed-modes to 32 + values specified in dt-bindings/regulator/mediatek,mt6397-regulator.h 33 + items: 34 + enum: [0, 1] 35 + unevaluatedProperties: false 36 + 37 + "^(ldo_)?v(tcxo|(a|io)28)$": 38 + description: LDOs with fixed 2.8V output and 0~100/10mV tuning 39 + type: object 40 + $ref: regulator.yaml# 41 + properties: 42 + regulator-allowed-modes: false 43 + unevaluatedProperties: false 44 + 45 + "^(ldo_)?vusb$": 46 + description: LDOs with fixed 3.0V output and 0~100/10mV tuning 47 + type: object 48 + $ref: regulator.yaml# 49 + properties: 50 + regulator-allowed-modes: false 51 + unevaluatedProperties: false 52 + 53 + "^(ldo_)?v(cama|emc3v3|gp[123456]|ibr|mc|mch)$": 54 + description: LDOs with variable output and 0~100/10mV tuning 55 + type: object 56 + $ref: regulator.yaml# 57 + properties: 58 + regulator-allowed-modes: false 59 + unevaluatedProperties: false 60 + 61 + required: 62 + - compatible 63 + 64 + additionalProperties: false 65 + 66 + examples: 67 + - | 68 + #include <dt-bindings/interrupt-controller/arm-gic.h> 69 + 70 + mt6397_regulators: regulators { 71 + compatible = "mediatek,mt6397-regulator"; 72 + 73 + mt6397_vpca15_reg: buck_vpca15 { 74 + regulator-name = "vpca15"; 75 + regulator-min-microvolt = < 850000>; 76 + regulator-max-microvolt = <1350000>; 77 + regulator-ramp-delay = <12500>; 78 + regulator-enable-ramp-delay = <200>; 79 + }; 80 + 81 + mt6397_vpca7_reg: buck_vpca7 { 82 + regulator-name = "vpca7"; 83 + regulator-min-microvolt = < 850000>; 84 + regulator-max-microvolt = <1350000>; 85 + regulator-ramp-delay = <12500>; 86 + regulator-enable-ramp-delay = <115>; 87 + }; 88 + 89 + mt6397_vsramca15_reg: buck_vsramca15 { 90 + regulator-name = "vsramca15"; 91 + regulator-min-microvolt = < 850000>; 92 + regulator-max-microvolt = <1350000>; 93 + regulator-ramp-delay = <12500>; 94 + regulator-enable-ramp-delay = <115>; 95 + }; 96 + 97 + mt6397_vsramca7_reg: buck_vsramca7 { 98 + regulator-name = "vsramca7"; 99 + regulator-min-microvolt = < 850000>; 100 + regulator-max-microvolt = <1350000>; 101 + regulator-ramp-delay = <12500>; 102 + regulator-enable-ramp-delay = <115>; 103 + }; 104 + 105 + mt6397_vcore_reg: buck_vcore { 106 + regulator-name = "vcore"; 107 + regulator-min-microvolt = < 850000>; 108 + regulator-max-microvolt = <1350000>; 109 + regulator-ramp-delay = <12500>; 110 + regulator-enable-ramp-delay = <115>; 111 + }; 112 + 113 + mt6397_vgpu_reg: buck_vgpu { 114 + regulator-name = "vgpu"; 115 + regulator-min-microvolt = < 700000>; 116 + regulator-max-microvolt = <1350000>; 117 + regulator-ramp-delay = <12500>; 118 + regulator-enable-ramp-delay = <115>; 119 + }; 120 + 121 + mt6397_vdrm_reg: buck_vdrm { 122 + regulator-name = "vdrm"; 123 + regulator-min-microvolt = < 800000>; 124 + regulator-max-microvolt = <1400000>; 125 + regulator-ramp-delay = <12500>; 126 + regulator-enable-ramp-delay = <500>; 127 + }; 128 + 129 + mt6397_vio18_reg: buck_vio18 { 130 + regulator-name = "vio18"; 131 + regulator-min-microvolt = <1500000>; 132 + regulator-max-microvolt = <2120000>; 133 + regulator-ramp-delay = <12500>; 134 + regulator-enable-ramp-delay = <500>; 135 + }; 136 + 137 + mt6397_vtcxo_reg: ldo_vtcxo { 138 + regulator-name = "vtcxo"; 139 + regulator-min-microvolt = <2800000>; 140 + regulator-max-microvolt = <2800000>; 141 + regulator-enable-ramp-delay = <90>; 142 + }; 143 + 144 + mt6397_va28_reg: ldo_va28 { 145 + regulator-name = "va28"; 146 + /* fixed output 2.8 V */ 147 + regulator-enable-ramp-delay = <218>; 148 + }; 149 + 150 + mt6397_vcama_reg: ldo_vcama { 151 + regulator-name = "vcama"; 152 + regulator-min-microvolt = <1500000>; 153 + regulator-max-microvolt = <2800000>; 154 + regulator-enable-ramp-delay = <218>; 155 + }; 156 + 157 + mt6397_vio28_reg: ldo_vio28 { 158 + regulator-name = "vio28"; 159 + /* fixed output 2.8 V */ 160 + regulator-enable-ramp-delay = <240>; 161 + }; 162 + 163 + mt6397_usb_reg: ldo_vusb { 164 + regulator-name = "vusb"; 165 + /* fixed output 3.3 V */ 166 + regulator-enable-ramp-delay = <218>; 167 + }; 168 + 169 + mt6397_vmc_reg: ldo_vmc { 170 + regulator-name = "vmc"; 171 + regulator-min-microvolt = <1800000>; 172 + regulator-max-microvolt = <3300000>; 173 + regulator-enable-ramp-delay = <218>; 174 + }; 175 + 176 + mt6397_vmch_reg: ldo_vmch { 177 + regulator-name = "vmch"; 178 + regulator-min-microvolt = <3000000>; 179 + regulator-max-microvolt = <3300000>; 180 + regulator-enable-ramp-delay = <218>; 181 + }; 182 + 183 + mt6397_vemc_3v3_reg: ldo_vemc3v3 { 184 + regulator-name = "vemc_3v3"; 185 + regulator-min-microvolt = <3000000>; 186 + regulator-max-microvolt = <3300000>; 187 + regulator-enable-ramp-delay = <218>; 188 + }; 189 + 190 + mt6397_vgp1_reg: ldo_vgp1 { 191 + regulator-name = "vcamd"; 192 + regulator-min-microvolt = <1220000>; 193 + regulator-max-microvolt = <3300000>; 194 + regulator-enable-ramp-delay = <240>; 195 + }; 196 + 197 + mt6397_vgp2_reg: ldo_vgp2 { 198 + regulator-name = "vcamio"; 199 + regulator-min-microvolt = <1000000>; 200 + regulator-max-microvolt = <3300000>; 201 + regulator-enable-ramp-delay = <218>; 202 + }; 203 + 204 + mt6397_vgp3_reg: ldo_vgp3 { 205 + regulator-name = "vcamaf"; 206 + regulator-min-microvolt = <1200000>; 207 + regulator-max-microvolt = <3300000>; 208 + regulator-enable-ramp-delay = <218>; 209 + }; 210 + 211 + mt6397_vgp4_reg: ldo_vgp4 { 212 + regulator-name = "vgp4"; 213 + regulator-min-microvolt = <1200000>; 214 + regulator-max-microvolt = <3300000>; 215 + regulator-enable-ramp-delay = <218>; 216 + }; 217 + 218 + mt6397_vgp5_reg: ldo_vgp5 { 219 + regulator-name = "vgp5"; 220 + regulator-min-microvolt = <1200000>; 221 + regulator-max-microvolt = <3000000>; 222 + regulator-enable-ramp-delay = <218>; 223 + }; 224 + 225 + mt6397_vgp6_reg: ldo_vgp6 { 226 + regulator-name = "vgp6"; 227 + regulator-min-microvolt = <1200000>; 228 + regulator-max-microvolt = <3300000>; 229 + regulator-enable-ramp-delay = <218>; 230 + }; 231 + 232 + mt6397_vibr_reg: ldo_vibr { 233 + regulator-name = "vibr"; 234 + regulator-min-microvolt = <1200000>; 235 + regulator-max-microvolt = <3300000>; 236 + regulator-enable-ramp-delay = <218>; 237 + }; 238 + };
-220
Documentation/devicetree/bindings/regulator/mt6397-regulator.txt
··· 1 - Mediatek MT6397 Regulator 2 - 3 - Required properties: 4 - - compatible: "mediatek,mt6397-regulator" 5 - - mt6397regulator: List of regulators provided by this controller. It is named 6 - according to its regulator type, buck_<name> and ldo_<name>. 7 - The definition for each of these nodes is defined using the standard binding 8 - for regulators at Documentation/devicetree/bindings/regulator/regulator.txt. 9 - 10 - The valid names for regulators are:: 11 - BUCK: 12 - buck_vpca15, buck_vpca7, buck_vsramca15, buck_vsramca7, buck_vcore, buck_vgpu, 13 - buck_vdrm, buck_vio18 14 - LDO: 15 - ldo_vtcxo, ldo_va28, ldo_vcama, ldo_vio28, ldo_vusb, ldo_vmc, ldo_vmch, 16 - ldo_vemc3v3, ldo_vgp1, ldo_vgp2, ldo_vgp3, ldo_vgp4, ldo_vgp5, ldo_vgp6, 17 - ldo_vibr 18 - 19 - BUCK regulators can set regulator-initial-mode and regulator-allowed-modes to 20 - values specified in dt-bindings/regulator/mediatek,mt6397-regulator.h 21 - 22 - Example: 23 - pmic { 24 - compatible = "mediatek,mt6397"; 25 - 26 - mt6397regulator: mt6397regulator { 27 - compatible = "mediatek,mt6397-regulator"; 28 - 29 - mt6397_vpca15_reg: buck_vpca15 { 30 - regulator-compatible = "buck_vpca15"; 31 - regulator-name = "vpca15"; 32 - regulator-min-microvolt = < 850000>; 33 - regulator-max-microvolt = <1350000>; 34 - regulator-ramp-delay = <12500>; 35 - regulator-enable-ramp-delay = <200>; 36 - }; 37 - 38 - mt6397_vpca7_reg: buck_vpca7 { 39 - regulator-compatible = "buck_vpca7"; 40 - regulator-name = "vpca7"; 41 - regulator-min-microvolt = < 850000>; 42 - regulator-max-microvolt = <1350000>; 43 - regulator-ramp-delay = <12500>; 44 - regulator-enable-ramp-delay = <115>; 45 - }; 46 - 47 - mt6397_vsramca15_reg: buck_vsramca15 { 48 - regulator-compatible = "buck_vsramca15"; 49 - regulator-name = "vsramca15"; 50 - regulator-min-microvolt = < 850000>; 51 - regulator-max-microvolt = <1350000>; 52 - regulator-ramp-delay = <12500>; 53 - regulator-enable-ramp-delay = <115>; 54 - 55 - }; 56 - 57 - mt6397_vsramca7_reg: buck_vsramca7 { 58 - regulator-compatible = "buck_vsramca7"; 59 - regulator-name = "vsramca7"; 60 - regulator-min-microvolt = < 850000>; 61 - regulator-max-microvolt = <1350000>; 62 - regulator-ramp-delay = <12500>; 63 - regulator-enable-ramp-delay = <115>; 64 - 65 - }; 66 - 67 - mt6397_vcore_reg: buck_vcore { 68 - regulator-compatible = "buck_vcore"; 69 - regulator-name = "vcore"; 70 - regulator-min-microvolt = < 850000>; 71 - regulator-max-microvolt = <1350000>; 72 - regulator-ramp-delay = <12500>; 73 - regulator-enable-ramp-delay = <115>; 74 - }; 75 - 76 - mt6397_vgpu_reg: buck_vgpu { 77 - regulator-compatible = "buck_vgpu"; 78 - regulator-name = "vgpu"; 79 - regulator-min-microvolt = < 700000>; 80 - regulator-max-microvolt = <1350000>; 81 - regulator-ramp-delay = <12500>; 82 - regulator-enable-ramp-delay = <115>; 83 - }; 84 - 85 - mt6397_vdrm_reg: buck_vdrm { 86 - regulator-compatible = "buck_vdrm"; 87 - regulator-name = "vdrm"; 88 - regulator-min-microvolt = < 800000>; 89 - regulator-max-microvolt = <1400000>; 90 - regulator-ramp-delay = <12500>; 91 - regulator-enable-ramp-delay = <500>; 92 - }; 93 - 94 - mt6397_vio18_reg: buck_vio18 { 95 - regulator-compatible = "buck_vio18"; 96 - regulator-name = "vio18"; 97 - regulator-min-microvolt = <1500000>; 98 - regulator-max-microvolt = <2120000>; 99 - regulator-ramp-delay = <12500>; 100 - regulator-enable-ramp-delay = <500>; 101 - }; 102 - 103 - mt6397_vtcxo_reg: ldo_vtcxo { 104 - regulator-compatible = "ldo_vtcxo"; 105 - regulator-name = "vtcxo"; 106 - regulator-min-microvolt = <2800000>; 107 - regulator-max-microvolt = <2800000>; 108 - regulator-enable-ramp-delay = <90>; 109 - }; 110 - 111 - mt6397_va28_reg: ldo_va28 { 112 - regulator-compatible = "ldo_va28"; 113 - regulator-name = "va28"; 114 - /* fixed output 2.8 V */ 115 - regulator-enable-ramp-delay = <218>; 116 - }; 117 - 118 - mt6397_vcama_reg: ldo_vcama { 119 - regulator-compatible = "ldo_vcama"; 120 - regulator-name = "vcama"; 121 - regulator-min-microvolt = <1500000>; 122 - regulator-max-microvolt = <2800000>; 123 - regulator-enable-ramp-delay = <218>; 124 - }; 125 - 126 - mt6397_vio28_reg: ldo_vio28 { 127 - regulator-compatible = "ldo_vio28"; 128 - regulator-name = "vio28"; 129 - /* fixed output 2.8 V */ 130 - regulator-enable-ramp-delay = <240>; 131 - }; 132 - 133 - mt6397_usb_reg: ldo_vusb { 134 - regulator-compatible = "ldo_vusb"; 135 - regulator-name = "vusb"; 136 - /* fixed output 3.3 V */ 137 - regulator-enable-ramp-delay = <218>; 138 - }; 139 - 140 - mt6397_vmc_reg: ldo_vmc { 141 - regulator-compatible = "ldo_vmc"; 142 - regulator-name = "vmc"; 143 - regulator-min-microvolt = <1800000>; 144 - regulator-max-microvolt = <3300000>; 145 - regulator-enable-ramp-delay = <218>; 146 - }; 147 - 148 - mt6397_vmch_reg: ldo_vmch { 149 - regulator-compatible = "ldo_vmch"; 150 - regulator-name = "vmch"; 151 - regulator-min-microvolt = <3000000>; 152 - regulator-max-microvolt = <3300000>; 153 - regulator-enable-ramp-delay = <218>; 154 - }; 155 - 156 - mt6397_vemc_3v3_reg: ldo_vemc3v3 { 157 - regulator-compatible = "ldo_vemc3v3"; 158 - regulator-name = "vemc_3v3"; 159 - regulator-min-microvolt = <3000000>; 160 - regulator-max-microvolt = <3300000>; 161 - regulator-enable-ramp-delay = <218>; 162 - }; 163 - 164 - mt6397_vgp1_reg: ldo_vgp1 { 165 - regulator-compatible = "ldo_vgp1"; 166 - regulator-name = "vcamd"; 167 - regulator-min-microvolt = <1220000>; 168 - regulator-max-microvolt = <3300000>; 169 - regulator-enable-ramp-delay = <240>; 170 - }; 171 - 172 - mt6397_vgp2_reg: ldo_vgp2 { 173 - egulator-compatible = "ldo_vgp2"; 174 - regulator-name = "vcamio"; 175 - regulator-min-microvolt = <1000000>; 176 - regulator-max-microvolt = <3300000>; 177 - regulator-enable-ramp-delay = <218>; 178 - }; 179 - 180 - mt6397_vgp3_reg: ldo_vgp3 { 181 - regulator-compatible = "ldo_vgp3"; 182 - regulator-name = "vcamaf"; 183 - regulator-min-microvolt = <1200000>; 184 - regulator-max-microvolt = <3300000>; 185 - regulator-enable-ramp-delay = <218>; 186 - }; 187 - 188 - mt6397_vgp4_reg: ldo_vgp4 { 189 - regulator-compatible = "ldo_vgp4"; 190 - regulator-name = "vgp4"; 191 - regulator-min-microvolt = <1200000>; 192 - regulator-max-microvolt = <3300000>; 193 - regulator-enable-ramp-delay = <218>; 194 - }; 195 - 196 - mt6397_vgp5_reg: ldo_vgp5 { 197 - regulator-compatible = "ldo_vgp5"; 198 - regulator-name = "vgp5"; 199 - regulator-min-microvolt = <1200000>; 200 - regulator-max-microvolt = <3000000>; 201 - regulator-enable-ramp-delay = <218>; 202 - }; 203 - 204 - mt6397_vgp6_reg: ldo_vgp6 { 205 - regulator-compatible = "ldo_vgp6"; 206 - regulator-name = "vgp6"; 207 - regulator-min-microvolt = <1200000>; 208 - regulator-max-microvolt = <3300000>; 209 - regulator-enable-ramp-delay = <218>; 210 - }; 211 - 212 - mt6397_vibr_reg: ldo_vibr { 213 - regulator-compatible = "ldo_vibr"; 214 - regulator-name = "vibr"; 215 - regulator-min-microvolt = <1200000>; 216 - regulator-max-microvolt = <3300000>; 217 - regulator-enable-ramp-delay = <218>; 218 - }; 219 - }; 220 - };