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-name = "usb-otg-vbus";
87 regulator-min-microvolt = <4425000>;
88 regulator-max-microvolt = <5825000>;
93 compatible = "mediatek,mt6360-led";
99 function = LED_FUNCTION_INDICATOR;
100 color = <LED_COLOR_ID_RGB>;
101 led-max-microamp = <24000>;
102 #address-cells = <1>;
106 color = <LED_COLOR_ID_RED>;
110 color = <LED_COLOR_ID_GREEN>;
114 color = <LED_COLOR_ID_BLUE>;
119 function = LED_FUNCTION_INDICATOR;
120 color = <LED_COLOR_ID_WHITE>;
121 led-max-microamp = <150000>;
125 function = LED_FUNCTION_FLASH;
126 color = <LED_COLOR_ID_WHITE>;
127 function-enumerator = <1>;
128 led-max-microamp = <200000>;
129 flash-max-microamp = <500000>;
130 flash-max-timeout-us = <1024000>;
134 function = LED_FUNCTION_FLASH;
135 color = <LED_COLOR_ID_WHITE>;
136 function-enumerator = <2>;
137 led-max-microamp = <200000>;
138 flash-max-microamp = <500000>;
139 flash-max-timeout-us = <1024000>;
144 compatible = "mediatek,mt6360-regulator";
145 LDO_VIN3-supply = <&BUCK2>;
147 regulator-name = "mt6360,buck1";
148 regulator-min-microvolt = <300000>;
149 regulator-max-microvolt = <1300000>;
150 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
155 regulator-name = "mt6360,buck2";
156 regulator-min-microvolt = <300000>;
157 regulator-max-microvolt = <1300000>;
158 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
163 regulator-name = "mt6360,ldo6";
164 regulator-min-microvolt = <500000>;
165 regulator-max-microvolt = <2100000>;
166 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
170 regulator-name = "mt6360,ldo7";
171 regulator-min-microvolt = <500000>;
172 regulator-max-microvolt = <2100000>;
173 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
177 regulator-name = "mt6360,ldo1";
178 regulator-min-microvolt = <1200000>;
179 regulator-max-microvolt = <3600000>;
180 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
184 regulator-name = "mt6360,ldo2";
185 regulator-min-microvolt = <1200000>;
186 regulator-max-microvolt = <3600000>;
187 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
191 regulator-name = "mt6360,ldo3";
192 regulator-min-microvolt = <1200000>;
193 regulator-max-microvolt = <3600000>;
194 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
198 regulator-name = "mt6360,ldo5";
199 regulator-min-microvolt = <2700000>;
200 regulator-max-microvolt = <3600000>;
201 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
207 compatible = "mediatek,mt6360-tcpc";
208 interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>;
209 interrupt-names = "PD_IRQB";
212 compatible = "usb-c-connector";
216 try-power-role = "sink";
217 source-pdos = <PDO_FIXED(5000, 1000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
218 sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)>;
219 op-sink-microwatt = <10000000>;
222 #address-cells = <1>;
228 remote-endpoint = <&usb_hs>;
234 remote-endpoint = <&usb_ss>;
240 remote-endpoint = <&dp_aux>;