18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 28cc087a1SEmmanuel Vadot%YAML 1.2 38cc087a1SEmmanuel Vadot--- 48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/maxim,max8952.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 78cc087a1SEmmanuel Vadottitle: Maxim MAX8952 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 const: maxim,max8952 188cc087a1SEmmanuel Vadot 198cc087a1SEmmanuel Vadot max8952,default-mode: 208cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 218cc087a1SEmmanuel Vadot enum: [0, 1, 2, 3] 228cc087a1SEmmanuel Vadot description: | 238cc087a1SEmmanuel Vadot index of default DVS voltage 248cc087a1SEmmanuel Vadot 258cc087a1SEmmanuel Vadot max8952,dvs-mode-microvolt: 268cc087a1SEmmanuel Vadot minItems: 4 278cc087a1SEmmanuel Vadot maxItems: 4 288cc087a1SEmmanuel Vadot items: 298cc087a1SEmmanuel Vadot minimum: 770000 308cc087a1SEmmanuel Vadot maximum: 1400000 318cc087a1SEmmanuel Vadot description: | 328cc087a1SEmmanuel Vadot Array of 4 integer values defining DVS voltages in microvolts. All values 338cc087a1SEmmanuel Vadot must be from range <770000, 1400000>. 348cc087a1SEmmanuel Vadot 358cc087a1SEmmanuel Vadot max8952,en-gpio: 368cc087a1SEmmanuel Vadot maxItems: 1 378cc087a1SEmmanuel Vadot description: | 388cc087a1SEmmanuel Vadot GPIO used to control enable status of regulator 398cc087a1SEmmanuel Vadot 408cc087a1SEmmanuel Vadot max8952,ramp-speed: 418cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 428cc087a1SEmmanuel Vadot enum: [0, 1, 2, 3, 4, 5, 6, 7] 438cc087a1SEmmanuel Vadot default: 0 448cc087a1SEmmanuel Vadot description: | 458cc087a1SEmmanuel Vadot Voltage ramp speed, values map to: 468cc087a1SEmmanuel Vadot - 0: 32mV/us 478cc087a1SEmmanuel Vadot - 1: 16mV/us 488cc087a1SEmmanuel Vadot - 2: 8mV/us 498cc087a1SEmmanuel Vadot - 3: 4mV/us 508cc087a1SEmmanuel Vadot - 4: 2mV/us 518cc087a1SEmmanuel Vadot - 5: 1mV/us 528cc087a1SEmmanuel Vadot - 6: 0.5mV/us 538cc087a1SEmmanuel Vadot - 7: 0.25mV/us 548cc087a1SEmmanuel Vadot Defaults to 32mV/us if not specified. 558cc087a1SEmmanuel Vadot 568cc087a1SEmmanuel Vadot max8952,sync-freq: 578cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 588cc087a1SEmmanuel Vadot enum: [0, 1, 2] 598cc087a1SEmmanuel Vadot default: 0 608cc087a1SEmmanuel Vadot description: | 618cc087a1SEmmanuel Vadot Sync frequency, values map to: 628cc087a1SEmmanuel Vadot - 0: 26 MHz 638cc087a1SEmmanuel Vadot - 1: 13 MHz 648cc087a1SEmmanuel Vadot - 2: 19.2 MHz 658cc087a1SEmmanuel Vadot Defaults to 26 MHz if not specified. 668cc087a1SEmmanuel Vadot 678cc087a1SEmmanuel Vadot max8952,vid-gpios: 688cc087a1SEmmanuel Vadot minItems: 2 698cc087a1SEmmanuel Vadot maxItems: 2 708cc087a1SEmmanuel Vadot description: | 718cc087a1SEmmanuel Vadot Array of two GPIO pins used for DVS voltage selection 728cc087a1SEmmanuel Vadot 738cc087a1SEmmanuel Vadot reg: 748cc087a1SEmmanuel Vadot maxItems: 1 758cc087a1SEmmanuel Vadot 768cc087a1SEmmanuel Vadotrequired: 778cc087a1SEmmanuel Vadot - compatible 788cc087a1SEmmanuel Vadot - max8952,dvs-mode-microvolt 798cc087a1SEmmanuel Vadot - reg 808cc087a1SEmmanuel Vadot 818cc087a1SEmmanuel VadotunevaluatedProperties: false 828cc087a1SEmmanuel Vadot 838cc087a1SEmmanuel Vadotexamples: 848cc087a1SEmmanuel Vadot - | 858cc087a1SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 868cc087a1SEmmanuel Vadot 878cc087a1SEmmanuel Vadot i2c { 888cc087a1SEmmanuel Vadot #address-cells = <1>; 898cc087a1SEmmanuel Vadot #size-cells = <0>; 908cc087a1SEmmanuel Vadot 918cc087a1SEmmanuel Vadot pmic@60 { 928cc087a1SEmmanuel Vadot compatible = "maxim,max8952"; 938cc087a1SEmmanuel Vadot reg = <0x60>; 948cc087a1SEmmanuel Vadot 958cc087a1SEmmanuel Vadot max8952,vid-gpios = <&gpx0 3 GPIO_ACTIVE_HIGH>, 968cc087a1SEmmanuel Vadot <&gpx0 4 GPIO_ACTIVE_HIGH>; 978cc087a1SEmmanuel Vadot max8952,default-mode = <0>; 988cc087a1SEmmanuel Vadot max8952,dvs-mode-microvolt = <1250000>, <1200000>, 998cc087a1SEmmanuel Vadot <1050000>, <950000>; 1008cc087a1SEmmanuel Vadot max8952,sync-freq = <0>; 1018cc087a1SEmmanuel Vadot max8952,ramp-speed = <0>; 1028cc087a1SEmmanuel Vadot 1038cc087a1SEmmanuel Vadot regulator-name = "VARM_1.2V_C210"; 1048cc087a1SEmmanuel Vadot regulator-min-microvolt = <770000>; 1058cc087a1SEmmanuel Vadot regulator-max-microvolt = <1400000>; 1068cc087a1SEmmanuel Vadot regulator-always-on; 1078cc087a1SEmmanuel Vadot regulator-boot-on; 1088cc087a1SEmmanuel Vadot }; 1098cc087a1SEmmanuel Vadot }; 110