xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/maxim,max8973.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/maxim,max8973.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78cc087a1SEmmanuel Vadottitle: Maxim MAX8973/MAX77621 voltage regulator
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
10*c9ccf3a3SEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
118cc087a1SEmmanuel Vadot
128cc087a1SEmmanuel VadotallOf:
138cc087a1SEmmanuel Vadot  - $ref: regulator.yaml#
148cc087a1SEmmanuel Vadot
158cc087a1SEmmanuel Vadotproperties:
168cc087a1SEmmanuel Vadot  compatible:
178cc087a1SEmmanuel Vadot    enum:
188cc087a1SEmmanuel Vadot      - maxim,max8973
198cc087a1SEmmanuel Vadot      - maxim,max77621
208cc087a1SEmmanuel Vadot
218cc087a1SEmmanuel Vadot  junction-warn-millicelsius:
228cc087a1SEmmanuel Vadot    description: |
238cc087a1SEmmanuel Vadot      Junction warning temperature threshold in millicelsius. If die
248cc087a1SEmmanuel Vadot      temperature crosses this level then device generates the warning
258cc087a1SEmmanuel Vadot      interrupts.
268cc087a1SEmmanuel Vadot      Please note that thermal functionality is only supported on MAX77621. The
278cc087a1SEmmanuel Vadot      supported threshold warning temperature for MAX77621 are 120 degC and 140
288cc087a1SEmmanuel Vadot      degC.
298cc087a1SEmmanuel Vadot
308cc087a1SEmmanuel Vadot  maxim,dvs-gpio:
318cc087a1SEmmanuel Vadot    maxItems: 1
328cc087a1SEmmanuel Vadot    description: |
338cc087a1SEmmanuel Vadot      GPIO which is connected to DVS pin of device.
348cc087a1SEmmanuel Vadot
358cc087a1SEmmanuel Vadot  maxim,dvs-default-state:
368cc087a1SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
378cc087a1SEmmanuel Vadot    enum: [0, 1]
388cc087a1SEmmanuel Vadot    description: |
398cc087a1SEmmanuel Vadot      Default state of GPIO during initialisation.
408cc087a1SEmmanuel Vadot      1 for HIGH and 0 for LOW.
418cc087a1SEmmanuel Vadot
428cc087a1SEmmanuel Vadot  maxim,externally-enable:
438cc087a1SEmmanuel Vadot    type: boolean
448cc087a1SEmmanuel Vadot    description: |
458cc087a1SEmmanuel Vadot      Externally control the regulator output enable/disable.
468cc087a1SEmmanuel Vadot
478cc087a1SEmmanuel Vadot  maxim,enable-gpio:
488cc087a1SEmmanuel Vadot    maxItems: 1
498cc087a1SEmmanuel Vadot    description: |
508cc087a1SEmmanuel Vadot      GPIO for enable control. If the valid GPIO is provided then externally
518cc087a1SEmmanuel Vadot      enable control will be considered.
528cc087a1SEmmanuel Vadot
538cc087a1SEmmanuel Vadot  maxim,enable-remote-sense:
548cc087a1SEmmanuel Vadot    type: boolean
558cc087a1SEmmanuel Vadot    description: Enable remote sense.
568cc087a1SEmmanuel Vadot
578cc087a1SEmmanuel Vadot  maxim,enable-falling-slew-rate:
588cc087a1SEmmanuel Vadot    type: boolean
598cc087a1SEmmanuel Vadot    description: Enable falling slew rate.
608cc087a1SEmmanuel Vadot
618cc087a1SEmmanuel Vadot  maxim,enable-active-discharge:
628cc087a1SEmmanuel Vadot    type: boolean
638cc087a1SEmmanuel Vadot    description: Eable active discharge.
648cc087a1SEmmanuel Vadot
658cc087a1SEmmanuel Vadot  maxim,enable-frequency-shift:
668cc087a1SEmmanuel Vadot    type: boolean
678cc087a1SEmmanuel Vadot    description: Enable 9% frequency shift.
688cc087a1SEmmanuel Vadot
698cc087a1SEmmanuel Vadot  maxim,enable-bias-control:
708cc087a1SEmmanuel Vadot    type: boolean
718cc087a1SEmmanuel Vadot    description: |
728cc087a1SEmmanuel Vadot      Enable bias control which can reduce the startup delay to 20us from 220us.
738cc087a1SEmmanuel Vadot
748cc087a1SEmmanuel Vadot  maxim,enable-etr:
758cc087a1SEmmanuel Vadot    type: boolean
768cc087a1SEmmanuel Vadot    description: Enable Enhanced Transient Response.
778cc087a1SEmmanuel Vadot
788cc087a1SEmmanuel Vadot  maxim,enable-high-etr-sensitivity:
798cc087a1SEmmanuel Vadot    type: boolean
808cc087a1SEmmanuel Vadot    description: |
818cc087a1SEmmanuel Vadot      Enhanced transient response circuit is enabled and set for high
828cc087a1SEmmanuel Vadot      sensitivity. If this property is available then etr will be enable
838cc087a1SEmmanuel Vadot      default.
848cc087a1SEmmanuel Vadot      Enhanced transient response (ETR) will affect the configuration of CKADV.
858cc087a1SEmmanuel Vadot
868cc087a1SEmmanuel Vadot  reg:
878cc087a1SEmmanuel Vadot    maxItems: 1
888cc087a1SEmmanuel Vadot
89e67e8565SEmmanuel Vadot  interrupts:
90e67e8565SEmmanuel Vadot    maxItems: 1
91e67e8565SEmmanuel Vadot
928cc087a1SEmmanuel Vadotrequired:
938cc087a1SEmmanuel Vadot  - compatible
948cc087a1SEmmanuel Vadot  - reg
958cc087a1SEmmanuel Vadot
968cc087a1SEmmanuel VadotunevaluatedProperties: false
978cc087a1SEmmanuel Vadot
988cc087a1SEmmanuel Vadotexamples:
998cc087a1SEmmanuel Vadot  - |
1008cc087a1SEmmanuel Vadot    i2c {
1018cc087a1SEmmanuel Vadot        #address-cells = <1>;
1028cc087a1SEmmanuel Vadot        #size-cells = <0>;
1038cc087a1SEmmanuel Vadot
1048cc087a1SEmmanuel Vadot        regulator@1b {
1058cc087a1SEmmanuel Vadot            compatible = "maxim,max8973";
1068cc087a1SEmmanuel Vadot            reg = <0x1b>;
1078cc087a1SEmmanuel Vadot
1088cc087a1SEmmanuel Vadot            regulator-min-microvolt = <935000>;
1098cc087a1SEmmanuel Vadot            regulator-max-microvolt = <1200000>;
1108cc087a1SEmmanuel Vadot            regulator-boot-on;
1118cc087a1SEmmanuel Vadot            regulator-always-on;
1128cc087a1SEmmanuel Vadot        };
1138cc087a1SEmmanuel Vadot    };
1148cc087a1SEmmanuel Vadot
1158cc087a1SEmmanuel Vadot  - |
116*c9ccf3a3SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
1178cc087a1SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
1188cc087a1SEmmanuel Vadot
1198cc087a1SEmmanuel Vadot    i2c {
1208cc087a1SEmmanuel Vadot        #address-cells = <1>;
1218cc087a1SEmmanuel Vadot        #size-cells = <0>;
1228cc087a1SEmmanuel Vadot
1238cc087a1SEmmanuel Vadot        regulator@1b {
1248cc087a1SEmmanuel Vadot            compatible = "maxim,max77621";
1258cc087a1SEmmanuel Vadot            reg = <0x1b>;
126*c9ccf3a3SEmmanuel Vadot            interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
1278cc087a1SEmmanuel Vadot
1288cc087a1SEmmanuel Vadot            regulator-always-on;
1298cc087a1SEmmanuel Vadot            regulator-boot-on;
1308cc087a1SEmmanuel Vadot            regulator-min-microvolt = <800000>;
1318cc087a1SEmmanuel Vadot            regulator-max-microvolt = <1231250>;
1328cc087a1SEmmanuel Vadot            regulator-name = "PPVAR_CPU";
1338cc087a1SEmmanuel Vadot            regulator-ramp-delay = <12500>;
1348cc087a1SEmmanuel Vadot            maxim,dvs-default-state = <1>;
1358cc087a1SEmmanuel Vadot            maxim,enable-active-discharge;
1368cc087a1SEmmanuel Vadot            maxim,enable-bias-control;
1378cc087a1SEmmanuel Vadot            maxim,enable-etr;
1388cc087a1SEmmanuel Vadot            maxim,enable-gpio = <&pmic 5 GPIO_ACTIVE_HIGH>;
1398cc087a1SEmmanuel Vadot            maxim,externally-enable;
1408cc087a1SEmmanuel Vadot        };
1418cc087a1SEmmanuel Vadot    };
142