1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2022, Konrad Dybcio <konrad.dybcio@somainline.org>
4 * Copyright (c) 2022, Linaro Limited
5 */
6
7/dts-v1/;
8
9#include "sm8450-sony-xperia-nagara.dtsi"
10
11/ {
12	model = "Sony Xperia 5 IV";
13	compatible = "sony,pdx224", "qcom,sm8450";
14
15	imx563_vdig_vreg: imx563-vdig-regulator {
16		compatible = "regulator-fixed";
17		regulator-name = "imx563_vdig_vreg";
18		gpio = <&tlmm 22 GPIO_ACTIVE_HIGH>;
19		enable-active-high;
20	};
21};
22
23&tlmm {
24	gpio-line-names = "TELE_SPI_MISO", /* GPIO_0 */
25			  "TELE_SPI_MOSI", /* SONY says NC, but it only makes sense this way.. */
26			  "TELE_SPI_CLK",
27			  "TELE_SPI_CS_N",
28			  "WLC_I2C_SDA",
29			  "WLC_I2C_SCL",
30			  "NC",
31			  "PM8010_1_RESET_N",
32			  "WLC_INT_N",
33			  "NC",
34			  "NC", /* GPIO_10 */
35			  "NC",
36			  "DISP_ERR_FG",
37			  "HALL_INT_N",
38			  "ALS_PROX_INT_N",
39			  "IMU1_INT",
40			  "TS_I2C_SDA",
41			  "TS_I2C_SCL",
42			  "DISP_RESET_N",
43			  "DISP_VDDR_EN",
44			  "TS_RESET_N", /* GPIO_20 */
45			  "TS_INT_N",
46			  "UWIDEC_PWR_EN",
47			  "TELEC_PWR_EN",
48			  "CAM1_RESET_N",
49			  "LEO_CAM0_RESET_N",
50			  "DEBUG_UART_TX",
51			  "DEBUG_UART_RX",
52			  "FP_SPI_MISO",
53			  "FP_SPI_MOSI",
54			  "FP_SPI_CLK", /* GPIO_30 */
55			  "FP_SPI_CS_N",
56			  "NFC_I2C_SDA",
57			  "NFC_I2C_SCL",
58			  "NFC_EN",
59			  "NFC_CLK_REQ",
60			  "NFC_ESE_SPI_MISO",
61			  "NFC_ESE_SPI_MOSI",
62			  "NFC_ESE_SPI_CLK",
63			  "NFC_ESE_SPI_CS",
64			  "FP_INT_N", /* GPIO_40 */
65			  "NC",
66			  "FP_RESET_N",
67			  "WCD_RST_N",
68			  "NC",
69			  "NFC_DWL_REQ",
70			  "NFC_IRQ",
71			  "FORCE_USB_BOOT",
72			  "APPS_I2C_1_SDA",
73			  "APPS_I2C_1_SCL",
74			  "SBU_SW_OE", /* GPIO_50 */
75			  "SBU_SW_SEL",
76			  "SPK_AMP_I2C_SDA",
77			  "SPK_AMP_I2C_SCL",
78			  "NC",
79			  "NC",
80			  "CAMSENSOR_I2C_SDA",
81			  "CAMSENSOR_I2C_SCL",
82			  "GNSS_ELNA_EN0",
83			  "NC",
84			  "NC", /* GPIO_60 */
85			  "NC",
86			  "NC",
87			  "NC",
88			  "NC",
89			  "NC",
90			  "RGBC_IR_INT",
91			  "NC",
92			  "NC",
93			  "NC",
94			  "NC", /* GPIO_70 */
95			  "NC",
96			  "HAP_I2C_SDA",
97			  "HAP_I2C_SCL",
98			  "HAP_RST_N",
99			  "HAP_INT_N",
100			  "HST_BT_UART_CTS",
101			  "HST_BT_UART_RFR",
102			  "HST_BT_UART_TX",
103			  "HST_BT_UART_RX",
104			  "HST_WLAN_EN", /* GPIO_80 */
105			  "HST_BT_EN",
106			  "HST_SW_CTRL",
107			  "NC",
108			  "NC",
109			  "NC",
110			  "DISP_VSYNC",
111			  "NC",
112			  "NC",
113			  "HW_ID_0",
114			  "HW_ID_1", /* GPIO_90 */
115			  "USB_CC_DIR",
116			  "TRAY_DET",
117			  "SW_SERVICE",
118			  "PCIE0_RESET_N",
119			  "PCIE0_CLK_REQ_N",
120			  "PCIE0_WAKE_N",
121			  "OIS_ENABLE_WIDE",
122			  "DEBUG_GPIO0",
123			  "NC",
124			  "CAM_MCLK0", /* GPIO_100 */
125			  "CAM_MCLK1",
126			  "CAM_MCLK2",
127			  "CAM_MCLK3",
128			  "NC",
129			  "NC",
130			  "NC", /* SONY didn't rename this, but there's no ToF so it's likely NC */
131			  "CAM_SOF",
132			  "NC",
133			  "AFEXPTMG_TELE",
134			  "CCI_I2C0_SDA", /* GPIO_110 */
135			  "CCI_I2C0_SCL",
136			  "CCI_I2C1_SDA",
137			  "CCI_I2C1_SCL",
138			  "CCI_I2C2_SDA",
139			  "CCI_I2C2_SCL",
140			  "NC",
141			  "CAM2_RESET_N",
142			  "NC",
143			  "EXT_VD0_XVS",
144			  "CAM3_RESET_N", /* GPIO_120 */
145			  "NC",
146			  "NC",
147			  "NC",
148			  "NC",
149			  "RF_ID_EXTENSION_2",
150			  "HAP_I2S_CLK",
151			  "HAP_I2S_DOUT",
152			  "HAP_TRG1",
153			  "HAP_I2S_SYNC",
154			  "UIM1_DATA", /* GPIO_130 */
155			  "UIM1_CLK",
156			  "UIM1_RESET",
157			  "TRAY_DET",
158			  "UIM2_DATA",
159			  "UIM2_CLK",
160			  "UIM2_RESET",
161			  "UIM2_PRESENT",
162			  "SM_RFFE0_CLK",
163			  "SM_RFFE0_DATA",
164			  "SM_RFFE1_CLK", /* GPIO_140 */
165			  "SM_RFFE1_DATA",
166			  "SM_MSS_GRFC4",
167			  "HST_AS_EN",
168			  "LAA_RX_EN",
169			  "NC",
170			  "SM_RFFE4_CLK",
171			  "SM_RFFE4_DATA",
172			  "WLAN_COEX_UART1_RX",
173			  "WLAN_COEX_UART1_TX",
174			  "RF_LCD_ID_EN", /* GPIO_150 */
175			  "RF_ID_EXTENSION",
176			  "SM_MSS_GRFC12",
177			  "NFC_COLD_RST",
178			  "NC",
179			  "NC",
180			  "SDR1_QLINK0_REQ",
181			  "SDR1_QLINK0_EN",
182			  "SDR1_QLINK0_WMSS_RESET_N",
183			  "NC",
184			  "NC", /* GPIO_160 */
185			  "NC",
186			  "SDR2_QLINK2_REQ",
187			  "SDR2_QLINK2_EN",
188			  "SDR2_QLINK2_WMSS_RESET_N",
189			  "WCD_SWR_TX_CLK",
190			  "WCD_SWR_TX_DATA0",
191			  "WCD_SWR_TX_DATA1",
192			  "WCD_SWR_RX_CLK",
193			  "WCD_SWR_RX_DATA0",
194			  "WCD_SWR_RX_DATA1", /* GPIO_170 */
195			  "SM_DMIC1_CLK",
196			  "SM_DMIC1_DATA",
197			  "SM_DMIC2_CLK",
198			  "SM_DMIC2_DATA",
199			  "SPK_AMP_I2S_CLK",
200			  "SPK_AMP_I2S_WS",
201			  "NC",
202			  "NC",
203			  "WCD_SWR_TX_DATA2",
204			  "SPK_AMP_I2S_ASP_DIN", /* GPIO_180 */
205			  "SPK_AMP_I2S_ASP_DOUT",
206			  "SPK_AMP_INT_N",
207			  "SPK_AMP_RESET_N",
208			  "HST_BT_WLAN_SLIMBUS_CLK",
209			  "HST_BT_WLAN_SLIMBUS_DAT0",
210			  "NC",
211			  "NC",
212			  "NC",
213			  "NC",
214			  "MAG_I2C_SDA", /* GPIO_190 */
215			  "MAG_I2C_SCL",
216			  "IMU_SPI_MISO",
217			  "IMU_SPI_MOSI",
218			  "IMU_SPI_CLK",
219			  "IMU_SPI_CS_N",
220			  "SENSOR_I2C_SDA",
221			  "SENSOR_I2C_SCL",
222			  "OIS_TELE_I2C_SDA",
223			  "OIS_TELE_I2C_SCL",
224			  "NC", /* GPIO_200 */
225			  "OIS_ENABLE_TELE",
226			  "HST_BLE_UART_TX",
227			  "HST_BLE_UART_RX",
228			  "HSTP_CLK_CFG_SEL",
229			  "NC",
230			  "APPS_I2C_0_SDA",
231			  "APPS_I2C_0_SCL",
232			  "CCI_I2C3_SDA",
233			  "CCI_I2C3_SCL";
234};
235