1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mfd/mediatek,mt6360.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MT6360 PMIC from MediaTek Integrated
10 - Gene Chen <gene_chen@richtek.com>
13 MT6360 is a PMIC device with the following sub modules.
14 It is interfaced to host controller using I2C interface.
16 This document describes the binding for PMIC device and its sub module.
20 const: mediatek,mt6360
33 interrupt-controller: true
38 The first cell is the IRQ number.
41 $ref: /schemas/regulator/mt6360-regulator.yaml#
44 $ref: /schemas/power/supply/mt6360_charger.yaml#
47 $ref: /schemas/usb/mediatek,mt6360-tcpc.yaml#
50 $ref: /schemas/leds/leds-mt6360.yaml#
56 - interrupt-controller
64 #include <dt-bindings/interrupt-controller/irq.h>
65 #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
66 #include <dt-bindings/leds/common.h>
67 #include <dt-bindings/usb/pd.h>
73 compatible = "mediatek,mt6360";
76 interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
77 interrupt-names = "IRQB";
79 #interrupt-cells = <1>;
81 mt6360_charger: charger {
82 compatible = "mediatek,mt6360-chg";
83 richtek,vinovp-microvolt = <14500000>;
85 otg_vbus_regulator: usb-otg-vbus-regulator {
86 regulator-compatible = "usb-otg-vbus";
87 regulator-name = "usb-otg-vbus";
88 regulator-min-microvolt = <4425000>;
89 regulator-max-microvolt = <5825000>;
94 compatible = "mediatek,mt6360-led";
100 function = LED_FUNCTION_INDICATOR;
101 color = <LED_COLOR_ID_RGB>;
102 led-max-microamp = <24000>;
103 #address-cells = <1>;
107 color = <LED_COLOR_ID_RED>;
111 color = <LED_COLOR_ID_GREEN>;
115 color = <LED_COLOR_ID_BLUE>;
120 function = LED_FUNCTION_INDICATOR;
121 color = <LED_COLOR_ID_WHITE>;
122 led-max-microamp = <150000>;
126 function = LED_FUNCTION_FLASH;
127 color = <LED_COLOR_ID_WHITE>;
128 function-enumerator = <1>;
129 led-max-microamp = <200000>;
130 flash-max-microamp = <500000>;
131 flash-max-timeout-us = <1024000>;
135 function = LED_FUNCTION_FLASH;
136 color = <LED_COLOR_ID_WHITE>;
137 function-enumerator = <2>;
138 led-max-microamp = <200000>;
139 flash-max-microamp = <500000>;
140 flash-max-timeout-us = <1024000>;
145 compatible = "mediatek,mt6360-regulator";
146 LDO_VIN3-supply = <&BUCK2>;
148 regulator-compatible = "BUCK1";
149 regulator-name = "mt6360,buck1";
150 regulator-min-microvolt = <300000>;
151 regulator-max-microvolt = <1300000>;
152 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
157 regulator-compatible = "BUCK2";
158 regulator-name = "mt6360,buck2";
159 regulator-min-microvolt = <300000>;
160 regulator-max-microvolt = <1300000>;
161 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
166 regulator-compatible = "LDO6";
167 regulator-name = "mt6360,ldo6";
168 regulator-min-microvolt = <500000>;
169 regulator-max-microvolt = <2100000>;
170 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
174 regulator-compatible = "LDO7";
175 regulator-name = "mt6360,ldo7";
176 regulator-min-microvolt = <500000>;
177 regulator-max-microvolt = <2100000>;
178 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
182 regulator-compatible = "LDO1";
183 regulator-name = "mt6360,ldo1";
184 regulator-min-microvolt = <1200000>;
185 regulator-max-microvolt = <3600000>;
186 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
190 regulator-compatible = "LDO2";
191 regulator-name = "mt6360,ldo2";
192 regulator-min-microvolt = <1200000>;
193 regulator-max-microvolt = <3600000>;
194 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
198 regulator-compatible = "LDO3";
199 regulator-name = "mt6360,ldo3";
200 regulator-min-microvolt = <1200000>;
201 regulator-max-microvolt = <3600000>;
202 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
206 regulator-compatible = "LDO5";
207 regulator-name = "mt6360,ldo5";
208 regulator-min-microvolt = <2700000>;
209 regulator-max-microvolt = <3600000>;
210 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
216 compatible = "mediatek,mt6360-tcpc";
217 interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>;
218 interrupt-names = "PD_IRQB";
221 compatible = "usb-c-connector";
225 try-power-role = "sink";
226 source-pdos = <PDO_FIXED(5000, 1000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
227 sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
228 op-sink-microwatt = <10000000>;
231 #address-cells = <1>;
237 remote-endpoint = <&usb_hs>;
243 remote-endpoint = <&usb_ss>;
249 remote-endpoint = <&dp_aux>;