Lines Matching +full:flash +full:- +full:max +full:- +full:timeout +full:- +full:us

1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
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
26 wakeup-source: true
31 interrupt-controller: true
33 "#interrupt-cells":
46 const: mediatek,mt6370-adc
48 "#io-channel-cells":
52 - compatible
53 - "#io-channel-cells"
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#
95 enable-gpios:
99 - compatible
100 - reg
101 - interrupts
102 - interrupt-controller
103 - "#interrupt-cells"
104 - regulators
105 - adc
106 - backlight
107 - indicator
108 - tcpc
109 - charger
110 - flashlight
115 - |
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>;
122 #size-cells = <0>;
127 wakeup-source;
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";
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>;
160 #size-cells = <0>;
162 multi-led@0 {
166 led-max-microamp = <24000>;
167 #address-cells = <1>;
168 #size-cells = <0>;
186 led-max-microamp = <6000>;
191 compatible = "mediatek,mt6370-flashlight";
192 #address-cells = <1>;
193 #size-cells = <0>;
196 led-sources = <0>;
199 function-enumerator = <1>;
200 led-max-microamp = <200000>;
201 flash-max-microamp = <500000>;
202 flash-max-timeout-us = <1248000>;
206 led-sources = <1>;
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";
222 label = "USB-C";
223 vbus-supply = <&mt6370_otg_vbus>;
224 data-role = "dual";
225 power-role = "dual";
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>;
233 #size-cells = <0>;
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>;
267 regulator-boot-on;
270 regulator-name = "mt6370-dsv-vneg";
271 regulator-min-microvolt = <4000000>;
272 regulator-max-microvolt = <6000000>;
273 regulator-boot-on;
276 regulator-name = "mt6370-vib-ldo";
277 regulator-min-microvolt = <1600000>;
278 regulator-max-microvolt = <4000000>;