xref: /linux/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino-maple.dts (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2021, AngeloGioacchino Del Regno
4 *                     <angelogioacchino.delregno@somainline.org>
5 */
6
7/dts-v1/;
8
9#include "msm8998-sony-xperia-yoshino.dtsi"
10
11/ {
12	model = "Sony Xperia XZ Premium";
13	compatible = "sony,xperia-maple", "qcom,msm8998";
14	chassis-type = "handset";
15
16	disp_dvdd_vreg: disp-dvdd-vreg {
17		compatible = "regulator-fixed";
18		regulator-name = "disp_dvdd_en";
19		regulator-min-microvolt = <1350000>;
20		regulator-max-microvolt = <1350000>;
21		startup-delay-us = <0>;
22		enable-active-high;
23		gpio = <&pmi8998_gpios 10 GPIO_ACTIVE_HIGH>;
24		pinctrl-names = "default";
25		pinctrl-0 = <&four_k_disp_dcdc_en>;
26	};
27};
28
29&ibb {
30	regulator-min-microvolt = <5600000>;
31	regulator-max-microvolt = <5600000>;
32};
33
34&lab {
35	regulator-min-microvolt = <5800000>;
36	regulator-max-microvolt = <5800000>;
37	qcom,soft-start-us = <200>;
38};
39
40&pm8005_gpios {
41	gpio-line-names = "EAR_EN", /* GPIO_1 */
42			  "NC",
43			  "SLB",
44			  "OPTION_1_PM8005";
45};
46
47&pmi8998_gpios {
48	gpio-line-names = "MAIN_CAM_PWR_IO_EN", /* GPIO_1 */
49			  "NC",
50			  "NC",
51			  "TYPEC_UUSB_SEL",
52			  "VIB_LDO_EN",
53			  "NC",
54			  "DISPLAY_TYPE_SEL",
55			  "USB_SWITCH_SEL",
56			  "NC",
57			  "4K_DISP_DCDC_EN", /* GPIO_10 */
58			  "NC",
59			  "DIV_CLK3",
60			  "SPMI_I2C_SEL",
61			  "NC";
62
63	four_k_disp_dcdc_en: 4k-disp-dcdc-en-state {
64		pins = "gpio10";
65		function = "normal";
66		bias-disable;
67		drive-push-pull;
68		output-high;
69		power-source = <0>;
70		qcom,drive-strength = <1>;
71	};
72};
73
74&tlmm {
75	gpio-line-names = "", /* GPIO_0 */
76			  "",
77			  "",
78			  "",
79			  "DEBUG_UART_TX",
80			  "DEBUG_UART_RX",
81			  "CAMSENSOR_I2C_SDA",
82			  "CAMSENSOR_I2C_SCL",
83			  "NC",
84			  "NC",
85			  "MDP_VSYNC_P", /* GPIO_10 */
86			  "RGBC_IR_INT",
87			  "NFC_VEN",
88			  "CAM_MCLK0",
89			  "CAM_MCLK1",
90			  "NC",
91			  "NC",
92			  "CCI_I2C_SDA0",
93			  "CCI_I2C_SCL0",
94			  "CCI_I2C_SDA1",
95			  "CCI_I2C_SCL1", /* GPIO_20 */
96			  "MAIN_CAM_PWR_EN",
97			  "TOF_INT_N",
98			  "NC",
99			  "NC",
100			  "CHAT_CAM_PWR_EN",
101			  "NC",
102			  "TOF_RESET_N",
103			  "CAM2_RSTN",
104			  "NC",
105			  "CAM1_RSTN", /* GPIO_30 */
106			  "NC",
107			  "NC",
108			  "NC",
109			  "NC",
110			  "NC",
111			  "NC",
112			  "NC",
113			  "CC_DIR",
114			  "UIM2_DETECT_EN",
115			  "FP_RESET_N", /* GPIO_40 */
116			  "NC",
117			  "NC",
118			  "NC",
119			  "NC",
120			  "BT_HCI_UART_TXD",
121			  "BT_HCI_UART_RXD",
122			  "BT_HCI_UART_CTS_N",
123			  "BT_HCI_UART_RFR_N",
124			  "NC",
125			  "NC", /* GPIO_50 */
126			  "NC",
127			  "NC",
128			  "CODEC_INT2_N",
129			  "CODEC_INT1_N",
130			  "APPS_I2C_SDA",
131			  "APPS_I2C_SCL",
132			  "FORCED_USB_BOOT",
133			  "NC",
134			  "NC",
135			  "NC", /* GPIO_60 */
136			  "NC",
137			  "NC",
138			  "TRAY2_DET_DS",
139			  "CODEC_RST_N",
140			  "WSA_L_EN",
141			  "WSA_R_EN",
142			  "NC",
143			  "NC",
144			  "NC",
145			  "LPASS_SLIMBUS_CLK", /* GPIO_70 */
146			  "LPASS_SLIMBUS_DATA0",
147			  "LPASS_SLIMBUS_DATA1",
148			  "BT_FM_SLIMBUS_DATA",
149			  "BT_FM_SLIMBUS_CLK",
150			  "NC",
151			  "RF_LCD_ID_EN",
152			  "NC",
153			  "NC",
154			  "NC",
155			  "NC", /* GPIO_80 */
156			  "SW_SERVICE",
157			  "TX_GTR_THRES_IN",
158			  "HW_ID0",
159			  "HW_ID1",
160			  "NC",
161			  "NC",
162			  "TS_I2C_SDA",
163			  "TS_I2C_SCL",
164			  "TS_RESET_N",
165			  "NC", /* GPIO_90 */
166			  "NC",
167			  "NFC_IRQ",
168			  "NFC_DWLD_EN",
169			  "DISP_RESET_N",
170			  "TRAY2_DET",
171			  "CAM_SOF",
172			  "RFFE6_CLK",
173			  "RFFE6_DATA",
174			  "DEBUG_GPIO0",
175			  "DEBUG_GPIO1", /* GPIO_100 */
176			  "GRFC4",
177			  "NC",
178			  "NC",
179			  "RSVD",
180			  "UIM2_DATA",
181			  "UIM2_CLK",
182			  "UIM2_RESET",
183			  "UIM2_PRESENT",
184			  "UIM1_DATA",
185			  "UIM1_CLK", /* GPIO_110 */
186			  "UIM1_RST",
187			  "UIM1_PRESENT",
188			  "UIM_BATT_ALARM",
189			  "RSVD",
190			  "NC",
191			  "NC",
192			  "ACCEL_INT",
193			  "GYRO_INT",
194			  "COMPASS_INT",
195			  "ALS_PROX_INT_N", /* GPIO_120 */
196			  "FP_INT_N",
197			  "NC",
198			  "BAROMETER_INT",
199			  "ACC_COVER_OPEN",
200			  "TS_INT_N",
201			  "NC",
202			  "NC",
203			  "USB_DETECT_EN",
204			  "NC",
205			  "QLINK_REQUEST", /* GPIO_130 */
206			  "QLINK_ENABLE",
207			  "NC",
208			  "TS_VDDIO_EN",
209			  "WMSS_RESET_N",
210			  "PA_INDICATOR_OR",
211			  "NC",
212			  "RFFE3_DATA",
213			  "RFFE3_CLK",
214			  "RFFE4_DATA",
215			  "RFFE4_CLK", /* GPIO_140 */
216			  "RFFE5_DATA",
217			  "RFFE5_CLK",
218			  "GNSS_EN",
219			  "MSS_LTE_COXM_TXD",
220			  "MSS_LTE_COXM_RXD",
221			  "RFFE2_DATA",
222			  "RFFE2_CLK",
223			  "RFFE1_DATA",
224			  "RFFE1_CLK";
225};
226
227&vreg_l22a_2p85 {
228	regulator-min-microvolt = <2704000>;
229	regulator-max-microvolt = <2704000>;
230};
231