1*8bab661aSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause 2*8bab661aSEmmanuel Vadot/* 3*8bab661aSEmmanuel Vadot * Copyright (c) 2020, Yassine Oudjana <y.oudjana@protonmail.com> 4*8bab661aSEmmanuel Vadot */ 5*8bab661aSEmmanuel Vadot 6*8bab661aSEmmanuel Vadot/dts-v1/; 7*8bab661aSEmmanuel Vadot 8*8bab661aSEmmanuel Vadot#include "msm8996pro.dtsi" 9*8bab661aSEmmanuel Vadot#include "msm8996-xiaomi-common.dtsi" 10*8bab661aSEmmanuel Vadot#include "pmi8996.dtsi" 11*8bab661aSEmmanuel Vadot#include <dt-bindings/sound/qcom,q6afe.h> 12*8bab661aSEmmanuel Vadot#include <dt-bindings/sound/qcom,q6asm.h> 13*8bab661aSEmmanuel Vadot#include <dt-bindings/sound/qcom,wcd9335.h> 14*8bab661aSEmmanuel Vadot 15*8bab661aSEmmanuel Vadot/ { 16*8bab661aSEmmanuel Vadot model = "Xiaomi Mi Note 2"; 17*8bab661aSEmmanuel Vadot compatible = "xiaomi,scorpio", "qcom,msm8996pro", "qcom,msm8996"; 18*8bab661aSEmmanuel Vadot chassis-type = "handset"; 19*8bab661aSEmmanuel Vadot qcom,msm-id = <305 0x10000>; 20*8bab661aSEmmanuel Vadot qcom,board-id = <34 0>; 21*8bab661aSEmmanuel Vadot 22*8bab661aSEmmanuel Vadot chosen { 23*8bab661aSEmmanuel Vadot #address-cells = <2>; 24*8bab661aSEmmanuel Vadot #size-cells = <2>; 25*8bab661aSEmmanuel Vadot ranges; 26*8bab661aSEmmanuel Vadot 27*8bab661aSEmmanuel Vadot framebuffer0: framebuffer@83401000 { 28*8bab661aSEmmanuel Vadot compatible = "simple-framebuffer"; 29*8bab661aSEmmanuel Vadot reg = <0x00 0x83401000 0x00 (1080 * 1920 * 3)>; 30*8bab661aSEmmanuel Vadot width = <1080>; 31*8bab661aSEmmanuel Vadot height = <1920>; 32*8bab661aSEmmanuel Vadot stride = <(1080 * 3)>; 33*8bab661aSEmmanuel Vadot format = "r8g8b8"; 34*8bab661aSEmmanuel Vadot 35*8bab661aSEmmanuel Vadot /* DSI0 and MDP SMMU clocks */ 36*8bab661aSEmmanuel Vadot clocks = <&mmcc MDSS_MDP_CLK>, 37*8bab661aSEmmanuel Vadot <&mmcc MMSS_MMAGIC_AHB_CLK>, 38*8bab661aSEmmanuel Vadot <&mmcc MDSS_AHB_CLK>, 39*8bab661aSEmmanuel Vadot <&mmcc MDSS_AXI_CLK>, 40*8bab661aSEmmanuel Vadot <&mmcc MMSS_MISC_AHB_CLK>, 41*8bab661aSEmmanuel Vadot <&mmcc MDSS_BYTE0_CLK>, 42*8bab661aSEmmanuel Vadot <&mmcc MDSS_PCLK0_CLK>, 43*8bab661aSEmmanuel Vadot <&mmcc MDSS_ESC0_CLK>, 44*8bab661aSEmmanuel Vadot <&mmcc SMMU_MDP_AHB_CLK>, 45*8bab661aSEmmanuel Vadot <&mmcc SMMU_MDP_AXI_CLK>; 46*8bab661aSEmmanuel Vadot 47*8bab661aSEmmanuel Vadot /* MDSS power domain */ 48*8bab661aSEmmanuel Vadot power-domains = <&mmcc MDSS_GDSC>; 49*8bab661aSEmmanuel Vadot }; 50*8bab661aSEmmanuel Vadot }; 51*8bab661aSEmmanuel Vadot 52*8bab661aSEmmanuel Vadot reserved-memory { 53*8bab661aSEmmanuel Vadot cont_splash_mem: memory@83401000 { 54*8bab661aSEmmanuel Vadot reg = <0x0 0x83401000 0x0 (1080 * 1920 * 3)>; 55*8bab661aSEmmanuel Vadot no-map; 56*8bab661aSEmmanuel Vadot }; 57*8bab661aSEmmanuel Vadot }; 58*8bab661aSEmmanuel Vadot}; 59*8bab661aSEmmanuel Vadot 60*8bab661aSEmmanuel Vadot&adsp_pil { 61*8bab661aSEmmanuel Vadot firmware-name = "qcom/msm8996/scorpio/adsp.mbn"; 62*8bab661aSEmmanuel Vadot}; 63*8bab661aSEmmanuel Vadot 64*8bab661aSEmmanuel Vadot&blsp2_i2c6 { 65*8bab661aSEmmanuel Vadot touchkey: touchkey@28 { 66*8bab661aSEmmanuel Vadot compatible = "cypress,sf3155"; 67*8bab661aSEmmanuel Vadot reg = <0x28>; 68*8bab661aSEmmanuel Vadot interrupt-parent = <&tlmm>; 69*8bab661aSEmmanuel Vadot interrupts = <77 IRQ_TYPE_EDGE_FALLING>; 70*8bab661aSEmmanuel Vadot avdd-supply = <&vreg_l6a_1p8>; 71*8bab661aSEmmanuel Vadot vdd-supply = <&vdd_3v2_tp>; 72*8bab661aSEmmanuel Vadot linux,keycodes = <KEY_BACK KEY_MENU>; 73*8bab661aSEmmanuel Vadot 74*8bab661aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 75*8bab661aSEmmanuel Vadot pinctrl-0 = <&touchkey_default>; 76*8bab661aSEmmanuel Vadot pinctrl-1 = <&touchkey_sleep>; 77*8bab661aSEmmanuel Vadot }; 78*8bab661aSEmmanuel Vadot 79*8bab661aSEmmanuel Vadot touchscreen: atmel-mxt-ts@4a { 80*8bab661aSEmmanuel Vadot compatible = "atmel,maxtouch"; 81*8bab661aSEmmanuel Vadot reg = <0x4a>; 82*8bab661aSEmmanuel Vadot interrupt-parent = <&tlmm>; 83*8bab661aSEmmanuel Vadot interrupts = <125 IRQ_TYPE_LEVEL_LOW>; 84*8bab661aSEmmanuel Vadot vdda-supply = <&vreg_l6a_1p8>; 85*8bab661aSEmmanuel Vadot vdd-supply = <&vdd_3v2_tp>; 86*8bab661aSEmmanuel Vadot reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>; 87*8bab661aSEmmanuel Vadot 88*8bab661aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 89*8bab661aSEmmanuel Vadot pinctrl-0 = <&touchscreen_default>; 90*8bab661aSEmmanuel Vadot pinctrl-1 = <&touchscreen_sleep>; 91*8bab661aSEmmanuel Vadot }; 92*8bab661aSEmmanuel Vadot}; 93*8bab661aSEmmanuel Vadot 94*8bab661aSEmmanuel Vadot&gpu { 95*8bab661aSEmmanuel Vadot zap-shader { 96*8bab661aSEmmanuel Vadot firmware-name = "qcom/msm8996/scorpio/a530_zap.mbn"; 97*8bab661aSEmmanuel Vadot }; 98*8bab661aSEmmanuel Vadot}; 99*8bab661aSEmmanuel Vadot 100*8bab661aSEmmanuel Vadot&mdp_smmu { 101*8bab661aSEmmanuel Vadot /* 102*8bab661aSEmmanuel Vadot * Probing this SMMU causes a crash due to writing to some secure 103*8bab661aSEmmanuel Vadot * registers. Disable it for now. 104*8bab661aSEmmanuel Vadot */ 105*8bab661aSEmmanuel Vadot status = "disabled"; 106*8bab661aSEmmanuel Vadot}; 107*8bab661aSEmmanuel Vadot 108*8bab661aSEmmanuel Vadot&mdss { 109*8bab661aSEmmanuel Vadot /* 110*8bab661aSEmmanuel Vadot * MDSS depends on the MDP SMMU, and probing it alters the bootloader 111*8bab661aSEmmanuel Vadot * configured framebuffer used by simplefb. Disable it for now. 112*8bab661aSEmmanuel Vadot */ 113*8bab661aSEmmanuel Vadot status = "disabled"; 114*8bab661aSEmmanuel Vadot}; 115*8bab661aSEmmanuel Vadot 116*8bab661aSEmmanuel Vadot&mss_pil { 117*8bab661aSEmmanuel Vadot firmware-name = "qcom/msm8996/scorpio/mba.mbn", 118*8bab661aSEmmanuel Vadot "qcom/msm8996/scorpio/modem.mbn"; 119*8bab661aSEmmanuel Vadot}; 120*8bab661aSEmmanuel Vadot 121*8bab661aSEmmanuel Vadot&pm8994_lpg { 122*8bab661aSEmmanuel Vadot pinctrl-names = "default"; 123*8bab661aSEmmanuel Vadot pinctrl-0 = <&keypad_default>; 124*8bab661aSEmmanuel Vadot 125*8bab661aSEmmanuel Vadot led@3 { 126*8bab661aSEmmanuel Vadot reg = <3>; 127*8bab661aSEmmanuel Vadot color = <LED_COLOR_ID_WHITE>; 128*8bab661aSEmmanuel Vadot function = LED_FUNCTION_KBD_BACKLIGHT; 129*8bab661aSEmmanuel Vadot function-enumerator = <1>; 130*8bab661aSEmmanuel Vadot }; 131*8bab661aSEmmanuel Vadot 132*8bab661aSEmmanuel Vadot led@6 { 133*8bab661aSEmmanuel Vadot reg = <6>; 134*8bab661aSEmmanuel Vadot color = <LED_COLOR_ID_WHITE>; 135*8bab661aSEmmanuel Vadot function = LED_FUNCTION_KBD_BACKLIGHT; 136*8bab661aSEmmanuel Vadot function-enumerator = <0>; 137*8bab661aSEmmanuel Vadot }; 138*8bab661aSEmmanuel Vadot}; 139*8bab661aSEmmanuel Vadot 140*8bab661aSEmmanuel Vadot&q6asmdai { 141*8bab661aSEmmanuel Vadot dai@0 { 142*8bab661aSEmmanuel Vadot reg = <0>; 143*8bab661aSEmmanuel Vadot }; 144*8bab661aSEmmanuel Vadot 145*8bab661aSEmmanuel Vadot dai@1 { 146*8bab661aSEmmanuel Vadot reg = <1>; 147*8bab661aSEmmanuel Vadot }; 148*8bab661aSEmmanuel Vadot 149*8bab661aSEmmanuel Vadot dai@2 { 150*8bab661aSEmmanuel Vadot reg = <2>; 151*8bab661aSEmmanuel Vadot }; 152*8bab661aSEmmanuel Vadot}; 153*8bab661aSEmmanuel Vadot 154*8bab661aSEmmanuel Vadot&slpi_pil { 155*8bab661aSEmmanuel Vadot firmware-name = "qcom/msm8996/scorpio/slpi.mbn"; 156*8bab661aSEmmanuel Vadot}; 157*8bab661aSEmmanuel Vadot 158*8bab661aSEmmanuel Vadot&sound { 159*8bab661aSEmmanuel Vadot compatible = "qcom,apq8096-sndcard"; 160*8bab661aSEmmanuel Vadot model = "scorpio"; 161*8bab661aSEmmanuel Vadot audio-routing = "RX_BIAS", "MCLK"; 162*8bab661aSEmmanuel Vadot 163*8bab661aSEmmanuel Vadot mm1-dai-link { 164*8bab661aSEmmanuel Vadot link-name = "MultiMedia1"; 165*8bab661aSEmmanuel Vadot cpu { 166*8bab661aSEmmanuel Vadot sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; 167*8bab661aSEmmanuel Vadot }; 168*8bab661aSEmmanuel Vadot }; 169*8bab661aSEmmanuel Vadot 170*8bab661aSEmmanuel Vadot mm2-dai-link { 171*8bab661aSEmmanuel Vadot link-name = "MultiMedia2"; 172*8bab661aSEmmanuel Vadot cpu { 173*8bab661aSEmmanuel Vadot sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; 174*8bab661aSEmmanuel Vadot }; 175*8bab661aSEmmanuel Vadot }; 176*8bab661aSEmmanuel Vadot 177*8bab661aSEmmanuel Vadot mm3-dai-link { 178*8bab661aSEmmanuel Vadot link-name = "MultiMedia3"; 179*8bab661aSEmmanuel Vadot cpu { 180*8bab661aSEmmanuel Vadot sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; 181*8bab661aSEmmanuel Vadot }; 182*8bab661aSEmmanuel Vadot }; 183*8bab661aSEmmanuel Vadot 184*8bab661aSEmmanuel Vadot slim-dai-link { 185*8bab661aSEmmanuel Vadot link-name = "SLIM Playback"; 186*8bab661aSEmmanuel Vadot cpu { 187*8bab661aSEmmanuel Vadot sound-dai = <&q6afedai SLIMBUS_6_RX>; 188*8bab661aSEmmanuel Vadot }; 189*8bab661aSEmmanuel Vadot 190*8bab661aSEmmanuel Vadot platform { 191*8bab661aSEmmanuel Vadot sound-dai = <&q6routing>; 192*8bab661aSEmmanuel Vadot }; 193*8bab661aSEmmanuel Vadot 194*8bab661aSEmmanuel Vadot codec { 195*8bab661aSEmmanuel Vadot sound-dai = <&wcd9335 AIF4_PB>; 196*8bab661aSEmmanuel Vadot }; 197*8bab661aSEmmanuel Vadot }; 198*8bab661aSEmmanuel Vadot 199*8bab661aSEmmanuel Vadot slimcap-dai-link { 200*8bab661aSEmmanuel Vadot link-name = "SLIM Capture"; 201*8bab661aSEmmanuel Vadot cpu { 202*8bab661aSEmmanuel Vadot sound-dai = <&q6afedai SLIMBUS_0_TX>; 203*8bab661aSEmmanuel Vadot }; 204*8bab661aSEmmanuel Vadot 205*8bab661aSEmmanuel Vadot platform { 206*8bab661aSEmmanuel Vadot sound-dai = <&q6routing>; 207*8bab661aSEmmanuel Vadot }; 208*8bab661aSEmmanuel Vadot 209*8bab661aSEmmanuel Vadot codec { 210*8bab661aSEmmanuel Vadot sound-dai = <&wcd9335 AIF1_CAP>; 211*8bab661aSEmmanuel Vadot }; 212*8bab661aSEmmanuel Vadot }; 213*8bab661aSEmmanuel Vadot}; 214*8bab661aSEmmanuel Vadot 215*8bab661aSEmmanuel Vadot&venus { 216*8bab661aSEmmanuel Vadot firmware-name = "qcom/msm8996/scorpio/venus.mbn"; 217*8bab661aSEmmanuel Vadot}; 218*8bab661aSEmmanuel Vadot 219*8bab661aSEmmanuel Vadot&rpm_requests { 220*8bab661aSEmmanuel Vadot regulators-0 { 221*8bab661aSEmmanuel Vadot vreg_l3a_0p875: l3 { 222*8bab661aSEmmanuel Vadot regulator-name = "vreg_l3a_0p875"; 223*8bab661aSEmmanuel Vadot regulator-min-microvolt = <850000>; 224*8bab661aSEmmanuel Vadot regulator-max-microvolt = <1300000>; 225*8bab661aSEmmanuel Vadot }; 226*8bab661aSEmmanuel Vadot vreg_l11a_1p1: l11 { 227*8bab661aSEmmanuel Vadot regulator-name = "vreg_l11a_1p1"; 228*8bab661aSEmmanuel Vadot regulator-min-microvolt = <1100000>; 229*8bab661aSEmmanuel Vadot regulator-max-microvolt = <1100000>; 230*8bab661aSEmmanuel Vadot }; 231*8bab661aSEmmanuel Vadot vreg_l17a_2p8: l17 { 232*8bab661aSEmmanuel Vadot regulator-name = "vreg_l17a_2p8"; 233*8bab661aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 234*8bab661aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 235*8bab661aSEmmanuel Vadot }; 236*8bab661aSEmmanuel Vadot vreg_l18a_2p8: l18 { 237*8bab661aSEmmanuel Vadot regulator-name = "vreg_l18a_2p8"; 238*8bab661aSEmmanuel Vadot regulator-min-microvolt = <2800000>; 239*8bab661aSEmmanuel Vadot regulator-max-microvolt = <2800000>; 240*8bab661aSEmmanuel Vadot }; 241*8bab661aSEmmanuel Vadot vreg_l22a_3p0: l22 { 242*8bab661aSEmmanuel Vadot regulator-name = "vreg_l22a_3p0"; 243*8bab661aSEmmanuel Vadot regulator-min-microvolt = <2950000>; 244*8bab661aSEmmanuel Vadot regulator-max-microvolt = <3500000>; 245*8bab661aSEmmanuel Vadot }; 246*8bab661aSEmmanuel Vadot vreg_l29a_2p7: l29 { 247*8bab661aSEmmanuel Vadot regulator-name = "vreg_l29a_2p7"; 248*8bab661aSEmmanuel Vadot regulator-min-microvolt = <2700000>; 249*8bab661aSEmmanuel Vadot regulator-max-microvolt = <2700000>; 250*8bab661aSEmmanuel Vadot }; 251*8bab661aSEmmanuel Vadot }; 252*8bab661aSEmmanuel Vadot}; 253*8bab661aSEmmanuel Vadot 254*8bab661aSEmmanuel Vadot&vdd_gfx { 255*8bab661aSEmmanuel Vadot regulator-max-microvolt = <1065000>; 256*8bab661aSEmmanuel Vadot}; 257*8bab661aSEmmanuel Vadot 258*8bab661aSEmmanuel Vadot&pm8994_gpios { 259*8bab661aSEmmanuel Vadot gpio-line-names = 260*8bab661aSEmmanuel Vadot "NC", /* GPIO_1 */ 261*8bab661aSEmmanuel Vadot "VOL_UP_N", /* GPIO_2 */ 262*8bab661aSEmmanuel Vadot "SPKR_ID", /* GPIO_3 */ 263*8bab661aSEmmanuel Vadot "PWM_HAPTICS", /* GPIO_4 */ 264*8bab661aSEmmanuel Vadot "INFARED_DRV", /* GPIO_5 */ 265*8bab661aSEmmanuel Vadot "NC", /* GPIO_6 */ 266*8bab661aSEmmanuel Vadot "KEYPAD_LED_EN_A", /* GPIO_7 */ 267*8bab661aSEmmanuel Vadot "WL_EN", /* GPIO_8 */ 268*8bab661aSEmmanuel Vadot "3P3_ENABLE", /* GPIO_9 */ 269*8bab661aSEmmanuel Vadot "KEYPAD_LED_EN_B", /* GPIO_10 */ 270*8bab661aSEmmanuel Vadot "FP_ID", /* GPIO_11 */ 271*8bab661aSEmmanuel Vadot "NC", /* GPIO_12 */ 272*8bab661aSEmmanuel Vadot "NC", /* GPIO_13 */ 273*8bab661aSEmmanuel Vadot "NC", /* GPIO_14 */ 274*8bab661aSEmmanuel Vadot "DIVCLK1_CDC", /* GPIO_15 */ 275*8bab661aSEmmanuel Vadot "DIVCLK2_HAPTICS", /* GPIO_16 */ 276*8bab661aSEmmanuel Vadot "NC", /* GPIO_17 */ 277*8bab661aSEmmanuel Vadot "32KHz_CLK_IN", /* GPIO_18 */ 278*8bab661aSEmmanuel Vadot "BT_EN", /* GPIO_19 */ 279*8bab661aSEmmanuel Vadot "PMIC_SLB", /* GPIO_20 */ 280*8bab661aSEmmanuel Vadot "UIM_BATT_ALARM", /* GPIO_21 */ 281*8bab661aSEmmanuel Vadot "NC"; /* GPIO_22 */ 282*8bab661aSEmmanuel Vadot 283*8bab661aSEmmanuel Vadot keypad_default: keypad-default-state { 284*8bab661aSEmmanuel Vadot pins = "gpio7", "gpio10"; 285*8bab661aSEmmanuel Vadot function = PMIC_GPIO_FUNC_FUNC1; 286*8bab661aSEmmanuel Vadot output-low; 287*8bab661aSEmmanuel Vadot qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; 288*8bab661aSEmmanuel Vadot power-source = <PM8994_GPIO_S4>; 289*8bab661aSEmmanuel Vadot bias-disable; 290*8bab661aSEmmanuel Vadot }; 291*8bab661aSEmmanuel Vadot}; 292*8bab661aSEmmanuel Vadot 293*8bab661aSEmmanuel Vadot&pm8994_mpps { 294*8bab661aSEmmanuel Vadot gpio-line-names = 295*8bab661aSEmmanuel Vadot "VREF_SDC_UIM_APC", /* MPP_1 */ 296*8bab661aSEmmanuel Vadot "NC", /* MPP_2 */ 297*8bab661aSEmmanuel Vadot "VREF_DACX", /* MPP_3 */ 298*8bab661aSEmmanuel Vadot "NC", /* MPP_4 */ 299*8bab661aSEmmanuel Vadot "NC", /* MPP_5 */ 300*8bab661aSEmmanuel Vadot "STAT_SMB1351", /* MPP_6 */ 301*8bab661aSEmmanuel Vadot "NC", /* MPP_7 */ 302*8bab661aSEmmanuel Vadot "NC"; /* MPP_8 */ 303*8bab661aSEmmanuel Vadot}; 304*8bab661aSEmmanuel Vadot 305*8bab661aSEmmanuel Vadot&pmi8994_gpios { 306*8bab661aSEmmanuel Vadot gpio-line-names = 307*8bab661aSEmmanuel Vadot "NC", /* GPIO_1 */ 308*8bab661aSEmmanuel Vadot "SPKR_PA_RST", /* GPIO_2 */ 309*8bab661aSEmmanuel Vadot "NC", /* GPIO_3 */ 310*8bab661aSEmmanuel Vadot "NC", /* GPIO_4 */ 311*8bab661aSEmmanuel Vadot "NC", /* GPIO_5 */ 312*8bab661aSEmmanuel Vadot "NC", /* GPIO_6 */ 313*8bab661aSEmmanuel Vadot "NC", /* GPIO_7 */ 314*8bab661aSEmmanuel Vadot "NC", /* GPIO_8 */ 315*8bab661aSEmmanuel Vadot "NC", /* GPIO_9 */ 316*8bab661aSEmmanuel Vadot "NC"; /* GPIO_10 */ 317*8bab661aSEmmanuel Vadot}; 318*8bab661aSEmmanuel Vadot 319*8bab661aSEmmanuel Vadot&tlmm { 320*8bab661aSEmmanuel Vadot gpio-line-names = 321*8bab661aSEmmanuel Vadot "ESE_SPI_MOSI", /* GPIO_0 */ 322*8bab661aSEmmanuel Vadot "ESE_SPI_MISO", /* GPIO_1 */ 323*8bab661aSEmmanuel Vadot "NC", /* GPIO_2 */ 324*8bab661aSEmmanuel Vadot "ESE_SPI_CLK", /* GPIO_3 */ 325*8bab661aSEmmanuel Vadot "MSM_UART_TX", /* GPIO_4 */ 326*8bab661aSEmmanuel Vadot "MSM_UART_RX", /* GPIO_5 */ 327*8bab661aSEmmanuel Vadot "NFC_I2C_SDA", /* GPIO_6 */ 328*8bab661aSEmmanuel Vadot "NFC_I2C_SCL", /* GPIO_7 */ 329*8bab661aSEmmanuel Vadot "OLED_RESET_N", /* GPIO_8 */ 330*8bab661aSEmmanuel Vadot "NFC_IRQ", /* GPIO_9 */ 331*8bab661aSEmmanuel Vadot "OLED_TE", /* GPIO_10 */ 332*8bab661aSEmmanuel Vadot "OLED_ID_DET1", /* GPIO_11 */ 333*8bab661aSEmmanuel Vadot "NFC_DISABLE", /* GPIO_12 */ 334*8bab661aSEmmanuel Vadot "CAM_MCLK0", /* GPIO_13 */ 335*8bab661aSEmmanuel Vadot "OLED_ID_DET2", /* GPIO_14 */ 336*8bab661aSEmmanuel Vadot "CAM_MCLK2", /* GPIO_15 */ 337*8bab661aSEmmanuel Vadot "ESE_PWR_REQ", /* GPIO_16 */ 338*8bab661aSEmmanuel Vadot "CCI_I2C_SDA0", /* GPIO_17 */ 339*8bab661aSEmmanuel Vadot "CCI_I2C_SCL0", /* GPIO_18 */ 340*8bab661aSEmmanuel Vadot "CCI_I2C_SDA1", /* GPIO_19 */ 341*8bab661aSEmmanuel Vadot "CCI_I2C_SCL1", /* GPIO_20 */ 342*8bab661aSEmmanuel Vadot "NFC_DWL_REQ", /* GPIO_21 */ 343*8bab661aSEmmanuel Vadot "CCI_TIMER1", /* GPIO_22 */ 344*8bab661aSEmmanuel Vadot "WEBCAM1_RESET_N", /* GPIO_23 */ 345*8bab661aSEmmanuel Vadot "ESE_IRQ", /* GPIO_24 */ 346*8bab661aSEmmanuel Vadot "NC", /* GPIO_25 */ 347*8bab661aSEmmanuel Vadot "WEBCAM1_STANDBY", /* GPIO_26 */ 348*8bab661aSEmmanuel Vadot "NC", /* GPIO_27 */ 349*8bab661aSEmmanuel Vadot "NC", /* GPIO_28 */ 350*8bab661aSEmmanuel Vadot "OLED_ERR_FG", /* GPIO_29 */ 351*8bab661aSEmmanuel Vadot "CAM1_RST_N", /* GPIO_30 */ 352*8bab661aSEmmanuel Vadot "HIFI_SW_MUTE", /* GPIO_31 */ 353*8bab661aSEmmanuel Vadot "NC", /* GPIO_32 */ 354*8bab661aSEmmanuel Vadot "NC", /* GPIO_33 */ 355*8bab661aSEmmanuel Vadot "FP_DOME_SW", /* GPIO_34 */ 356*8bab661aSEmmanuel Vadot "PCI_E0_RST_N", /* GPIO_35 */ 357*8bab661aSEmmanuel Vadot "PCI_E0_CLKREQ_N", /* GPIO_36 */ 358*8bab661aSEmmanuel Vadot "PCI_E0_WAKE", /* GPIO_37 */ 359*8bab661aSEmmanuel Vadot "OV_PWDN", /* GPIO_38 */ 360*8bab661aSEmmanuel Vadot "NC", /* GPIO_39 */ 361*8bab661aSEmmanuel Vadot "VDDR_1P6_EN", /* GPIO_40 */ 362*8bab661aSEmmanuel Vadot "QCA_UART_TXD", /* GPIO_41 */ 363*8bab661aSEmmanuel Vadot "QCA_UART_RXD", /* GPIO_42 */ 364*8bab661aSEmmanuel Vadot "QCA_UART_CTS", /* GPIO_43 */ 365*8bab661aSEmmanuel Vadot "QCA_UART_RTS", /* GPIO_44 */ 366*8bab661aSEmmanuel Vadot "MAWC_UART_TX", /* GPIO_45 */ 367*8bab661aSEmmanuel Vadot "MAWC_UART_RX", /* GPIO_46 */ 368*8bab661aSEmmanuel Vadot "NC", /* GPIO_47 */ 369*8bab661aSEmmanuel Vadot "NC", /* GPIO_48 */ 370*8bab661aSEmmanuel Vadot "AUDIO_SWITCH_EN", /* GPIO_49 */ 371*8bab661aSEmmanuel Vadot "FP_SPI_RST", /* GPIO_50 */ 372*8bab661aSEmmanuel Vadot "TYPEC_I2C_SDA", /* GPIO_51 */ 373*8bab661aSEmmanuel Vadot "TYPEC_I2C_SCL", /* GPIO_52 */ 374*8bab661aSEmmanuel Vadot "CODEC_INT2_N", /* GPIO_53 */ 375*8bab661aSEmmanuel Vadot "CODEC_INT1_N", /* GPIO_54 */ 376*8bab661aSEmmanuel Vadot "APPS_I2C7_SDA", /* GPIO_55 */ 377*8bab661aSEmmanuel Vadot "APPS_I2C7_SCL", /* GPIO_56 */ 378*8bab661aSEmmanuel Vadot "FORCE_USB_BOOT", /* GPIO_57 */ 379*8bab661aSEmmanuel Vadot "SPKR_I2S_BCK", /* GPIO_58 */ 380*8bab661aSEmmanuel Vadot "SPKR_I2S_WS", /* GPIO_59 */ 381*8bab661aSEmmanuel Vadot "SPKR_I2S_DOUT", /* GPIO_60 */ 382*8bab661aSEmmanuel Vadot "SPKR_I2S_DIN", /* GPIO_61 */ 383*8bab661aSEmmanuel Vadot "ESE_RSTN", /* GPIO_62 */ 384*8bab661aSEmmanuel Vadot "TYPEC_INT", /* GPIO_63 */ 385*8bab661aSEmmanuel Vadot "CODEC_RESET_N", /* GPIO_64 */ 386*8bab661aSEmmanuel Vadot "PCM_CLK", /* GPIO_65 */ 387*8bab661aSEmmanuel Vadot "PCM_SYNC", /* GPIO_66 */ 388*8bab661aSEmmanuel Vadot "PCM_DIN", /* GPIO_67 */ 389*8bab661aSEmmanuel Vadot "PCM_DOUT", /* GPIO_68 */ 390*8bab661aSEmmanuel Vadot "CDC_44K1_CLK", /* GPIO_69 */ 391*8bab661aSEmmanuel Vadot "SLIMBUS_CLK", /* GPIO_70 */ 392*8bab661aSEmmanuel Vadot "SLIMBUS_DATA0", /* GPIO_71 */ 393*8bab661aSEmmanuel Vadot "SLIMBUS_DATA1", /* GPIO_72 */ 394*8bab661aSEmmanuel Vadot "LDO_5V_IN_EN", /* GPIO_73 */ 395*8bab661aSEmmanuel Vadot "NC", /* GPIO_74 */ 396*8bab661aSEmmanuel Vadot "TSP_RST_N", /* GPIO_75 */ 397*8bab661aSEmmanuel Vadot "NC", /* GPIO_76 */ 398*8bab661aSEmmanuel Vadot "TOUCHKEY_INT", /* GPIO_77 */ 399*8bab661aSEmmanuel Vadot "SPKR_I2S_MCLK", /* GPIO_78 */ 400*8bab661aSEmmanuel Vadot "SPKR_PA_INT", /* GPIO_79 */ 401*8bab661aSEmmanuel Vadot "SENSOR_RESET_N", /* GPIO_80 */ 402*8bab661aSEmmanuel Vadot "FP_SPI_MOSI", /* GPIO_81 */ 403*8bab661aSEmmanuel Vadot "FP_SPI_MISO", /* GPIO_82 */ 404*8bab661aSEmmanuel Vadot "FP_SPI_CS_N", /* GPIO_83 */ 405*8bab661aSEmmanuel Vadot "FP_SPI_CLK", /* GPIO_84 */ 406*8bab661aSEmmanuel Vadot "HIFI_SD", /* GPIO_85 */ 407*8bab661aSEmmanuel Vadot "CAM_VDD_1P05_EN", /* GPIO_86 */ 408*8bab661aSEmmanuel Vadot "MSM_TS_I2C_SDA", /* GPIO_87 */ 409*8bab661aSEmmanuel Vadot "MSM_TS_I2C_SCL", /* GPIO_88 */ 410*8bab661aSEmmanuel Vadot "NC", /* GPIO_89 */ 411*8bab661aSEmmanuel Vadot "ESE_SPI_CS_N", /* GPIO_90 */ 412*8bab661aSEmmanuel Vadot "NC", /* GPIO_91 */ 413*8bab661aSEmmanuel Vadot "NC", /* GPIO_92 */ 414*8bab661aSEmmanuel Vadot "NC", /* GPIO_93 */ 415*8bab661aSEmmanuel Vadot "NC", /* GPIO_94 */ 416*8bab661aSEmmanuel Vadot "NC", /* GPIO_95 */ 417*8bab661aSEmmanuel Vadot "NC", /* GPIO_96 */ 418*8bab661aSEmmanuel Vadot "GRFC_0", /* GPIO_97 */ 419*8bab661aSEmmanuel Vadot "GRFC_1", /* GPIO_98 */ 420*8bab661aSEmmanuel Vadot "NC", /* GPIO_99 */ 421*8bab661aSEmmanuel Vadot "GRFC_3", /* GPIO_100 */ 422*8bab661aSEmmanuel Vadot "GRFC_4", /* GPIO_101 */ 423*8bab661aSEmmanuel Vadot "NC", /* GPIO_102 */ 424*8bab661aSEmmanuel Vadot "NC", /* GPIO_103 */ 425*8bab661aSEmmanuel Vadot "GRFC_7", /* GPIO_104 */ 426*8bab661aSEmmanuel Vadot "UIM2_DATA", /* GPIO_105 */ 427*8bab661aSEmmanuel Vadot "UIM2_CLK", /* GPIO_106 */ 428*8bab661aSEmmanuel Vadot "UIM2_RESET", /* GPIO_107 */ 429*8bab661aSEmmanuel Vadot "UIM2_PRESENT", /* GPIO_108 */ 430*8bab661aSEmmanuel Vadot "UIM1_DATA", /* GPIO_109 */ 431*8bab661aSEmmanuel Vadot "UIM1_CLK", /* GPIO_110 */ 432*8bab661aSEmmanuel Vadot "UIM1_RESET", /* GPIO_111 */ 433*8bab661aSEmmanuel Vadot "UIM1_PRESENT", /* GPIO_112 */ 434*8bab661aSEmmanuel Vadot "UIM_BATT_ALARM", /* GPIO_113 */ 435*8bab661aSEmmanuel Vadot "GRFC_8", /* GPIO_114 */ 436*8bab661aSEmmanuel Vadot "GRFC_9", /* GPIO_115 */ 437*8bab661aSEmmanuel Vadot "TX_GTR_THRES", /* GPIO_116 */ 438*8bab661aSEmmanuel Vadot "ACC_INT", /* GPIO_117 */ 439*8bab661aSEmmanuel Vadot "GYRO_INT", /* GPIO_118 */ 440*8bab661aSEmmanuel Vadot "COMPASS_INT", /* GPIO_119 */ 441*8bab661aSEmmanuel Vadot "PROXIMITY_INT_N", /* GPIO_120 */ 442*8bab661aSEmmanuel Vadot "FP_IRQ", /* GPIO_121 */ 443*8bab661aSEmmanuel Vadot "TSP_TA", /* GPIO_122 */ 444*8bab661aSEmmanuel Vadot "HALL_INTR2", /* GPIO_123 */ 445*8bab661aSEmmanuel Vadot "HALL_INTR1", /* GPIO_124 */ 446*8bab661aSEmmanuel Vadot "TS_INT_N", /* GPIO_125 */ 447*8bab661aSEmmanuel Vadot "NC", /* GPIO_126 */ 448*8bab661aSEmmanuel Vadot "GRFC_11", /* GPIO_127 */ 449*8bab661aSEmmanuel Vadot "HIFI_PWR_EN", /* GPIO_128 */ 450*8bab661aSEmmanuel Vadot "EXT_GPS_LNA_EN", /* GPIO_129 */ 451*8bab661aSEmmanuel Vadot "NC", /* GPIO_130 */ 452*8bab661aSEmmanuel Vadot "NC", /* GPIO_131 */ 453*8bab661aSEmmanuel Vadot "NC", /* GPIO_132 */ 454*8bab661aSEmmanuel Vadot "GRFC_14", /* GPIO_133 */ 455*8bab661aSEmmanuel Vadot "GSM_TX2_PHASE_D", /* GPIO_134 */ 456*8bab661aSEmmanuel Vadot "HIFI_SW_SEL", /* GPIO_135 */ 457*8bab661aSEmmanuel Vadot "GRFC_15", /* GPIO_136 */ 458*8bab661aSEmmanuel Vadot "RFFE3_DATA", /* GPIO_137 */ 459*8bab661aSEmmanuel Vadot "RFFE3_CLK", /* GPIO_138 */ 460*8bab661aSEmmanuel Vadot "NC", /* GPIO_139 */ 461*8bab661aSEmmanuel Vadot "NC", /* GPIO_140 */ 462*8bab661aSEmmanuel Vadot "RFFE5_DATA", /* GPIO_141 */ 463*8bab661aSEmmanuel Vadot "RFFE5_CLK", /* GPIO_142 */ 464*8bab661aSEmmanuel Vadot "NC", /* GPIO_143 */ 465*8bab661aSEmmanuel Vadot "COEX_UART_TX", /* GPIO_144 */ 466*8bab661aSEmmanuel Vadot "COEX_UART_RX", /* GPIO_145 */ 467*8bab661aSEmmanuel Vadot "RFFE2_DATA", /* GPIO_146 */ 468*8bab661aSEmmanuel Vadot "RFFE2_CLK", /* GPIO_147 */ 469*8bab661aSEmmanuel Vadot "RFFE1_DATA", /* GPIO_148 */ 470*8bab661aSEmmanuel Vadot "RFFE1_CLK"; /* GPIO_149 */ 471*8bab661aSEmmanuel Vadot 472*8bab661aSEmmanuel Vadot touchkey_default: touchkey-default-state { 473*8bab661aSEmmanuel Vadot pins = "gpio77"; 474*8bab661aSEmmanuel Vadot function = "gpio"; 475*8bab661aSEmmanuel Vadot drive-strength = <16>; 476*8bab661aSEmmanuel Vadot bias-pull-up; 477*8bab661aSEmmanuel Vadot }; 478*8bab661aSEmmanuel Vadot 479*8bab661aSEmmanuel Vadot touchkey_sleep: touchkey-sleep-state { 480*8bab661aSEmmanuel Vadot pins = "gpio77"; 481*8bab661aSEmmanuel Vadot function = "gpio"; 482*8bab661aSEmmanuel Vadot drive-strength = <2>; 483*8bab661aSEmmanuel Vadot bias-disable; 484*8bab661aSEmmanuel Vadot }; 485*8bab661aSEmmanuel Vadot 486*8bab661aSEmmanuel Vadot touchscreen_default: touchscreen-default-state { 487*8bab661aSEmmanuel Vadot pins = "gpio75", "gpio125"; 488*8bab661aSEmmanuel Vadot function = "gpio"; 489*8bab661aSEmmanuel Vadot drive-strength = <10>; 490*8bab661aSEmmanuel Vadot bias-pull-up; 491*8bab661aSEmmanuel Vadot }; 492*8bab661aSEmmanuel Vadot 493*8bab661aSEmmanuel Vadot touchscreen_sleep: touchscreen-sleep-state { 494*8bab661aSEmmanuel Vadot pins = "gpio75", "gpio125"; 495*8bab661aSEmmanuel Vadot function = "gpio"; 496*8bab661aSEmmanuel Vadot drive-strength = <2>; 497*8bab661aSEmmanuel Vadot bias-disable; 498*8bab661aSEmmanuel Vadot }; 499*8bab661aSEmmanuel Vadot}; 500