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";
19 /* Additional memory used by Samsung firmware modifications */
21 reg = <0x0 0x85500000 0x0 0xb00000>;
30 vmmc-supply = <&pm8916_l8>;
31 vqmmc-supply = <&pm8916_l5>;
33 pinctrl-names = "default", "sleep";
34 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
35 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
41 vmmc-supply = <&pm8916_l11>;
42 vqmmc-supply = <&pm8916_l12>;
44 pinctrl-names = "default", "sleep";
45 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
46 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
48 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
53 pinctrl-names = "default", "sleep";
54 pinctrl-0 = <&blsp1_uart2_default>;
55 pinctrl-1 = <&blsp1_uart2_sleep>;
60 extcon = <&muic>, <&muic>;
69 v1p8-supply = <&pm8916_l7>;
70 v3p3-supply = <&pm8916_l13>;
80 vdda-supply = <&pm8916_l2>;
81 vddio-supply = <&pm8916_l6>;
83 pinctrl-names = "default", "sleep";
84 pinctrl-0 = <&mdss_default>;
85 pinctrl-1 = <&mdss_sleep>;
89 vddio-supply = <&pm8916_l6>;
99 compatible = "gpio-keys";
101 pinctrl-names = "default";
102 pinctrl-0 = <&gpio_keys_default>;
104 label = "GPIO Buttons";
108 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_VOLUMEUP>;
114 gpios = <&msmgpio 109 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_HOMEPAGE>;
120 compatible = "gpio-keys";
122 pinctrl-names = "default";
123 pinctrl-0 = <&gpio_hall_sensor_default>;
125 label = "GPIO Hall Effect Sensor";
128 label = "Hall Effect Sensor";
129 gpios = <&msmgpio 52 GPIO_ACTIVE_LOW>;
130 linux,input-type = <EV_SW>;
131 linux,code = <SW_LID>;
136 reg_vdd_tsp: regulator-vdd-tsp {
137 compatible = "regulator-fixed";
138 regulator-name = "vdd_tsp";
139 regulator-min-microvolt = <3300000>;
140 regulator-max-microvolt = <3300000>;
142 gpio = <&msmgpio 73 GPIO_ACTIVE_HIGH>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&tsp_en_default>;
150 compatible = "i2c-gpio";
151 sda-gpios = <&msmgpio 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
152 scl-gpios = <&msmgpio 106 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
154 #address-cells = <1>;
158 compatible = "siliconmitus,sm5502-muic";
161 interrupt-parent = <&msmgpio>;
162 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
164 pinctrl-names = "default";
165 pinctrl-0 = <&muic_int_default>;
171 gpio_keys_default: gpio-keys-default {
174 pins = "gpio107", "gpio109";
177 pins = "gpio107", "gpio109";
178 drive-strength = <2>;
183 gpio_hall_sensor_default: gpio-hall-sensor-default {
190 drive-strength = <2>;
195 muic_int_default: muic-int-default {
202 drive-strength = <2>;
207 tsp_en_default: tsp-en-default {
214 drive-strength = <2>;
220 mdss_default: mdss-default {
227 drive-strength = <8>;
232 mdss_sleep: mdss-sleep {
239 drive-strength = <2>;
246 &smd_rpm_regulators {
247 vdd_l1_l2_l3-supply = <&pm8916_s3>;
248 vdd_l4_l5_l6-supply = <&pm8916_s4>;
249 vdd_l7-supply = <&pm8916_s4>;
252 regulator-min-microvolt = <500000>;
253 regulator-max-microvolt = <1300000>;
257 regulator-min-microvolt = <1200000>;
258 regulator-max-microvolt = <1300000>;
262 regulator-min-microvolt = <1800000>;
263 regulator-max-microvolt = <2100000>;
267 regulator-min-microvolt = <1225000>;
268 regulator-max-microvolt = <1225000>;
272 regulator-min-microvolt = <1200000>;
273 regulator-max-microvolt = <1200000>;
277 regulator-min-microvolt = <500000>;
278 regulator-max-microvolt = <1287500>;
282 regulator-min-microvolt = <2050000>;
283 regulator-max-microvolt = <2050000>;
287 regulator-min-microvolt = <1800000>;
288 regulator-max-microvolt = <1800000>;
292 regulator-min-microvolt = <1800000>;
293 regulator-max-microvolt = <1800000>;
297 regulator-min-microvolt = <1800000>;
298 regulator-max-microvolt = <1800000>;
302 regulator-min-microvolt = <2850000>;
303 regulator-max-microvolt = <2900000>;
307 regulator-min-microvolt = <3300000>;
308 regulator-max-microvolt = <3300000>;
312 regulator-min-microvolt = <2700000>;
313 regulator-max-microvolt = <2800000>;
317 regulator-min-microvolt = <1800000>;
318 regulator-max-microvolt = <2950000>;
319 regulator-allow-set-load;
320 regulator-system-load = <200000>;
324 regulator-min-microvolt = <1800000>;
325 regulator-max-microvolt = <2950000>;
329 regulator-min-microvolt = <3075000>;
330 regulator-max-microvolt = <3075000>;
334 regulator-min-microvolt = <1800000>;
335 regulator-max-microvolt = <3300000>;
339 regulator-min-microvolt = <1800000>;
340 regulator-max-microvolt = <3300000>;
344 regulator-min-microvolt = <1800000>;
345 regulator-max-microvolt = <3300000>;
349 regulator-min-microvolt = <2850000>;
350 regulator-max-microvolt = <2850000>;
354 regulator-min-microvolt = <2700000>;
355 regulator-max-microvolt = <2700000>;
363 compatible = "qcom,pm8941-resin";
364 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
366 linux,code = <KEY_VOLUMEDOWN>;