brintos

brintos / linux-shallow public Read only

0
0
Text · 3.1 KiB · 9c879bc Raw
108 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/regulator/mt6360-regulator.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: MT6360 Regulator from MediaTek Integrated8 9maintainers:10  - Gene Chen <gene_chen@richtek.com>11 12description: |13  list of regulators provided by this controller, must be named14  after their hardware counterparts buck1/2 or ldo1/2/3/5/6/715 16properties:17  compatible:18    const: mediatek,mt6360-regulator19 20  LDO_VIN1-supply:21    description: Input supply phandle(s) for LDO1/2/322  LDO_VIN2-supply:23    description: Input supply phandle(s) for LDO524  LDO_VIN3-supply:25    description: Input supply phandle(s) for LDO6/726 27patternProperties:28  "^buck[12]$":29    $ref: regulator.yaml#30    unevaluatedProperties: false31 32  "^ldo[123567]$":33    $ref: regulator.yaml#34    unevaluatedProperties: false35 36required:37  - compatible38 39additionalProperties: false40 41examples:42  - |43    #include <dt-bindings/interrupt-controller/irq.h>44    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>45    regulator {46      compatible = "mediatek,mt6360-regulator";47      LDO_VIN3-supply = <&BUCK2>;48      buck1 {49        regulator-name = "mt6360,buck1";50        regulator-min-microvolt = <300000>;51        regulator-max-microvolt = <1300000>;52        regulator-allowed-modes = <MT6360_OPMODE_NORMAL53             MT6360_OPMODE_LP54             MT6360_OPMODE_ULP>;55      };56      BUCK2: buck2 {57        regulator-name = "mt6360,buck2";58        regulator-min-microvolt = <300000>;59        regulator-max-microvolt = <1300000>;60        regulator-allowed-modes = <MT6360_OPMODE_NORMAL61             MT6360_OPMODE_LP62             MT6360_OPMODE_ULP>;63      };64      ldo6 {65        regulator-name = "mt6360,ldo6";66        regulator-min-microvolt = <500000>;67        regulator-max-microvolt = <2100000>;68        regulator-allowed-modes = <MT6360_OPMODE_NORMAL69             MT6360_OPMODE_LP>;70      };71      ldo7 {72        regulator-name = "mt6360,ldo7";73        regulator-min-microvolt = <500000>;74        regulator-max-microvolt = <2100000>;75        regulator-allowed-modes = <MT6360_OPMODE_NORMAL76             MT6360_OPMODE_LP>;77      };78      ldo1 {79        regulator-name = "mt6360,ldo1";80        regulator-min-microvolt = <1200000>;81        regulator-max-microvolt = <3600000>;82        regulator-allowed-modes = <MT6360_OPMODE_NORMAL83             MT6360_OPMODE_LP>;84      };85      ldo2 {86        regulator-name = "mt6360,ldo2";87        regulator-min-microvolt = <1200000>;88        regulator-max-microvolt = <3600000>;89        regulator-allowed-modes = <MT6360_OPMODE_NORMAL90             MT6360_OPMODE_LP>;91      };92      ldo3 {93        regulator-name = "mt6360,ldo3";94        regulator-min-microvolt = <1200000>;95        regulator-max-microvolt = <3600000>;96        regulator-allowed-modes = <MT6360_OPMODE_NORMAL97             MT6360_OPMODE_LP>;98      };99      ldo5 {100        regulator-name = "mt6360,ldo5";101        regulator-min-microvolt = <2700000>;102        regulator-max-microvolt = <3600000>;103        regulator-allowed-modes = <MT6360_OPMODE_NORMAL104             MT6360_OPMODE_LP>;105      };106    };107...108