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)>;
85 compatible = "siliconmitus,sm5502-muic";
88 interrupt-parent = <&msmgpio>;
89 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
91 pinctrl-names = "default";
92 pinctrl-0 = <&muic_int_default>;
100 accelerometer: accelerometer@10 {
101 compatible = "bosch,bmc150_accel";
103 interrupt-parent = <&msmgpio>;
104 interrupts = <115 IRQ_TYPE_EDGE_RISING>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&accel_int_default>;
111 compatible = "bosch,bmc150_magn";
121 pinctrl-names = "default", "sleep";
122 pinctrl-0 = <&mdss_default>;
123 pinctrl-1 = <&mdss_sleep>;
128 linux,code = <KEY_VOLUMEDOWN>;
138 pinctrl-names = "default", "sleep";
139 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
140 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
146 pinctrl-names = "default", "sleep";
147 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
148 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
150 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
155 extcon = <&muic>, <&muic>;
162 &smd_rpm_regulators {
163 vdd_l1_l2_l3-supply = <&pm8916_s3>;
164 vdd_l4_l5_l6-supply = <&pm8916_s4>;
165 vdd_l7-supply = <&pm8916_s4>;
168 regulator-min-microvolt = <500000>;
169 regulator-max-microvolt = <1300000>;
173 regulator-min-microvolt = <1200000>;
174 regulator-max-microvolt = <1300000>;
178 regulator-min-microvolt = <1800000>;
179 regulator-max-microvolt = <2100000>;
183 regulator-min-microvolt = <1225000>;
184 regulator-max-microvolt = <1225000>;
188 regulator-min-microvolt = <1200000>;
189 regulator-max-microvolt = <1200000>;
193 regulator-min-microvolt = <500000>;
194 regulator-max-microvolt = <1287500>;
198 regulator-min-microvolt = <2050000>;
199 regulator-max-microvolt = <2050000>;
203 regulator-min-microvolt = <1800000>;
204 regulator-max-microvolt = <1800000>;
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <1800000>;
213 regulator-min-microvolt = <1800000>;
214 regulator-max-microvolt = <1800000>;
218 regulator-min-microvolt = <2850000>;
219 regulator-max-microvolt = <2900000>;
223 regulator-min-microvolt = <3300000>;
224 regulator-max-microvolt = <3300000>;
228 regulator-min-microvolt = <2700000>;
229 regulator-max-microvolt = <2800000>;
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <2950000>;
235 regulator-allow-set-load;
236 regulator-system-load = <200000>;
240 regulator-min-microvolt = <1800000>;
241 regulator-max-microvolt = <2950000>;
245 regulator-min-microvolt = <3075000>;
246 regulator-max-microvolt = <3075000>;
250 regulator-min-microvolt = <1800000>;
251 regulator-max-microvolt = <3300000>;
255 regulator-min-microvolt = <1800000>;
256 regulator-max-microvolt = <3300000>;
260 regulator-min-microvolt = <1800000>;
261 regulator-max-microvolt = <3300000>;
265 regulator-min-microvolt = <2850000>;
266 regulator-max-microvolt = <2850000>;
270 regulator-min-microvolt = <2700000>;
271 regulator-max-microvolt = <2700000>;
276 accel_int_default: accel-int-default {
280 drive-strength = <2>;
284 gpio_keys_default: gpio-keys-default {
285 pins = "gpio107", "gpio109";
288 drive-strength = <2>;
292 gpio_hall_sensor_default: gpio-hall-sensor-default {
296 drive-strength = <2>;
301 mdss_default: mdss-default {
305 drive-strength = <8>;
308 mdss_sleep: mdss-sleep {
312 drive-strength = <2>;
317 muic_int_default: muic-int-default {
321 drive-strength = <2>;
325 tsp_en_default: tsp-en-default {
329 drive-strength = <2>;