1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2012 Linaro Ltd
6 #include <dt-bindings/clock/ste-ab8500.h>
12 compatible = "stericsson,ab8500";
13 interrupt-parent = <&intc>;
14 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
16 #interrupt-cells = <2>;
18 ab8500_clock: clock-controller {
19 compatible = "stericsson,ab8500-clk";
23 ab8500_gpio: ab8500-gpio {
24 compatible = "stericsson,ab8500-gpio";
30 compatible = "stericsson,ab8500-rtc";
31 interrupts = <17 IRQ_TYPE_LEVEL_HIGH
32 18 IRQ_TYPE_LEVEL_HIGH>;
33 interrupt-names = "60S", "ALARM";
37 compatible = "stericsson,ab8500-gpadc";
38 interrupts = <32 IRQ_TYPE_LEVEL_HIGH
39 39 IRQ_TYPE_LEVEL_HIGH>;
40 interrupt-names = "HW_CONV_END", "SW_CONV_END";
41 vddadc-supply = <&ab8500_ldo_tvout_reg>;
44 ab8500_battery: ab8500_battery {
45 stericsson,battery-type = "LIPO";
46 thermistor-on-batctrl;
50 compatible = "stericsson,ab8500-fg";
51 battery = <&ab8500_battery>;
55 compatible = "stericsson,ab8500-btemp";
56 battery = <&ab8500_battery>;
60 compatible = "stericsson,ab8500-charger";
61 battery = <&ab8500_battery>;
62 vddadc-supply = <&ab8500_ldo_tvout_reg>;
66 compatible = "stericsson,ab8500-chargalg";
67 battery = <&ab8500_battery>;
71 compatible = "stericsson,ab8500-usb";
72 interrupts = < 90 IRQ_TYPE_LEVEL_HIGH
73 96 IRQ_TYPE_LEVEL_HIGH
74 14 IRQ_TYPE_LEVEL_HIGH
75 15 IRQ_TYPE_LEVEL_HIGH
76 79 IRQ_TYPE_LEVEL_HIGH
77 74 IRQ_TYPE_LEVEL_HIGH
78 75 IRQ_TYPE_LEVEL_HIGH>;
79 interrupt-names = "ID_WAKEUP_R",
85 "USB_ADP_PROBE_UNPLUG";
86 vddulpivio18-supply = <&ab8500_ldo_intcore_reg>;
87 v-ape-supply = <&db8500_vape_reg>;
88 musb_1v8-supply = <&db8500_vsmps2_reg>;
89 clocks = <&prcmu_clk PRCMU_SYSCLK>;
90 clock-names = "sysclk";
94 compatible = "stericsson,ab8500-poweron-key";
95 interrupts = <6 IRQ_TYPE_LEVEL_HIGH
96 7 IRQ_TYPE_LEVEL_HIGH>;
97 interrupt-names = "ONKEY_DBF", "ONKEY_DBR";
101 compatible = "stericsson,ab8500-sysctrl";
105 compatible = "stericsson,ab8500-pwm";
106 clocks = <&ab8500_clock AB8500_SYSCLK_INT>;
107 clock-names = "intclk";
111 compatible = "stericsson,ab8500-debug";
114 codec: ab8500-codec {
115 compatible = "stericsson,ab8500-codec";
117 V-AUD-supply = <&ab8500_ldo_audio_reg>;
118 V-AMIC1-supply = <&ab8500_ldo_anamic1_reg>;
119 V-AMIC2-supply = <&ab8500_ldo_anamic2_reg>;
120 V-DMIC-supply = <&ab8500_ldo_dmic_reg>;
122 clocks = <&ab8500_clock AB8500_SYSCLK_AUDIO>;
123 clock-names = "audioclk";
125 stericsson,earpeice-cmv = <950>; /* Units in mV. */
128 ext_regulators: ab8500-ext-regulators {
129 compatible = "stericsson,ab8500-ext-regulator";
131 ab8500_ext1_reg: ab8500_ext1 {
132 regulator-min-microvolt = <1800000>;
133 regulator-max-microvolt = <1800000>;
138 ab8500_ext2_reg: ab8500_ext2 {
139 regulator-min-microvolt = <1360000>;
140 regulator-max-microvolt = <1360000>;
145 ab8500_ext3_reg: ab8500_ext3 {
146 regulator-min-microvolt = <3400000>;
147 regulator-max-microvolt = <3400000>;
153 compatible = "stericsson,ab8500-regulator";
154 vin-supply = <&ab8500_ext3_reg>;
156 // supplies to the display/camera
157 ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
158 regulator-min-microvolt = <2500000>;
159 regulator-max-microvolt = <2900000>;
161 /* BUG: If turned off MMC will be affected. */
165 // supplies to the on-board eMMC
166 ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
167 regulator-min-microvolt = <1100000>;
168 regulator-max-microvolt = <3300000>;
171 // supply for VAUX3; SDcard slots
172 ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
173 regulator-min-microvolt = <1100000>;
174 regulator-max-microvolt = <3300000>;
177 // supply for v-intcore12; VINTCORE12 LDO
178 ab8500_ldo_intcore_reg: ab8500_ldo_intcore {
181 // supply for tvout; gpadc; TVOUT LDO
182 ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
185 // supply for ab8500-vaudio; VAUDIO LDO
186 ab8500_ldo_audio_reg: ab8500_ldo_audio {
189 // supply for v-anamic1 VAMIC1 LDO
190 ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
193 // supply for v-amic2; VAMIC2 LDO; reuse constants for AMIC1
194 ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 {
197 // supply for v-dmic; VDMIC LDO
198 ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
201 // supply for U8500 CSI/DSI; VANA LDO
202 ab8500_ldo_ana_reg: ab8500_ldo_ana {
209 stericsson,audio-codec = <&codec>;
210 clocks = <&prcmu_clk PRCMU_SYSCLK>, <&ab8500_clock AB8500_SYSCLK_ULP>, <&ab8500_clock AB8500_SYSCLK_INT>;
211 clock-names = "sysclk", "ulpclk", "intclk";
215 vana-supply = <&ab8500_ldo_ana_reg>;
218 vana-supply = <&ab8500_ldo_ana_reg>;
221 vana-supply = <&ab8500_ldo_ana_reg>;
224 vana-supply = <&ab8500_ldo_ana_reg>;