xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/msm8994-sony-xperia-kitakami.dtsi (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2020, Konrad Dybcio
4 */
5
6#include "msm8994.dtsi"
7#include "pm8994.dtsi"
8#include "pmi8994.dtsi"
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/input/gpio-keys.h>
11
12/ {
13	/* required for bootloader to select correct board */
14	qcom,msm-id = <0xcf 0x20001>;
15	qcom,pmic-id = <0x10009 0x1000a 0x00 0x00>;
16	qcom,board-id = <8 0>;
17
18	/* Kitakami firmware doesn't support PSCI */
19	/delete-node/ psci;
20
21	gpio_keys {
22		compatible = "gpio-keys";
23		input-name = "gpio-keys";
24		#address-cells = <1>;
25		#size-cells = <0>;
26		autorepeat;
27
28		button@0 {
29			label = "Volume Down";
30			gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>;
31			linux,input-type = <1>;
32			linux,code = <KEY_VOLUMEDOWN>;
33			wakeup-source;
34			debounce-interval = <15>;
35		};
36
37		button@1 {
38			label = "Volume Up";
39			gpios = <&pm8994_gpios 3 GPIO_ACTIVE_LOW>;
40			linux,input-type = <1>;
41			linux,code = <KEY_VOLUMEUP>;
42			wakeup-source;
43			debounce-interval = <15>;
44		};
45
46		button@2 {
47			label = "Camera Snapshot";
48			gpios = <&pm8994_gpios 4 GPIO_ACTIVE_LOW>;
49			linux,input-type = <1>;
50			linux,code = <KEY_CAMERA>;
51			wakeup-source;
52			debounce-interval = <15>;
53		};
54
55		button@3 {
56			label = "Camera Focus";
57			gpios = <&pm8994_gpios 5 GPIO_ACTIVE_LOW>;
58			linux,input-type = <1>;
59			linux,code = <KEY_VOLUMEUP>;
60			wakeup-source;
61			debounce-interval = <15>;
62		};
63	};
64
65	reserved-memory {
66		#address-cells = <2>;
67		#size-cells = <2>;
68		ranges;
69
70		/* This is for getting crash logs using Android downstream kernels */
71		ramoops@1fe00000 {
72			compatible = "ramoops";
73			reg = <0x0 0x1fe00000 0x0 0x200000>;
74			console-size = <0x100000>;
75			record-size = <0x10000>;
76			ftrace-size = <0x10000>;
77			pmsg-size = <0x80000>;
78		};
79
80		continuous_splash: framebuffer@3401000{
81			reg = <0x0 0x3401000 0x0 0x2200000>;
82			no-map;
83		};
84
85		dfps_data_mem: dfps_data_mem@3400000 {
86			reg = <0x0 0x3400000 0x0 0x1000>;
87			no-map;
88		};
89
90		peripheral_region: peripheral_region@7400000 {
91			reg = <0x0 0x7400000 0x0 0x1c00000>;
92			no-map;
93		};
94
95		modem_region: modem_region@9000000 {
96			reg = <0x0 0x9000000 0x0 0x5a00000>;
97			no-map;
98		};
99
100		tzapp: modem_region@ea00000 {
101			reg = <0x0 0xea00000 0x0 0x1900000>;
102			no-map;
103		};
104
105		fb_region: fb_region@40000000 {
106			reg = <0x00 0x40000000 0x00 0x1000000>;
107			no-map;
108		};
109	};
110};
111
112&blsp_spi0 {
113	status = "okay";
114
115	/* FPC fingerprint reader */
116};
117
118/* I2C1 is disabled on this board */
119
120&blsp_i2c2 {
121	status = "okay";
122
123	/* NXP NFC */
124};
125
126&blsp_i2c4 {
127	status = "okay";
128
129	/* Empty but active */
130};
131
132&blsp_i2c5 {
133	status = "okay";
134
135	/* SMB1357 charger and sii8620 HDMI/MHL bridge */
136};
137
138&blsp_i2c6 {
139	status = "okay";
140
141	/* Synaptics touchscreen */
142};
143
144&blsp1_uart2 {
145	status = "okay";
146};
147
148&blsp2_uart2 {
149	status = "okay";
150};
151
152&rpm_requests {
153	pm8994_regulators: pm8994-regulators {
154		compatible = "qcom,rpm-pm8994-regulators";
155		vdd_l1-supply = <&pm8994_s1>;
156		vdd_l2_26_28-supply = <&pm8994_s3>;
157		vdd_l3_11-supply = <&pm8994_s3>;
158		vdd_l4_27_31-supply = <&pm8994_s3>;
159		vdd_l5_7-supply = <&pm8994_s3>;
160		vdd_l6_12_32-supply = <&pm8994_s5>;
161		vdd_l8_16_30-supply = <&vreg_vph_pwr>;
162		vdd_l9_10_18_22-supply = <&vreg_vph_pwr>;
163		vdd_l13_19_23_24-supply = <&vreg_vph_pwr>;
164		vdd_l14_15-supply = <&pm8994_s5>;
165		vdd_l17_29-supply = <&vreg_vph_pwr>;
166		vdd_l20_21-supply = <&vreg_vph_pwr>;
167		vdd_l25-supply = <&pm8994_s5>;
168		vdd_lvs1_2 = <&pm8994_s4>;
169
170		pm8994_s1: s1 {};
171		pm8994_s2: s2 {};
172		pm8994_s3: s3 {};
173		pm8994_s4: s4 {};
174		pm8994_s5: s5 {};
175		pm8994_s6: s6 {};
176		pm8994_s7: s7 {};
177
178		pm8994_l1: l1 {};
179		pm8994_l2: l2 {};
180		pm8994_l3: l3 {};
181		pm8994_l4: l4 {};
182		pm8994_l6: l6 {};
183		pm8994_l8: l8 {};
184		pm8994_l9: l9 {};
185		pm8994_l10: l10 {};
186		pm8994_l11: l11 {};
187		pm8994_l12: l12 {};
188		pm8994_l13: l13 {};
189		pm8994_l14: l14 {};
190		pm8994_l15: l15 {};
191		pm8994_l16: l16 {};
192		pm8994_l17: l17 {};
193		pm8994_l18: l18 {};
194		pm8994_l19: l19 {};
195		pm8994_l20: l20 {};
196		pm8994_l21: l21 {};
197		pm8994_l22: l22 {};
198		pm8994_l23: l23 {};
199		pm8994_l24: l24 {};
200		pm8994_l25: l25 {};
201		pm8994_l26: l26 {};
202		pm8994_l27: l27 {};
203		pm8994_l28: l28 {};
204		pm8994_l29: l29 {};
205		pm8994_l30: l30 {};
206		pm8994_l31: l31 {};
207		pm8994_l32: l32 {};
208
209		pm8994_lvs1: lvs1 {};
210		pm8994_lvs2: lvs2 {};
211	};
212
213	pmi8994_regulators: pmi8994-regulators {
214		compatible = "qcom,rpm-pmi8994-regulators";
215
216		pmi8994_s1: s1 {};
217		pmi8994_s2: s2 {};
218		pmi8994_s3: s3 {};
219		pmi8994_bby: boost-bypass {};
220	};
221};
222
223&sdhc1 {
224	/* There is an issue with the eMMC causing permanent
225	 * damage to the card if a quirk isn't addressed.
226	 * Until it's fixed, disable the MMC so as not to brick
227	 * devices.
228	 */
229	status = "disabled";
230
231	/* Downstream pushes 2.95V to the sdhci device,
232	 * but upstream driver REALLY wants to make vmmc 1.8v
233	 * cause of the hs400-1_8v mode. MMC works fine without
234	 * that regulator, so let's not use it for now.
235	 * vqmmc is also disabled cause driver stll complains.
236	 *
237	 * vmmc-supply = <&pm8994_l20>;
238	 * vqmmc-supply = <&pm8994_s4>;
239	 */
240};
241