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 "sdm845-sony-xperia-tama.dtsi" 8 #include "sdm845-sony-xperia-tama.dtsi" 9 9 10 /* XZ3 uses an Atmel touchscreen instead. */ 10 /* XZ3 uses an Atmel touchscreen instead. */ 11 /delete-node/ &touchscreen; 11 /delete-node/ &touchscreen; 12 12 13 / { 13 / { 14 model = "Sony Xperia XZ3"; 14 model = "Sony Xperia XZ3"; 15 compatible = "sony,akatsuki-row", "qco 15 compatible = "sony,akatsuki-row", "qcom,sdm845"; 16 16 17 /* Fixed DCDC for the OLED panel */ 17 /* Fixed DCDC for the OLED panel */ 18 ts_vddio_supply: ts-vddio-regulator { 18 ts_vddio_supply: ts-vddio-regulator { 19 compatible = "regulator-fixed" 19 compatible = "regulator-fixed"; 20 regulator-name = "ts_vddio"; 20 regulator-name = "ts_vddio"; 21 21 22 regulator-min-microvolt = <184 22 regulator-min-microvolt = <1840000>; 23 regulator-max-microvolt = <184 23 regulator-max-microvolt = <1840000>; 24 24 25 gpio = <&tlmm 133 GPIO_ACTIVE_ 25 gpio = <&tlmm 133 GPIO_ACTIVE_HIGH>; 26 enable-active-high; 26 enable-active-high; 27 regulator-boot-on; 27 regulator-boot-on; 28 }; 28 }; 29 }; 29 }; 30 30 31 &ibb { 31 &ibb { 32 status = "disabled"; 32 status = "disabled"; 33 }; 33 }; 34 34 35 &lab { 35 &lab { 36 status = "disabled"; 36 status = "disabled"; 37 }; 37 }; 38 38 39 &panel { 39 &panel { 40 /* Akatsuki uses an OLED panel. */ 40 /* Akatsuki uses an OLED panel. */ 41 /delete-property/ backlight; 41 /delete-property/ backlight; 42 /delete-property/ vsp-supply; 42 /delete-property/ vsp-supply; 43 /delete-property/ vsn-supply; 43 /delete-property/ vsn-supply; 44 /delete-property/ touch-reset-gpios; 44 /delete-property/ touch-reset-gpios; 45 }; 45 }; 46 46 47 &pmi8998_gpios { 47 &pmi8998_gpios { 48 gpio-line-names = "NC", /* GPIO_1 */ 48 gpio-line-names = "NC", /* GPIO_1 */ 49 "NC", 49 "NC", 50 "NC", 50 "NC", 51 "", 51 "", 52 "NC", 52 "NC", 53 "NC", 53 "NC", 54 "", 54 "", 55 "WLC_EN_N", 55 "WLC_EN_N", 56 "NC", 56 "NC", 57 "NC", /* GPIO_10 */ 57 "NC", /* GPIO_10 */ 58 "NC", 58 "NC", 59 "CAM_IO_EN", 59 "CAM_IO_EN", 60 "", 60 "", 61 "NC"; 61 "NC"; 62 }; 62 }; 63 63 64 &pmi8998_wled { 64 &pmi8998_wled { 65 status = "disabled"; 65 status = "disabled"; 66 }; 66 }; 67 67 68 &tlmm { 68 &tlmm { 69 gpio-line-names = "NC", /* GPIO_0 */ 69 gpio-line-names = "NC", /* GPIO_0 */ 70 "NC", 70 "NC", 71 "NC", 71 "NC", 72 "NC", 72 "NC", 73 "DEBUG_UART_TX", 73 "DEBUG_UART_TX", 74 "DEBUG_UART_RX", 74 "DEBUG_UART_RX", 75 "DISP_RESET_N", 75 "DISP_RESET_N", 76 "SAMD_RSTEN_N", 76 "SAMD_RSTEN_N", 77 "CHAT_CAM_PWR_EN", 77 "CHAT_CAM_PWR_EN", 78 "CAM2_RSTN", 78 "CAM2_RSTN", 79 "MDP_VSYNC_P", /* GP 79 "MDP_VSYNC_P", /* GPIO_10 */ 80 "RGBC_IR_INT", 80 "RGBC_IR_INT", 81 "NFC_VEN", 81 "NFC_VEN", 82 "CAM_MCLK0", 82 "CAM_MCLK0", 83 "CAM_MCLK1", 83 "CAM_MCLK1", 84 "NC", 84 "NC", 85 "MASTER_RST_N", 85 "MASTER_RST_N", 86 "CCI_I2C_SDA0", 86 "CCI_I2C_SDA0", 87 "CCI_I2C_SCL0", 87 "CCI_I2C_SCL0", 88 "CCI_I2C_SDA1", 88 "CCI_I2C_SDA1", 89 "CCI_I2C_SCL1", /* G 89 "CCI_I2C_SCL1", /* GPIO_20 */ 90 "CAM_SOF", 90 "CAM_SOF", 91 "TOF_INT", 91 "TOF_INT", 92 "TOF_RESET_N", 92 "TOF_RESET_N", 93 "NC", 93 "NC", 94 "NC", 94 "NC", 95 "NC", 95 "NC", 96 "MAIN_CAM_PWR_EN", 96 "MAIN_CAM_PWR_EN", 97 "DVDT_ENABLE", 97 "DVDT_ENABLE", 98 "DVDT_WRT_DET_AND", 98 "DVDT_WRT_DET_AND", 99 "DVDT_WRT_DET_OR", / 99 "DVDT_WRT_DET_OR", /* GPIO_30 */ 100 "WLC_INT_N", 100 "WLC_INT_N", 101 "NC", 101 "NC", 102 "CAMSENSOR_I2C_SDA", 102 "CAMSENSOR_I2C_SDA", 103 "CAMSENSOR_I2C_SCL", 103 "CAMSENSOR_I2C_SCL", 104 "NC", 104 "NC", 105 "NC", 105 "NC", 106 "NC", 106 "NC", 107 "CC_DIR", 107 "CC_DIR", 108 "NC", 108 "NC", 109 "FP_RESET_N", /* GPI 109 "FP_RESET_N", /* GPIO_40 */ 110 "NC", 110 "NC", 111 "NC", 111 "NC", 112 "NC", 112 "NC", 113 "DISP_ERR_FG", 113 "DISP_ERR_FG", 114 "BT_HCI_UART_CTS_N", 114 "BT_HCI_UART_CTS_N", 115 "BT_HCI_UART_RFR_N", 115 "BT_HCI_UART_RFR_N", 116 "BT_HCI_UART_TXD", 116 "BT_HCI_UART_TXD", 117 "BT_HCI_UART_TRXD", 117 "BT_HCI_UART_TRXD", 118 "USB_AUDIO_EN1", 118 "USB_AUDIO_EN1", 119 "SW_SERVICE", /* GPI 119 "SW_SERVICE", /* GPIO_50 */ 120 "US_EURO_SEL", 120 "US_EURO_SEL", 121 "SAMD_BOOTL_PIN", 121 "SAMD_BOOTL_PIN", 122 "CODEC_INT2_N", 122 "CODEC_INT2_N", 123 "CODEC_INT1_N", 123 "CODEC_INT1_N", 124 "APPS_I2C_SDA", 124 "APPS_I2C_SDA", 125 "APPS_I2C_SCL", 125 "APPS_I2C_SCL", 126 "FORCED_USB_BOOT", 126 "FORCED_USB_BOOT", 127 "SDM_SWD_CLK", 127 "SDM_SWD_CLK", 128 "SDM_SWD_DAT", 128 "SDM_SWD_DAT", 129 "SAMD_RST", /* GPIO_ 129 "SAMD_RST", /* GPIO_60 */ 130 "USB_PD_EN", 130 "USB_PD_EN", 131 "NFC_DWLD_EN", 131 "NFC_DWLD_EN", 132 "NFC_IRQ", 132 "NFC_IRQ", 133 "CODEC_RST_N", 133 "CODEC_RST_N", 134 "CODEC_SPI_MISO", 134 "CODEC_SPI_MISO", 135 "CODEC_SPI_MOSI", 135 "CODEC_SPI_MOSI", 136 "CODEC_SPI_CLK", 136 "CODEC_SPI_CLK", 137 "CODEC_SPI_CS_N", 137 "CODEC_SPI_CS_N", 138 "NC", 138 "NC", 139 "CODEC_SLIMBUS_CLK", 139 "CODEC_SLIMBUS_CLK", /* GPIO_70 */ 140 "CODEC_SLIMBUS_DATA0 140 "CODEC_SLIMBUS_DATA0", 141 "CODEC_SLIMBUS_DATA1 141 "CODEC_SLIMBUS_DATA1", 142 "BT_FM_SLIMBUS_DATA" 142 "BT_FM_SLIMBUS_DATA", 143 "BT_FM_SLIMBUS_CLK", 143 "BT_FM_SLIMBUS_CLK", 144 "HW_ID_0", 144 "HW_ID_0", 145 "HW_ID_1", 145 "HW_ID_1", 146 "TX_GTR_THRES_IN", 146 "TX_GTR_THRES_IN", 147 "MODE_SEL2", 147 "MODE_SEL2", 148 "NC", 148 "NC", 149 "CAM1_RSTN", /* GPIO 149 "CAM1_RSTN", /* GPIO_80 */ 150 "", 150 "", 151 "", 151 "", 152 "", 152 "", 153 "", 153 "", 154 "TS_I2C_SDA", 154 "TS_I2C_SDA", 155 "TS_I2C_SCL", 155 "TS_I2C_SCL", 156 "NC", 156 "NC", 157 "NC", 157 "NC", 158 "NC", 158 "NC", 159 "NC", /* GPIO_90 */ 159 "NC", /* GPIO_90 */ 160 "NC", 160 "NC", 161 "NC", 161 "NC", 162 "NC", 162 "NC", 163 "NC", 163 "NC", 164 "NC", 164 "NC", 165 "NC", 165 "NC", 166 "RFFE6_CLK", 166 "RFFE6_CLK", 167 "RFFE6_DATA", 167 "RFFE6_DATA", 168 "TS_RESET_N", 168 "TS_RESET_N", 169 "", /* GPIO_100 */ 169 "", /* GPIO_100 */ 170 "GRFC4", 170 "GRFC4", 171 "DEBUG_GPIO0", 171 "DEBUG_GPIO0", 172 "DEBUG_GPIO1", 172 "DEBUG_GPIO1", 173 "RF_LCD_ID_EN", 173 "RF_LCD_ID_EN", 174 "UIM2_DATA", 174 "UIM2_DATA", 175 "UIM2_CLK", 175 "UIM2_CLK", 176 "UIM2_RESET", 176 "UIM2_RESET", 177 "UIM2_PRESENT", 177 "UIM2_PRESENT", 178 "UIM1_DATA", 178 "UIM1_DATA", 179 "UIM1_CLK", /* GPIO_ 179 "UIM1_CLK", /* GPIO_110 */ 180 "UIM1_RESET", 180 "UIM1_RESET", 181 "UIM1_PRESENT", 181 "UIM1_PRESENT", 182 "NC", 182 "NC", 183 "NC", 183 "NC", 184 "NC", 184 "NC", 185 "NFC_ESE_PWR_REQ", 185 "NFC_ESE_PWR_REQ", 186 "ACCEL_INT", 186 "ACCEL_INT", 187 "GYRO_INT", 187 "GYRO_INT", 188 "COMPASS_INT", 188 "COMPASS_INT", 189 "ALS_PROX_INT_N", /* 189 "ALS_PROX_INT_N", /* GPIO_120 */ 190 "FP_INT", 190 "FP_INT", 191 "RF_ID_EXTENTION", 191 "RF_ID_EXTENTION", 192 "BAROMETER_INT", 192 "BAROMETER_INT", 193 "ACC_COVER_OPEN", 193 "ACC_COVER_OPEN", 194 "TS_INT_N", 194 "TS_INT_N", 195 "TRAY_DET", 195 "TRAY_DET", 196 "GRFC3", 196 "GRFC3", 197 "NC", 197 "NC", 198 "UIM2_DETECT_EN", 198 "UIM2_DETECT_EN", 199 "QLINK_REQUEST", /* 199 "QLINK_REQUEST", /* GPIO_130 */ 200 "QLINK_ENABLE", 200 "QLINK_ENABLE", 201 "GRFC2", 201 "GRFC2", 202 "TS_VDDIO_EN", 202 "TS_VDDIO_EN", 203 "WMSS_RESET_N", 203 "WMSS_RESET_N", 204 "PA_INDICATOR_OR", 204 "PA_INDICATOR_OR", 205 "GRFC1", 205 "GRFC1", 206 "RFFE3_DATA", 206 "RFFE3_DATA", 207 "RFFE3_CLK", 207 "RFFE3_CLK", 208 "RFFE4_DATA", 208 "RFFE4_DATA", 209 "RFFE4_CLK", /* GPIO 209 "RFFE4_CLK", /* GPIO_140 */ 210 "RFFE5_DATA", 210 "RFFE5_DATA", 211 "RFFE5_CLK", 211 "RFFE5_CLK", 212 "GNSS_EN", 212 "GNSS_EN", 213 "MSS_LTE_COXM_TXD", 213 "MSS_LTE_COXM_TXD", 214 "MSS_LTE_COXM_RXD", 214 "MSS_LTE_COXM_RXD", 215 "RFFE2_DATA", 215 "RFFE2_DATA", 216 "RFFE2_CLK", 216 "RFFE2_CLK", 217 "RFFE1_DATA", 217 "RFFE1_DATA", 218 "RFFE1_CLK"; 218 "RFFE1_CLK"; 219 219 220 ts_vddio_en: ts-vddio-en-state { 220 ts_vddio_en: ts-vddio-en-state { 221 pins = "gpio133"; 221 pins = "gpio133"; 222 function = "gpio"; 222 function = "gpio"; 223 drive-strength = <2>; 223 drive-strength = <2>; 224 bias-disable; 224 bias-disable; 225 output-high; 225 output-high; 226 }; 226 }; 227 }; 227 }; 228 228 229 &vreg_l14a_1p8 { 229 &vreg_l14a_1p8 { 230 regulator-min-microvolt = <1840000>; 230 regulator-min-microvolt = <1840000>; 231 regulator-max-microvolt = <1840000>; 231 regulator-max-microvolt = <1840000>; 232 }; 232 }; 233 233 234 &vreg_l22a_2p8 { 234 &vreg_l22a_2p8 { 235 /* Note: Round-down from 2700000 to be 235 /* Note: Round-down from 2700000 to be a multiple of PLDO step-size 8000 */ 236 regulator-min-microvolt = <2696000>; 236 regulator-min-microvolt = <2696000>; 237 regulator-max-microvolt = <2696000>; 237 regulator-max-microvolt = <2696000>; 238 }; 238 }; 239 239 240 &vreg_l28a_2p8 { 240 &vreg_l28a_2p8 { 241 regulator-min-microvolt = <3000000>; 241 regulator-min-microvolt = <3000000>; 242 regulator-max-microvolt = <3000000>; 242 regulator-max-microvolt = <3000000>; 243 }; 243 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.