11d2104f2SKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only 21d2104f2SKrzysztof Kozlowski%YAML 1.2 31d2104f2SKrzysztof Kozlowski--- 41d2104f2SKrzysztof Kozlowski$id: http://devicetree.org/schemas/regulator/maxim,max8997.yaml# 51d2104f2SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 61d2104f2SKrzysztof Kozlowski 71d2104f2SKrzysztof Kozlowskititle: Maxim MAX8997 Power Management IC 81d2104f2SKrzysztof Kozlowski 91d2104f2SKrzysztof Kozlowskimaintainers: 108a1e6bb3SKrzysztof Kozlowski - Krzysztof Kozlowski <krzk@kernel.org> 111d2104f2SKrzysztof Kozlowski 121d2104f2SKrzysztof Kozlowskidescription: | 131d2104f2SKrzysztof Kozlowski The Maxim MAX8997 is a Power Management IC which includes voltage and current 141d2104f2SKrzysztof Kozlowski regulators, charger controller with fuel gauge, RTC, clock outputs, haptic 151d2104f2SKrzysztof Kozlowski motor driver, flash LED driver and Micro-USB Interface Controller. 161d2104f2SKrzysztof Kozlowski 171d2104f2SKrzysztof Kozlowski The binding here is not complete and describes only regulator and charger 181d2104f2SKrzysztof Kozlowski controller parts. 191d2104f2SKrzysztof Kozlowski 201d2104f2SKrzysztof Kozlowskiproperties: 211d2104f2SKrzysztof Kozlowski compatible: 221d2104f2SKrzysztof Kozlowski const: maxim,max8997-pmic 231d2104f2SKrzysztof Kozlowski 241d2104f2SKrzysztof Kozlowski charger-supply: 251d2104f2SKrzysztof Kozlowski description: | 261d2104f2SKrzysztof Kozlowski Regulator node for charging current. 271d2104f2SKrzysztof Kozlowski 281d2104f2SKrzysztof Kozlowski interrupts: 291d2104f2SKrzysztof Kozlowski items: 301d2104f2SKrzysztof Kozlowski - description: irq1 interrupt 311d2104f2SKrzysztof Kozlowski - description: alert interrupt 321d2104f2SKrzysztof Kozlowski 331d2104f2SKrzysztof Kozlowski max8997,pmic-buck1-dvs-voltage: 341d2104f2SKrzysztof Kozlowski $ref: /schemas/types.yaml#/definitions/uint32-array 351d2104f2SKrzysztof Kozlowski minItems: 1 361d2104f2SKrzysztof Kozlowski maxItems: 8 371d2104f2SKrzysztof Kozlowski description: | 381d2104f2SKrzysztof Kozlowski A set of 8 voltage values in micro-volt (uV) units for buck1 when 391d2104f2SKrzysztof Kozlowski changing voltage using GPIO DVS. 401d2104f2SKrzysztof Kozlowski If none of max8997,pmic-buck[1/2/5]-uses-gpio-dvs optional property is 411d2104f2SKrzysztof Kozlowski specified, the max8997,pmic-buck[1/2/5]-dvs-voltage property should 421d2104f2SKrzysztof Kozlowski specify at least one voltage level (which would be a safe operating 431d2104f2SKrzysztof Kozlowski voltage). 441d2104f2SKrzysztof Kozlowski 451d2104f2SKrzysztof Kozlowski max8997,pmic-buck2-dvs-voltage: 461d2104f2SKrzysztof Kozlowski $ref: /schemas/types.yaml#/definitions/uint32-array 471d2104f2SKrzysztof Kozlowski minItems: 1 481d2104f2SKrzysztof Kozlowski maxItems: 8 491d2104f2SKrzysztof Kozlowski description: | 501d2104f2SKrzysztof Kozlowski A set of 8 voltage values in micro-volt (uV) units for buck2 when 511d2104f2SKrzysztof Kozlowski changing voltage using GPIO DVS. 521d2104f2SKrzysztof Kozlowski If none of max8997,pmic-buck[1/2/5]-uses-gpio-dvs optional property is 531d2104f2SKrzysztof Kozlowski specified, the max8997,pmic-buck[1/2/5]-dvs-voltage property should 541d2104f2SKrzysztof Kozlowski specify at least one voltage level (which would be a safe operating 551d2104f2SKrzysztof Kozlowski voltage). 561d2104f2SKrzysztof Kozlowski 571d2104f2SKrzysztof Kozlowski max8997,pmic-buck5-dvs-voltage: 581d2104f2SKrzysztof Kozlowski $ref: /schemas/types.yaml#/definitions/uint32-array 591d2104f2SKrzysztof Kozlowski minItems: 1 601d2104f2SKrzysztof Kozlowski maxItems: 8 611d2104f2SKrzysztof Kozlowski description: | 621d2104f2SKrzysztof Kozlowski A set of 8 voltage values in micro-volt (uV) units for buck5 when 631d2104f2SKrzysztof Kozlowski changing voltage using GPIO DVS. 641d2104f2SKrzysztof Kozlowski If none of max8997,pmic-buck[1/2/5]-uses-gpio-dvs optional property is 651d2104f2SKrzysztof Kozlowski specified, the max8997,pmic-buck[1/2/5]-dvs-voltage property should 661d2104f2SKrzysztof Kozlowski specify at least one voltage level (which would be a safe operating 671d2104f2SKrzysztof Kozlowski voltage). 681d2104f2SKrzysztof Kozlowski 691d2104f2SKrzysztof Kozlowski max8997,pmic-buck1-uses-gpio-dvs: 701d2104f2SKrzysztof Kozlowski type: boolean 711d2104f2SKrzysztof Kozlowski description: | 721d2104f2SKrzysztof Kozlowski buck1 can be controlled by GPIO DVS. 731d2104f2SKrzysztof Kozlowski 741d2104f2SKrzysztof Kozlowski max8997,pmic-buck2-uses-gpio-dvs: 751d2104f2SKrzysztof Kozlowski type: boolean 761d2104f2SKrzysztof Kozlowski description: | 771d2104f2SKrzysztof Kozlowski buck2 can be controlled by GPIO DVS. 781d2104f2SKrzysztof Kozlowski 791d2104f2SKrzysztof Kozlowski max8997,pmic-buck5-uses-gpio-dvs: 801d2104f2SKrzysztof Kozlowski type: boolean 811d2104f2SKrzysztof Kozlowski description: | 821d2104f2SKrzysztof Kozlowski buck5 can be controlled by GPIO DVS. 831d2104f2SKrzysztof Kozlowski 841d2104f2SKrzysztof Kozlowski max8997,pmic-buck125-default-dvs-idx: 851d2104f2SKrzysztof Kozlowski $ref: /schemas/types.yaml#/definitions/uint32 861d2104f2SKrzysztof Kozlowski minimum: 0 871d2104f2SKrzysztof Kozlowski maximum: 7 881d2104f2SKrzysztof Kozlowski default: 0 891d2104f2SKrzysztof Kozlowski description: | 901d2104f2SKrzysztof Kozlowski Default voltage setting selected from the possible 8 options selectable 911d2104f2SKrzysztof Kozlowski by the dvs gpios. The value of this property should be between 0 and 7. 921d2104f2SKrzysztof Kozlowski If not specified or if out of range, the default value of this property 931d2104f2SKrzysztof Kozlowski is set to 0. 941d2104f2SKrzysztof Kozlowski 951d2104f2SKrzysztof Kozlowski max8997,pmic-buck125-dvs-gpios: 961d2104f2SKrzysztof Kozlowski minItems: 3 971d2104f2SKrzysztof Kozlowski maxItems: 3 981d2104f2SKrzysztof Kozlowski description: | 991d2104f2SKrzysztof Kozlowski GPIO specifiers for three host gpio's used for DVS. 1001d2104f2SKrzysztof Kozlowski 1011d2104f2SKrzysztof Kozlowski max8997,pmic-ignore-gpiodvs-side-effect: 1021d2104f2SKrzysztof Kozlowski type: boolean 1031d2104f2SKrzysztof Kozlowski description: | 1041d2104f2SKrzysztof Kozlowski When GPIO-DVS mode is used for multiple bucks, changing the voltage value 1051d2104f2SKrzysztof Kozlowski of one of the bucks may affect that of another buck, which is the side 1061d2104f2SKrzysztof Kozlowski effect of the change (set_voltage). Use this property to ignore such 1071d2104f2SKrzysztof Kozlowski side effects and change the voltage. 1081d2104f2SKrzysztof Kozlowski 1091d2104f2SKrzysztof Kozlowski reg: 1101d2104f2SKrzysztof Kozlowski maxItems: 1 1111d2104f2SKrzysztof Kozlowski 1121d2104f2SKrzysztof Kozlowski regulators: 1131d2104f2SKrzysztof Kozlowski type: object 114*de6fbef1SRob Herring additionalProperties: false 1151d2104f2SKrzysztof Kozlowski description: 1161d2104f2SKrzysztof Kozlowski List of child nodes that specify the regulators. 1171d2104f2SKrzysztof Kozlowski 1181d2104f2SKrzysztof Kozlowski patternProperties: 1191d2104f2SKrzysztof Kozlowski # 1-18 and 21 LDOs 1201d2104f2SKrzysztof Kozlowski "^LDO([1-9]|1[0-8]|21)$": 1211d2104f2SKrzysztof Kozlowski type: object 1221d2104f2SKrzysztof Kozlowski $ref: regulator.yaml# 1231d2104f2SKrzysztof Kozlowski description: 1241d2104f2SKrzysztof Kozlowski Properties for single LDO regulator. 1251d2104f2SKrzysztof Kozlowski 1261d2104f2SKrzysztof Kozlowski properties: 1271d2104f2SKrzysztof Kozlowski regulator-name: true 1281d2104f2SKrzysztof Kozlowski 1291d2104f2SKrzysztof Kozlowski required: 1301d2104f2SKrzysztof Kozlowski - regulator-name 1311d2104f2SKrzysztof Kozlowski 1321d2104f2SKrzysztof Kozlowski unevaluatedProperties: false 1331d2104f2SKrzysztof Kozlowski 1341d2104f2SKrzysztof Kozlowski # 7 bucks 1351d2104f2SKrzysztof Kozlowski "^BUCK[1-7]$": 1361d2104f2SKrzysztof Kozlowski type: object 1371d2104f2SKrzysztof Kozlowski $ref: regulator.yaml# 1381d2104f2SKrzysztof Kozlowski description: 1391d2104f2SKrzysztof Kozlowski Properties for single BUCK regulator. 1401d2104f2SKrzysztof Kozlowski 1411d2104f2SKrzysztof Kozlowski properties: 1421d2104f2SKrzysztof Kozlowski regulator-name: true 1431d2104f2SKrzysztof Kozlowski 1441d2104f2SKrzysztof Kozlowski required: 1451d2104f2SKrzysztof Kozlowski - regulator-name 1461d2104f2SKrzysztof Kozlowski 1471d2104f2SKrzysztof Kozlowski unevaluatedProperties: false 1481d2104f2SKrzysztof Kozlowski 1491d2104f2SKrzysztof Kozlowski "^EN32KHZ_[AC]P$": 1501d2104f2SKrzysztof Kozlowski type: object 1511d2104f2SKrzysztof Kozlowski $ref: regulator.yaml# 1521d2104f2SKrzysztof Kozlowski description: 1531d2104f2SKrzysztof Kozlowski 32768 Hz clock output (modelled as regulator) 1541d2104f2SKrzysztof Kozlowski 1551d2104f2SKrzysztof Kozlowski properties: 1561d2104f2SKrzysztof Kozlowski regulator-name: true 1571d2104f2SKrzysztof Kozlowski regulator-always-on: true 1581d2104f2SKrzysztof Kozlowski regulator-boot-on: true 1591d2104f2SKrzysztof Kozlowski 1601d2104f2SKrzysztof Kozlowski required: 1611d2104f2SKrzysztof Kozlowski - regulator-name 1621d2104f2SKrzysztof Kozlowski 1631d2104f2SKrzysztof Kozlowski additionalProperties: false 1641d2104f2SKrzysztof Kozlowski 1651d2104f2SKrzysztof Kozlowski properties: 1661d2104f2SKrzysztof Kozlowski CHARGER: 1671d2104f2SKrzysztof Kozlowski type: object 1681d2104f2SKrzysztof Kozlowski $ref: regulator.yaml# 1691d2104f2SKrzysztof Kozlowski description: main battery charger current control 1701d2104f2SKrzysztof Kozlowski 1711d2104f2SKrzysztof Kozlowski properties: 1721d2104f2SKrzysztof Kozlowski regulator-name: true 1731d2104f2SKrzysztof Kozlowski 1741d2104f2SKrzysztof Kozlowski required: 1751d2104f2SKrzysztof Kozlowski - regulator-name 1761d2104f2SKrzysztof Kozlowski 1771d2104f2SKrzysztof Kozlowski unevaluatedProperties: false 1781d2104f2SKrzysztof Kozlowski 1791d2104f2SKrzysztof Kozlowski CHARGER_CV: 1801d2104f2SKrzysztof Kozlowski type: object 1811d2104f2SKrzysztof Kozlowski $ref: regulator.yaml# 1821d2104f2SKrzysztof Kozlowski description: main battery charger voltage control 1831d2104f2SKrzysztof Kozlowski 1841d2104f2SKrzysztof Kozlowski properties: 1851d2104f2SKrzysztof Kozlowski regulator-name: true 1861d2104f2SKrzysztof Kozlowski 1871d2104f2SKrzysztof Kozlowski required: 1881d2104f2SKrzysztof Kozlowski - regulator-name 1891d2104f2SKrzysztof Kozlowski 1901d2104f2SKrzysztof Kozlowski unevaluatedProperties: false 1911d2104f2SKrzysztof Kozlowski 1921d2104f2SKrzysztof Kozlowski CHARGER_TOPOFF: 1931d2104f2SKrzysztof Kozlowski type: object 1941d2104f2SKrzysztof Kozlowski $ref: regulator.yaml# 1951d2104f2SKrzysztof Kozlowski description: end of charge current threshold level 1961d2104f2SKrzysztof Kozlowski 1971d2104f2SKrzysztof Kozlowski properties: 1981d2104f2SKrzysztof Kozlowski regulator-name: true 1991d2104f2SKrzysztof Kozlowski 2001d2104f2SKrzysztof Kozlowski required: 2011d2104f2SKrzysztof Kozlowski - regulator-name 2021d2104f2SKrzysztof Kozlowski 2031d2104f2SKrzysztof Kozlowski unevaluatedProperties: false 2041d2104f2SKrzysztof Kozlowski 2051d2104f2SKrzysztof Kozlowski ENVICHG: 2061d2104f2SKrzysztof Kozlowski type: object 2071d2104f2SKrzysztof Kozlowski $ref: regulator.yaml# 2081d2104f2SKrzysztof Kozlowski description: | 2091d2104f2SKrzysztof Kozlowski Battery Charging Current Monitor Output. This is a fixed voltage type 2101d2104f2SKrzysztof Kozlowski regulator 2111d2104f2SKrzysztof Kozlowski properties: 2121d2104f2SKrzysztof Kozlowski regulator-name: true 2131d2104f2SKrzysztof Kozlowski 2141d2104f2SKrzysztof Kozlowski required: 2151d2104f2SKrzysztof Kozlowski - regulator-name 2161d2104f2SKrzysztof Kozlowski 2171d2104f2SKrzysztof Kozlowski unevaluatedProperties: false 2181d2104f2SKrzysztof Kozlowski 2191d2104f2SKrzysztof Kozlowski ESAFEOUT1: 2201d2104f2SKrzysztof Kozlowski type: object 2211d2104f2SKrzysztof Kozlowski $ref: regulator.yaml# 2221d2104f2SKrzysztof Kozlowski description: LDO19 2231d2104f2SKrzysztof Kozlowski 2241d2104f2SKrzysztof Kozlowski properties: 2251d2104f2SKrzysztof Kozlowski regulator-name: true 2261d2104f2SKrzysztof Kozlowski 2271d2104f2SKrzysztof Kozlowski required: 2281d2104f2SKrzysztof Kozlowski - regulator-name 2291d2104f2SKrzysztof Kozlowski 2301d2104f2SKrzysztof Kozlowski unevaluatedProperties: false 2311d2104f2SKrzysztof Kozlowski 2321d2104f2SKrzysztof Kozlowski ESAFEOUT2: 2331d2104f2SKrzysztof Kozlowski type: object 2341d2104f2SKrzysztof Kozlowski $ref: regulator.yaml# 2351d2104f2SKrzysztof Kozlowski description: LDO20 2361d2104f2SKrzysztof Kozlowski 2371d2104f2SKrzysztof Kozlowski properties: 2381d2104f2SKrzysztof Kozlowski regulator-name: true 2391d2104f2SKrzysztof Kozlowski 2401d2104f2SKrzysztof Kozlowski required: 2411d2104f2SKrzysztof Kozlowski - regulator-name 2421d2104f2SKrzysztof Kozlowski 2431d2104f2SKrzysztof Kozlowski unevaluatedProperties: false 2441d2104f2SKrzysztof Kozlowski 2451d2104f2SKrzysztof Kozlowskirequired: 2461d2104f2SKrzysztof Kozlowski - compatible 2471d2104f2SKrzysztof Kozlowski - max8997,pmic-buck1-dvs-voltage 2481d2104f2SKrzysztof Kozlowski - max8997,pmic-buck2-dvs-voltage 2491d2104f2SKrzysztof Kozlowski - max8997,pmic-buck5-dvs-voltage 2501d2104f2SKrzysztof Kozlowski - reg 2511d2104f2SKrzysztof Kozlowski - regulators 2521d2104f2SKrzysztof Kozlowski 2531d2104f2SKrzysztof Kozlowskidependencies: 2541d2104f2SKrzysztof Kozlowski max8997,pmic-buck1-uses-gpio-dvs: [ 'max8997,pmic-buck125-dvs-gpios' ] 2551d2104f2SKrzysztof Kozlowski max8997,pmic-buck2-uses-gpio-dvs: [ 'max8997,pmic-buck125-dvs-gpios' ] 2561d2104f2SKrzysztof Kozlowski max8997,pmic-buck5-uses-gpio-dvs: [ 'max8997,pmic-buck125-dvs-gpios' ] 2571d2104f2SKrzysztof Kozlowski 2581d2104f2SKrzysztof KozlowskiadditionalProperties: false 2591d2104f2SKrzysztof Kozlowski 2601d2104f2SKrzysztof Kozlowskiif: 2611d2104f2SKrzysztof Kozlowski anyOf: 2621d2104f2SKrzysztof Kozlowski - required: 2631d2104f2SKrzysztof Kozlowski - max8997,pmic-buck1-uses-gpio-dvs 2641d2104f2SKrzysztof Kozlowski - required: 2651d2104f2SKrzysztof Kozlowski - max8997,pmic-buck2-uses-gpio-dvs 2661d2104f2SKrzysztof Kozlowski - required: 2671d2104f2SKrzysztof Kozlowski - max8997,pmic-buck5-uses-gpio-dvs 2681d2104f2SKrzysztof Kozlowskithen: 2691d2104f2SKrzysztof Kozlowski properties: 2701d2104f2SKrzysztof Kozlowski max8997,pmic-buck1-dvs-voltage: 2711d2104f2SKrzysztof Kozlowski minItems: 8 2721d2104f2SKrzysztof Kozlowski maxItems: 8 2731d2104f2SKrzysztof Kozlowski max8997,pmic-buck2-dvs-voltage: 2741d2104f2SKrzysztof Kozlowski minItems: 8 2751d2104f2SKrzysztof Kozlowski maxItems: 8 2761d2104f2SKrzysztof Kozlowski max8997,pmic-buck5-dvs-voltage: 2771d2104f2SKrzysztof Kozlowski minItems: 8 2781d2104f2SKrzysztof Kozlowski maxItems: 8 2791d2104f2SKrzysztof Kozlowski 2801d2104f2SKrzysztof Kozlowskiexamples: 2811d2104f2SKrzysztof Kozlowski - | 2821d2104f2SKrzysztof Kozlowski #include <dt-bindings/gpio/gpio.h> 2831d2104f2SKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/irq.h> 2841d2104f2SKrzysztof Kozlowski 2851d2104f2SKrzysztof Kozlowski i2c { 2861d2104f2SKrzysztof Kozlowski #address-cells = <1>; 2871d2104f2SKrzysztof Kozlowski #size-cells = <0>; 2881d2104f2SKrzysztof Kozlowski 2891d2104f2SKrzysztof Kozlowski pmic@66 { 2901d2104f2SKrzysztof Kozlowski compatible = "maxim,max8997-pmic"; 2911d2104f2SKrzysztof Kozlowski reg = <0x66>; 2921d2104f2SKrzysztof Kozlowski 2931d2104f2SKrzysztof Kozlowski interrupts-extended = <&gpx0 7 IRQ_TYPE_LEVEL_LOW>, 2941d2104f2SKrzysztof Kozlowski <&gpx2 3 IRQ_TYPE_EDGE_FALLING>; 2951d2104f2SKrzysztof Kozlowski 2961d2104f2SKrzysztof Kozlowski max8997,pmic-buck1-uses-gpio-dvs; 2971d2104f2SKrzysztof Kozlowski max8997,pmic-buck2-uses-gpio-dvs; 2981d2104f2SKrzysztof Kozlowski max8997,pmic-buck5-uses-gpio-dvs; 2991d2104f2SKrzysztof Kozlowski 3001d2104f2SKrzysztof Kozlowski max8997,pmic-ignore-gpiodvs-side-effect; 3011d2104f2SKrzysztof Kozlowski max8997,pmic-buck125-default-dvs-idx = <0>; 3021d2104f2SKrzysztof Kozlowski 3031d2104f2SKrzysztof Kozlowski max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>, 3041d2104f2SKrzysztof Kozlowski <&gpx0 6 GPIO_ACTIVE_HIGH>, 3051d2104f2SKrzysztof Kozlowski <&gpl0 0 GPIO_ACTIVE_HIGH>; 3061d2104f2SKrzysztof Kozlowski 3071d2104f2SKrzysztof Kozlowski max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>, 3081d2104f2SKrzysztof Kozlowski <1250000>, <1200000>, 3091d2104f2SKrzysztof Kozlowski <1150000>, <1100000>, 3101d2104f2SKrzysztof Kozlowski <1000000>, <950000>; 3111d2104f2SKrzysztof Kozlowski 3121d2104f2SKrzysztof Kozlowski max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>, 3131d2104f2SKrzysztof Kozlowski <950000>, <900000>, 3141d2104f2SKrzysztof Kozlowski <1100000>, <1000000>, 3151d2104f2SKrzysztof Kozlowski <950000>, <900000>; 3161d2104f2SKrzysztof Kozlowski 3171d2104f2SKrzysztof Kozlowski max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>, 3181d2104f2SKrzysztof Kozlowski <1200000>, <1200000>, 3191d2104f2SKrzysztof Kozlowski <1200000>, <1200000>, 3201d2104f2SKrzysztof Kozlowski <1200000>, <1200000>; 3211d2104f2SKrzysztof Kozlowski 3221d2104f2SKrzysztof Kozlowski pinctrl-0 = <&max8997_irq>, <&otg_gp>, <&usb_sel>; 3231d2104f2SKrzysztof Kozlowski pinctrl-names = "default"; 3241d2104f2SKrzysztof Kozlowski 3251d2104f2SKrzysztof Kozlowski charger-supply = <&charger_reg>; 3261d2104f2SKrzysztof Kozlowski 3271d2104f2SKrzysztof Kozlowski regulators { 3281d2104f2SKrzysztof Kozlowski LDO1 { 3291d2104f2SKrzysztof Kozlowski regulator-name = "VADC_3.3V_C210"; 3301d2104f2SKrzysztof Kozlowski regulator-min-microvolt = <3300000>; 3311d2104f2SKrzysztof Kozlowski regulator-max-microvolt = <3300000>; 3321d2104f2SKrzysztof Kozlowski regulator-always-on; 3331d2104f2SKrzysztof Kozlowski }; 3341d2104f2SKrzysztof Kozlowski 3351d2104f2SKrzysztof Kozlowski LDO2 { 3361d2104f2SKrzysztof Kozlowski regulator-name = "VALIVE_1.1V_C210"; 3371d2104f2SKrzysztof Kozlowski regulator-min-microvolt = <1100000>; 3381d2104f2SKrzysztof Kozlowski regulator-max-microvolt = <1100000>; 3391d2104f2SKrzysztof Kozlowski regulator-always-on; 3401d2104f2SKrzysztof Kozlowski }; 3411d2104f2SKrzysztof Kozlowski 3421d2104f2SKrzysztof Kozlowski BUCK1 { 3431d2104f2SKrzysztof Kozlowski regulator-name = "VARM_1.2V_C210"; 3441d2104f2SKrzysztof Kozlowski regulator-min-microvolt = <65000>; 3451d2104f2SKrzysztof Kozlowski regulator-max-microvolt = <2225000>; 3461d2104f2SKrzysztof Kozlowski regulator-always-on; 3471d2104f2SKrzysztof Kozlowski }; 3481d2104f2SKrzysztof Kozlowski 3491d2104f2SKrzysztof Kozlowski // ... 3501d2104f2SKrzysztof Kozlowski 3511d2104f2SKrzysztof Kozlowski BUCK7 { 3521d2104f2SKrzysztof Kozlowski regulator-name = "VCC_SUB_2.0V"; 3531d2104f2SKrzysztof Kozlowski regulator-min-microvolt = <2000000>; 3541d2104f2SKrzysztof Kozlowski regulator-max-microvolt = <2000000>; 3551d2104f2SKrzysztof Kozlowski regulator-always-on; 3561d2104f2SKrzysztof Kozlowski }; 3571d2104f2SKrzysztof Kozlowski 3581d2104f2SKrzysztof Kozlowski ESAFEOUT1 { 3591d2104f2SKrzysztof Kozlowski regulator-name = "SAFEOUT1"; 3601d2104f2SKrzysztof Kozlowski }; 3611d2104f2SKrzysztof Kozlowski 3621d2104f2SKrzysztof Kozlowski ESAFEOUT2 { 3631d2104f2SKrzysztof Kozlowski regulator-name = "SAFEOUT2"; 3641d2104f2SKrzysztof Kozlowski regulator-boot-on; 3651d2104f2SKrzysztof Kozlowski }; 3661d2104f2SKrzysztof Kozlowski 3671d2104f2SKrzysztof Kozlowski EN32KHZ_AP { 3681d2104f2SKrzysztof Kozlowski regulator-name = "EN32KHZ_AP"; 3691d2104f2SKrzysztof Kozlowski regulator-always-on; 3701d2104f2SKrzysztof Kozlowski }; 3711d2104f2SKrzysztof Kozlowski 3721d2104f2SKrzysztof Kozlowski EN32KHZ_CP { 3731d2104f2SKrzysztof Kozlowski regulator-name = "EN32KHZ_CP"; 3741d2104f2SKrzysztof Kozlowski regulator-always-on; 3751d2104f2SKrzysztof Kozlowski }; 3761d2104f2SKrzysztof Kozlowski 3771d2104f2SKrzysztof Kozlowski CHARGER { 3781d2104f2SKrzysztof Kozlowski regulator-name = "CHARGER"; 3791d2104f2SKrzysztof Kozlowski regulator-min-microamp = <200000>; 3801d2104f2SKrzysztof Kozlowski regulator-max-microamp = <950000>; 3811d2104f2SKrzysztof Kozlowski }; 3821d2104f2SKrzysztof Kozlowski 3831d2104f2SKrzysztof Kozlowski CHARGER_CV { 3841d2104f2SKrzysztof Kozlowski regulator-name = "CHARGER_CV"; 3851d2104f2SKrzysztof Kozlowski regulator-min-microvolt = <4200000>; 3861d2104f2SKrzysztof Kozlowski regulator-max-microvolt = <4200000>; 3871d2104f2SKrzysztof Kozlowski regulator-always-on; 3881d2104f2SKrzysztof Kozlowski }; 3891d2104f2SKrzysztof Kozlowski 3901d2104f2SKrzysztof Kozlowski CHARGER_TOPOFF { 3911d2104f2SKrzysztof Kozlowski regulator-name = "CHARGER_TOPOFF"; 3921d2104f2SKrzysztof Kozlowski regulator-min-microamp = <200000>; 3931d2104f2SKrzysztof Kozlowski regulator-max-microamp = <200000>; 3941d2104f2SKrzysztof Kozlowski regulator-always-on; 3951d2104f2SKrzysztof Kozlowski }; 3961d2104f2SKrzysztof Kozlowski }; 3971d2104f2SKrzysztof Kozlowski }; 3981d2104f2SKrzysztof Kozlowski }; 3991d2104f2SKrzysztof Kozlowski 4001d2104f2SKrzysztof Kozlowski - | 4011d2104f2SKrzysztof Kozlowski #include <dt-bindings/interrupt-controller/irq.h> 4021d2104f2SKrzysztof Kozlowski 4031d2104f2SKrzysztof Kozlowski i2c { 4041d2104f2SKrzysztof Kozlowski #address-cells = <1>; 4051d2104f2SKrzysztof Kozlowski #size-cells = <0>; 4061d2104f2SKrzysztof Kozlowski 4071d2104f2SKrzysztof Kozlowski pmic@66 { 4081d2104f2SKrzysztof Kozlowski compatible = "maxim,max8997-pmic"; 4091d2104f2SKrzysztof Kozlowski reg = <0x66>; 4101d2104f2SKrzysztof Kozlowski 4111d2104f2SKrzysztof Kozlowski interrupt-parent = <&gpx0>; 4121d2104f2SKrzysztof Kozlowski interrupts = <4 IRQ_TYPE_LEVEL_LOW>, 4131d2104f2SKrzysztof Kozlowski <3 IRQ_TYPE_EDGE_FALLING>; 4141d2104f2SKrzysztof Kozlowski pinctrl-names = "default"; 4151d2104f2SKrzysztof Kozlowski pinctrl-0 = <&max8997_irq>; 4161d2104f2SKrzysztof Kozlowski 4171d2104f2SKrzysztof Kozlowski max8997,pmic-buck1-dvs-voltage = <1350000>; 4181d2104f2SKrzysztof Kozlowski max8997,pmic-buck2-dvs-voltage = <1100000>; 4191d2104f2SKrzysztof Kozlowski max8997,pmic-buck5-dvs-voltage = <1200000>; 4201d2104f2SKrzysztof Kozlowski 4211d2104f2SKrzysztof Kozlowski regulators { 4221d2104f2SKrzysztof Kozlowski LDO1 { 4231d2104f2SKrzysztof Kozlowski regulator-name = "VDD_ABB_3.3V"; 4241d2104f2SKrzysztof Kozlowski regulator-min-microvolt = <3300000>; 4251d2104f2SKrzysztof Kozlowski regulator-max-microvolt = <3300000>; 4261d2104f2SKrzysztof Kozlowski }; 4271d2104f2SKrzysztof Kozlowski 4281d2104f2SKrzysztof Kozlowski // ... 4291d2104f2SKrzysztof Kozlowski 4301d2104f2SKrzysztof Kozlowski BUCK1 { 4311d2104f2SKrzysztof Kozlowski regulator-name = "VDD_ARM_1.2V"; 4321d2104f2SKrzysztof Kozlowski regulator-min-microvolt = <950000>; 4331d2104f2SKrzysztof Kozlowski regulator-max-microvolt = <1350000>; 4341d2104f2SKrzysztof Kozlowski regulator-always-on; 4351d2104f2SKrzysztof Kozlowski regulator-boot-on; 4361d2104f2SKrzysztof Kozlowski }; 4371d2104f2SKrzysztof Kozlowski 4381d2104f2SKrzysztof Kozlowski // ... 4391d2104f2SKrzysztof Kozlowski 4401d2104f2SKrzysztof Kozlowski EN32KHZ_AP { 4411d2104f2SKrzysztof Kozlowski regulator-name = "EN32KHZ_AP"; 4421d2104f2SKrzysztof Kozlowski regulator-always-on; 4431d2104f2SKrzysztof Kozlowski }; 4441d2104f2SKrzysztof Kozlowski }; 4451d2104f2SKrzysztof Kozlowski }; 4461d2104f2SKrzysztof Kozlowski }; 447