Lines Matching +full:bat +full:- +full:detect +full:- +full:gpio

1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Orson Zhai <orsonzhai@gmail.com>
11 - Baolin Wang <baolin.wang7@gmail.com>
12 - Chunyan Zhang <zhang.lyra@gmail.com>
18 - DCDCs to support CPU, memory
19 - LDOs to support both internal and external requirements
20 - Battery management system, such as charger, fuel gauge
21 - Audio codec
22 - User interface functions, such as indicator, flash LED and so on
23 - IC level interface, such as power on/off control, RTC, typec and so on
27 pattern: '^pmic@[0-9a-f]+$'
31 - sprd,sc2720
32 - sprd,sc2721
33 - sprd,sc2723
34 - sprd,sc2730
35 - sprd,sc2731
43 interrupt-controller: true
44 spi-max-frequency: true
46 '#address-cells':
49 '#interrupt-cells':
52 '#size-cells':
57 $ref: /schemas/regulator/sprd,sc2731-regulator.yaml#
60 "^adc@[0-9a-f]+$":
62 $ref: /schemas/iio/adc/sprd,sc2720-adc.yaml#
64 "^charger@[0-9a-f]+$":
66 $ref: /schemas/power/supply/sc2731-charger.yaml#
68 "^efuse@[0-9a-f]+$":
70 $ref: /schemas/nvmem/sprd,sc2731-efuse.yaml#
72 "^fuel-gauge@[0-9a-f]+$":
74 $ref: /schemas/power/supply/sc27xx-fg.yaml#
76 "^gpio@[0-9a-f]+$":
78 $ref: /schemas/gpio/sprd,gpio-eic.yaml#
80 "^led-controller@[0-9a-f]+$":
82 $ref: /schemas/leds/sprd,sc2731-bltc.yaml#
84 "^rtc@[0-9a-f]+$":
86 $ref: /schemas/rtc/sprd,sc2731-rtc.yaml#
88 "^vibrator@[0-9a-f]+$":
90 $ref: /schemas/input/sprd,sc27xx-vibrator.yaml#
93 - compatible
94 - reg
95 - interrupts
96 - interrupt-controller
97 - spi-max-frequency
98 - '#address-cells'
99 - '#interrupt-cells'
100 - '#size-cells'
105 - |
106 #include <dt-bindings/gpio/gpio.h>
107 #include <dt-bindings/interrupt-controller/arm-gic.h>
108 #include <dt-bindings/interrupt-controller/irq.h>
109 #include <dt-bindings/leds/common.h>
112 #address-cells = <1>;
113 #size-cells = <0>;
119 interrupt-controller;
120 spi-max-frequency = <26000000>;
121 #address-cells = <1>;
122 #interrupt-cells = <1>;
123 #size-cells = <0>;
126 compatible = "sprd,sc2731-charger";
129 monitored-battery = <&bat>;
132 led-controller@200 {
133 compatible = "sprd,sc2731-bltc";
135 #address-cells = <1>;
136 #size-cells = <0>;
155 compatible = "sprd,sc2731-rtc";
157 interrupt-parent = <&sc2731_pmic>;
161 pmic_eic: gpio@300 {
162 compatible = "sprd,sc2731-eic";
164 interrupt-parent = <&sc2731_pmic>;
166 gpio-controller;
167 #gpio-cells = <2>;
168 interrupt-controller;
169 #interrupt-cells = <2>;
173 compatible = "sprd,sc2731-efuse";
176 #address-cells = <1>;
177 #size-cells = <1>;
195 compatible = "sprd,sc2731-adc";
197 interrupt-parent = <&sc2731_pmic>;
199 #io-channel-cells = <1>;
201 nvmem-cells = <&adc_big_scale>, <&adc_small_scale>;
202 nvmem-cell-names = "big_scale_calib", "small_scale_calib";
205 fuel-gauge@a00 {
206 compatible = "sprd,sc2731-fgu";
208 battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
209 interrupt-parent = <&sc2731_pmic>;
211 io-channels = <&pmic_adc 5>, <&pmic_adc 14>;
212 io-channel-names = "bat-temp", "charge-vol";
213 nvmem-cells = <&fgu_calib>;
214 nvmem-cell-names = "fgu_calib";
215 monitored-battery = <&bat>;
216 sprd,calib-resistance-micro-ohms = <21500>;
220 compatible = "sprd,sc2731-vibrator";
225 compatible = "sprd,sc2731-regulator";
228 regulator-name = "vddarm0";
229 regulator-min-microvolt = <400000>;
230 regulator-max-microvolt = <1996875>;
231 regulator-ramp-delay = <25000>;
232 regulator-always-on;
236 regulator-name = "vddcama0";
237 regulator-min-microvolt = <1200000>;
238 regulator-max-microvolt = <3750000>;
239 regulator-enable-ramp-delay = <100>;