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
39 Provides 9 channels for system monitoring, including VBUSDIV5 (lower
40 accuracy, higher measure range), VBUSDIV2 (higher accuracy, lower
41 measure range), VBAT, VSYS, CHG_VDDP, TS_BAT, IBUS, IBAT, and TEMP_JC.
45 const: mediatek,mt6370-adc
56 $ref: /schemas/leds/backlight/mediatek,mt6370-backlight.yaml#
60 $ref: /schemas/power/supply/mediatek,mt6370-charger.yaml#
64 $ref: /schemas/usb/mediatek,mt6370-tcpc.yaml#
68 $ref: /schemas/leds/mediatek,mt6370-indicator.yaml#
72 $ref: /schemas/leds/mediatek,mt6370-flashlight.yaml#
77 List all supported regulators, which support the control for DisplayBias
78 voltages and one general purpose LDO which commonly used to drive the
83 $ref: /schemas/regulator/regulator.yaml#
85 unevaluatedProperties: false
88 $ref: /schemas/regulator/regulator.yaml#
90 unevaluatedProperties: false
100 - interrupt-controller
110 additionalProperties: false
114 #include <dt-bindings/interrupt-controller/irq.h>
115 #include <dt-bindings/leds/common.h>
116 #include <dt-bindings/iio/adc/mediatek,mt6370_adc.h>
117 #include <dt-bindings/usb/pd.h>
119 #address-cells = <1>;
123 compatible = "mediatek,mt6370";
126 interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>;
127 interrupt-controller;
128 #interrupt-cells = <1>;
131 compatible = "mediatek,mt6370-adc";
132 #io-channel-cells = <1>;
136 compatible = "mediatek,mt6370-backlight";
137 mediatek,bled-channel-use = /bits/ 8 <15>;
141 compatible = "mediatek,mt6370-charger";
142 interrupts = <48>, <68>, <6>;
143 interrupt-names = "attach_i", "uvp_d_evt", "mivr";
144 io-channels = <&mt6370_adc MT6370_CHAN_IBUS>;
146 mt6370_otg_vbus: usb-otg-vbus-regulator {
147 regulator-name = "mt6370-usb-otg-vbus";
148 regulator-min-microvolt = <4350000>;
149 regulator-max-microvolt = <5800000>;
150 regulator-min-microamp = <500000>;
151 regulator-max-microamp = <3000000>;
156 compatible = "mediatek,mt6370-indicator";
157 #address-cells = <1>;
162 function = LED_FUNCTION_INDICATOR;
163 color = <LED_COLOR_ID_RGB>;
164 led-max-microamp = <24000>;
165 #address-cells = <1>;
169 color = <LED_COLOR_ID_RED>;
173 color = <LED_COLOR_ID_GREEN>;
177 color = <LED_COLOR_ID_BLUE>;
182 function = LED_FUNCTION_INDICATOR;
183 color = <LED_COLOR_ID_WHITE>;
184 led-max-microamp = <6000>;
189 compatible = "mediatek,mt6370-flashlight";
190 #address-cells = <1>;
195 function = LED_FUNCTION_FLASH;
196 color = <LED_COLOR_ID_WHITE>;
197 function-enumerator = <1>;
198 led-max-microamp = <200000>;
199 flash-max-microamp = <500000>;
200 flash-max-timeout-us = <1248000>;
205 function = LED_FUNCTION_FLASH;
206 color = <LED_COLOR_ID_WHITE>;
207 function-enumerator = <2>;
208 led-max-microamp = <200000>;
209 flash-max-microamp = <500000>;
210 flash-max-timeout-us = <1248000>;
215 compatible = "mediatek,mt6370-tcpc";
216 interrupts-extended = <&gpio26 4 IRQ_TYPE_LEVEL_LOW>;
219 compatible = "usb-c-connector";
221 vbus-supply = <&mt6370_otg_vbus>;
224 try-power-role = "sink";
225 source-pdos = <PDO_FIXED(5000, 1000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
226 sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
227 op-sink-microwatt = <10000000>;
230 #address-cells = <1>;
236 remote-endpoint = <&usb_hs>;
242 remote-endpoint = <&usb_ss>;
248 remote-endpoint = <&dp_aux>;
257 regulator-name = "mt6370-dsv-vbst";
258 regulator-min-microvolt = <4000000>;
259 regulator-max-microvolt = <6200000>;
262 regulator-name = "mt6370-dsv-vpos";
263 regulator-min-microvolt = <4000000>;
264 regulator-max-microvolt = <6000000>;
268 regulator-name = "mt6370-dsv-vneg";
269 regulator-min-microvolt = <4000000>;
270 regulator-max-microvolt = <6000000>;
274 regulator-name = "mt6370-vib-ldo";
275 regulator-min-microvolt = <1600000>;
276 regulator-max-microvolt = <4000000>;