1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "msm8916.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
11 serial0 = &blsp1_uart2;
15 stdout-path = "serial0";
22 vmmc-supply = <&pm8916_l8>;
23 vqmmc-supply = <&pm8916_l5>;
25 pinctrl-names = "default", "sleep";
26 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
27 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
33 vmmc-supply = <&pm8916_l11>;
34 vqmmc-supply = <&pm8916_l12>;
36 pinctrl-names = "default", "sleep";
37 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
38 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
40 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
45 pinctrl-names = "default", "sleep";
46 pinctrl-0 = <&blsp1_uart2_default>;
47 pinctrl-1 = <&blsp1_uart2_sleep>;
52 extcon = <&muic>, <&muic>;
61 v1p8-supply = <&pm8916_l7>;
62 v3p3-supply = <&pm8916_l13>;
72 * Attempting to enable these devices causes a "synchronous
73 * external abort". Suspected cause is that the debug power
74 * domain is not enabled by default on this device.
75 * Disable these devices for now to avoid the crash.
77 * See: https://lore.kernel.org/linux-arm-msm/20190618202623.GA53651@gerhold.net/
79 tpiu@820000 { status = "disabled"; };
80 funnel@821000 { status = "disabled"; };
81 replicator@824000 { status = "disabled"; };
82 etf@825000 { status = "disabled"; };
83 etr@826000 { status = "disabled"; };
84 funnel@841000 { status = "disabled"; };
85 debug@850000 { status = "disabled"; };
86 debug@852000 { status = "disabled"; };
87 debug@854000 { status = "disabled"; };
88 debug@856000 { status = "disabled"; };
89 etm@85c000 { status = "disabled"; };
90 etm@85d000 { status = "disabled"; };
91 etm@85e000 { status = "disabled"; };
92 etm@85f000 { status = "disabled"; };
96 compatible = "gpio-keys";
98 pinctrl-names = "default";
99 pinctrl-0 = <&gpio_keys_default>;
101 label = "GPIO Buttons";
105 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
106 linux,code = <KEY_VOLUMEUP>;
111 gpios = <&msmgpio 109 GPIO_ACTIVE_LOW>;
112 linux,code = <KEY_HOMEPAGE>;
117 compatible = "gpio-keys";
119 pinctrl-names = "default";
120 pinctrl-0 = <&gpio_hall_sensor_default>;
122 label = "GPIO Hall Effect Sensor";
125 label = "Hall Effect Sensor";
126 gpios = <&msmgpio 52 GPIO_ACTIVE_LOW>;
127 linux,input-type = <EV_SW>;
128 linux,code = <SW_LID>;
134 compatible = "i2c-gpio";
135 sda-gpios = <&msmgpio 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
136 scl-gpios = <&msmgpio 106 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
138 #address-cells = <1>;
142 compatible = "siliconmitus,sm5502-muic";
145 interrupt-parent = <&msmgpio>;
146 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&muic_int_default>;
155 gpio_keys_default: gpio_keys_default {
158 pins = "gpio107", "gpio109";
161 pins = "gpio107", "gpio109";
162 drive-strength = <2>;
167 gpio_hall_sensor_default: gpio_hall_sensor_default {
174 drive-strength = <2>;
179 muic_int_default: muic_int_default {
186 drive-strength = <2>;
192 &smd_rpm_regulators {
193 vdd_l1_l2_l3-supply = <&pm8916_s3>;
194 vdd_l4_l5_l6-supply = <&pm8916_s4>;
195 vdd_l7-supply = <&pm8916_s4>;
198 regulator-min-microvolt = <500000>;
199 regulator-max-microvolt = <1300000>;
203 regulator-min-microvolt = <1200000>;
204 regulator-max-microvolt = <1300000>;
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <2100000>;
213 regulator-min-microvolt = <1225000>;
214 regulator-max-microvolt = <1225000>;
218 regulator-min-microvolt = <1200000>;
219 regulator-max-microvolt = <1200000>;
223 regulator-min-microvolt = <500000>;
224 regulator-max-microvolt = <1287500>;
228 regulator-min-microvolt = <2050000>;
229 regulator-max-microvolt = <2050000>;
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <1800000>;
238 regulator-min-microvolt = <1800000>;
239 regulator-max-microvolt = <1800000>;
243 regulator-min-microvolt = <1800000>;
244 regulator-max-microvolt = <1800000>;
248 regulator-min-microvolt = <2850000>;
249 regulator-max-microvolt = <2900000>;
253 regulator-min-microvolt = <3300000>;
254 regulator-max-microvolt = <3300000>;
258 regulator-min-microvolt = <2700000>;
259 regulator-max-microvolt = <2800000>;
263 regulator-min-microvolt = <1800000>;
264 regulator-max-microvolt = <2950000>;
265 regulator-allow-set-load;
266 regulator-system-load = <200000>;
270 regulator-min-microvolt = <1800000>;
271 regulator-max-microvolt = <2950000>;
275 regulator-min-microvolt = <3075000>;
276 regulator-max-microvolt = <3075000>;
280 regulator-min-microvolt = <1800000>;
281 regulator-max-microvolt = <3300000>;
285 regulator-min-microvolt = <1800000>;
286 regulator-max-microvolt = <3300000>;
290 regulator-min-microvolt = <1800000>;
291 regulator-max-microvolt = <3300000>;
295 regulator-min-microvolt = <2850000>;
296 regulator-max-microvolt = <2850000>;
300 regulator-min-microvolt = <2700000>;
301 regulator-max-microvolt = <2700000>;
309 compatible = "qcom,pm8941-resin";
310 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
312 linux,code = <KEY_VOLUMEDOWN>;