1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2021, Raffaele Tranquillini <r 3 * Copyright (c) 2021, Raffaele Tranquillini <raffaele.tranquillini@gmail.com> 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include "msm8996.dtsi" 8 #include "msm8996.dtsi" 9 #include "msm8996-xiaomi-common.dtsi" 9 #include "msm8996-xiaomi-common.dtsi" 10 #include <dt-bindings/sound/qcom,q6afe.h> 10 #include <dt-bindings/sound/qcom,q6afe.h> 11 #include <dt-bindings/sound/qcom,q6asm.h> 11 #include <dt-bindings/sound/qcom,q6asm.h> 12 #include <dt-bindings/sound/qcom,wcd9335.h> 12 #include <dt-bindings/sound/qcom,wcd9335.h> 13 #include <dt-bindings/input/ti-drv260x.h> 13 #include <dt-bindings/input/ti-drv260x.h> 14 14 15 / { 15 / { 16 model = "Xiaomi Mi 5"; 16 model = "Xiaomi Mi 5"; 17 compatible = "xiaomi,gemini", "qcom,ms 17 compatible = "xiaomi,gemini", "qcom,msm8996"; 18 chassis-type = "handset"; 18 chassis-type = "handset"; 19 qcom,msm-id = <246 0x30001>; 19 qcom,msm-id = <246 0x30001>; 20 qcom,pmic-id = <0x20009 0x2000a 0x00 0 20 qcom,pmic-id = <0x20009 0x2000a 0x00 0x00>; 21 qcom,board-id = <31 0>; 21 qcom,board-id = <31 0>; 22 22 23 divclk2_haptics: divclk2 { !! 23 clocks { 24 compatible = "fixed-clock"; !! 24 divclk2_haptics: divclk2 { 25 #clock-cells = <0>; !! 25 compatible = "fixed-clock"; 26 clock-frequency = <32768>; !! 26 #clock-cells = <0>; 27 clock-output-names = "divclk2" !! 27 clock-frequency = <32768>; >> 28 clock-output-names = "divclk2"; 28 29 29 pinctrl-names = "default"; !! 30 pinctrl-names = "default"; 30 pinctrl-0 = <&divclk2_pin_a>; !! 31 pinctrl-0 = <&divclk2_pin_a>; >> 32 }; 31 }; 33 }; 32 }; 34 }; 33 35 34 &adsp_pil { 36 &adsp_pil { 35 firmware-name = "qcom/msm8996/gemini/a 37 firmware-name = "qcom/msm8996/gemini/adsp.mbn"; 36 }; 38 }; 37 39 38 &blsp2_i2c3 { 40 &blsp2_i2c3 { 39 haptics: drv2604@5a { 41 haptics: drv2604@5a { 40 compatible = "ti,drv2604"; 42 compatible = "ti,drv2604"; 41 reg = <0x5a>; 43 reg = <0x5a>; 42 enable-gpio = <&tlmm 93 0x00>; 44 enable-gpio = <&tlmm 93 0x00>; 43 mode = <DRV260X_LRA_MODE>; 45 mode = <DRV260X_LRA_MODE>; 44 library-sel = <DRV260X_LIB_LRA 46 library-sel = <DRV260X_LIB_LRA>; 45 pinctrl-names = "default","sle 47 pinctrl-names = "default","sleep"; 46 pinctrl-0 = <&vibrator_default 48 pinctrl-0 = <&vibrator_default>; 47 pinctrl-1 = <&vibrator_sleep>; 49 pinctrl-1 = <&vibrator_sleep>; 48 }; 50 }; 49 51 50 lp5562@30 { 52 lp5562@30 { 51 compatible = "ti,lp5562"; 53 compatible = "ti,lp5562"; 52 reg = <0x30>; 54 reg = <0x30>; 53 #address-cells = <1>; 55 #address-cells = <1>; 54 #size-cells = <0>; 56 #size-cells = <0>; 55 enable-gpios = <&pm8994_gpios 57 enable-gpios = <&pm8994_gpios 7 1>; 56 clock-mode = /bits/8 <2>; 58 clock-mode = /bits/8 <2>; 57 label = "button-backlight"; 59 label = "button-backlight"; 58 60 59 led@0 { 61 led@0 { 60 reg = <0>; 62 reg = <0>; 61 chan-name = "button-ba 63 chan-name = "button-backlight"; 62 led-cur = /bits/ 8 <0x 64 led-cur = /bits/ 8 <0x32>; 63 max-cur = /bits/ 8 <0x 65 max-cur = /bits/ 8 <0xc8>; 64 }; 66 }; 65 67 66 led@1 { 68 led@1 { 67 reg = <0>; 69 reg = <0>; 68 chan-name = "button-ba 70 chan-name = "button-backlight1"; 69 led-cur = /bits/ 8 <0x 71 led-cur = /bits/ 8 <0x32>; 70 max-cur = /bits/ 8 <0x 72 max-cur = /bits/ 8 <0xc8>; 71 }; 73 }; 72 }; 74 }; 73 }; 75 }; 74 76 75 &blsp2_i2c6 { 77 &blsp2_i2c6 { 76 synaptics@20 { 78 synaptics@20 { 77 compatible = "syna,rmi4-i2c"; 79 compatible = "syna,rmi4-i2c"; 78 reg = <0x20>; 80 reg = <0x20>; 79 #address-cells = <1>; 81 #address-cells = <1>; 80 #size-cells = <0>; 82 #size-cells = <0>; 81 interrupt-parent = <&tlmm>; 83 interrupt-parent = <&tlmm>; 82 interrupts = <125 IRQ_TYPE_LEV 84 interrupts = <125 IRQ_TYPE_LEVEL_LOW>; 83 vio-supply = <&vreg_l6a_1p8>; !! 85 vdda-supply = <&vreg_l6a_1p8>; 84 vdd-supply = <&vdd_3v2_tp>; 86 vdd-supply = <&vdd_3v2_tp>; 85 reset-gpios = <&tlmm 89 GPIO_A 87 reset-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; 86 88 87 pinctrl-names = "default", "sl 89 pinctrl-names = "default", "sleep"; 88 pinctrl-0 = <&touchscreen_defa 90 pinctrl-0 = <&touchscreen_default>; 89 pinctrl-1 = <&touchscreen_slee 91 pinctrl-1 = <&touchscreen_sleep>; 90 }; 92 }; 91 93 92 }; 94 }; 93 95 94 &gpu { !! 96 &dsi0 { 95 zap-shader { << 96 firmware-name = "qcom/msm8996/ << 97 }; << 98 }; << 99 << 100 &mdss_dsi0 { << 101 status = "okay"; 97 status = "okay"; 102 98 103 vdd-supply = <&vreg_l2a_1p25>; 99 vdd-supply = <&vreg_l2a_1p25>; 104 vdda-supply = <&vreg_l19a_3p3>; 100 vdda-supply = <&vreg_l19a_3p3>; 105 vddio-supply = <&vreg_l14a_1p8>; 101 vddio-supply = <&vreg_l14a_1p8>; 106 102 107 pinctrl-names = "default", "sleep"; 103 pinctrl-names = "default", "sleep"; 108 pinctrl-0 = <&mdss_dsi_default &mdss_t 104 pinctrl-0 = <&mdss_dsi_default &mdss_te_default>; 109 pinctrl-1 = <&mdss_dsi_sleep &mdss_te_ 105 pinctrl-1 = <&mdss_dsi_sleep &mdss_te_sleep>; 110 106 111 panel: panel@0 { 107 panel: panel@0 { 112 compatible = "jdi,fhd-r63452"; 108 compatible = "jdi,fhd-r63452"; 113 reg = <0>; 109 reg = <0>; 114 reset-gpios = <&tlmm 8 GPIO_AC 110 reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; 115 backlight = <&pmi8994_wled>; 111 backlight = <&pmi8994_wled>; 116 112 117 port { 113 port { 118 panel_in: endpoint { 114 panel_in: endpoint { 119 remote-endpoin !! 115 remote-endpoint = <&dsi0_out>; 120 }; 116 }; 121 }; 117 }; 122 }; 118 }; 123 }; 119 }; 124 120 125 &mdss_dsi0_out { !! 121 &dsi0_out { 126 remote-endpoint = <&panel_in>; 122 remote-endpoint = <&panel_in>; >> 123 }; >> 124 >> 125 &gpu { >> 126 zap-shader { >> 127 firmware-name = "qcom/msm8996/gemini/a530_zap.mbn"; >> 128 }; 127 }; 129 }; 128 130 129 &pmi8994_wled { 131 &pmi8994_wled { 130 status = "okay"; 132 status = "okay"; 131 }; 133 }; 132 134 133 &mss_pil { 135 &mss_pil { 134 firmware-name = "qcom/msm8996/gemini/m 136 firmware-name = "qcom/msm8996/gemini/mba.mbn", 135 "qcom/msm8996/gemini/m 137 "qcom/msm8996/gemini/modem.mbn"; 136 }; 138 }; 137 139 138 &q6asmdai { 140 &q6asmdai { 139 dai@0 { 141 dai@0 { 140 reg = <0>; 142 reg = <0>; 141 }; 143 }; 142 144 143 dai@1 { 145 dai@1 { 144 reg = <1>; 146 reg = <1>; 145 }; 147 }; 146 148 147 dai@2 { 149 dai@2 { 148 reg = <2>; 150 reg = <2>; 149 }; 151 }; 150 }; 152 }; 151 153 152 &slpi_pil { 154 &slpi_pil { 153 firmware-name = "qcom/msm8996/gemini/s 155 firmware-name = "qcom/msm8996/gemini/slpi.mbn"; 154 }; 156 }; 155 157 156 &sound { 158 &sound { 157 compatible = "qcom,apq8096-sndcard"; 159 compatible = "qcom,apq8096-sndcard"; 158 model = "gemini"; 160 model = "gemini"; 159 audio-routing = "RX_BIAS", "MCLK", 161 audio-routing = "RX_BIAS", "MCLK", 160 "MM_DL1", "MultiMedia1 Playba 162 "MM_DL1", "MultiMedia1 Playback", 161 "MM_DL2", "MultiMedia2 Playba 163 "MM_DL2", "MultiMedia2 Playback", 162 "MultiMedia3 Capture", "MM_UL3 164 "MultiMedia3 Capture", "MM_UL3"; 163 165 164 mm1-dai-link { 166 mm1-dai-link { 165 link-name = "MultiMedia1"; 167 link-name = "MultiMedia1"; 166 cpu { 168 cpu { 167 sound-dai = <&q6asmdai 169 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; 168 }; 170 }; 169 }; 171 }; 170 172 171 mm2-dai-link { 173 mm2-dai-link { 172 link-name = "MultiMedia2"; 174 link-name = "MultiMedia2"; 173 cpu { 175 cpu { 174 sound-dai = <&q6asmdai 176 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; 175 }; 177 }; 176 }; 178 }; 177 179 178 mm3-dai-link { 180 mm3-dai-link { 179 link-name = "MultiMedia3"; 181 link-name = "MultiMedia3"; 180 cpu { 182 cpu { 181 sound-dai = <&q6asmdai 183 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; 182 }; 184 }; 183 }; 185 }; 184 186 185 slim-dai-link { 187 slim-dai-link { 186 link-name = "SLIM Playback"; 188 link-name = "SLIM Playback"; 187 cpu { 189 cpu { 188 sound-dai = <&q6afedai 190 sound-dai = <&q6afedai SLIMBUS_6_RX>; 189 }; 191 }; 190 192 191 platform { 193 platform { 192 sound-dai = <&q6routin 194 sound-dai = <&q6routing>; 193 }; 195 }; 194 196 195 codec { 197 codec { 196 sound-dai = <&wcd9335 198 sound-dai = <&wcd9335 AIF4_PB>; 197 }; 199 }; 198 }; 200 }; 199 201 200 slimcap-dai-link { 202 slimcap-dai-link { 201 link-name = "SLIM Capture"; 203 link-name = "SLIM Capture"; 202 cpu { 204 cpu { 203 sound-dai = <&q6afedai 205 sound-dai = <&q6afedai SLIMBUS_0_TX>; 204 }; 206 }; 205 207 206 platform { 208 platform { 207 sound-dai = <&q6routin 209 sound-dai = <&q6routing>; 208 }; 210 }; 209 211 210 codec { 212 codec { 211 sound-dai = <&wcd9335 213 sound-dai = <&wcd9335 AIF1_CAP>; 212 }; 214 }; 213 }; 215 }; 214 }; 216 }; 215 217 216 &venus { 218 &venus { 217 firmware-name = "qcom/msm8996/gemini/v 219 firmware-name = "qcom/msm8996/gemini/venus.mbn"; 218 }; 220 }; 219 221 220 &rpm_requests { 222 &rpm_requests { 221 regulators-0 { 223 regulators-0 { 222 vreg_l17a_2p8: l17 { 224 vreg_l17a_2p8: l17 { 223 regulator-name = "vreg 225 regulator-name = "vreg_l17a_2p8"; 224 regulator-min-microvol 226 regulator-min-microvolt = <2500000>; 225 regulator-max-microvol 227 regulator-max-microvolt = <2500000>; 226 }; 228 }; 227 vreg_l29a_2p7: l29 { 229 vreg_l29a_2p7: l29 { 228 regulator-name = "vreg 230 regulator-name = "vreg_l29a_2p7"; 229 regulator-min-microvol 231 regulator-min-microvolt = <2800000>; 230 regulator-max-microvol 232 regulator-max-microvolt = <2800000>; 231 }; 233 }; 232 }; 234 }; 233 }; 235 }; 234 236 235 &pm8994_gpios { 237 &pm8994_gpios { 236 gpio-line-names = 238 gpio-line-names = 237 "NC", /* GPI 239 "NC", /* GPIO_1 */ 238 "VOL_UP_N", /* GPI 240 "VOL_UP_N", /* GPIO_2 */ 239 "SPKR_ID", /* GPI 241 "SPKR_ID", /* GPIO_3 */ 240 "PWM_HAPTICS", /* GPI 242 "PWM_HAPTICS", /* GPIO_4 */ 241 "INFARED_DRV", /* GPI 243 "INFARED_DRV", /* GPIO_5 */ 242 "NC", /* GPI 244 "NC", /* GPIO_6 */ 243 "KEYPAD_LED_EN", /* GPI 245 "KEYPAD_LED_EN", /* GPIO_7 */ 244 "WL_EN", /* GPI 246 "WL_EN", /* GPIO_8 */ 245 "3P3_ENABLE", /* GPI 247 "3P3_ENABLE", /* GPIO_9 */ 246 "FP_ID", /* GPI 248 "FP_ID", /* GPIO_10 */ 247 "NC", /* GPI 249 "NC", /* GPIO_11 */ 248 "NC", /* GPI 250 "NC", /* GPIO_12 */ 249 "NC", /* GPI 251 "NC", /* GPIO_13 */ 250 "NC", /* GPI 252 "NC", /* GPIO_14 */ 251 "DIVCLK1_CDC", /* GPI 253 "DIVCLK1_CDC", /* GPIO_15 */ 252 "DIVCLK2_HAPTICS", /* GPI 254 "DIVCLK2_HAPTICS", /* GPIO_16 */ 253 "NC", /* GPI 255 "NC", /* GPIO_17 */ 254 "32KHz_CLK_IN", /* GPI 256 "32KHz_CLK_IN", /* GPIO_18 */ 255 "BT_EN", /* GPI 257 "BT_EN", /* GPIO_19 */ 256 "PMIC_SLB", /* GPI 258 "PMIC_SLB", /* GPIO_20 */ 257 "UIM_BATT_ALARM", /* GPI 259 "UIM_BATT_ALARM", /* GPIO_21 */ 258 "NC"; /* GPI 260 "NC"; /* GPIO_22 */ 259 261 260 divclk2_pin_a: divclk2-state { 262 divclk2_pin_a: divclk2-state { 261 pins = "gpio16"; 263 pins = "gpio16"; 262 function = PMIC_GPIO_FUNC_FUNC 264 function = PMIC_GPIO_FUNC_FUNC2; 263 bias-disable; 265 bias-disable; 264 power-source = <PM8994_GPIO_S4 266 power-source = <PM8994_GPIO_S4>; 265 }; 267 }; 266 }; 268 }; 267 269 268 &pm8994_mpps { 270 &pm8994_mpps { 269 gpio-line-names = 271 gpio-line-names = 270 "NC", /* MPP 272 "NC", /* MPP_1 */ 271 "CCI_TIMER1", /* MPP 273 "CCI_TIMER1", /* MPP_2 */ 272 "PMIC_SLB", /* MPP 274 "PMIC_SLB", /* MPP_3 */ 273 "EXT_FET_WLED_PWR_EN_N",/* MPP 275 "EXT_FET_WLED_PWR_EN_N",/* MPP_4 */ 274 "NC", /* MPP 276 "NC", /* MPP_5 */ 275 "NC", /* MPP 277 "NC", /* MPP_6 */ 276 "NC", /* MPP 278 "NC", /* MPP_7 */ 277 "NC"; /* MPP 279 "NC"; /* MPP_8 */ 278 }; 280 }; 279 281 280 &pmi8994_gpios { 282 &pmi8994_gpios { 281 gpio-line-names = 283 gpio-line-names = 282 "NC", /* GPI 284 "NC", /* GPIO_1 */ 283 "SPKR_PA_RST", /* GPI 285 "SPKR_PA_RST", /* GPIO_2 */ 284 "NC", /* GPI 286 "NC", /* GPIO_3 */ 285 "NC", /* GPI 287 "NC", /* GPIO_4 */ 286 "NC", /* GPI 288 "NC", /* GPIO_5 */ 287 "NC", /* GPI 289 "NC", /* GPIO_6 */ 288 "NC", /* GPI 290 "NC", /* GPIO_7 */ 289 "NC", /* GPI 291 "NC", /* GPIO_8 */ 290 "NC", /* GPI 292 "NC", /* GPIO_9 */ 291 "NC"; /* GPI 293 "NC"; /* GPIO_10 */ 292 }; 294 }; 293 295 294 &tlmm { 296 &tlmm { 295 gpio-line-names = 297 gpio-line-names = 296 "ESE_SPI_MOSI", /* GPI 298 "ESE_SPI_MOSI", /* GPIO_0 */ 297 "ESE_SPI_MISO", /* GPI 299 "ESE_SPI_MISO", /* GPIO_1 */ 298 "ERR_INT_N", /* GPI 300 "ERR_INT_N", /* GPIO_2 */ 299 "ESE_SPI_CLK", /* GPI 301 "ESE_SPI_CLK", /* GPIO_3 */ 300 "MSM_UART_TX", /* GPI 302 "MSM_UART_TX", /* GPIO_4 */ 301 "MSM_UART_RX", /* GPI 303 "MSM_UART_RX", /* GPIO_5 */ 302 "NFC_I2C_SDA", /* GPI 304 "NFC_I2C_SDA", /* GPIO_6 */ 303 "NFC_I2C_SCL", /* GPI 305 "NFC_I2C_SCL", /* GPIO_7 */ 304 "LCD0_RESET_N", /* GPI 306 "LCD0_RESET_N", /* GPIO_8 */ 305 "NFC_IRQ", /* GPI 307 "NFC_IRQ", /* GPIO_9 */ 306 "LCD_TE", /* GPI 308 "LCD_TE", /* GPIO_10 */ 307 "LCD_ID_DET1", /* GPI 309 "LCD_ID_DET1", /* GPIO_11 */ 308 "NFC_DISABLE", /* GPI 310 "NFC_DISABLE", /* GPIO_12 */ 309 "CAM_MCLK0", /* GPI 311 "CAM_MCLK0", /* GPIO_13 */ 310 "NC", /* GPI 312 "NC", /* GPIO_14 */ 311 "CAM_MCLK2", /* GPI 313 "CAM_MCLK2", /* GPIO_15 */ 312 "ESE_PWR_REQ", /* GPI 314 "ESE_PWR_REQ", /* GPIO_16 */ 313 "CCI_I2C_SDA0", /* GPI 315 "CCI_I2C_SDA0", /* GPIO_17 */ 314 "CCI_I2C_SCL0", /* GPI 316 "CCI_I2C_SCL0", /* GPIO_18 */ 315 "CCI_I2C_SDA1", /* GPI 317 "CCI_I2C_SDA1", /* GPIO_19 */ 316 "CCI_I2C_SCL1", /* GPI 318 "CCI_I2C_SCL1", /* GPIO_20 */ 317 "NFC_DWL_REQ", /* GPI 319 "NFC_DWL_REQ", /* GPIO_21 */ 318 "CCI_TIMER1", /* GPI 320 "CCI_TIMER1", /* GPIO_22 */ 319 "WEBCAM1_RESET_N", /* GPI 321 "WEBCAM1_RESET_N", /* GPIO_23 */ 320 "ESE_IRQ", /* GPI 322 "ESE_IRQ", /* GPIO_24 */ 321 "NC", /* GPI 323 "NC", /* GPIO_25 */ 322 "WEBCAM1_STANDBY", /* GPI 324 "WEBCAM1_STANDBY", /* GPIO_26 */ 323 "NC", /* GPI 325 "NC", /* GPIO_27 */ 324 "NC", /* GPI 326 "NC", /* GPIO_28 */ 325 "NC", /* GPI 327 "NC", /* GPIO_29 */ 326 "CAM1_RST_N", /* GPI 328 "CAM1_RST_N", /* GPIO_30 */ 327 "NC", /* GPI 329 "NC", /* GPIO_31 */ 328 "NC", /* GPI 330 "NC", /* GPIO_32 */ 329 "NC", /* GPI 331 "NC", /* GPIO_33 */ 330 "FP_DOME_SW", /* GPI 332 "FP_DOME_SW", /* GPIO_34 */ 331 "PCI_E0_RST_N", /* GPI 333 "PCI_E0_RST_N", /* GPIO_35 */ 332 "PCI_E0_CLKREQ_N", /* GPI 334 "PCI_E0_CLKREQ_N", /* GPIO_36 */ 333 "PCI_E0_WAKE", /* GPI 335 "PCI_E0_WAKE", /* GPIO_37 */ 334 "FM_INT_N", /* GPI 336 "FM_INT_N", /* GPIO_38 */ 335 "FM_RESET_N", /* GPI 337 "FM_RESET_N", /* GPIO_39 */ 336 "NC", /* GPI 338 "NC", /* GPIO_40 */ 337 "QCA_UART_TXD", /* GPI 339 "QCA_UART_TXD", /* GPIO_41 */ 338 "QCA_UART_RXD", /* GPI 340 "QCA_UART_RXD", /* GPIO_42 */ 339 "QCA_UART_CTS", /* GPI 341 "QCA_UART_CTS", /* GPIO_43 */ 340 "QCA_UART_RTS", /* GPI 342 "QCA_UART_RTS", /* GPIO_44 */ 341 "MAWC_UART_TX", /* GPI 343 "MAWC_UART_TX", /* GPIO_45 */ 342 "MAWC_UART_RX", /* GPI 344 "MAWC_UART_RX", /* GPIO_46 */ 343 "NC", /* GPI 345 "NC", /* GPIO_47 */ 344 "NC", /* GPI 346 "NC", /* GPIO_48 */ 345 "AUDIO_SWITCH_EN", /* GPI 347 "AUDIO_SWITCH_EN", /* GPIO_49 */ 346 "FP_SPI_RST", /* GPI 348 "FP_SPI_RST", /* GPIO_50 */ 347 "TYPEC_I2C_SDA", /* GPI 349 "TYPEC_I2C_SDA", /* GPIO_51 */ 348 "TYPEC_I2C_SCL", /* GPI 350 "TYPEC_I2C_SCL", /* GPIO_52 */ 349 "CODEC_INT2_N", /* GPI 351 "CODEC_INT2_N", /* GPIO_53 */ 350 "CODEC_INT1_N", /* GPI 352 "CODEC_INT1_N", /* GPIO_54 */ 351 "APPS_I2C7_SDA", /* GPI 353 "APPS_I2C7_SDA", /* GPIO_55 */ 352 "APPS_I2C7_SCL", /* GPI 354 "APPS_I2C7_SCL", /* GPIO_56 */ 353 "FORCE_USB_BOOT", /* GPI 355 "FORCE_USB_BOOT", /* GPIO_57 */ 354 "SPKR_I2S_BCK", /* GPI 356 "SPKR_I2S_BCK", /* GPIO_58 */ 355 "SPKR_I2S_WS", /* GPI 357 "SPKR_I2S_WS", /* GPIO_59 */ 356 "SPKR_I2S_DOUT", /* GPI 358 "SPKR_I2S_DOUT", /* GPIO_60 */ 357 "SPKR_I2S_DIN", /* GPI 359 "SPKR_I2S_DIN", /* GPIO_61 */ 358 "ESE_RSTN", /* GPI 360 "ESE_RSTN", /* GPIO_62 */ 359 "TYPEC_INT", /* GPI 361 "TYPEC_INT", /* GPIO_63 */ 360 "CODEC_RESET_N", /* GPI 362 "CODEC_RESET_N", /* GPIO_64 */ 361 "PCM_CLK", /* GPI 363 "PCM_CLK", /* GPIO_65 */ 362 "PCM_SYNC", /* GPI 364 "PCM_SYNC", /* GPIO_66 */ 363 "PCM_DIN", /* GPI 365 "PCM_DIN", /* GPIO_67 */ 364 "PCM_DOUT", /* GPI 366 "PCM_DOUT", /* GPIO_68 */ 365 "HIFI_CLK", /* GPI 367 "HIFI_CLK", /* GPIO_69 */ 366 "SLIMBUS_CLK", /* GPI 368 "SLIMBUS_CLK", /* GPIO_70 */ 367 "SLIMBUS_DATA0", /* GPI 369 "SLIMBUS_DATA0", /* GPIO_71 */ 368 "SLIMBUS_DATA1", /* GPI 370 "SLIMBUS_DATA1", /* GPIO_72 */ 369 "LDO_5V_IN_EN", /* GPI 371 "LDO_5V_IN_EN", /* GPIO_73 */ 370 "NC", /* GPI 372 "NC", /* GPIO_74 */ 371 "FM_I2S_CLK", /* GPI 373 "FM_I2S_CLK", /* GPIO_75 */ 372 "FM_I2S_SYNC", /* GPI 374 "FM_I2S_SYNC", /* GPIO_76 */ 373 "FM_I2S_DATA", /* GPI 375 "FM_I2S_DATA", /* GPIO_77 */ 374 "FM_STATUS", /* GPI 376 "FM_STATUS", /* GPIO_78 */ 375 "NC", /* GPI 377 "NC", /* GPIO_79 */ 376 "SENSOR_RESET_N", /* GPI 378 "SENSOR_RESET_N", /* GPIO_80 */ 377 "FP_SPI_MOSI", /* GPI 379 "FP_SPI_MOSI", /* GPIO_81 */ 378 "FP_SPI_MISO", /* GPI 380 "FP_SPI_MISO", /* GPIO_82 */ 379 "FP_SPI_CS_N", /* GPI 381 "FP_SPI_CS_N", /* GPIO_83 */ 380 "FP_SPI_CLK", /* GPI 382 "FP_SPI_CLK", /* GPIO_84 */ 381 "NC", /* GPI 383 "NC", /* GPIO_85 */ 382 "CAM_VDD_1P05_EN", /* GPI 384 "CAM_VDD_1P05_EN", /* GPIO_86 */ 383 "MSM_TS_I2C_SDA", /* GPI 385 "MSM_TS_I2C_SDA", /* GPIO_87 */ 384 "MSM_TS_I2C_SCL", /* GPI 386 "MSM_TS_I2C_SCL", /* GPIO_88 */ 385 "TS_RESOUT_N", /* GPI 387 "TS_RESOUT_N", /* GPIO_89 */ 386 "ESE_SPI_CS_N", /* GPI 388 "ESE_SPI_CS_N", /* GPIO_90 */ 387 "NC", /* GPI 389 "NC", /* GPIO_91 */ 388 "NC", /* GPI 390 "NC", /* GPIO_92 */ 389 "HAPTICS_EN", /* GPI 391 "HAPTICS_EN", /* GPIO_93 */ 390 "NC", /* GPI 392 "NC", /* GPIO_94 */ 391 "NC", /* GPI 393 "NC", /* GPIO_95 */ 392 "NC", /* GPI 394 "NC", /* GPIO_96 */ 393 "NC", /* GPI 395 "NC", /* GPIO_97 */ 394 "GRFC_1", /* GPI 396 "GRFC_1", /* GPIO_98 */ 395 "NC", /* GPI 397 "NC", /* GPIO_99 */ 396 "GRFC_3", /* GPI 398 "GRFC_3", /* GPIO_100 */ 397 "GRFC_4", /* GPI 399 "GRFC_4", /* GPIO_101 */ 398 "NC", /* GPI 400 "NC", /* GPIO_102 */ 399 "NC", /* GPI 401 "NC", /* GPIO_103 */ 400 "GRFC_7", /* GPI 402 "GRFC_7", /* GPIO_104 */ 401 "UIM2_DATA", /* GPI 403 "UIM2_DATA", /* GPIO_105 */ 402 "UIM2_CLK", /* GPI 404 "UIM2_CLK", /* GPIO_106 */ 403 "UIM2_RESET", /* GPI 405 "UIM2_RESET", /* GPIO_107 */ 404 "UIM2_PRESENT", /* GPI 406 "UIM2_PRESENT", /* GPIO_108 */ 405 "UIM1_DATA", /* GPI 407 "UIM1_DATA", /* GPIO_109 */ 406 "UIM1_CLK", /* GPI 408 "UIM1_CLK", /* GPIO_110 */ 407 "UIM1_RESET", /* GPI 409 "UIM1_RESET", /* GPIO_111 */ 408 "UIM1_PRESENT", /* GPI 410 "UIM1_PRESENT", /* GPIO_112 */ 409 "UIM_BATT_ALARM", /* GPI 411 "UIM_BATT_ALARM", /* GPIO_113 */ 410 "GRFC_8", /* GPI 412 "GRFC_8", /* GPIO_114 */ 411 "GRFC_9", /* GPI 413 "GRFC_9", /* GPIO_115 */ 412 "TX_GTR_THRES", /* GPI 414 "TX_GTR_THRES", /* GPIO_116 */ 413 "ACCEL_INT", /* GPI 415 "ACCEL_INT", /* GPIO_117 */ 414 "GYRO_INT", /* GPI 416 "GYRO_INT", /* GPIO_118 */ 415 "COMPASS_INT", /* GPI 417 "COMPASS_INT", /* GPIO_119 */ 416 "PROXIMITY_INT_N", /* GPI 418 "PROXIMITY_INT_N", /* GPIO_120 */ 417 "FP_IRQ", /* GPI 419 "FP_IRQ", /* GPIO_121 */ 418 "NC", /* GPI 420 "NC", /* GPIO_122 */ 419 "HALL_INTR2", /* GPI 421 "HALL_INTR2", /* GPIO_123 */ 420 "HALL_INTR1", /* GPI 422 "HALL_INTR1", /* GPIO_124 */ 421 "TS_INT_N", /* GPI 423 "TS_INT_N", /* GPIO_125 */ 422 "NC", /* GPI 424 "NC", /* GPIO_126 */ 423 "GRFC_11", /* GPI 425 "GRFC_11", /* GPIO_127 */ 424 "NC", /* GPI 426 "NC", /* GPIO_128 */ 425 "EXT_GPS_LNA_EN", /* GPI 427 "EXT_GPS_LNA_EN", /* GPIO_129 */ 426 "NC", /* GPI 428 "NC", /* GPIO_130 */ 427 "NC", /* GPI 429 "NC", /* GPIO_131 */ 428 "NC", /* GPI 430 "NC", /* GPIO_132 */ 429 "GRFC_14", /* GPI 431 "GRFC_14", /* GPIO_133 */ 430 "GSM_TX2_PHASE_D", /* GPI 432 "GSM_TX2_PHASE_D", /* GPIO_134 */ 431 "NC", /* GPI 433 "NC", /* GPIO_135 */ 432 "NC", /* GPI 434 "NC", /* GPIO_136 */ 433 "RFFE3_DATA", /* GPI 435 "RFFE3_DATA", /* GPIO_137 */ 434 "RFFE3_CLK", /* GPI 436 "RFFE3_CLK", /* GPIO_138 */ 435 "NC", /* GPI 437 "NC", /* GPIO_139 */ 436 "NC", /* GPI 438 "NC", /* GPIO_140 */ 437 "RFFE5_DATA", /* GPI 439 "RFFE5_DATA", /* GPIO_141 */ 438 "RFFE5_CLK", /* GPI 440 "RFFE5_CLK", /* GPIO_142 */ 439 "NC", /* GPI 441 "NC", /* GPIO_143 */ 440 "COEX_UART_TX", /* GPI 442 "COEX_UART_TX", /* GPIO_144 */ 441 "COEX_UART_RX", /* GPI 443 "COEX_UART_RX", /* GPIO_145 */ 442 "RFFE2_DATA", /* GPI 444 "RFFE2_DATA", /* GPIO_146 */ 443 "RFFE2_CLK", /* GPI 445 "RFFE2_CLK", /* GPIO_147 */ 444 "RFFE1_DATA", /* GPI 446 "RFFE1_DATA", /* GPIO_148 */ 445 "RFFE1_CLK"; /* GPI 447 "RFFE1_CLK"; /* GPIO_149 */ 446 448 447 touchscreen_default: touchscreen-defau 449 touchscreen_default: touchscreen-default-state { 448 pins = "gpio89", "gpio125"; 450 pins = "gpio89", "gpio125"; 449 function = "gpio"; 451 function = "gpio"; 450 drive-strength = <10>; 452 drive-strength = <10>; 451 bias-pull-up; 453 bias-pull-up; 452 }; 454 }; 453 455 454 touchscreen_sleep: touchscreen-sleep-s 456 touchscreen_sleep: touchscreen-sleep-state { 455 pins = "gpio89", "gpio125"; 457 pins = "gpio89", "gpio125"; 456 function = "gpio"; 458 function = "gpio"; 457 drive-strength = <2>; 459 drive-strength = <2>; 458 bias-disable; 460 bias-disable; 459 }; 461 }; 460 462 461 vibrator_default: vibrator-default-sta 463 vibrator_default: vibrator-default-state { 462 pins = "gpio93"; 464 pins = "gpio93"; 463 function = "gpio"; 465 function = "gpio"; 464 drive-strength = <8>; 466 drive-strength = <8>; 465 bias-pull-up; 467 bias-pull-up; 466 }; 468 }; 467 469 468 vibrator_sleep: vibrator-sleep-state { 470 vibrator_sleep: vibrator-sleep-state { 469 pins = "gpio93"; 471 pins = "gpio93"; 470 function = "gpio"; 472 function = "gpio"; 471 drive-strength = <2>; 473 drive-strength = <2>; 472 bias-disable; 474 bias-disable; 473 }; 475 }; 474 }; 476 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.