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 * Attempting to enable these devices causes a "synchronous
81 * external abort". Suspected cause is that the debug power
82 * domain is not enabled by default on this device.
83 * Disable these devices for now to avoid the crash.
85 * See: https://lore.kernel.org/linux-arm-msm/20190618202623.GA53651@gerhold.net/
87 tpiu@820000 { status = "disabled"; };
88 funnel@821000 { status = "disabled"; };
89 replicator@824000 { status = "disabled"; };
90 etf@825000 { status = "disabled"; };
91 etr@826000 { status = "disabled"; };
92 funnel@841000 { status = "disabled"; };
93 debug@850000 { status = "disabled"; };
94 debug@852000 { status = "disabled"; };
95 debug@854000 { status = "disabled"; };
96 debug@856000 { status = "disabled"; };
97 etm@85c000 { status = "disabled"; };
98 etm@85d000 { status = "disabled"; };
99 etm@85e000 { status = "disabled"; };
100 etm@85f000 { status = "disabled"; };
104 compatible = "gpio-keys";
106 pinctrl-names = "default";
107 pinctrl-0 = <&gpio_keys_default>;
109 label = "GPIO Buttons";
113 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_VOLUMEUP>;
119 gpios = <&msmgpio 109 GPIO_ACTIVE_LOW>;
120 linux,code = <KEY_HOMEPAGE>;
125 compatible = "gpio-keys";
127 pinctrl-names = "default";
128 pinctrl-0 = <&gpio_hall_sensor_default>;
130 label = "GPIO Hall Effect Sensor";
133 label = "Hall Effect Sensor";
134 gpios = <&msmgpio 52 GPIO_ACTIVE_LOW>;
135 linux,input-type = <EV_SW>;
136 linux,code = <SW_LID>;
142 compatible = "i2c-gpio";
143 sda-gpios = <&msmgpio 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
144 scl-gpios = <&msmgpio 106 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
146 #address-cells = <1>;
150 compatible = "siliconmitus,sm5502-muic";
153 interrupt-parent = <&msmgpio>;
154 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&muic_int_default>;
163 gpio_keys_default: gpio_keys_default {
166 pins = "gpio107", "gpio109";
169 pins = "gpio107", "gpio109";
170 drive-strength = <2>;
175 gpio_hall_sensor_default: gpio_hall_sensor_default {
182 drive-strength = <2>;
187 muic_int_default: muic_int_default {
194 drive-strength = <2>;
200 &smd_rpm_regulators {
201 vdd_l1_l2_l3-supply = <&pm8916_s3>;
202 vdd_l4_l5_l6-supply = <&pm8916_s4>;
203 vdd_l7-supply = <&pm8916_s4>;
206 regulator-min-microvolt = <500000>;
207 regulator-max-microvolt = <1300000>;
211 regulator-min-microvolt = <1200000>;
212 regulator-max-microvolt = <1300000>;
216 regulator-min-microvolt = <1800000>;
217 regulator-max-microvolt = <2100000>;
221 regulator-min-microvolt = <1225000>;
222 regulator-max-microvolt = <1225000>;
226 regulator-min-microvolt = <1200000>;
227 regulator-max-microvolt = <1200000>;
231 regulator-min-microvolt = <500000>;
232 regulator-max-microvolt = <1287500>;
236 regulator-min-microvolt = <2050000>;
237 regulator-max-microvolt = <2050000>;
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <1800000>;
246 regulator-min-microvolt = <1800000>;
247 regulator-max-microvolt = <1800000>;
251 regulator-min-microvolt = <1800000>;
252 regulator-max-microvolt = <1800000>;
256 regulator-min-microvolt = <2850000>;
257 regulator-max-microvolt = <2900000>;
261 regulator-min-microvolt = <3300000>;
262 regulator-max-microvolt = <3300000>;
266 regulator-min-microvolt = <2700000>;
267 regulator-max-microvolt = <2800000>;
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <2950000>;
273 regulator-allow-set-load;
274 regulator-system-load = <200000>;
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <2950000>;
283 regulator-min-microvolt = <3075000>;
284 regulator-max-microvolt = <3075000>;
288 regulator-min-microvolt = <1800000>;
289 regulator-max-microvolt = <3300000>;
293 regulator-min-microvolt = <1800000>;
294 regulator-max-microvolt = <3300000>;
298 regulator-min-microvolt = <1800000>;
299 regulator-max-microvolt = <3300000>;
303 regulator-min-microvolt = <2850000>;
304 regulator-max-microvolt = <2850000>;
308 regulator-min-microvolt = <2700000>;
309 regulator-max-microvolt = <2700000>;
317 compatible = "qcom,pm8941-resin";
318 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
320 linux,code = <KEY_VOLUMEDOWN>;