1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "msm8916-pm8916.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
10 serial0 = &blsp1_uart2;
14 stdout-path = "serial0";
18 /* Additional memory used by Samsung firmware modifications */
20 reg = <0x0 0x85500000 0x0 0xb00000>;
26 compatible = "gpio-keys";
28 pinctrl-names = "default";
29 pinctrl-0 = <&gpio_keys_default>;
31 label = "GPIO Buttons";
35 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_VOLUMEUP>;
41 gpios = <&msmgpio 109 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_HOMEPAGE>;
47 compatible = "gpio-keys";
49 pinctrl-names = "default";
50 pinctrl-0 = <&gpio_hall_sensor_default>;
52 label = "GPIO Hall Effect Sensor";
55 label = "Hall Effect Sensor";
56 gpios = <&msmgpio 52 GPIO_ACTIVE_LOW>;
57 linux,input-type = <EV_SW>;
58 linux,code = <SW_LID>;
63 reg_vdd_tsp: regulator-vdd-tsp {
64 compatible = "regulator-fixed";
65 regulator-name = "vdd_tsp";
66 regulator-min-microvolt = <3300000>;
67 regulator-max-microvolt = <3300000>;
69 gpio = <&msmgpio 73 GPIO_ACTIVE_HIGH>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&tsp_en_default>;
77 compatible = "i2c-gpio";
78 sda-gpios = <&msmgpio 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
79 scl-gpios = <&msmgpio 106 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
81 pinctrl-names = "default";
82 pinctrl-0 = <&muic_i2c_default>;
88 compatible = "siliconmitus,sm5502-muic";
91 interrupt-parent = <&msmgpio>;
92 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&muic_int_default>;
103 accelerometer: accelerometer@10 {
104 compatible = "bosch,bmc150_accel";
106 interrupt-parent = <&msmgpio>;
107 interrupts = <115 IRQ_TYPE_EDGE_RISING>;
109 vdd-supply = <&pm8916_l17>;
110 vddio-supply = <&pm8916_l5>;
112 pinctrl-names = "default";
113 pinctrl-0 = <&accel_int_default>;
117 compatible = "bosch,bmc150_magn";
120 vdd-supply = <&pm8916_l17>;
121 vddio-supply = <&pm8916_l5>;
130 pinctrl-names = "default", "sleep";
131 pinctrl-0 = <&mdss_default>;
132 pinctrl-1 = <&mdss_sleep>;
141 linux,code = <KEY_VOLUMEDOWN>;
151 pinctrl-names = "default", "sleep";
152 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
153 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
159 pinctrl-names = "default", "sleep";
160 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
161 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
163 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
168 extcon = <&muic>, <&muic>;
175 &smd_rpm_regulators {
176 vdd_l1_l2_l3-supply = <&pm8916_s3>;
177 vdd_l4_l5_l6-supply = <&pm8916_s4>;
178 vdd_l7-supply = <&pm8916_s4>;
181 regulator-min-microvolt = <1200000>;
182 regulator-max-microvolt = <1300000>;
186 regulator-min-microvolt = <1800000>;
187 regulator-max-microvolt = <2100000>;
191 regulator-min-microvolt = <1225000>;
192 regulator-max-microvolt = <1225000>;
196 regulator-min-microvolt = <1200000>;
197 regulator-max-microvolt = <1200000>;
201 regulator-min-microvolt = <2050000>;
202 regulator-max-microvolt = <2050000>;
206 regulator-min-microvolt = <1800000>;
207 regulator-max-microvolt = <1800000>;
211 regulator-min-microvolt = <1800000>;
212 regulator-max-microvolt = <1800000>;
216 regulator-min-microvolt = <1800000>;
217 regulator-max-microvolt = <1800000>;
221 regulator-min-microvolt = <2850000>;
222 regulator-max-microvolt = <2900000>;
226 regulator-min-microvolt = <3300000>;
227 regulator-max-microvolt = <3300000>;
231 regulator-min-microvolt = <2700000>;
232 regulator-max-microvolt = <2800000>;
236 regulator-min-microvolt = <1800000>;
237 regulator-max-microvolt = <2950000>;
238 regulator-allow-set-load;
239 regulator-system-load = <200000>;
243 regulator-min-microvolt = <1800000>;
244 regulator-max-microvolt = <2950000>;
248 regulator-min-microvolt = <3075000>;
249 regulator-max-microvolt = <3075000>;
253 regulator-min-microvolt = <1800000>;
254 regulator-max-microvolt = <3300000>;
258 regulator-min-microvolt = <1800000>;
259 regulator-max-microvolt = <3300000>;
263 regulator-min-microvolt = <1800000>;
264 regulator-max-microvolt = <3300000>;
268 regulator-min-microvolt = <2850000>;
269 regulator-max-microvolt = <2850000>;
273 regulator-min-microvolt = <2700000>;
274 regulator-max-microvolt = <2700000>;
279 accel_int_default: accel-int-default {
283 drive-strength = <2>;
287 gpio_keys_default: gpio-keys-default {
288 pins = "gpio107", "gpio109";
291 drive-strength = <2>;
295 gpio_hall_sensor_default: gpio-hall-sensor-default {
299 drive-strength = <2>;
304 mdss_default: mdss-default {
308 drive-strength = <8>;
311 mdss_sleep: mdss-sleep {
315 drive-strength = <2>;
320 muic_i2c_default: muic-i2c-default {
321 pins = "gpio105", "gpio106";
324 drive-strength = <2>;
328 muic_int_default: muic-int-default {
332 drive-strength = <2>;
336 tsp_en_default: tsp-en-default {
340 drive-strength = <2>;