1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2021, Konrad Dybcio <konrad.dy 3 * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org> 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include "sm8250-sony-xperia-edo.dtsi" 8 #include "sm8250-sony-xperia-edo.dtsi" 9 9 10 / { 10 / { 11 model = "Sony Xperia 1 II"; 11 model = "Sony Xperia 1 II"; 12 compatible = "sony,pdx203-generic", "q 12 compatible = "sony,pdx203-generic", "qcom,sm8250"; 13 chassis-type = "handset"; 13 chassis-type = "handset"; 14 }; 14 }; 15 15 16 /delete-node/ &vreg_l7f_1p8; 16 /delete-node/ &vreg_l7f_1p8; 17 17 18 &i2c5 { << 19 clock-frequency = <400000>; << 20 status = "okay"; << 21 << 22 pmic@75 { << 23 compatible = "dlg,slg51000"; << 24 reg = <0x75>; << 25 dlg,cs-gpios = <&tlmm 69 GPIO_ << 26 vin5-supply = <&vreg_s1f_1p2>; << 27 vin6-supply = <&vreg_s1f_1p2>; << 28 << 29 pinctrl-0 = <&cam_pwr_b_cs>; << 30 pinctrl-names = "default"; << 31 << 32 regulators { << 33 slg51000_1_ldo1: ldo1 << 34 regulator-name << 35 regulator-min- << 36 regulator-max- << 37 }; << 38 << 39 slg51000_1_ldo2: ldo2 << 40 regulator-name << 41 regulator-min- << 42 regulator-max- << 43 }; << 44 << 45 slg51000_1_ldo3: ldo3 << 46 regulator-name << 47 regulator-min- << 48 regulator-max- << 49 }; << 50 << 51 slg51000_1_ldo4: ldo4 << 52 regulator-name << 53 regulator-min- << 54 regulator-max- << 55 }; << 56 << 57 slg51000_1_ldo5: ldo5 << 58 regulator-name << 59 regulator-min- << 60 regulator-max- << 61 }; << 62 << 63 slg51000_1_ldo6: ldo6 << 64 regulator-name << 65 regulator-min- << 66 regulator-max- << 67 }; << 68 << 69 slg51000_1_ldo7: ldo7 << 70 regulator-name << 71 regulator-min- << 72 regulator-max- << 73 }; << 74 }; << 75 }; << 76 }; << 77 << 78 &i2c15 { << 79 pmic@75 { << 80 compatible = "dlg,slg51000"; << 81 reg = <0x75>; << 82 dlg,cs-gpios = <&tlmm 71 GPIO_ << 83 vin5-supply = <&vreg_l2f_1p3>; << 84 vin6-supply = <&vreg_l2f_1p3>; << 85 << 86 pinctrl-0 = <&cam_pwr_a_cs>; << 87 pinctrl-names = "default"; << 88 << 89 regulators { << 90 slg51000_0_ldo1: ldo1 << 91 regulator-name << 92 regulator-min- << 93 regulator-max- << 94 }; << 95 << 96 slg51000_0_ldo2: ldo2 << 97 regulator-name << 98 regulator-min- << 99 regulator-max- << 100 }; << 101 << 102 slg51000_0_ldo3: ldo3 << 103 regulator-name << 104 regulator-min- << 105 regulator-max- << 106 }; << 107 << 108 slg51000_0_ldo4: ldo4 << 109 regulator-name << 110 regulator-min- << 111 regulator-max- << 112 }; << 113 << 114 slg51000_0_ldo5: ldo5 << 115 regulator-name << 116 regulator-min- << 117 regulator-max- << 118 }; << 119 << 120 slg51000_0_ldo6: ldo6 << 121 regulator-name << 122 regulator-min- << 123 regulator-max- << 124 }; << 125 << 126 slg51000_0_ldo7: ldo7 << 127 regulator-name << 128 regulator-min- << 129 regulator-max- << 130 }; << 131 }; << 132 }; << 133 }; << 134 << 135 &pm8009_gpios { 18 &pm8009_gpios { 136 gpio-line-names = "NC", /* GPIO_1 */ 19 gpio-line-names = "NC", /* GPIO_1 */ 137 "CAM_PWR_LD_EN", 20 "CAM_PWR_LD_EN", 138 "WIDEC_PWR_EN", 21 "WIDEC_PWR_EN", 139 "NC"; 22 "NC"; 140 }; 23 }; 141 24 142 &pm8150_gpios { 25 &pm8150_gpios { 143 gpio-line-names = "VOL_DOWN_N", /* GPI 26 gpio-line-names = "VOL_DOWN_N", /* GPIO_1 */ 144 "OPTION_2", 27 "OPTION_2", 145 "NC", 28 "NC", 146 "PM_SLP_CLK_IN", 29 "PM_SLP_CLK_IN", 147 "OPTION_1", 30 "OPTION_1", 148 "NC", 31 "NC", 149 "NC", 32 "NC", 150 "SP_ARI_PWR_ALARM", 33 "SP_ARI_PWR_ALARM", 151 "NC", 34 "NC", 152 "NC"; /* GPIO_10 */ 35 "NC"; /* GPIO_10 */ 153 }; 36 }; 154 37 155 &pm8150b_gpios { 38 &pm8150b_gpios { 156 gpio-line-names = "SNAPSHOT_N", /* GPI 39 gpio-line-names = "SNAPSHOT_N", /* GPIO_1 */ 157 "FOCUS_N", 40 "FOCUS_N", 158 "NC", 41 "NC", 159 "NC", 42 "NC", 160 "RF_LCD_ID_EN", 43 "RF_LCD_ID_EN", 161 "NC", 44 "NC", 162 "NC", 45 "NC", 163 "LCD_ID", 46 "LCD_ID", 164 "NC", 47 "NC", 165 "WLC_EN_N", /* GPIO_ 48 "WLC_EN_N", /* GPIO_10 */ 166 "NC", 49 "NC", 167 "RF_ID"; 50 "RF_ID"; 168 }; 51 }; 169 52 170 &pm8150l_gpios { 53 &pm8150l_gpios { 171 gpio-line-names = "NC", /* GPIO_1 */ 54 gpio-line-names = "NC", /* GPIO_1 */ 172 "PM3003A_EN", 55 "PM3003A_EN", 173 "NC", 56 "NC", 174 "NC", 57 "NC", 175 "NC", 58 "NC", 176 "AUX2_THERM", 59 "AUX2_THERM", 177 "BB_HP_EN", 60 "BB_HP_EN", 178 "FP_LDO_EN", 61 "FP_LDO_EN", 179 "PMX_RESET_N", 62 "PMX_RESET_N", 180 "AUX3_THERM", /* GPI 63 "AUX3_THERM", /* GPIO_10 */ 181 "DTV_PWR_EN", 64 "DTV_PWR_EN", 182 "PM3003A_MODE"; 65 "PM3003A_MODE"; 183 }; 66 }; 184 67 185 &tlmm { 68 &tlmm { 186 gpio-line-names = "AP_CTI_IN", /* GPIO 69 gpio-line-names = "AP_CTI_IN", /* GPIO_0 */ 187 "MDM2AP_ERR_FATAL", 70 "MDM2AP_ERR_FATAL", 188 "AP_CTI_OUT", 71 "AP_CTI_OUT", 189 "MDM2AP_STATUS", 72 "MDM2AP_STATUS", 190 "NFC_I2C_SDA", 73 "NFC_I2C_SDA", 191 "NFC_I2C_SCL", 74 "NFC_I2C_SCL", 192 "NFC_EN", 75 "NFC_EN", 193 "NFC_CLK_REQ", 76 "NFC_CLK_REQ", 194 "NFC_ESE_PWR_REQ", 77 "NFC_ESE_PWR_REQ", 195 "DVDT_WRT_DET_AND", 78 "DVDT_WRT_DET_AND", 196 "SPK_AMP_RESET_N", / 79 "SPK_AMP_RESET_N", /* GPIO_10 */ 197 "SPK_AMP_INT_N", 80 "SPK_AMP_INT_N", 198 "APPS_I2C_1_SDA", 81 "APPS_I2C_1_SDA", 199 "APPS_I2C_1_SCL", 82 "APPS_I2C_1_SCL", 200 "NC", 83 "NC", 201 "TX_GTR_THRES_IN", 84 "TX_GTR_THRES_IN", 202 "HST_BT_UART_CTS", 85 "HST_BT_UART_CTS", 203 "HST_BT_UART_RFR", 86 "HST_BT_UART_RFR", 204 "HST_BT_UART_TX", 87 "HST_BT_UART_TX", 205 "HST_BT_UART_RX", 88 "HST_BT_UART_RX", 206 "HST_WLAN_EN", /* GP 89 "HST_WLAN_EN", /* GPIO_20 */ 207 "HST_BT_EN", 90 "HST_BT_EN", 208 "RGBC_IR_PWR_EN", 91 "RGBC_IR_PWR_EN", 209 "FP_INT_N", 92 "FP_INT_N", 210 "NC", 93 "NC", 211 "NC", 94 "NC", 212 "NC", 95 "NC", 213 "NC", 96 "NC", 214 "NFC_ESE_SPI_MISO", 97 "NFC_ESE_SPI_MISO", 215 "NFC_ESE_SPI_MOSI", 98 "NFC_ESE_SPI_MOSI", 216 "NFC_ESE_SPI_SCLK", 99 "NFC_ESE_SPI_SCLK", /* GPIO_30 */ 217 "NFC_ESE_SPI_CS_N", 100 "NFC_ESE_SPI_CS_N", 218 "WCD_RST_N", 101 "WCD_RST_N", 219 "NC", 102 "NC", 220 "SDM_DEBUG_UART_TX", 103 "SDM_DEBUG_UART_TX", 221 "SDM_DEBUG_UART_RX", 104 "SDM_DEBUG_UART_RX", 222 "TS_I2C_SDA", 105 "TS_I2C_SDA", 223 "TS_I2C_SCL", 106 "TS_I2C_SCL", 224 "TS_INT_N", 107 "TS_INT_N", 225 "FP_SPI_MISO", /* GP 108 "FP_SPI_MISO", /* GPIO_40 */ 226 "FP_SPI_MOSI", 109 "FP_SPI_MOSI", 227 "FP_SPI_SCLK", 110 "FP_SPI_SCLK", 228 "FP_SPI_CS_N", 111 "FP_SPI_CS_N", 229 "APPS_I2C_0_SDA", 112 "APPS_I2C_0_SDA", 230 "APPS_I2C_0_SCL", 113 "APPS_I2C_0_SCL", 231 "DISP_ERR_FG", 114 "DISP_ERR_FG", 232 "UIM2_DETECT_EN", 115 "UIM2_DETECT_EN", 233 "NC", 116 "NC", 234 "NC", 117 "NC", 235 "NC", /* GPIO_50 */ 118 "NC", /* GPIO_50 */ 236 "NC", 119 "NC", 237 "MDM_UART_CTS", 120 "MDM_UART_CTS", 238 "MDM_UART_RFR", 121 "MDM_UART_RFR", 239 "MDM_UART_TX", 122 "MDM_UART_TX", 240 "MDM_UART_RX", 123 "MDM_UART_RX", 241 "AP2MDM_STATUS", 124 "AP2MDM_STATUS", 242 "AP2MDM_ERR_FATAL", 125 "AP2MDM_ERR_FATAL", 243 "MDM_IPC_HS_UART_TX" 126 "MDM_IPC_HS_UART_TX", 244 "MDM_IPC_HS_UART_RX" 127 "MDM_IPC_HS_UART_RX", 245 "NC", /* GPIO_60 */ 128 "NC", /* GPIO_60 */ 246 "NC", 129 "NC", 247 "NC", 130 "NC", 248 "NC", 131 "NC", 249 "NC", 132 "NC", 250 "USB_CC_DIR", 133 "USB_CC_DIR", 251 "DISP_VSYNC", 134 "DISP_VSYNC", 252 "NC", 135 "NC", 253 "NC", 136 "NC", 254 "CAM_PWR_B_CS", 137 "CAM_PWR_B_CS", 255 "NC", /* GPIO_70 */ 138 "NC", /* GPIO_70 */ 256 "CAM_PWR_A_CS", 139 "CAM_PWR_A_CS", 257 "SBU_SW_SEL", 140 "SBU_SW_SEL", 258 "SBU_SW_OE", 141 "SBU_SW_OE", 259 "FP_RESET_N", 142 "FP_RESET_N", 260 "FP_RESET_N", 143 "FP_RESET_N", 261 "DISP_RESET_N", 144 "DISP_RESET_N", 262 "DEBUG_GPIO0", 145 "DEBUG_GPIO0", 263 "TRAY_DET", 146 "TRAY_DET", 264 "CAM2_RST_N", 147 "CAM2_RST_N", 265 "PCIE0_RST_N", 148 "PCIE0_RST_N", 266 "PCIE0_CLK_REQ_N", / 149 "PCIE0_CLK_REQ_N", /* GPIO_80 */ 267 "PCIE0_WAKE_N", 150 "PCIE0_WAKE_N", 268 "DVDT_ENABLE", 151 "DVDT_ENABLE", 269 "DVDT_WRT_DET_OR", 152 "DVDT_WRT_DET_OR", 270 "NC", 153 "NC", 271 "PCIE2_RST_N", 154 "PCIE2_RST_N", 272 "PCIE2_CLK_REQ_N", 155 "PCIE2_CLK_REQ_N", 273 "PCIE2_WAKE_N", 156 "PCIE2_WAKE_N", 274 "MDM_VFR_IRQ0", 157 "MDM_VFR_IRQ0", 275 "MDM_VFR_IRQ1", 158 "MDM_VFR_IRQ1", 276 "SW_SERVICE", /* GPI 159 "SW_SERVICE", /* GPIO_90 */ 277 "CAM_SOF", 160 "CAM_SOF", 278 "CAM1_RST_N", 161 "CAM1_RST_N", 279 "CAM0_RST_N", 162 "CAM0_RST_N", 280 "CAM0_MCLK", 163 "CAM0_MCLK", 281 "CAM1_MCLK", 164 "CAM1_MCLK", 282 "CAM2_MCLK", 165 "CAM2_MCLK", 283 "CAM3_MCLK", 166 "CAM3_MCLK", 284 "CAM4_MCLK", 167 "CAM4_MCLK", 285 "TOF_RST_N", 168 "TOF_RST_N", 286 "NC", /* GPIO_100 */ 169 "NC", /* GPIO_100 */ 287 "CCI0_I2C_SDA", 170 "CCI0_I2C_SDA", 288 "CCI0_I2C_SCL", 171 "CCI0_I2C_SCL", 289 "CCI1_I2C_SDA", 172 "CCI1_I2C_SDA", 290 "CCI1_I2C_SCL_", 173 "CCI1_I2C_SCL_", 291 "CCI2_I2C_SDA", 174 "CCI2_I2C_SDA", 292 "CCI2_I2C_SCL", 175 "CCI2_I2C_SCL", 293 "CCI3_I2C_SDA", 176 "CCI3_I2C_SDA", 294 "CCI3_I2C_SCL", 177 "CCI3_I2C_SCL", 295 "CAM3_RST_N", 178 "CAM3_RST_N", 296 "NFC_DWL_REQ", /* GP 179 "NFC_DWL_REQ", /* GPIO_110 */ 297 "NFC_IRQ", 180 "NFC_IRQ", 298 "XVS", 181 "XVS", 299 "NC", 182 "NC", 300 "RF_ID_EXTENSION", 183 "RF_ID_EXTENSION", 301 "SPK_AMP_I2C_SDA", 184 "SPK_AMP_I2C_SDA", 302 "SPK_AMP_I2C_SCL", 185 "SPK_AMP_I2C_SCL", 303 "NC", 186 "NC", 304 "NC", 187 "NC", 305 "WLC_I2C_SDA", 188 "WLC_I2C_SDA", 306 "WLC_I2C_SCL", /* GP 189 "WLC_I2C_SCL", /* GPIO_120 */ 307 "ACC_COVER_OPEN", 190 "ACC_COVER_OPEN", 308 "ALS_PROX_INT_N", 191 "ALS_PROX_INT_N", 309 "ACCEL_INT", 192 "ACCEL_INT", 310 "WLAN_SW_CTRL", 193 "WLAN_SW_CTRL", 311 "CAMSENSOR_I2C_SDA", 194 "CAMSENSOR_I2C_SDA", 312 "CAMSENSOR_I2C_SCL", 195 "CAMSENSOR_I2C_SCL", 313 "UDON_SWITCH_SEL", 196 "UDON_SWITCH_SEL", 314 "WDOG_DISABLE", 197 "WDOG_DISABLE", 315 "BAROMETER_INT", 198 "BAROMETER_INT", 316 "NC", /* GPIO_130 */ 199 "NC", /* GPIO_130 */ 317 "NC", 200 "NC", 318 "FORCED_USB_BOOT", 201 "FORCED_USB_BOOT", 319 "NC", 202 "NC", 320 "NC", 203 "NC", 321 "WLC_INT_N", 204 "WLC_INT_N", 322 "NC", 205 "NC", 323 "NC", 206 "NC", 324 "RGBC_IR_INT", 207 "RGBC_IR_INT", 325 "NC", 208 "NC", 326 "NC", /* GPIO_140 */ 209 "NC", /* GPIO_140 */ 327 "NC", 210 "NC", 328 "BT_SLIMBUS_CLK", 211 "BT_SLIMBUS_CLK", 329 "BT_SLIMBUS_DATA", 212 "BT_SLIMBUS_DATA", 330 "HW_ID_0", 213 "HW_ID_0", 331 "HW_ID_1", 214 "HW_ID_1", 332 "WCD_SWR_TX_CLK", 215 "WCD_SWR_TX_CLK", 333 "WCD_SWR_TX_DATA0", 216 "WCD_SWR_TX_DATA0", 334 "WCD_SWR_TX_DATA1", 217 "WCD_SWR_TX_DATA1", 335 "WCD_SWR_RX_CLK", 218 "WCD_SWR_RX_CLK", 336 "WCD_SWR_RX_DATA0", 219 "WCD_SWR_RX_DATA0", /* GPIO_150 */ 337 "WCD_SWR_RX_DATA1", 220 "WCD_SWR_RX_DATA1", 338 "SDM_DMIC_CLK1", 221 "SDM_DMIC_CLK1", 339 "SDM_DMIC_DATA1", 222 "SDM_DMIC_DATA1", 340 "SDM_DMIC_CLK2", 223 "SDM_DMIC_CLK2", 341 "SDM_DMIC_DATA2", 224 "SDM_DMIC_DATA2", 342 "SPK_AMP_I2S_CLK", 225 "SPK_AMP_I2S_CLK", 343 "SPK_AMP_I2S_WS", 226 "SPK_AMP_I2S_WS", 344 "SPK_AMP_I2S_ASP_DIN 227 "SPK_AMP_I2S_ASP_DIN", 345 "SPK_AMP_I2S_ASP_DOU 228 "SPK_AMP_I2S_ASP_DOUT", 346 "COMPASS_I2C_SDA", / 229 "COMPASS_I2C_SDA", /* GPIO_160 */ 347 "COMPASS_I2C_SCL", 230 "COMPASS_I2C_SCL", 348 "NC", 231 "NC", 349 "NC", 232 "NC", 350 "SSC_SPI_1_MISO", 233 "SSC_SPI_1_MISO", 351 "SSC_SPI_1_MOSI", 234 "SSC_SPI_1_MOSI", 352 "SSC_SPI_1_CLK", 235 "SSC_SPI_1_CLK", 353 "SSC_SPI_1_CS_N", 236 "SSC_SPI_1_CS_N", 354 "NC", 237 "NC", 355 "NC", 238 "NC", 356 "SSC_SENSOR_I2C_SDA" 239 "SSC_SENSOR_I2C_SDA", /* GPIO_170 */ 357 "SSC_SENSOR_I2C_SCL" 240 "SSC_SENSOR_I2C_SCL", 358 "NC", 241 "NC", 359 "NC", 242 "NC", 360 "NC", 243 "NC", 361 "NC", 244 "NC", 362 "HST_BLE_SNS_UART6_T 245 "HST_BLE_SNS_UART6_TX", 363 "HST_BLE_SNS_UART6_R 246 "HST_BLE_SNS_UART6_RX", 364 "HST_WLAN_UART_TX", 247 "HST_WLAN_UART_TX", 365 "HST_WLAN_UART_RX"; 248 "HST_WLAN_UART_RX"; 366 << 367 cam_pwr_b_cs: cam-pwr-b-state { << 368 pins = "gpio69"; << 369 function = "gpio"; << 370 drive-strength = <2>; << 371 bias-disable; << 372 output-low; << 373 }; << 374 << 375 cam_pwr_a_cs: cam-pwr-a-state { << 376 pins = "gpio71"; << 377 function = "gpio"; << 378 drive-strength = <2>; << 379 bias-disable; << 380 output-low; << 381 }; << 382 }; 249 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.