0001 # SPDX-License-Identifier: GPL-2.0-only
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/maxim,max14577.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Maxim MAX14577/MAX77836 MicroUSB and Companion Power Management IC
0008
0009 maintainers:
0010 - Krzysztof Kozlowski <krzk@kernel.org>
0011
0012 description: |
0013 This is a part of device tree bindings for Maxim MAX14577/MAX77836 MicroUSB
0014 Integrated Circuit (MUIC).
0015
0016 The Maxim MAX14577 is a MicroUSB and Companion Power Management IC which
0017 includes voltage safeout regulators, charger and MicroUSB management IC.
0018
0019 The Maxim MAX77836 is a MicroUSB and Companion Power Management IC which
0020 includes voltage safeout and LDO regulators, charger, fuel-gauge and MicroUSB
0021 management IC.
0022
0023 properties:
0024 compatible:
0025 enum:
0026 - maxim,max14577
0027 - maxim,max77836
0028
0029 interrupts:
0030 maxItems: 1
0031
0032 reg:
0033 maxItems: 1
0034
0035 wakeup-source: true
0036
0037 charger:
0038 $ref: /schemas/power/supply/maxim,max14577.yaml
0039
0040 extcon:
0041 type: object
0042 properties:
0043 compatible:
0044 enum:
0045 - maxim,max14577-muic
0046 - maxim,max77836-muic
0047
0048 required:
0049 - compatible
0050
0051 regulators:
0052 $ref: /schemas/regulator/maxim,max14577.yaml
0053
0054 required:
0055 - compatible
0056 - interrupts
0057 - reg
0058 - charger
0059
0060 allOf:
0061 - if:
0062 properties:
0063 compatible:
0064 contains:
0065 const: maxim,max14577
0066 then:
0067 properties:
0068 charger:
0069 properties:
0070 compatible:
0071 const: maxim,max14577-charger
0072 extcon:
0073 properties:
0074 compatible:
0075 const: maxim,max14577-muic
0076 regulator:
0077 properties:
0078 compatible:
0079 const: maxim,max14577-regulator
0080 else:
0081 properties:
0082 charger:
0083 properties:
0084 compatible:
0085 const: maxim,max77836-charger
0086 extcon:
0087 properties:
0088 compatible:
0089 const: maxim,max77836-muic
0090 regulator:
0091 properties:
0092 compatible:
0093 const: maxim,max77836-regulator
0094
0095 additionalProperties: false
0096
0097 examples:
0098 - |
0099 #include <dt-bindings/interrupt-controller/irq.h>
0100
0101 i2c {
0102 #address-cells = <1>;
0103 #size-cells = <0>;
0104
0105 pmic@25 {
0106 compatible = "maxim,max14577";
0107 reg = <0x25>;
0108 interrupt-parent = <&gpx1>;
0109 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
0110
0111 extcon {
0112 compatible = "maxim,max14577-muic";
0113 };
0114
0115 regulators {
0116 compatible = "maxim,max14577-regulator";
0117
0118 SAFEOUT {
0119 regulator-name = "SAFEOUT";
0120 };
0121
0122 CHARGER {
0123 regulator-name = "CHARGER";
0124 regulator-min-microamp = <90000>;
0125 regulator-max-microamp = <950000>;
0126 regulator-boot-on;
0127 };
0128 };
0129
0130 charger {
0131 compatible = "maxim,max14577-charger";
0132
0133 maxim,constant-uvolt = <4350000>;
0134 maxim,fast-charge-uamp = <450000>;
0135 maxim,eoc-uamp = <50000>;
0136 maxim,ovp-uvolt = <6500000>;
0137 };
0138 };
0139 };
0140
0141 - |
0142 #include <dt-bindings/interrupt-controller/irq.h>
0143
0144 i2c {
0145 #address-cells = <1>;
0146 #size-cells = <0>;
0147
0148 pmic@25 {
0149 compatible = "maxim,max77836";
0150 interrupt-parent = <&gpx1>;
0151 interrupts = <5 IRQ_TYPE_NONE>;
0152 reg = <0x25>;
0153 wakeup-source;
0154
0155 extcon {
0156 compatible = "maxim,max77836-muic";
0157 };
0158
0159 regulators {
0160 compatible = "maxim,max77836-regulator";
0161
0162 SAFEOUT {
0163 regulator-name = "SAFEOUT";
0164 };
0165
0166 CHARGER {
0167 regulator-name = "CHARGER";
0168 regulator-min-microamp = <45000>;
0169 regulator-max-microamp = <475000>;
0170 regulator-boot-on;
0171 };
0172
0173 LDO1 {
0174 regulator-name = "MOT_2.7V";
0175 regulator-min-microvolt = <1100000>;
0176 regulator-max-microvolt = <2700000>;
0177 };
0178
0179 LDO2 {
0180 regulator-name = "UNUSED_LDO2";
0181 regulator-min-microvolt = <800000>;
0182 regulator-max-microvolt = <3950000>;
0183 };
0184 };
0185
0186 charger {
0187 compatible = "maxim,max77836-charger";
0188
0189 maxim,constant-uvolt = <4350000>;
0190 maxim,fast-charge-uamp = <225000>;
0191 maxim,eoc-uamp = <7500>;
0192 maxim,ovp-uvolt = <6500000>;
0193 };
0194 };
0195 };