1*84943d6fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*84943d6fSEmmanuel Vadot%YAML 1.2 3*84943d6fSEmmanuel Vadot--- 4*84943d6fSEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/maxim,max8925.yaml# 5*84943d6fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*84943d6fSEmmanuel Vadot 7*84943d6fSEmmanuel Vadottitle: MAX8925 PMIC from Maxim Integrated. 8*84943d6fSEmmanuel Vadot 9*84943d6fSEmmanuel Vadotmaintainers: 10*84943d6fSEmmanuel Vadot - Lee Jones <lee@kernel.org> 11*84943d6fSEmmanuel Vadot 12*84943d6fSEmmanuel Vadotproperties: 13*84943d6fSEmmanuel Vadot compatible: 14*84943d6fSEmmanuel Vadot const: maxim,max8925 15*84943d6fSEmmanuel Vadot 16*84943d6fSEmmanuel Vadot reg: 17*84943d6fSEmmanuel Vadot maxItems: 1 18*84943d6fSEmmanuel Vadot 19*84943d6fSEmmanuel Vadot interrupts: 20*84943d6fSEmmanuel Vadot maxItems: 1 21*84943d6fSEmmanuel Vadot 22*84943d6fSEmmanuel Vadot interrupt-controller: true 23*84943d6fSEmmanuel Vadot 24*84943d6fSEmmanuel Vadot "#interrupt-cells": 25*84943d6fSEmmanuel Vadot const: 1 26*84943d6fSEmmanuel Vadot description: 27*84943d6fSEmmanuel Vadot The cell is the IRQ number 28*84943d6fSEmmanuel Vadot 29*84943d6fSEmmanuel Vadot maxim,tsc-irq: 30*84943d6fSEmmanuel Vadot description: second interrupt from max8925 31*84943d6fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 32*84943d6fSEmmanuel Vadot 33*84943d6fSEmmanuel Vadot regulators: 34*84943d6fSEmmanuel Vadot type: object 35*84943d6fSEmmanuel Vadot 36*84943d6fSEmmanuel Vadot patternProperties: 37*84943d6fSEmmanuel Vadot "^SDV[1-3]$|^LDO[1-9]$|^LDO1[0-9]$|^LDO20$": 38*84943d6fSEmmanuel Vadot description: regulator configuration for SDV1-3 and LDO1-20 39*84943d6fSEmmanuel Vadot $ref: /schemas/regulator/regulator.yaml 40*84943d6fSEmmanuel Vadot unevaluatedProperties: false 41*84943d6fSEmmanuel Vadot 42*84943d6fSEmmanuel Vadot additionalProperties: false 43*84943d6fSEmmanuel Vadot 44*84943d6fSEmmanuel Vadot backlight: 45*84943d6fSEmmanuel Vadot type: object 46*84943d6fSEmmanuel Vadot properties: 47*84943d6fSEmmanuel Vadot maxim,max8925-dual-string: 48*84943d6fSEmmanuel Vadot description: set to 1 to support dual string 49*84943d6fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 50*84943d6fSEmmanuel Vadot enum: [0, 1] 51*84943d6fSEmmanuel Vadot default: 0 52*84943d6fSEmmanuel Vadot 53*84943d6fSEmmanuel Vadot additionalProperties: false 54*84943d6fSEmmanuel Vadot 55*84943d6fSEmmanuel Vadot charger: 56*84943d6fSEmmanuel Vadot type: object 57*84943d6fSEmmanuel Vadot properties: 58*84943d6fSEmmanuel Vadot batt-detect: 59*84943d6fSEmmanuel Vadot description: set to 1 if battery detection via ID pin is supported 60*84943d6fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 61*84943d6fSEmmanuel Vadot enum: [0, 1] 62*84943d6fSEmmanuel Vadot default: 0 63*84943d6fSEmmanuel Vadot 64*84943d6fSEmmanuel Vadot topoff-threshold: 65*84943d6fSEmmanuel Vadot description: charging current in topoff mode, configures bits 5-6 in CHG_CNTL1 66*84943d6fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 67*84943d6fSEmmanuel Vadot minimum: 0 68*84943d6fSEmmanuel Vadot maximum: 3 69*84943d6fSEmmanuel Vadot default: 0 70*84943d6fSEmmanuel Vadot 71*84943d6fSEmmanuel Vadot fast-charge: 72*84943d6fSEmmanuel Vadot description: set charging current in fast mode, configures bits 0-3 in CHG_CNTL1 73*84943d6fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 74*84943d6fSEmmanuel Vadot minimum: 0 75*84943d6fSEmmanuel Vadot maximum: 7 76*84943d6fSEmmanuel Vadot default: 0 77*84943d6fSEmmanuel Vadot 78*84943d6fSEmmanuel Vadot no-temp-support: 79*84943d6fSEmmanuel Vadot description: set to 1 if temperature sensing is not supported 80*84943d6fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 81*84943d6fSEmmanuel Vadot enum: [0, 1] 82*84943d6fSEmmanuel Vadot default: 0 83*84943d6fSEmmanuel Vadot 84*84943d6fSEmmanuel Vadot no-insert-detect: 85*84943d6fSEmmanuel Vadot description: set to 1 if AC detection is not supported 86*84943d6fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 87*84943d6fSEmmanuel Vadot enum: [0, 1] 88*84943d6fSEmmanuel Vadot default: 0 89*84943d6fSEmmanuel Vadot 90*84943d6fSEmmanuel Vadot additionalProperties: false 91*84943d6fSEmmanuel Vadot 92*84943d6fSEmmanuel Vadotrequired: 93*84943d6fSEmmanuel Vadot - compatible 94*84943d6fSEmmanuel Vadot - reg 95*84943d6fSEmmanuel Vadot - interrupts 96*84943d6fSEmmanuel Vadot - interrupt-controller 97*84943d6fSEmmanuel Vadot - "#interrupt-cells" 98*84943d6fSEmmanuel Vadot - regulators 99*84943d6fSEmmanuel Vadot 100*84943d6fSEmmanuel VadotadditionalProperties: false 101*84943d6fSEmmanuel Vadot 102*84943d6fSEmmanuel Vadotexamples: 103*84943d6fSEmmanuel Vadot - | 104*84943d6fSEmmanuel Vadot i2c { 105*84943d6fSEmmanuel Vadot #address-cells = <1>; 106*84943d6fSEmmanuel Vadot #size-cells = <0>; 107*84943d6fSEmmanuel Vadot 108*84943d6fSEmmanuel Vadot pmic@3c { 109*84943d6fSEmmanuel Vadot compatible = "maxim,max8925"; 110*84943d6fSEmmanuel Vadot reg = <0x3c>; 111*84943d6fSEmmanuel Vadot interrupts = <1>; 112*84943d6fSEmmanuel Vadot interrupt-parent = <&intcmux4>; 113*84943d6fSEmmanuel Vadot interrupt-controller; 114*84943d6fSEmmanuel Vadot #interrupt-cells = <1>; 115*84943d6fSEmmanuel Vadot maxim,tsc-irq = <0>; 116*84943d6fSEmmanuel Vadot 117*84943d6fSEmmanuel Vadot regulators { 118*84943d6fSEmmanuel Vadot SDV1 { 119*84943d6fSEmmanuel Vadot regulator-min-microvolt = <637500>; 120*84943d6fSEmmanuel Vadot regulator-max-microvolt = <1425000>; 121*84943d6fSEmmanuel Vadot regulator-boot-on; 122*84943d6fSEmmanuel Vadot regulator-always-on; 123*84943d6fSEmmanuel Vadot }; 124*84943d6fSEmmanuel Vadot 125*84943d6fSEmmanuel Vadot LDO1 { 126*84943d6fSEmmanuel Vadot regulator-min-microvolt = <750000>; 127*84943d6fSEmmanuel Vadot regulator-max-microvolt = <3900000>; 128*84943d6fSEmmanuel Vadot regulator-boot-on; 129*84943d6fSEmmanuel Vadot regulator-always-on; 130*84943d6fSEmmanuel Vadot }; 131*84943d6fSEmmanuel Vadot }; 132*84943d6fSEmmanuel Vadot 133*84943d6fSEmmanuel Vadot backlight { 134*84943d6fSEmmanuel Vadot maxim,max8925-dual-string = <0>; 135*84943d6fSEmmanuel Vadot }; 136*84943d6fSEmmanuel Vadot 137*84943d6fSEmmanuel Vadot charger { 138*84943d6fSEmmanuel Vadot batt-detect = <0>; 139*84943d6fSEmmanuel Vadot topoff-threshold = <1>; 140*84943d6fSEmmanuel Vadot fast-charge = <7>; 141*84943d6fSEmmanuel Vadot no-temp-support = <0>; 142*84943d6fSEmmanuel Vadot no-insert-detect = <0>; 143*84943d6fSEmmanuel Vadot }; 144*84943d6fSEmmanuel Vadot }; 145*84943d6fSEmmanuel Vadot }; 146