xref: /openbmc/linux/Documentation/devicetree/bindings/mfd/maxim,max77693.yaml (revision 789c9ce9b46facdf405572b4d0387ed67a49a97f)
1b38213c6SKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only
2b38213c6SKrzysztof Kozlowski%YAML 1.2
3b38213c6SKrzysztof Kozlowski---
4b38213c6SKrzysztof Kozlowski$id: http://devicetree.org/schemas/mfd/maxim,max77693.yaml#
5b38213c6SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6b38213c6SKrzysztof Kozlowski
7b38213c6SKrzysztof Kozlowskititle: Maxim MAX77693 MicroUSB and Companion Power Management IC
8b38213c6SKrzysztof Kozlowski
9b38213c6SKrzysztof Kozlowskimaintainers:
10b38213c6SKrzysztof Kozlowski  - Chanwoo Choi <cw00.choi@samsung.com>
118a1e6bb3SKrzysztof Kozlowski  - Krzysztof Kozlowski <krzk@kernel.org>
12b38213c6SKrzysztof Kozlowski
13b38213c6SKrzysztof Kozlowskidescription: |
14b38213c6SKrzysztof Kozlowski  This is a part of device tree bindings for Maxim MAX77693 MicroUSB
15b38213c6SKrzysztof Kozlowski  Integrated Circuit (MUIC).
16b38213c6SKrzysztof Kozlowski
17b38213c6SKrzysztof Kozlowski  The Maxim MAX77693 is a MicroUSB and Companion Power Management IC which
18b38213c6SKrzysztof Kozlowski  includes voltage current regulators, charger, LED/flash, haptic motor driver
19b38213c6SKrzysztof Kozlowski  and MicroUSB management IC.
20b38213c6SKrzysztof Kozlowski
21b38213c6SKrzysztof Kozlowskiproperties:
22b38213c6SKrzysztof Kozlowski  compatible:
23b38213c6SKrzysztof Kozlowski    const: maxim,max77693
24b38213c6SKrzysztof Kozlowski
25b38213c6SKrzysztof Kozlowski  interrupts:
26b38213c6SKrzysztof Kozlowski    maxItems: 1
27b38213c6SKrzysztof Kozlowski
28b38213c6SKrzysztof Kozlowski  reg:
29b38213c6SKrzysztof Kozlowski    maxItems: 1
30b38213c6SKrzysztof Kozlowski
31b38213c6SKrzysztof Kozlowski  charger:
32b38213c6SKrzysztof Kozlowski    $ref: /schemas/power/supply/maxim,max77693.yaml
33b38213c6SKrzysztof Kozlowski
34da7ee30aSKrzysztof Kozlowski  connector:
35da7ee30aSKrzysztof Kozlowski    $ref: /schemas/connector/usb-connector.yaml#
36da7ee30aSKrzysztof Kozlowski    unevaluatedProperties: false
37da7ee30aSKrzysztof Kozlowski
38b38213c6SKrzysztof Kozlowski  led:
39b38213c6SKrzysztof Kozlowski    $ref: /schemas/leds/maxim,max77693.yaml
40b38213c6SKrzysztof Kozlowski
41b38213c6SKrzysztof Kozlowski  max77693-muic:
42b38213c6SKrzysztof Kozlowski    type: object
43b38213c6SKrzysztof Kozlowski    additionalProperties: false
44*789c9ce9SKrzysztof Kozlowski    deprecated: true
45b38213c6SKrzysztof Kozlowski
46b38213c6SKrzysztof Kozlowski    properties:
47b38213c6SKrzysztof Kozlowski      compatible:
48b38213c6SKrzysztof Kozlowski        const: maxim,max77693-muic
49b38213c6SKrzysztof Kozlowski
50b38213c6SKrzysztof Kozlowski    required:
51b38213c6SKrzysztof Kozlowski      - compatible
52b38213c6SKrzysztof Kozlowski
53*789c9ce9SKrzysztof Kozlowski  muic:
54*789c9ce9SKrzysztof Kozlowski    type: object
55*789c9ce9SKrzysztof Kozlowski    additionalProperties: false
56*789c9ce9SKrzysztof Kozlowski
57*789c9ce9SKrzysztof Kozlowski    properties:
58*789c9ce9SKrzysztof Kozlowski      compatible:
59*789c9ce9SKrzysztof Kozlowski        const: maxim,max77693-muic
60*789c9ce9SKrzysztof Kozlowski
61*789c9ce9SKrzysztof Kozlowski      connector:
62*789c9ce9SKrzysztof Kozlowski        $ref: /schemas/connector/usb-connector.yaml#
63*789c9ce9SKrzysztof Kozlowski        unevaluatedProperties: false
64*789c9ce9SKrzysztof Kozlowski
65*789c9ce9SKrzysztof Kozlowski    required:
66*789c9ce9SKrzysztof Kozlowski      - compatible
67*789c9ce9SKrzysztof Kozlowski
68b38213c6SKrzysztof Kozlowski  motor-driver:
69b38213c6SKrzysztof Kozlowski    type: object
70b38213c6SKrzysztof Kozlowski    additionalProperties: false
71b38213c6SKrzysztof Kozlowski
72b38213c6SKrzysztof Kozlowski    properties:
73b38213c6SKrzysztof Kozlowski      compatible:
74b38213c6SKrzysztof Kozlowski        const: maxim,max77693-haptic
75b38213c6SKrzysztof Kozlowski
76b38213c6SKrzysztof Kozlowski      haptic-supply:
77b38213c6SKrzysztof Kozlowski        description: Power supply to the haptic motor
78b38213c6SKrzysztof Kozlowski
79b38213c6SKrzysztof Kozlowski      pwms:
80b38213c6SKrzysztof Kozlowski        maxItems: 1
81b38213c6SKrzysztof Kozlowski
82b38213c6SKrzysztof Kozlowski    required:
83b38213c6SKrzysztof Kozlowski      - compatible
84b38213c6SKrzysztof Kozlowski      - haptic-supply
85b38213c6SKrzysztof Kozlowski      - pwms
86b38213c6SKrzysztof Kozlowski
87b38213c6SKrzysztof Kozlowski  regulators:
88b38213c6SKrzysztof Kozlowski    $ref: ../regulator/maxim,max77693.yaml
89b38213c6SKrzysztof Kozlowski    description:
90b38213c6SKrzysztof Kozlowski      List of child nodes that specify the regulators.
91b38213c6SKrzysztof Kozlowski
92b38213c6SKrzysztof Kozlowskirequired:
93b38213c6SKrzysztof Kozlowski  - compatible
94b38213c6SKrzysztof Kozlowski  - interrupts
95b38213c6SKrzysztof Kozlowski  - reg
96b38213c6SKrzysztof Kozlowski
97b38213c6SKrzysztof KozlowskiadditionalProperties: false
98b38213c6SKrzysztof Kozlowski
99b38213c6SKrzysztof Kozlowskiexamples:
100b38213c6SKrzysztof Kozlowski  - |
101b38213c6SKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/irq.h>
102b38213c6SKrzysztof Kozlowski    #include <dt-bindings/leds/common.h>
103b38213c6SKrzysztof Kozlowski
104b38213c6SKrzysztof Kozlowski    i2c {
105b38213c6SKrzysztof Kozlowski        #address-cells = <1>;
106b38213c6SKrzysztof Kozlowski        #size-cells = <0>;
107b38213c6SKrzysztof Kozlowski
108b38213c6SKrzysztof Kozlowski        pmic@66 {
109b38213c6SKrzysztof Kozlowski            compatible = "maxim,max77693";
110b38213c6SKrzysztof Kozlowski            reg = <0x66>;
111b38213c6SKrzysztof Kozlowski            interrupt-parent = <&gpx1>;
112b38213c6SKrzysztof Kozlowski            interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
113b38213c6SKrzysztof Kozlowski
114b38213c6SKrzysztof Kozlowski            regulators {
115b38213c6SKrzysztof Kozlowski                ESAFEOUT1 {
116b38213c6SKrzysztof Kozlowski                    regulator-name = "ESAFEOUT1";
117b38213c6SKrzysztof Kozlowski                };
118b38213c6SKrzysztof Kozlowski
119b38213c6SKrzysztof Kozlowski                ESAFEOUT2 {
120b38213c6SKrzysztof Kozlowski                    regulator-name = "ESAFEOUT2";
121b38213c6SKrzysztof Kozlowski                };
122b38213c6SKrzysztof Kozlowski
123b38213c6SKrzysztof Kozlowski                CHARGER {
124b38213c6SKrzysztof Kozlowski                    regulator-name = "CHARGER";
125b38213c6SKrzysztof Kozlowski                    regulator-min-microamp = <60000>;
126b38213c6SKrzysztof Kozlowski                    regulator-max-microamp = <2580000>;
127b38213c6SKrzysztof Kozlowski                };
128b38213c6SKrzysztof Kozlowski            };
129b38213c6SKrzysztof Kozlowski
130*789c9ce9SKrzysztof Kozlowski            muic {
131*789c9ce9SKrzysztof Kozlowski                compatible = "maxim,max77693-muic";
132*789c9ce9SKrzysztof Kozlowski
133*789c9ce9SKrzysztof Kozlowski                connector {
134*789c9ce9SKrzysztof Kozlowski                    compatible = "samsung,usb-connector-11pin",
135*789c9ce9SKrzysztof Kozlowski                                 "usb-b-connector";
136*789c9ce9SKrzysztof Kozlowski                    label = "micro-USB";
137*789c9ce9SKrzysztof Kozlowski                    type = "micro";
138*789c9ce9SKrzysztof Kozlowski
139*789c9ce9SKrzysztof Kozlowski                    ports {
140*789c9ce9SKrzysztof Kozlowski                        #address-cells = <1>;
141*789c9ce9SKrzysztof Kozlowski                        #size-cells = <0>;
142*789c9ce9SKrzysztof Kozlowski
143*789c9ce9SKrzysztof Kozlowski                        port@0 {
144*789c9ce9SKrzysztof Kozlowski                            reg = <0>;
145*789c9ce9SKrzysztof Kozlowski
146*789c9ce9SKrzysztof Kozlowski                            muic_to_usb: endpoint {
147*789c9ce9SKrzysztof Kozlowski                                remote-endpoint = <&usb_to_muic>;
148*789c9ce9SKrzysztof Kozlowski                            };
149*789c9ce9SKrzysztof Kozlowski                        };
150*789c9ce9SKrzysztof Kozlowski
151*789c9ce9SKrzysztof Kozlowski                        port@3 {
152*789c9ce9SKrzysztof Kozlowski                            reg = <3>;
153*789c9ce9SKrzysztof Kozlowski
154*789c9ce9SKrzysztof Kozlowski                            muic_to_mhl: endpoint {
155*789c9ce9SKrzysztof Kozlowski                                remote-endpoint = <&mhl_to_muic>;
156*789c9ce9SKrzysztof Kozlowski                            };
157*789c9ce9SKrzysztof Kozlowski                        };
158*789c9ce9SKrzysztof Kozlowski                    };
159*789c9ce9SKrzysztof Kozlowski                };
160*789c9ce9SKrzysztof Kozlowski            };
161*789c9ce9SKrzysztof Kozlowski
162b38213c6SKrzysztof Kozlowski            motor-driver {
163b38213c6SKrzysztof Kozlowski                compatible = "maxim,max77693-haptic";
164b38213c6SKrzysztof Kozlowski                haptic-supply = <&ldo26_reg>;
165b38213c6SKrzysztof Kozlowski                pwms = <&pwm 0 38022 0>;
166b38213c6SKrzysztof Kozlowski            };
167b38213c6SKrzysztof Kozlowski
168b38213c6SKrzysztof Kozlowski            charger {
169b38213c6SKrzysztof Kozlowski                compatible = "maxim,max77693-charger";
170b38213c6SKrzysztof Kozlowski
171b38213c6SKrzysztof Kozlowski                maxim,constant-microvolt = <4350000>;
172b38213c6SKrzysztof Kozlowski                maxim,min-system-microvolt = <3600000>;
173b38213c6SKrzysztof Kozlowski                maxim,thermal-regulation-celsius = <100>;
174b38213c6SKrzysztof Kozlowski                maxim,battery-overcurrent-microamp = <3500000>;
175b38213c6SKrzysztof Kozlowski                maxim,charge-input-threshold-microvolt = <4300000>;
176b38213c6SKrzysztof Kozlowski            };
177b38213c6SKrzysztof Kozlowski
178b38213c6SKrzysztof Kozlowski            led {
179b38213c6SKrzysztof Kozlowski                compatible = "maxim,max77693-led";
180b38213c6SKrzysztof Kozlowski                maxim,boost-mode = <LEDS_BOOST_FIXED>;
181b38213c6SKrzysztof Kozlowski                maxim,boost-mvout = <5000>;
182b38213c6SKrzysztof Kozlowski                maxim,mvsys-min = <2400>;
183b38213c6SKrzysztof Kozlowski
184b38213c6SKrzysztof Kozlowski                flash-led {
185b38213c6SKrzysztof Kozlowski                    label = "max77693-flash";
186b38213c6SKrzysztof Kozlowski                    function = LED_FUNCTION_FLASH;
187b38213c6SKrzysztof Kozlowski                    color = <LED_COLOR_ID_WHITE>;
188b38213c6SKrzysztof Kozlowski                    led-sources = <0>, <1>;
189b38213c6SKrzysztof Kozlowski                    led-max-microamp = <500000>;
190b38213c6SKrzysztof Kozlowski                    flash-max-microamp = <1250000>;
191b38213c6SKrzysztof Kozlowski                    flash-max-timeout-us = <1000000>;
192b38213c6SKrzysztof Kozlowski                };
193b38213c6SKrzysztof Kozlowski            };
194b38213c6SKrzysztof Kozlowski        };
195b38213c6SKrzysztof Kozlowski    };
196