Lines Matching +full:calib +full:- +full:gpios
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]+$":
74 - sprd,sc2720-efuse
75 - sprd,sc2721-efuse
76 - sprd,sc2723-efuse
77 - sprd,sc2730-efuse
78 - sprd,sc2731-efuse
80 "^fuel-gauge@[0-9a-f]+$":
82 $ref: /schemas/power/supply/sc27xx-fg.yaml#
84 "^gpio@[0-9a-f]+$":
86 $ref: /schemas/gpio/sprd,gpio-eic.yaml#
88 "^led-controller@[0-9a-f]+$":
90 $ref: /schemas/leds/sprd,sc2731-bltc.yaml#
92 "^rtc@[0-9a-f]+$":
94 $ref: /schemas/rtc/sprd,sc2731-rtc.yaml#
96 "^vibrator@[0-9a-f]+$":
98 $ref: /schemas/input/sprd,sc27xx-vibrator.yaml#
101 - compatible
102 - reg
103 - interrupts
104 - interrupt-controller
105 - spi-max-frequency
106 - '#address-cells'
107 - '#interrupt-cells'
108 - '#size-cells'
113 - |
114 #include <dt-bindings/gpio/gpio.h>
115 #include <dt-bindings/interrupt-controller/arm-gic.h>
116 #include <dt-bindings/interrupt-controller/irq.h>
117 #include <dt-bindings/leds/common.h>
120 #address-cells = <1>;
121 #size-cells = <0>;
127 interrupt-controller;
128 spi-max-frequency = <26000000>;
129 #address-cells = <1>;
130 #interrupt-cells = <1>;
131 #size-cells = <0>;
134 compatible = "sprd,sc2731-charger";
137 monitored-battery = <&bat>;
140 led-controller@200 {
141 compatible = "sprd,sc2731-bltc";
143 #address-cells = <1>;
144 #size-cells = <0>;
163 compatible = "sprd,sc2731-rtc";
165 interrupt-parent = <&sc2731_pmic>;
170 compatible = "sprd,sc2731-eic";
172 interrupt-parent = <&sc2731_pmic>;
174 gpio-controller;
175 #gpio-cells = <2>;
176 interrupt-controller;
177 #interrupt-cells = <2>;
181 compatible = "sprd,sc2731-efuse";
184 #address-cells = <1>;
185 #size-cells = <1>;
188 fgu_calib: calib@6 {
193 adc_big_scale: calib@24 {
197 adc_small_scale: calib@26 {
203 compatible = "sprd,sc2731-adc";
205 interrupt-parent = <&sc2731_pmic>;
207 #io-channel-cells = <1>;
209 nvmem-cells = <&adc_big_scale>, <&adc_small_scale>;
210 nvmem-cell-names = "big_scale_calib", "small_scale_calib";
213 fuel-gauge@a00 {
214 compatible = "sprd,sc2731-fgu";
216 battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
217 interrupt-parent = <&sc2731_pmic>;
219 io-channels = <&pmic_adc 5>, <&pmic_adc 14>;
220 io-channel-names = "bat-temp", "charge-vol";
221 nvmem-cells = <&fgu_calib>;
222 nvmem-cell-names = "fgu_calib";
223 monitored-battery = <&bat>;
224 sprd,calib-resistance-micro-ohms = <21500>;
228 compatible = "sprd,sc2731-vibrator";
233 compatible = "sprd,sc2731-regulator";
236 regulator-name = "vddarm0";
237 regulator-min-microvolt = <400000>;
238 regulator-max-microvolt = <1996875>;
239 regulator-ramp-delay = <25000>;
240 regulator-always-on;
244 regulator-name = "vddcama0";
245 regulator-min-microvolt = <1200000>;
246 regulator-max-microvolt = <3750000>;
247 regulator-enable-ramp-delay = <100>;