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 pinctrl-names = "default";
110 pinctrl-0 = <&accel_int_default>;
114 compatible = "bosch,bmc150_magn";
124 pinctrl-names = "default", "sleep";
125 pinctrl-0 = <&mdss_default>;
126 pinctrl-1 = <&mdss_sleep>;
131 linux,code = <KEY_VOLUMEDOWN>;
141 pinctrl-names = "default", "sleep";
142 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
143 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
149 pinctrl-names = "default", "sleep";
150 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
151 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
153 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
158 extcon = <&muic>, <&muic>;
165 &smd_rpm_regulators {
166 vdd_l1_l2_l3-supply = <&pm8916_s3>;
167 vdd_l4_l5_l6-supply = <&pm8916_s4>;
168 vdd_l7-supply = <&pm8916_s4>;
171 regulator-min-microvolt = <1200000>;
172 regulator-max-microvolt = <1300000>;
176 regulator-min-microvolt = <1800000>;
177 regulator-max-microvolt = <2100000>;
181 regulator-min-microvolt = <1225000>;
182 regulator-max-microvolt = <1225000>;
186 regulator-min-microvolt = <1200000>;
187 regulator-max-microvolt = <1200000>;
191 regulator-min-microvolt = <2050000>;
192 regulator-max-microvolt = <2050000>;
196 regulator-min-microvolt = <1800000>;
197 regulator-max-microvolt = <1800000>;
201 regulator-min-microvolt = <1800000>;
202 regulator-max-microvolt = <1800000>;
206 regulator-min-microvolt = <1800000>;
207 regulator-max-microvolt = <1800000>;
211 regulator-min-microvolt = <2850000>;
212 regulator-max-microvolt = <2900000>;
216 regulator-min-microvolt = <3300000>;
217 regulator-max-microvolt = <3300000>;
221 regulator-min-microvolt = <2700000>;
222 regulator-max-microvolt = <2800000>;
226 regulator-min-microvolt = <1800000>;
227 regulator-max-microvolt = <2950000>;
228 regulator-allow-set-load;
229 regulator-system-load = <200000>;
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <2950000>;
238 regulator-min-microvolt = <3075000>;
239 regulator-max-microvolt = <3075000>;
243 regulator-min-microvolt = <1800000>;
244 regulator-max-microvolt = <3300000>;
248 regulator-min-microvolt = <1800000>;
249 regulator-max-microvolt = <3300000>;
253 regulator-min-microvolt = <1800000>;
254 regulator-max-microvolt = <3300000>;
258 regulator-min-microvolt = <2850000>;
259 regulator-max-microvolt = <2850000>;
263 regulator-min-microvolt = <2700000>;
264 regulator-max-microvolt = <2700000>;
269 accel_int_default: accel-int-default {
273 drive-strength = <2>;
277 gpio_keys_default: gpio-keys-default {
278 pins = "gpio107", "gpio109";
281 drive-strength = <2>;
285 gpio_hall_sensor_default: gpio-hall-sensor-default {
289 drive-strength = <2>;
294 mdss_default: mdss-default {
298 drive-strength = <8>;
301 mdss_sleep: mdss-sleep {
305 drive-strength = <2>;
310 muic_i2c_default: muic-i2c-default {
311 pins = "gpio105", "gpio106";
314 drive-strength = <2>;
318 muic_int_default: muic-int-default {
322 drive-strength = <2>;
326 tsp_en_default: tsp-en-default {
330 drive-strength = <2>;