16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 26be33864SEmmanuel Vadot%YAML 1.2 36be33864SEmmanuel Vadot--- 46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/mt6360-regulator.yaml# 56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 66be33864SEmmanuel Vadot 76be33864SEmmanuel Vadottitle: MT6360 Regulator from MediaTek Integrated 86be33864SEmmanuel Vadot 96be33864SEmmanuel Vadotmaintainers: 106be33864SEmmanuel Vadot - Gene Chen <gene_chen@richtek.com> 116be33864SEmmanuel Vadot 126be33864SEmmanuel Vadotdescription: | 136be33864SEmmanuel Vadot list of regulators provided by this controller, must be named 146be33864SEmmanuel Vadot after their hardware counterparts buck1/2 or ldo1/2/3/5/6/7 156be33864SEmmanuel Vadot 166be33864SEmmanuel Vadotproperties: 176be33864SEmmanuel Vadot compatible: 186be33864SEmmanuel Vadot const: mediatek,mt6360-regulator 196be33864SEmmanuel Vadot 206be33864SEmmanuel Vadot LDO_VIN1-supply: 216be33864SEmmanuel Vadot description: Input supply phandle(s) for LDO1/2/3 226be33864SEmmanuel Vadot LDO_VIN2-supply: 236be33864SEmmanuel Vadot description: Input supply phandle(s) for LDO5 246be33864SEmmanuel Vadot LDO_VIN3-supply: 256be33864SEmmanuel Vadot description: Input supply phandle(s) for LDO6/7 266be33864SEmmanuel Vadot 276be33864SEmmanuel VadotpatternProperties: 286be33864SEmmanuel Vadot "^buck[12]$": 29*fac71e4eSEmmanuel Vadot $ref: regulator.yaml# 308bab661aSEmmanuel Vadot unevaluatedProperties: false 316be33864SEmmanuel Vadot 326be33864SEmmanuel Vadot "^ldo[123567]$": 33*fac71e4eSEmmanuel Vadot $ref: regulator.yaml# 348bab661aSEmmanuel Vadot unevaluatedProperties: false 356be33864SEmmanuel Vadot 366be33864SEmmanuel Vadotrequired: 376be33864SEmmanuel Vadot - compatible 386be33864SEmmanuel Vadot 396be33864SEmmanuel VadotadditionalProperties: false 406be33864SEmmanuel Vadot 416be33864SEmmanuel Vadotexamples: 426be33864SEmmanuel Vadot - | 436be33864SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 446be33864SEmmanuel Vadot #include <dt-bindings/regulator/mediatek,mt6360-regulator.h> 456be33864SEmmanuel Vadot regulator { 466be33864SEmmanuel Vadot compatible = "mediatek,mt6360-regulator"; 476be33864SEmmanuel Vadot LDO_VIN3-supply = <&BUCK2>; 486be33864SEmmanuel Vadot buck1 { 496be33864SEmmanuel Vadot regulator-name = "mt6360,buck1"; 506be33864SEmmanuel Vadot regulator-min-microvolt = <300000>; 516be33864SEmmanuel Vadot regulator-max-microvolt = <1300000>; 526be33864SEmmanuel Vadot regulator-allowed-modes = <MT6360_OPMODE_NORMAL 536be33864SEmmanuel Vadot MT6360_OPMODE_LP 546be33864SEmmanuel Vadot MT6360_OPMODE_ULP>; 556be33864SEmmanuel Vadot }; 566be33864SEmmanuel Vadot BUCK2: buck2 { 576be33864SEmmanuel Vadot regulator-name = "mt6360,buck2"; 586be33864SEmmanuel Vadot regulator-min-microvolt = <300000>; 596be33864SEmmanuel Vadot regulator-max-microvolt = <1300000>; 606be33864SEmmanuel Vadot regulator-allowed-modes = <MT6360_OPMODE_NORMAL 616be33864SEmmanuel Vadot MT6360_OPMODE_LP 626be33864SEmmanuel Vadot MT6360_OPMODE_ULP>; 636be33864SEmmanuel Vadot }; 646be33864SEmmanuel Vadot ldo6 { 656be33864SEmmanuel Vadot regulator-name = "mt6360,ldo6"; 666be33864SEmmanuel Vadot regulator-min-microvolt = <500000>; 676be33864SEmmanuel Vadot regulator-max-microvolt = <2100000>; 686be33864SEmmanuel Vadot regulator-allowed-modes = <MT6360_OPMODE_NORMAL 696be33864SEmmanuel Vadot MT6360_OPMODE_LP>; 706be33864SEmmanuel Vadot }; 716be33864SEmmanuel Vadot ldo7 { 726be33864SEmmanuel Vadot regulator-name = "mt6360,ldo7"; 736be33864SEmmanuel Vadot regulator-min-microvolt = <500000>; 746be33864SEmmanuel Vadot regulator-max-microvolt = <2100000>; 756be33864SEmmanuel Vadot regulator-allowed-modes = <MT6360_OPMODE_NORMAL 766be33864SEmmanuel Vadot MT6360_OPMODE_LP>; 776be33864SEmmanuel Vadot }; 786be33864SEmmanuel Vadot ldo1 { 796be33864SEmmanuel Vadot regulator-name = "mt6360,ldo1"; 806be33864SEmmanuel Vadot regulator-min-microvolt = <1200000>; 816be33864SEmmanuel Vadot regulator-max-microvolt = <3600000>; 826be33864SEmmanuel Vadot regulator-allowed-modes = <MT6360_OPMODE_NORMAL 836be33864SEmmanuel Vadot MT6360_OPMODE_LP>; 846be33864SEmmanuel Vadot }; 856be33864SEmmanuel Vadot ldo2 { 866be33864SEmmanuel Vadot regulator-name = "mt6360,ldo2"; 876be33864SEmmanuel Vadot regulator-min-microvolt = <1200000>; 886be33864SEmmanuel Vadot regulator-max-microvolt = <3600000>; 896be33864SEmmanuel Vadot regulator-allowed-modes = <MT6360_OPMODE_NORMAL 906be33864SEmmanuel Vadot MT6360_OPMODE_LP>; 916be33864SEmmanuel Vadot }; 926be33864SEmmanuel Vadot ldo3 { 936be33864SEmmanuel Vadot regulator-name = "mt6360,ldo3"; 946be33864SEmmanuel Vadot regulator-min-microvolt = <1200000>; 956be33864SEmmanuel Vadot regulator-max-microvolt = <3600000>; 966be33864SEmmanuel Vadot regulator-allowed-modes = <MT6360_OPMODE_NORMAL 976be33864SEmmanuel Vadot MT6360_OPMODE_LP>; 986be33864SEmmanuel Vadot }; 996be33864SEmmanuel Vadot ldo5 { 1006be33864SEmmanuel Vadot regulator-name = "mt6360,ldo5"; 1016be33864SEmmanuel Vadot regulator-min-microvolt = <2700000>; 1026be33864SEmmanuel Vadot regulator-max-microvolt = <3600000>; 1036be33864SEmmanuel Vadot regulator-allowed-modes = <MT6360_OPMODE_NORMAL 1046be33864SEmmanuel Vadot MT6360_OPMODE_LP>; 1056be33864SEmmanuel Vadot }; 1066be33864SEmmanuel Vadot }; 1076be33864SEmmanuel Vadot... 108