1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mfd/mediatek,mt6370.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek MT6370 SubPMIC
10 - ChiYuan Huang <cy_huang@richtek.com>
13 MT6370 is a highly-integrated smart power management IC, which includes a
14 single cell Li-Ion/Li-Polymer switching battery charger, a USB Type-C &
15 Power Delivery (PD) controller, dual flash LED current sources, a RGB LED
16 driver, a backlight WLED driver, a display bias driver and a general LDO for
21 const: mediatek,mt6370
31 interrupt-controller: true
38 additionalProperties: false
40 Provides 9 channels for system monitoring, including VBUSDIV5 (lower
41 accuracy, higher measure range), VBUSDIV2 (higher accuracy, lower
42 measure range), VBAT, VSYS, CHG_VDDP, TS_BAT, IBUS, IBAT, and TEMP_JC.
46 const: mediatek,mt6370-adc
57 $ref: /schemas/leds/backlight/mediatek,mt6370-backlight.yaml#
61 $ref: /schemas/power/supply/mediatek,mt6370-charger.yaml#
65 $ref: /schemas/usb/mediatek,mt6370-tcpc.yaml#
69 $ref: /schemas/leds/mediatek,mt6370-indicator.yaml#
73 $ref: /schemas/leds/mediatek,mt6370-flashlight.yaml#
77 additionalProperties: false
79 List all supported regulators, which support the control for DisplayBias
80 voltages and one general purpose LDO which commonly used to drive the
85 $ref: /schemas/regulator/regulator.yaml#
87 unevaluatedProperties: false
90 $ref: /schemas/regulator/regulator.yaml#
92 unevaluatedProperties: false
102 - interrupt-controller
112 additionalProperties: false
116 #include <dt-bindings/interrupt-controller/irq.h>
117 #include <dt-bindings/leds/common.h>
118 #include <dt-bindings/iio/adc/mediatek,mt6370_adc.h>
119 #include <dt-bindings/usb/pd.h>
121 #address-cells = <1>;
125 compatible = "mediatek,mt6370";
128 interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>;
129 interrupt-controller;
130 #interrupt-cells = <1>;
133 compatible = "mediatek,mt6370-adc";
134 #io-channel-cells = <1>;
138 compatible = "mediatek,mt6370-backlight";
139 mediatek,bled-channel-use = /bits/ 8 <15>;
143 compatible = "mediatek,mt6370-charger";
144 interrupts = <68>, <48>, <6>;
145 interrupt-names = "uvp_d_evt", "attach_i", "mivr";
146 io-channels = <&mt6370_adc MT6370_CHAN_IBUS>;
148 mt6370_otg_vbus: usb-otg-vbus-regulator {
149 regulator-name = "mt6370-usb-otg-vbus";
150 regulator-min-microvolt = <4350000>;
151 regulator-max-microvolt = <5800000>;
152 regulator-min-microamp = <500000>;
153 regulator-max-microamp = <3000000>;
158 compatible = "mediatek,mt6370-indicator";
159 #address-cells = <1>;
164 function = LED_FUNCTION_INDICATOR;
165 color = <LED_COLOR_ID_RGB>;
166 led-max-microamp = <24000>;
167 #address-cells = <1>;
171 color = <LED_COLOR_ID_RED>;
175 color = <LED_COLOR_ID_GREEN>;
179 color = <LED_COLOR_ID_BLUE>;
184 function = LED_FUNCTION_INDICATOR;
185 color = <LED_COLOR_ID_WHITE>;
186 led-max-microamp = <6000>;
191 compatible = "mediatek,mt6370-flashlight";
192 #address-cells = <1>;
197 function = LED_FUNCTION_FLASH;
198 color = <LED_COLOR_ID_WHITE>;
199 function-enumerator = <1>;
200 led-max-microamp = <200000>;
201 flash-max-microamp = <500000>;
202 flash-max-timeout-us = <1248000>;
207 function = LED_FUNCTION_FLASH;
208 color = <LED_COLOR_ID_WHITE>;
209 function-enumerator = <2>;
210 led-max-microamp = <200000>;
211 flash-max-microamp = <500000>;
212 flash-max-timeout-us = <1248000>;
217 compatible = "mediatek,mt6370-tcpc";
218 interrupts-extended = <&gpio26 4 IRQ_TYPE_LEVEL_LOW>;
221 compatible = "usb-c-connector";
223 vbus-supply = <&mt6370_otg_vbus>;
226 try-power-role = "sink";
227 source-pdos = <PDO_FIXED(5000, 1000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
228 sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
229 op-sink-microwatt = <10000000>;
232 #address-cells = <1>;
238 remote-endpoint = <&usb_hs>;
244 remote-endpoint = <&usb_ss>;
250 remote-endpoint = <&dp_aux>;
259 regulator-name = "mt6370-dsv-vbst";
260 regulator-min-microvolt = <4000000>;
261 regulator-max-microvolt = <6200000>;
264 regulator-name = "mt6370-dsv-vpos";
265 regulator-min-microvolt = <4000000>;
266 regulator-max-microvolt = <6000000>;
270 regulator-name = "mt6370-dsv-vneg";
271 regulator-min-microvolt = <4000000>;
272 regulator-max-microvolt = <6000000>;
276 regulator-name = "mt6370-vib-ldo";
277 regulator-min-microvolt = <1600000>;
278 regulator-max-microvolt = <4000000>;