Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org> |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "sm8350-sony-xperia-sagami.dtsi" |
| 9 | |
| 10 | / { |
| 11 | model = "Sony Xperia 1 III"; |
| 12 | compatible = "sony,pdx215-generic", "qcom,sm8350"; |
| 13 | }; |
| 14 | |
| 15 | &i2c13 { |
| 16 | pmic@75 { |
| 17 | compatible = "dlg,slg51000"; |
| 18 | reg = <0x75>; |
| 19 | dlg,cs-gpios = <&pm8350b_gpios 1 GPIO_ACTIVE_HIGH>; |
| 20 | |
| 21 | pinctrl-names = "default"; |
| 22 | pinctrl-0 = <&cam_pwr_a_cs>; |
| 23 | |
| 24 | regulators { |
| 25 | slg51000_a_ldo1: ldo1 { |
| 26 | regulator-name = "slg51000_a_ldo1"; |
| 27 | regulator-min-microvolt = <2400000>; |
| 28 | regulator-max-microvolt = <3300000>; |
| 29 | }; |
| 30 | |
| 31 | slg51000_a_ldo2: ldo2 { |
| 32 | regulator-name = "slg51000_a_ldo2"; |
| 33 | regulator-min-microvolt = <2400000>; |
| 34 | regulator-max-microvolt = <3300000>; |
| 35 | }; |
| 36 | |
| 37 | slg51000_a_ldo3: ldo3 { |
| 38 | regulator-name = "slg51000_a_ldo3"; |
| 39 | regulator-min-microvolt = <1200000>; |
| 40 | regulator-max-microvolt = <3750000>; |
| 41 | }; |
| 42 | |
| 43 | slg51000_a_ldo4: ldo4 { |
| 44 | regulator-name = "slg51000_a_ldo4"; |
| 45 | regulator-min-microvolt = <1200000>; |
| 46 | regulator-max-microvolt = <3750000>; |
| 47 | }; |
| 48 | |
| 49 | slg51000_a_ldo5: ldo5 { |
| 50 | regulator-name = "slg51000_a_ldo5"; |
| 51 | regulator-min-microvolt = <500000>; |
| 52 | regulator-max-microvolt = <1200000>; |
| 53 | }; |
| 54 | |
| 55 | slg51000_a_ldo6: ldo6 { |
| 56 | regulator-name = "slg51000_a_ldo6"; |
| 57 | regulator-min-microvolt = <500000>; |
| 58 | regulator-max-microvolt = <1200000>; |
| 59 | }; |
| 60 | |
| 61 | slg51000_a_ldo7: ldo7 { |
| 62 | regulator-name = "slg51000_a_ldo7"; |
| 63 | regulator-min-microvolt = <1200000>; |
| 64 | regulator-max-microvolt = <3750000>; |
| 65 | }; |
| 66 | }; |
| 67 | }; |
| 68 | }; |
| 69 | |
| 70 | &pm8350b_gpios { |
| 71 | gpio-line-names = "CAM_PWR_A_CS", /* GPIO_1 */ |
| 72 | "NC", |
| 73 | "NC", |
| 74 | "NC", |
| 75 | "SNAPSHOT_N", |
| 76 | "CAM_PWR_LD_EN", |
| 77 | "NC", |
| 78 | "FOCUS_N"; |
| 79 | |
| 80 | cam_pwr_a_cs: cam-pwr-a-cs-state { |
| 81 | pins = "gpio1"; |
| 82 | function = "normal"; |
| 83 | qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; |
| 84 | power-source = <1>; |
| 85 | drive-push-pull; |
| 86 | output-high; |
| 87 | }; |
| 88 | }; |
| 89 | |
| 90 | &pm8350c_gpios { |
| 91 | gpio-line-names = "FL_STROBE_TRIG_WIDE", /* GPIO_1 */ |
| 92 | "FL_STROBE_TRIG_TELE", |
| 93 | "NC", |
| 94 | "WLC_TXPWR_EN", |
| 95 | "NC", |
| 96 | "RGBC_IR_PWR_EN", |
| 97 | "NC", |
| 98 | "NC", |
| 99 | "WIDEC_PWR_EN"; |
| 100 | }; |
| 101 | |
| 102 | &tlmm { |
| 103 | gpio-line-names = "APPS_I2C_0_SDA", /* GPIO_0 */ |
| 104 | "APPS_I2C_0_SCL", |
| 105 | "UWIDEC_PWR_EN", |
| 106 | "HAP_RST_N", |
| 107 | "WLC_I2C_SDA", |
| 108 | "WLC_I2C_SCL", |
| 109 | "PM8008_1_RESET_N", |
| 110 | "WLC_INT_N", |
| 111 | "OIS_TELE_I2C_SDA", |
| 112 | "OIS_TELE_I2C_SCL", |
| 113 | "PM8350_OPTION", /* GPIO_10 */ |
| 114 | "NC", |
| 115 | "APPS_I2C_1_SDA", |
| 116 | "APPS_I2C_1_SCL", |
| 117 | "NC", |
| 118 | "NC", |
| 119 | "CAM1_RESET_N", |
| 120 | "LEO_CAM0_RESET_N", |
| 121 | "DEBUG_UART_TX", |
| 122 | "DEBUG_UART_RX", |
| 123 | "TS_I2C_SDA", /* GPIO_20 */ |
| 124 | "TS_I2C_SCL", |
| 125 | "TS_RESET_N", |
| 126 | "TS_INT_N", |
| 127 | "DISP_RESET_N", |
| 128 | "SW_SERVICE", |
| 129 | "DISP_ERR_FG", |
| 130 | "TX_GTR_THRES_IN", |
| 131 | "NC", |
| 132 | "NC", |
| 133 | "NC", /* GPIO_30 */ |
| 134 | "NC", |
| 135 | "NC", |
| 136 | "NC", |
| 137 | "NC", |
| 138 | "NC", |
| 139 | "SPK_AMP_INT_N", |
| 140 | "SPK_AMP_RESET_N", |
| 141 | "FP_INT_N", |
| 142 | "FP_RESET_N", |
| 143 | "NC", /* GPIO_40 */ |
| 144 | "NC", |
| 145 | "DEBUG_GPIO0", |
| 146 | "FORCE_USB_BOOT", |
| 147 | "FP_SPI_MISO", |
| 148 | "FP_SPI_MOSI", |
| 149 | "FP_SPI_CLK", |
| 150 | "FP_SPI_CS_N", |
| 151 | "SPK_AMP_I2C_SDA", |
| 152 | "SPK_AMP_I2C_SCL", |
| 153 | "NC", /* GPIO_50 */ |
| 154 | "HAP_INT_N", |
| 155 | "CAMSENSOR_I2C_SDA", |
| 156 | "CAMSENSOR_I2C_SCL", |
| 157 | "SBU_SW_OE", |
| 158 | "SBU_SW_SEL", |
| 159 | "NFC_ESE_SPI_MISO", |
| 160 | "NFC_ESE_SPI_MOSI", |
| 161 | "NFC_ESE_SPI_CLK", |
| 162 | "NFC_ESE_SPI_CS", |
| 163 | "NFC_I2C_SDA", /* GPIO_60 */ |
| 164 | "NFC_I2C_SCL", |
| 165 | "NFC_EN", |
| 166 | "NFC_CLK_REQ", |
| 167 | "HST_WLAN_EN", |
| 168 | "HST_BT_EN", |
| 169 | "HW_ID_0", |
| 170 | "HW_ID_1", |
| 171 | "HST_BT_UART_CTS", |
| 172 | "HST_BT_UART_RFR", |
| 173 | "HST_BT_UART_TX", /* GPIO_70 */ |
| 174 | "HST_BT_UART_RX", |
| 175 | "HAP_I2C_SDA", |
| 176 | "HAP_I2C_SCL", |
| 177 | "RF_LCD_ID_EN", |
| 178 | "RF_ID_EXTENSION", |
| 179 | "NC", |
| 180 | "NC", |
| 181 | "NC", |
| 182 | "NC", |
| 183 | "HALL_INT_N", /* GPIO_80 */ |
| 184 | "USB_CC_DIR", |
| 185 | "DISP_VSYNC", |
| 186 | "NC", |
| 187 | "NC", |
| 188 | "CAM_SOF_TELE", |
| 189 | "NFC_DWL_REQ", |
| 190 | "NFC_IRQ", |
| 191 | "WCD_RST_N", |
| 192 | "ALS_PROX_INT_N", |
| 193 | "NC", /* GPIO_90 */ |
| 194 | "NC", |
| 195 | "TRAY_DET", |
| 196 | "UDON_SWITCH_SEL", |
| 197 | "PCIE0_RESET_N", |
| 198 | "PCIE0_CLK_REQ_N", |
| 199 | "PCIE0_WAKE_N", |
| 200 | "CAM_SOF", |
| 201 | "RF_ID_EXTENSION_2", |
| 202 | "RGBC_IR_INT", |
| 203 | "CAM_MCLK0", /* GPIO_100 */ |
| 204 | "CAM_MCLK1", |
| 205 | "CAM_MCLK2", |
| 206 | "CAM_MCLK3", |
| 207 | "CAM_MCLK4", |
| 208 | "NC", |
| 209 | "CAM2_RESET_N", |
| 210 | "CCI_I2C0_SDA", |
| 211 | "CCI_I2C0_SCL", |
| 212 | "CCI_I2C1_SDA", |
| 213 | "CCI_I2C1_SCL", /* GPIO_110 */ |
| 214 | "CCI_I2C2_SDA", |
| 215 | "CCI_I2C2_SCL", |
| 216 | "CCI_I2C3_SDA", |
| 217 | "CCI_I2C3_SCL", |
| 218 | "NC", |
| 219 | "PM8008_1_IRQ", |
| 220 | "CAM3_RESET_N", |
| 221 | "IMU1_INT", |
| 222 | "EXT_VD0_XVS", |
| 223 | "NC", /* GPIO_120 */ |
| 224 | "NC", |
| 225 | "NC", |
| 226 | "NC", |
| 227 | "NC", |
| 228 | "HAP_I2S_CLK", |
| 229 | "HAP_I2S_DOUT", |
| 230 | "HAP_TRG1", |
| 231 | "HAP_I2S_SYNC", |
| 232 | "HST_BT_WLAN_SLIMBUS_CLK", |
| 233 | "HST_BT_WLAN_SLIMBUS_DAT0", /* GPIO_130 */ |
| 234 | "NC", |
| 235 | "UIM2_DETECT_EN", |
| 236 | "UIM2_DATA", |
| 237 | "UIM2_CLK", |
| 238 | "UIM2_RESET", |
| 239 | "UIM2_PRESENT", |
| 240 | "UIM1_DATA", |
| 241 | "UIM1_CLK", |
| 242 | "UIM1_RESET", |
| 243 | "TRAY_DET", /* GPIO_140 */ |
| 244 | "SM_RFFE0_CLK", |
| 245 | "SM_RFFE0_DATA", |
| 246 | "SM_RFFE1_CLK", |
| 247 | "SM_RFFE1_DATA", |
| 248 | "SM_MSS_GRFC4", |
| 249 | "SM_MSS_GRFC5", |
| 250 | "SM_MSS_GRFC6", |
| 251 | "SM_MSS_GRFC7", |
| 252 | "SM_RFFE4_CLK", |
| 253 | "SM_RFFE4_DATA", /* GPIO_150 */ |
| 254 | "WLAN_COEX_UART1_RX", |
| 255 | "WLAN_COEX_UART1_TX", |
| 256 | "HST_SW_CTRL", |
| 257 | "DISP_VDDR_EN", |
| 258 | "NC", |
| 259 | "NC", |
| 260 | "PA_INDICATOR_OR", |
| 261 | "TOF_RST_N", |
| 262 | "QLINK0_REQ", |
| 263 | "QLINK0_EN", /* GPIO_160 */ |
| 264 | "QLINK0_WMSS_RESET_N", |
| 265 | "QLINK1_REQ", |
| 266 | "QLINK1_EN", |
| 267 | "QLINK1_WMSS_RESET_N", |
| 268 | "PM8008_2_IRQ", |
| 269 | "TELEC_PWR_EN", |
| 270 | "PM8008_2_RESET_N", |
| 271 | "WCD_SWR_TX_CLK", |
| 272 | "WCD_SWR_TX_DATA0", |
| 273 | "WCD_SWR_TX_DATA1", /* GPIO_170 */ |
| 274 | "WCD_SWR_RX_CLK", |
| 275 | "WCD_SWR_RX_DATA0", |
| 276 | "WCD_SWR_RX_DATA1", |
| 277 | "SM_DMIC1_CLK", |
| 278 | "SM_DMIC1_DATA", |
| 279 | "SM_DMIC2_CLK", |
| 280 | "SM_DMIC2_DATA", |
| 281 | "SPK_AMP_I2S_CLK", |
| 282 | "SPK_AMP_I2S_WS", |
| 283 | "SPK_AMP_I2S_ASP_DIN", /* GPIO_180 */ |
| 284 | "SPK_AMP_I2S_ASP_DOUT", |
| 285 | "WCD_SWR_TX_DATA2", |
| 286 | "NC", |
| 287 | "NC", |
| 288 | "NC", |
| 289 | "NC", |
| 290 | "IMU_SPI_MISO", |
| 291 | "IMU_SPI_MOSI", |
| 292 | "IMU_SPI_CLK", |
| 293 | "IMU_SPI_CS_N", /* GPIO_190 */ |
| 294 | "MAG_I2C_SDA", |
| 295 | "MAG_I2C_SCL", |
| 296 | "SENSOR_I2C_SDA", |
| 297 | "SENSOR_I2C_SCL", |
| 298 | "NC", |
| 299 | "NC", |
| 300 | "NC", |
| 301 | "NC", |
| 302 | "HST_BLE_UART_TX", |
| 303 | "HST_BLE_UART_RX", /* GPIO_200 */ |
| 304 | "HST_WLAN_UART_TX", |
| 305 | "HST_WLAN_UART_RX"; |
| 306 | }; |