1 // SPDX-License-Identifier: GPL-2.0-only
5 #include "msm8916-pm8916.dtsi"
6 #include "msm8916-modem-qdsp6.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/sound/apq8016-lpass.h>
15 mmc0 = &sdhc_1; /* eMMC */
16 mmc1 = &sdhc_2; /* SD card */
17 serial0 = &blsp_uart2;
21 stdout-path = "serial0";
25 /* Additional memory used by Samsung firmware modifications */
27 reg = <0x0 0x85500000 0x0 0xb00000>;
33 compatible = "gpio-keys";
35 pinctrl-0 = <&gpio_keys_default>;
36 pinctrl-names = "default";
38 label = "GPIO Buttons";
42 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_VOLUMEUP>;
48 gpios = <&tlmm 109 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_HOMEPAGE>;
54 compatible = "gpio-keys";
56 pinctrl-0 = <&gpio_hall_sensor_default>;
57 pinctrl-names = "default";
59 label = "GPIO Hall Effect Sensor";
62 label = "Hall Effect Sensor";
63 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
64 linux,input-type = <EV_SW>;
65 linux,code = <SW_LID>;
75 compatible = "capella,cm3323";
80 compatible = "st,lis2hh12";
83 vdd-supply = <&pm8916_l17>;
84 vddio-supply = <&pm8916_l5>;
86 interrupt-parent = <&tlmm>;
87 interrupts = <115 IRQ_TYPE_LEVEL_HIGH>;
89 st,drdy-int-pin = <1>;
90 mount-matrix = "0", "1", "0",
94 pinctrl-0 = <&accel_int_default>;
95 pinctrl-names = "default";
103 compatible = "maxim,max77849-battery";
106 maxim,rsns-microohm = <10000>;
107 maxim,over-heat-temp = <600>;
108 maxim,over-volt = <4400>;
110 interrupt-parent = <&tlmm>;
111 interrupts = <121 IRQ_TYPE_EDGE_FALLING>;
113 pinctrl-0 = <&fuelgauge_int_default>;
114 pinctrl-names = "default";
123 * For some reason the speaker amplifier is connected to the second SD line
124 * (MI2S_2_D1) instead of the first (MI2S_2_D0). This must be configured in the
125 * device tree, otherwise audio will seemingly play fine on the wrong SD line
126 * but the speaker stays silent.
128 * When routing audio via QDSP6 (the default) the &lpass node is reserved and
129 * the definitions from &q6afedai are used. When the modem is disabled audio can
130 * be alternatively routed directly to the LPASS hardware with reduced latency.
131 * The definitions for &lpass are here for completeness to simplify changing the
132 * setup with minor changes to the DT (either manually or with DT overlays).
136 reg = <MI2S_QUATERNARY>;
137 qcom,playback-sd-lines = <1>;
142 reg = <0x0 0x86800000 0x0 0x5400000>;
146 linux,code = <KEY_VOLUMEDOWN>;
150 &pm8916_rpm_regulators {
152 regulator-min-microvolt = <2850000>;
153 regulator-max-microvolt = <2850000>;
157 /* FIXME: Replace with MAX77849 MUIC when driver is available */
164 reg = <QUATERNARY_MI2S_RX>;
174 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
175 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
176 pinctrl-names = "default", "sleep";
178 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
185 "AMIC1", "MIC BIAS External1",
186 "AMIC2", "MIC BIAS Internal2",
187 "AMIC3", "MIC BIAS External1";
189 sound_link_backend2: backend2-dai-link {
190 link-name = "Quaternary MI2S";
193 sound-dai = <&q6afedai QUATERNARY_MI2S_RX>;
196 sound-dai = <&q6routing>;
199 sound-dai = <&speaker_codec>;
205 dr_mode = "peripheral";
206 extcon = <&pm8916_usbin>;
212 extcon = <&pm8916_usbin>;
228 compatible = "qcom,wcn3660b";
236 accel_int_default: accel-int-default-state {
239 drive-strength = <2>;
243 fuelgauge_int_default: fuelgauge-int-default-state {
246 drive-strength = <2>;
250 gpio_keys_default: gpio-keys-default-state {
251 pins = "gpio107", "gpio109";
253 drive-strength = <2>;
257 gpio_hall_sensor_default: gpio-hall-sensor-default-state {
260 drive-strength = <2>;
264 sdc2_cd_default: sdc2-cd-default-state {
267 drive-strength = <2>;