1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * Copyright (c) 2014-2016, The Linux Foundati 3 * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include "msm8996.dtsi" 8 #include "msm8996.dtsi" 9 #include "pm8994.dtsi" 9 #include "pm8994.dtsi" 10 #include "pmi8994.dtsi" 10 #include "pmi8994.dtsi" 11 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/leds/common.h> 14 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h 14 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 15 #include <dt-bindings/sound/qcom,q6afe.h> 15 #include <dt-bindings/sound/qcom,q6afe.h> 16 #include <dt-bindings/sound/qcom,q6asm.h> 16 #include <dt-bindings/sound/qcom,q6asm.h> 17 #include <dt-bindings/sound/qcom,wcd9335.h> 17 #include <dt-bindings/sound/qcom,wcd9335.h> 18 18 19 /* 19 /* 20 * GPIO name legend: proper name = the GPIO li 20 * GPIO name legend: proper name = the GPIO line is used as GPIO 21 * NC = not connected (pin out bu 21 * NC = not connected (pin out but not routed from the chip to 22 * anything the board) 22 * anything the board) 23 * "[PER]" = pin is muxed for [periphe 23 * "[PER]" = pin is muxed for [peripheral] (not GPIO) 24 * LSEC = Low Speed External Connec 24 * LSEC = Low Speed External Connector 25 * P HSEC = Primary High Speed Extern 25 * P HSEC = Primary High Speed External Connector 26 * S HSEC = Secondary High Speed Exte 26 * S HSEC = Secondary High Speed External Connector 27 * J14 = Camera Connector 27 * J14 = Camera Connector 28 * TP = Test Points 28 * TP = Test Points 29 * 29 * 30 * Line names are taken from the schematic "Dr 30 * Line names are taken from the schematic "DragonBoard 820c", 31 * drawing no: LM25-P2751-1 31 * drawing no: LM25-P2751-1 32 * 32 * 33 * For the lines routed to the external connec 33 * For the lines routed to the external connectors the 34 * lines are named after the 96Boards CE Speci 34 * lines are named after the 96Boards CE Specification 1.0, 35 * Appendix "Expansion Connector Signal Descri 35 * Appendix "Expansion Connector Signal Description". 36 * 36 * 37 * When the 96Board naming of a line and the s 37 * When the 96Board naming of a line and the schematic name of 38 * the same line are in conflict, the 96Board 38 * the same line are in conflict, the 96Board specification 39 * takes precedence, which means that the exte 39 * takes precedence, which means that the external UART on the 40 * LSEC is named UART0 while the schematic and 40 * LSEC is named UART0 while the schematic and SoC names this 41 * UART3. This is only for the informational l 41 * UART3. This is only for the informational lines i.e. "[FOO]", 42 * the GPIO named lines "GPIO-A" thru "GPIO-L" 42 * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only 43 * ones actually used for GPIO. 43 * ones actually used for GPIO. 44 */ 44 */ 45 45 46 / { 46 / { 47 model = "Qualcomm Technologies, Inc. D 47 model = "Qualcomm Technologies, Inc. DB820c"; 48 compatible = "arrow,apq8096-db820c", " 48 compatible = "arrow,apq8096-db820c", "qcom,apq8096-sbc", "qcom,apq8096"; 49 49 50 aliases { 50 aliases { 51 serial0 = &blsp2_uart2; 51 serial0 = &blsp2_uart2; 52 serial1 = &blsp2_uart3; 52 serial1 = &blsp2_uart3; 53 serial2 = &blsp1_uart2; 53 serial2 = &blsp1_uart2; 54 i2c0 = &blsp1_i2c3; 54 i2c0 = &blsp1_i2c3; 55 i2c1 = &blsp2_i2c1; 55 i2c1 = &blsp2_i2c1; 56 i2c2 = &blsp2_i2c1; 56 i2c2 = &blsp2_i2c1; 57 spi0 = &blsp1_spi1; 57 spi0 = &blsp1_spi1; 58 spi1 = &blsp2_spi6; 58 spi1 = &blsp2_spi6; 59 }; 59 }; 60 60 61 chosen { 61 chosen { 62 stdout-path = "serial0:115200n 62 stdout-path = "serial0:115200n8"; 63 }; 63 }; 64 64 65 div1_mclk: divclk1 { 65 div1_mclk: divclk1 { 66 compatible = "gpio-gate-clock" 66 compatible = "gpio-gate-clock"; 67 pinctrl-0 = <&audio_mclk>; 67 pinctrl-0 = <&audio_mclk>; 68 pinctrl-names = "default"; 68 pinctrl-names = "default"; 69 clocks = <&rpmcc RPM_SMD_DIV_C 69 clocks = <&rpmcc RPM_SMD_DIV_CLK1>; 70 #clock-cells = <0>; 70 #clock-cells = <0>; 71 enable-gpios = <&pm8994_gpios 71 enable-gpios = <&pm8994_gpios 15 0>; 72 }; 72 }; 73 73 74 divclk4: divclk4 { 74 divclk4: divclk4 { 75 compatible = "fixed-clock"; 75 compatible = "fixed-clock"; 76 #clock-cells = <0>; 76 #clock-cells = <0>; 77 clock-frequency = <32768>; 77 clock-frequency = <32768>; 78 clock-output-names = "divclk4" 78 clock-output-names = "divclk4"; 79 79 80 pinctrl-names = "default"; 80 pinctrl-names = "default"; 81 pinctrl-0 = <&divclk4_pin_a>; 81 pinctrl-0 = <&divclk4_pin_a>; 82 }; 82 }; 83 83 84 gpio-keys { 84 gpio-keys { 85 compatible = "gpio-keys"; 85 compatible = "gpio-keys"; 86 autorepeat; 86 autorepeat; 87 87 88 pinctrl-names = "default"; 88 pinctrl-names = "default"; 89 pinctrl-0 = <&volume_up_gpio>; 89 pinctrl-0 = <&volume_up_gpio>; 90 90 91 button { 91 button { 92 label = "Volume Up"; 92 label = "Volume Up"; 93 linux,code = <KEY_VOLU 93 linux,code = <KEY_VOLUMEUP>; 94 gpios = <&pm8994_gpios 94 gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>; 95 }; 95 }; 96 }; 96 }; 97 97 98 usb2_id: usb2-id { 98 usb2_id: usb2-id { 99 compatible = "linux,extcon-usb 99 compatible = "linux,extcon-usb-gpio"; 100 id-gpios = <&pmi8994_gpios 6 G !! 100 id-gpio = <&pmi8994_gpios 6 GPIO_ACTIVE_HIGH>; 101 pinctrl-names = "default"; 101 pinctrl-names = "default"; 102 pinctrl-0 = <&usb2_vbus_det_gp 102 pinctrl-0 = <&usb2_vbus_det_gpio>; 103 }; 103 }; 104 104 105 usb3_id: usb3-id { 105 usb3_id: usb3-id { 106 compatible = "linux,extcon-usb 106 compatible = "linux,extcon-usb-gpio"; 107 id-gpios = <&pm8994_gpios 22 G !! 107 id-gpio = <&pm8994_gpios 22 GPIO_ACTIVE_HIGH>; 108 pinctrl-names = "default"; 108 pinctrl-names = "default"; 109 pinctrl-0 = <&usb3_vbus_det_gp 109 pinctrl-0 = <&usb3_vbus_det_gpio>; 110 }; 110 }; 111 111 112 vph_pwr: vph-pwr-regulator { 112 vph_pwr: vph-pwr-regulator { 113 compatible = "regulator-fixed" 113 compatible = "regulator-fixed"; 114 regulator-name = "vph_pwr"; 114 regulator-name = "vph_pwr"; 115 regulator-always-on; 115 regulator-always-on; 116 regulator-boot-on; 116 regulator-boot-on; 117 117 118 regulator-min-microvolt = <370 118 regulator-min-microvolt = <3700000>; 119 regulator-max-microvolt = <370 119 regulator-max-microvolt = <3700000>; 120 }; 120 }; 121 121 122 wlan_en: wlan-en-1-8v { 122 wlan_en: wlan-en-1-8v { 123 pinctrl-names = "default"; 123 pinctrl-names = "default"; 124 pinctrl-0 = <&wlan_en_gpios>; 124 pinctrl-0 = <&wlan_en_gpios>; 125 compatible = "regulator-fixed" 125 compatible = "regulator-fixed"; 126 regulator-name = "wlan-en-regu 126 regulator-name = "wlan-en-regulator"; 127 regulator-min-microvolt = <180 127 regulator-min-microvolt = <1800000>; 128 regulator-max-microvolt = <180 128 regulator-max-microvolt = <1800000>; 129 129 130 gpio = <&pm8994_gpios 8 0>; 130 gpio = <&pm8994_gpios 8 0>; 131 131 132 /* WLAN card specific delay */ 132 /* WLAN card specific delay */ 133 startup-delay-us = <70000>; 133 startup-delay-us = <70000>; 134 enable-active-high; 134 enable-active-high; 135 }; 135 }; 136 }; 136 }; 137 137 138 &blsp1_i2c3 { 138 &blsp1_i2c3 { 139 /* On Low speed expansion: LS-I2C0 */ !! 139 /* On Low speed expansion */ >> 140 label = "LS-I2C0"; 140 status = "okay"; 141 status = "okay"; 141 }; 142 }; 142 143 143 &blsp1_spi1 { 144 &blsp1_spi1 { 144 /* On Low speed expansion */ 145 /* On Low speed expansion */ 145 status = "okay"; 146 status = "okay"; 146 }; 147 }; 147 148 148 &blsp1_uart2 { 149 &blsp1_uart2 { 149 label = "BT-UART"; 150 label = "BT-UART"; 150 status = "okay"; 151 status = "okay"; 151 152 152 bluetooth { 153 bluetooth { 153 compatible = "qcom,qca6174-bt" 154 compatible = "qcom,qca6174-bt"; 154 155 155 /* bt_disable_n gpio */ 156 /* bt_disable_n gpio */ 156 enable-gpios = <&pm8994_gpios 157 enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>; 157 158 158 clocks = <&divclk4>; 159 clocks = <&divclk4>; 159 }; 160 }; 160 }; 161 }; 161 162 162 &adsp_pil { 163 &adsp_pil { 163 status = "okay"; 164 status = "okay"; 164 firmware-name = "qcom/apq8096/adsp.mbn 165 firmware-name = "qcom/apq8096/adsp.mbn"; 165 }; 166 }; 166 167 167 &blsp2_i2c1 { 168 &blsp2_i2c1 { 168 /* On High speed expansion: HS-I2C2 */ !! 169 /* On High speed expansion */ >> 170 label = "HS-I2C2"; 169 status = "okay"; 171 status = "okay"; 170 }; 172 }; 171 173 172 &blsp2_i2c1 { 174 &blsp2_i2c1 { 173 /* On Low speed expansion: LS-I2C1 */ !! 175 /* On Low speed expansion */ >> 176 label = "LS-I2C1"; 174 status = "okay"; 177 status = "okay"; 175 }; 178 }; 176 179 177 &blsp2_spi6 { 180 &blsp2_spi6 { 178 /* On High speed expansion */ 181 /* On High speed expansion */ 179 status = "okay"; 182 status = "okay"; 180 }; 183 }; 181 184 182 &blsp2_uart2 { 185 &blsp2_uart2 { 183 label = "LS-UART1"; 186 label = "LS-UART1"; 184 status = "okay"; 187 status = "okay"; 185 pinctrl-names = "default", "sleep"; 188 pinctrl-names = "default", "sleep"; 186 pinctrl-0 = <&blsp2_uart2_2pins_defaul 189 pinctrl-0 = <&blsp2_uart2_2pins_default>; 187 pinctrl-1 = <&blsp2_uart2_2pins_sleep> 190 pinctrl-1 = <&blsp2_uart2_2pins_sleep>; 188 }; 191 }; 189 192 190 &blsp2_uart3 { 193 &blsp2_uart3 { 191 label = "LS-UART0"; 194 label = "LS-UART0"; 192 status = "disabled"; 195 status = "disabled"; 193 pinctrl-names = "default", "sleep"; 196 pinctrl-names = "default", "sleep"; 194 pinctrl-0 = <&blsp2_uart3_4pins_defaul 197 pinctrl-0 = <&blsp2_uart3_4pins_default>; 195 pinctrl-1 = <&blsp2_uart3_4pins_sleep> 198 pinctrl-1 = <&blsp2_uart3_4pins_sleep>; 196 }; 199 }; 197 200 198 &camss { 201 &camss { 199 vdda-supply = <&vreg_l2a_1p25>; 202 vdda-supply = <&vreg_l2a_1p25>; 200 }; 203 }; 201 204 202 &gpu { 205 &gpu { 203 status = "okay"; 206 status = "okay"; 204 }; 207 }; 205 208 >> 209 &hdmi { >> 210 status = "okay"; >> 211 >> 212 pinctrl-names = "default", "sleep"; >> 213 pinctrl-0 = <&hdmi_hpd_active &hdmi_ddc_active>; >> 214 pinctrl-1 = <&hdmi_hpd_suspend &hdmi_ddc_suspend>; >> 215 >> 216 core-vdda-supply = <&vreg_l12a_1p8>; >> 217 core-vcc-supply = <&vreg_s4a_1p8>; >> 218 }; >> 219 >> 220 &hdmi_phy { >> 221 status = "okay"; >> 222 >> 223 vddio-supply = <&vreg_l12a_1p8>; >> 224 vcca-supply = <&vreg_l28a_0p925>; >> 225 #phy-cells = <0>; >> 226 }; >> 227 206 &hsusb_phy1 { 228 &hsusb_phy1 { 207 status = "okay"; 229 status = "okay"; 208 230 209 vdd-supply = <&vreg_l28a_0p925>; 231 vdd-supply = <&vreg_l28a_0p925>; 210 vdda-pll-supply = <&vreg_l12a_1p8>; 232 vdda-pll-supply = <&vreg_l12a_1p8>; 211 vdda-phy-dpdm-supply = <&vreg_l24a_3p0 233 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>; 212 }; 234 }; 213 235 214 &hsusb_phy2 { 236 &hsusb_phy2 { 215 status = "okay"; 237 status = "okay"; 216 238 217 vdd-supply = <&vreg_l28a_0p925>; 239 vdd-supply = <&vreg_l28a_0p925>; 218 vdda-pll-supply = <&vreg_l12a_1p8>; 240 vdda-pll-supply = <&vreg_l12a_1p8>; 219 vdda-phy-dpdm-supply = <&vreg_l24a_3p0 241 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>; 220 }; 242 }; 221 243 222 &mdp { 244 &mdp { 223 status = "okay"; 245 status = "okay"; 224 }; 246 }; 225 247 226 &mdss { 248 &mdss { 227 status = "okay"; 249 status = "okay"; 228 }; 250 }; 229 251 230 &mdss_hdmi { << 231 status = "okay"; << 232 << 233 pinctrl-names = "default", "sleep"; << 234 pinctrl-0 = <&hdmi_hpd_active &hdmi_dd << 235 pinctrl-1 = <&hdmi_hpd_suspend &hdmi_d << 236 << 237 core-vdda-supply = <&vreg_l12a_1p8>; << 238 core-vcc-supply = <&vreg_s4a_1p8>; << 239 }; << 240 << 241 &mdss_hdmi_phy { << 242 status = "okay"; << 243 << 244 vddio-supply = <&vreg_l12a_1p8>; << 245 vcca-supply = <&vreg_l28a_0p925>; << 246 #phy-cells = <0>; << 247 }; << 248 << 249 &mmcc { 252 &mmcc { 250 vdd-gfx-supply = <&vdd_gfx>; 253 vdd-gfx-supply = <&vdd_gfx>; 251 }; 254 }; 252 255 253 &mss_pil { 256 &mss_pil { 254 status = "okay"; 257 status = "okay"; 255 pll-supply = <&vreg_l12a_1p8>; 258 pll-supply = <&vreg_l12a_1p8>; 256 firmware-name = "qcom/apq8096/mba.mbn" 259 firmware-name = "qcom/apq8096/mba.mbn", "qcom/apq8096/modem.mbn"; 257 }; 260 }; 258 261 259 &pm8994_resin { 262 &pm8994_resin { 260 status = "okay"; 263 status = "okay"; 261 linux,code = <KEY_VOLUMEDOWN>; 264 linux,code = <KEY_VOLUMEDOWN>; 262 }; 265 }; 263 266 264 &tlmm { 267 &tlmm { 265 gpio-line-names = 268 gpio-line-names = 266 "[SPI0_DOUT]", /* GPIO_0, BLSP 269 "[SPI0_DOUT]", /* GPIO_0, BLSP1_SPI_MOSI, LSEC pin 14 */ 267 "[SPI0_DIN]", /* GPIO_1, BLSP1 270 "[SPI0_DIN]", /* GPIO_1, BLSP1_SPI_MISO, LSEC pin 10 */ 268 "[SPI0_CS]", /* GPIO_2, BLSP1_ 271 "[SPI0_CS]", /* GPIO_2, BLSP1_SPI_CS_N, LSEC pin 12 */ 269 "[SPI0_SCLK]", /* GPIO_3, BLSP 272 "[SPI0_SCLK]", /* GPIO_3, BLSP1_SPI_CLK, LSEC pin 8 */ 270 "[UART1_TxD]", /* GPIO_4, BLSP 273 "[UART1_TxD]", /* GPIO_4, BLSP8_UART_TX, LSEC pin 11 */ 271 "[UART1_RxD]", /* GPIO_5, BLSP 274 "[UART1_RxD]", /* GPIO_5, BLSP8_UART_RX, LSEC pin 13 */ 272 "[I2C1_SDA]", /* GPIO_6, BLSP8 275 "[I2C1_SDA]", /* GPIO_6, BLSP8_I2C_SDA, LSEC pin 21 */ 273 "[I2C1_SCL]", /* GPIO_7, BLSP8 276 "[I2C1_SCL]", /* GPIO_7, BLSP8_I2C_SCL, LSEC pin 19 */ 274 "GPIO-H", /* GPIO_8, LCD0_RESE 277 "GPIO-H", /* GPIO_8, LCD0_RESET_N, LSEC pin 30 */ 275 "TP93", /* GPIO_9 */ 278 "TP93", /* GPIO_9 */ 276 "GPIO-G", /* GPIO_10, MDP_VSYN 279 "GPIO-G", /* GPIO_10, MDP_VSYNC_P, LSEC pin 29 */ 277 "[MDP_VSYNC_S]", /* GPIO_11, S 280 "[MDP_VSYNC_S]", /* GPIO_11, S HSEC pin 55 */ 278 "NC", /* GPIO_12 */ 281 "NC", /* GPIO_12 */ 279 "[CSI0_MCLK]", /* GPIO_13, CAM 282 "[CSI0_MCLK]", /* GPIO_13, CAM_MCLK0, P HSEC pin 15 */ 280 "[CAM_MCLK1]", /* GPIO_14, J14 283 "[CAM_MCLK1]", /* GPIO_14, J14 pin 11 */ 281 "[CSI1_MCLK]", /* GPIO_15, CAM 284 "[CSI1_MCLK]", /* GPIO_15, CAM_MCLK2, P HSEC pin 17 */ 282 "TP99", /* GPIO_16 */ 285 "TP99", /* GPIO_16 */ 283 "[I2C2_SDA]", /* GPIO_17, CCI_ 286 "[I2C2_SDA]", /* GPIO_17, CCI_I2C_SDA0, P HSEC pin 34 */ 284 "[I2C2_SCL]", /* GPIO_18, CCI_ 287 "[I2C2_SCL]", /* GPIO_18, CCI_I2C_SCL0, P HSEC pin 32 */ 285 "[CCI_I2C_SDA1]", /* GPIO_19, 288 "[CCI_I2C_SDA1]", /* GPIO_19, S HSEC pin 38 */ 286 "[CCI_I2C_SCL1]", /* GPIO_20, 289 "[CCI_I2C_SCL1]", /* GPIO_20, S HSEC pin 36 */ 287 "FLASH_STROBE_EN", /* GPIO_21, 290 "FLASH_STROBE_EN", /* GPIO_21, S HSEC pin 5 */ 288 "FLASH_STROBE_TRIG", /* GPIO_2 291 "FLASH_STROBE_TRIG", /* GPIO_22, S HSEC pin 1 */ 289 "GPIO-K", /* GPIO_23, CAM2_RST 292 "GPIO-K", /* GPIO_23, CAM2_RST_N, LSEC pin 33 */ 290 "GPIO-D", /* GPIO_24, LSEC pin 293 "GPIO-D", /* GPIO_24, LSEC pin 26 */ 291 "GPIO-I", /* GPIO_25, CAM0_RST 294 "GPIO-I", /* GPIO_25, CAM0_RST_N, LSEC pin 31 */ 292 "GPIO-J", /* GPIO_26, CAM0_STA 295 "GPIO-J", /* GPIO_26, CAM0_STANDBY_N, LSEC pin 32 */ 293 "BLSP6_I2C_SDA", /* GPIO_27 */ 296 "BLSP6_I2C_SDA", /* GPIO_27 */ 294 "BLSP6_I2C_SCL", /* GPIO_28 */ 297 "BLSP6_I2C_SCL", /* GPIO_28 */ 295 "GPIO-B", /* GPIO_29, TS0_RESE 298 "GPIO-B", /* GPIO_29, TS0_RESET_N, LSEC pin 24 */ 296 "GPIO30", /* GPIO_30, S HSEC p 299 "GPIO30", /* GPIO_30, S HSEC pin 4 */ 297 "HDMI_CEC", /* GPIO_31 */ 300 "HDMI_CEC", /* GPIO_31 */ 298 "HDMI_DDC_CLOCK", /* GPIO_32 * 301 "HDMI_DDC_CLOCK", /* GPIO_32 */ 299 "HDMI_DDC_DATA", /* GPIO_33 */ 302 "HDMI_DDC_DATA", /* GPIO_33 */ 300 "HDMI_HOT_PLUG_DETECT", /* GPI 303 "HDMI_HOT_PLUG_DETECT", /* GPIO_34 */ 301 "PCIE0_RST_N", /* GPIO_35 */ 304 "PCIE0_RST_N", /* GPIO_35 */ 302 "PCIE0_CLKREQ_N", /* GPIO_36 * 305 "PCIE0_CLKREQ_N", /* GPIO_36 */ 303 "PCIE0_WAKE", /* GPIO_37 */ 306 "PCIE0_WAKE", /* GPIO_37 */ 304 "SD_CARD_DET_N", /* GPIO_38 */ 307 "SD_CARD_DET_N", /* GPIO_38 */ 305 "TSIF1_SYNC", /* GPIO_39, S HS 308 "TSIF1_SYNC", /* GPIO_39, S HSEC pin 48 */ 306 "W_DISABLE_N", /* GPIO_40 */ 309 "W_DISABLE_N", /* GPIO_40 */ 307 "[BLSP9_UART_TX]", /* GPIO_41 310 "[BLSP9_UART_TX]", /* GPIO_41 */ 308 "[BLSP9_UART_RX]", /* GPIO_42 311 "[BLSP9_UART_RX]", /* GPIO_42 */ 309 "[BLSP2_UART_CTS_N]", /* GPIO_ 312 "[BLSP2_UART_CTS_N]", /* GPIO_43 */ 310 "[BLSP2_UART_RFR_N]", /* GPIO_ 313 "[BLSP2_UART_RFR_N]", /* GPIO_44 */ 311 "[BLSP3_UART_TX]", /* GPIO_45 314 "[BLSP3_UART_TX]", /* GPIO_45 */ 312 "[BLSP3_UART_RX]", /* GPIO_46 315 "[BLSP3_UART_RX]", /* GPIO_46 */ 313 "[I2C0_SDA]", /* GPIO_47, LS_I 316 "[I2C0_SDA]", /* GPIO_47, LS_I2C0_SDA, LSEC pin 17 */ 314 "[I2C0_SCL]", /* GPIO_48, LS_I 317 "[I2C0_SCL]", /* GPIO_48, LS_I2C0_SCL, LSEC pin 15 */ 315 "[UART0_TxD]", /* GPIO_49, BLS 318 "[UART0_TxD]", /* GPIO_49, BLSP9_UART_TX, LSEC pin 5 */ 316 "[UART0_RxD]", /* GPIO_50, BLS 319 "[UART0_RxD]", /* GPIO_50, BLSP9_UART_RX, LSEC pin 7 */ 317 "[UART0_CTS]", /* GPIO_51, BLS 320 "[UART0_CTS]", /* GPIO_51, BLSP9_UART_CTS_N, LSEC pin 3 */ 318 "[UART0_RTS]", /* GPIO_52, BLS 321 "[UART0_RTS]", /* GPIO_52, BLSP9_UART_RFR_N, LSEC pin 9 */ 319 "[CODEC_INT1_N]", /* GPIO_53 * 322 "[CODEC_INT1_N]", /* GPIO_53 */ 320 "[CODEC_INT2_N]", /* GPIO_54 * 323 "[CODEC_INT2_N]", /* GPIO_54 */ 321 "[BLSP7_I2C_SDA]", /* GPIO_55 324 "[BLSP7_I2C_SDA]", /* GPIO_55 */ 322 "[BLSP7_I2C_SCL]", /* GPIO_56 325 "[BLSP7_I2C_SCL]", /* GPIO_56 */ 323 "MI2S_MCLK", /* GPIO_57, S HSE 326 "MI2S_MCLK", /* GPIO_57, S HSEC pin 3 */ 324 "[PCM_CLK]", /* GPIO_58, QUA_M 327 "[PCM_CLK]", /* GPIO_58, QUA_MI2S_SCK, LSEC pin 18 */ 325 "[PCM_FS]", /* GPIO_59, QUA_MI 328 "[PCM_FS]", /* GPIO_59, QUA_MI2S_WS, LSEC pin 16 */ 326 "[PCM_DO]", /* GPIO_60, QUA_MI 329 "[PCM_DO]", /* GPIO_60, QUA_MI2S_DATA0, LSEC pin 20 */ 327 "[PCM_DI]", /* GPIO_61, QUA_MI 330 "[PCM_DI]", /* GPIO_61, QUA_MI2S_DATA1, LSEC pin 22 */ 328 "GPIO-E", /* GPIO_62, LSEC pin 331 "GPIO-E", /* GPIO_62, LSEC pin 27 */ 329 "TP87", /* GPIO_63 */ 332 "TP87", /* GPIO_63 */ 330 "[CODEC_RST_N]", /* GPIO_64 */ 333 "[CODEC_RST_N]", /* GPIO_64 */ 331 "[PCM1_CLK]", /* GPIO_65 */ 334 "[PCM1_CLK]", /* GPIO_65 */ 332 "[PCM1_SYNC]", /* GPIO_66 */ 335 "[PCM1_SYNC]", /* GPIO_66 */ 333 "[PCM1_DIN]", /* GPIO_67 */ 336 "[PCM1_DIN]", /* GPIO_67 */ 334 "[PCM1_DOUT]", /* GPIO_68 */ 337 "[PCM1_DOUT]", /* GPIO_68 */ 335 "AUDIO_REF_CLK", /* GPIO_69 */ 338 "AUDIO_REF_CLK", /* GPIO_69 */ 336 "SLIMBUS_CLK", /* GPIO_70 */ 339 "SLIMBUS_CLK", /* GPIO_70 */ 337 "SLIMBUS_DATA0", /* GPIO_71 */ 340 "SLIMBUS_DATA0", /* GPIO_71 */ 338 "SLIMBUS_DATA1", /* GPIO_72 */ 341 "SLIMBUS_DATA1", /* GPIO_72 */ 339 "NC", /* GPIO_73 */ 342 "NC", /* GPIO_73 */ 340 "NC", /* GPIO_74 */ 343 "NC", /* GPIO_74 */ 341 "NC", /* GPIO_75 */ 344 "NC", /* GPIO_75 */ 342 "NC", /* GPIO_76 */ 345 "NC", /* GPIO_76 */ 343 "TP94", /* GPIO_77 */ 346 "TP94", /* GPIO_77 */ 344 "NC", /* GPIO_78 */ 347 "NC", /* GPIO_78 */ 345 "TP95", /* GPIO_79 */ 348 "TP95", /* GPIO_79 */ 346 "GPIO-A", /* GPIO_80, MEMS_RES 349 "GPIO-A", /* GPIO_80, MEMS_RESET_N, LSEC pin 23 */ 347 "TP88", /* GPIO_81 */ 350 "TP88", /* GPIO_81 */ 348 "TP89", /* GPIO_82 */ 351 "TP89", /* GPIO_82 */ 349 "TP90", /* GPIO_83 */ 352 "TP90", /* GPIO_83 */ 350 "TP91", /* GPIO_84 */ 353 "TP91", /* GPIO_84 */ 351 "[SD_DAT0]", /* GPIO_85, BLSP1 354 "[SD_DAT0]", /* GPIO_85, BLSP12_SPI_MOSI, P HSEC pin 1 */ 352 "[SD_CMD]", /* GPIO_86, BLSP12 355 "[SD_CMD]", /* GPIO_86, BLSP12_SPI_MISO, P HSEC pin 11 */ 353 "[SD_DAT3]", /* GPIO_87, BLSP1 356 "[SD_DAT3]", /* GPIO_87, BLSP12_SPI_CS_N, P HSEC pin 7 */ 354 "[SD_SCLK]", /* GPIO_88, BLSP1 357 "[SD_SCLK]", /* GPIO_88, BLSP12_SPI_CLK, P HSEC pin 9 */ 355 "TSIF1_CLK", /* GPIO_89, S HSE 358 "TSIF1_CLK", /* GPIO_89, S HSEC pin 42 */ 356 "TSIF1_EN", /* GPIO_90, S HSEC 359 "TSIF1_EN", /* GPIO_90, S HSEC pin 46 */ 357 "TSIF1_DATA", /* GPIO_91, S HS 360 "TSIF1_DATA", /* GPIO_91, S HSEC pin 44 */ 358 "NC", /* GPIO_92 */ 361 "NC", /* GPIO_92 */ 359 "TSIF2_CLK", /* GPIO_93, S HSE 362 "TSIF2_CLK", /* GPIO_93, S HSEC pin 52 */ 360 "TSIF2_EN", /* GPIO_94, S HSEC 363 "TSIF2_EN", /* GPIO_94, S HSEC pin 56 */ 361 "TSIF2_DATA", /* GPIO_95, S HS 364 "TSIF2_DATA", /* GPIO_95, S HSEC pin 54 */ 362 "TSIF2_SYNC", /* GPIO_96, S HS 365 "TSIF2_SYNC", /* GPIO_96, S HSEC pin 58 */ 363 "NC", /* GPIO_97 */ 366 "NC", /* GPIO_97 */ 364 "CAM1_STANDBY_N", /* GPIO_98 * 367 "CAM1_STANDBY_N", /* GPIO_98 */ 365 "NC", /* GPIO_99 */ 368 "NC", /* GPIO_99 */ 366 "NC", /* GPIO_100 */ 369 "NC", /* GPIO_100 */ 367 "[LCD1_RESET_N]", /* GPIO_101, 370 "[LCD1_RESET_N]", /* GPIO_101, S HSEC pin 51 */ 368 "BOOT_CONFIG1", /* GPIO_102 */ 371 "BOOT_CONFIG1", /* GPIO_102 */ 369 "USB_HUB_RESET", /* GPIO_103 * 372 "USB_HUB_RESET", /* GPIO_103 */ 370 "CAM1_RST_N", /* GPIO_104 */ 373 "CAM1_RST_N", /* GPIO_104 */ 371 "NC", /* GPIO_105 */ 374 "NC", /* GPIO_105 */ 372 "NC", /* GPIO_106 */ 375 "NC", /* GPIO_106 */ 373 "NC", /* GPIO_107 */ 376 "NC", /* GPIO_107 */ 374 "NC", /* GPIO_108 */ 377 "NC", /* GPIO_108 */ 375 "NC", /* GPIO_109 */ 378 "NC", /* GPIO_109 */ 376 "NC", /* GPIO_110 */ 379 "NC", /* GPIO_110 */ 377 "NC", /* GPIO_111 */ 380 "NC", /* GPIO_111 */ 378 "NC", /* GPIO_112 */ 381 "NC", /* GPIO_112 */ 379 "PMI8994_BUA", /* GPIO_113 */ 382 "PMI8994_BUA", /* GPIO_113 */ 380 "PCIE2_RST_N", /* GPIO_114 */ 383 "PCIE2_RST_N", /* GPIO_114 */ 381 "PCIE2_CLKREQ_N", /* GPIO_115 384 "PCIE2_CLKREQ_N", /* GPIO_115 */ 382 "PCIE2_WAKE", /* GPIO_116 */ 385 "PCIE2_WAKE", /* GPIO_116 */ 383 "SSC_IRQ_0", /* GPIO_117 */ 386 "SSC_IRQ_0", /* GPIO_117 */ 384 "SSC_IRQ_1", /* GPIO_118 */ 387 "SSC_IRQ_1", /* GPIO_118 */ 385 "SSC_IRQ_2", /* GPIO_119 */ 388 "SSC_IRQ_2", /* GPIO_119 */ 386 "NC", /* GPIO_120 */ 389 "NC", /* GPIO_120 */ 387 "GPIO121", /* GPIO_121, S HSEC 390 "GPIO121", /* GPIO_121, S HSEC pin 2 */ 388 "NC", /* GPIO_122 */ 391 "NC", /* GPIO_122 */ 389 "SSC_IRQ_6", /* GPIO_123 */ 392 "SSC_IRQ_6", /* GPIO_123 */ 390 "SSC_IRQ_7", /* GPIO_124 */ 393 "SSC_IRQ_7", /* GPIO_124 */ 391 "GPIO-C", /* GPIO_125, TS_INT0 394 "GPIO-C", /* GPIO_125, TS_INT0, LSEC pin 25 */ 392 "BOOT_CONFIG5", /* GPIO_126 */ 395 "BOOT_CONFIG5", /* GPIO_126 */ 393 "NC", /* GPIO_127 */ 396 "NC", /* GPIO_127 */ 394 "NC", /* GPIO_128 */ 397 "NC", /* GPIO_128 */ 395 "BOOT_CONFIG7", /* GPIO_129 */ 398 "BOOT_CONFIG7", /* GPIO_129 */ 396 "PCIE1_RST_N", /* GPIO_130 */ 399 "PCIE1_RST_N", /* GPIO_130 */ 397 "PCIE1_CLKREQ_N", /* GPIO_131 400 "PCIE1_CLKREQ_N", /* GPIO_131 */ 398 "PCIE1_WAKE", /* GPIO_132 */ 401 "PCIE1_WAKE", /* GPIO_132 */ 399 "GPIO-L", /* GPIO_133, CAM2_ST 402 "GPIO-L", /* GPIO_133, CAM2_STANDBY_N, LSEC pin 34 */ 400 "NC", /* GPIO_134 */ 403 "NC", /* GPIO_134 */ 401 "NC", /* GPIO_135 */ 404 "NC", /* GPIO_135 */ 402 "BOOT_CONFIG8", /* GPIO_136 */ 405 "BOOT_CONFIG8", /* GPIO_136 */ 403 "NC", /* GPIO_137 */ 406 "NC", /* GPIO_137 */ 404 "NC", /* GPIO_138 */ 407 "NC", /* GPIO_138 */ 405 "GPS_SSBI2", /* GPIO_139 */ 408 "GPS_SSBI2", /* GPIO_139 */ 406 "GPS_SSBI1", /* GPIO_140 */ 409 "GPS_SSBI1", /* GPIO_140 */ 407 "NC", /* GPIO_141 */ 410 "NC", /* GPIO_141 */ 408 "NC", /* GPIO_142 */ 411 "NC", /* GPIO_142 */ 409 "NC", /* GPIO_143 */ 412 "NC", /* GPIO_143 */ 410 "BOOT_CONFIG6", /* GPIO_144 */ 413 "BOOT_CONFIG6", /* GPIO_144 */ 411 "NC", /* GPIO_145 */ 414 "NC", /* GPIO_145 */ 412 "NC", /* GPIO_146 */ 415 "NC", /* GPIO_146 */ 413 "NC", /* GPIO_147 */ 416 "NC", /* GPIO_147 */ 414 "NC", /* GPIO_148 */ 417 "NC", /* GPIO_148 */ 415 "NC"; /* GPIO_149 */ 418 "NC"; /* GPIO_149 */ 416 419 417 sdc2_cd_on: sdc2-cd-on-state { 420 sdc2_cd_on: sdc2-cd-on-state { 418 pins = "gpio38"; 421 pins = "gpio38"; 419 function = "gpio"; 422 function = "gpio"; 420 bias-pull-up; 423 bias-pull-up; 421 drive-strength = <16>; 424 drive-strength = <16>; 422 }; 425 }; 423 426 424 sdc2_cd_off: sdc2-cd-off-state { 427 sdc2_cd_off: sdc2-cd-off-state { 425 pins = "gpio38"; 428 pins = "gpio38"; 426 function = "gpio"; 429 function = "gpio"; 427 bias-pull-up; 430 bias-pull-up; 428 drive-strength = <2>; 431 drive-strength = <2>; 429 }; 432 }; 430 433 431 hdmi_hpd_active: hdmi-hpd-active-state 434 hdmi_hpd_active: hdmi-hpd-active-state { 432 pins = "gpio34"; 435 pins = "gpio34"; 433 function = "hdmi_hot"; 436 function = "hdmi_hot"; 434 bias-pull-down; 437 bias-pull-down; 435 drive-strength = <16>; 438 drive-strength = <16>; 436 }; 439 }; 437 440 438 hdmi_hpd_suspend: hdmi-hpd-suspend-sta 441 hdmi_hpd_suspend: hdmi-hpd-suspend-state { 439 pins = "gpio34"; 442 pins = "gpio34"; 440 function = "hdmi_hot"; 443 function = "hdmi_hot"; 441 bias-pull-down; 444 bias-pull-down; 442 drive-strength = <2>; 445 drive-strength = <2>; 443 }; 446 }; 444 447 445 hdmi_ddc_active: hdmi-ddc-active-state 448 hdmi_ddc_active: hdmi-ddc-active-state { 446 pins = "gpio32", "gpio33"; 449 pins = "gpio32", "gpio33"; 447 function = "hdmi_ddc"; 450 function = "hdmi_ddc"; 448 drive-strength = <2>; 451 drive-strength = <2>; 449 bias-pull-up; 452 bias-pull-up; 450 }; 453 }; 451 454 452 hdmi_ddc_suspend: hdmi-ddc-suspend-sta 455 hdmi_ddc_suspend: hdmi-ddc-suspend-state { 453 pins = "gpio32", "gpio33"; 456 pins = "gpio32", "gpio33"; 454 function = "hdmi_ddc"; 457 function = "hdmi_ddc"; 455 drive-strength = <2>; 458 drive-strength = <2>; 456 bias-pull-down; 459 bias-pull-down; 457 }; 460 }; 458 }; 461 }; 459 462 460 &pcie0 { 463 &pcie0 { 461 status = "okay"; 464 status = "okay"; 462 perst-gpios = <&tlmm 35 GPIO_ACTIVE_LO 465 perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; 463 vddpe-3v3-supply = <&wlan_en>; 466 vddpe-3v3-supply = <&wlan_en>; 464 vdda-supply = <&vreg_l28a_0p925>; 467 vdda-supply = <&vreg_l28a_0p925>; 465 }; 468 }; 466 469 467 &pcie1 { 470 &pcie1 { 468 status = "okay"; 471 status = "okay"; 469 perst-gpios = <&tlmm 130 GPIO_ACTIVE_L 472 perst-gpios = <&tlmm 130 GPIO_ACTIVE_LOW>; 470 vdda-supply = <&vreg_l28a_0p925>; 473 vdda-supply = <&vreg_l28a_0p925>; 471 }; 474 }; 472 475 473 &pcie2 { 476 &pcie2 { 474 status = "okay"; 477 status = "okay"; 475 perst-gpios = <&tlmm 114 GPIO_ACTIVE_L 478 perst-gpios = <&tlmm 114 GPIO_ACTIVE_LOW>; 476 vdda-supply = <&vreg_l28a_0p925>; 479 vdda-supply = <&vreg_l28a_0p925>; 477 }; 480 }; 478 481 479 &pcie_phy { 482 &pcie_phy { 480 status = "okay"; 483 status = "okay"; 481 484 482 vdda-phy-supply = <&vreg_l28a_0p925>; 485 vdda-phy-supply = <&vreg_l28a_0p925>; 483 vdda-pll-supply = <&vreg_l12a_1p8>; 486 vdda-pll-supply = <&vreg_l12a_1p8>; 484 }; 487 }; 485 488 486 &pm8994_gpios { 489 &pm8994_gpios { 487 gpio-line-names = 490 gpio-line-names = 488 "NC", 491 "NC", 489 "KEY_VOLP_N", 492 "KEY_VOLP_N", 490 "NC", 493 "NC", 491 "BL1_PWM", 494 "BL1_PWM", 492 "GPIO-F", /* BL0_PWM, LSEC pin 495 "GPIO-F", /* BL0_PWM, LSEC pin 28 */ 493 "BL1_EN", 496 "BL1_EN", 494 "NC", 497 "NC", 495 "WLAN_EN", 498 "WLAN_EN", 496 "NC", 499 "NC", 497 "NC", 500 "NC", 498 "NC", 501 "NC", 499 "NC", 502 "NC", 500 "NC", 503 "NC", 501 "NC", 504 "NC", 502 "DIVCLK1", 505 "DIVCLK1", 503 "DIVCLK2", 506 "DIVCLK2", 504 "DIVCLK3", 507 "DIVCLK3", 505 "DIVCLK4", 508 "DIVCLK4", 506 "BT_EN", 509 "BT_EN", 507 "PMIC_SLB", 510 "PMIC_SLB", 508 "PMIC_BUA", 511 "PMIC_BUA", 509 "USB_VBUS_DET"; 512 "USB_VBUS_DET"; 510 513 511 pinctrl-names = "default"; 514 pinctrl-names = "default"; 512 pinctrl-0 = <&ls_exp_gpio_f &bt_en_gpi 515 pinctrl-0 = <&ls_exp_gpio_f &bt_en_gpios>; 513 516 514 ls_exp_gpio_f: pm8994-gpio5-state { 517 ls_exp_gpio_f: pm8994-gpio5-state { 515 pinconf { 518 pinconf { 516 pins = "gpio5"; 519 pins = "gpio5"; 517 function = PMIC_GPIO_F 520 function = PMIC_GPIO_FUNC_NORMAL; 518 output-low; 521 output-low; 519 power-source = <PM8994 522 power-source = <PM8994_GPIO_S4>; /* 1.8V */ 520 }; 523 }; 521 }; 524 }; 522 525 523 bt_en_gpios: bt-en-pios-state { 526 bt_en_gpios: bt-en-pios-state { 524 pinconf { 527 pinconf { 525 pins = "gpio19"; 528 pins = "gpio19"; 526 function = PMIC_GPIO_F 529 function = PMIC_GPIO_FUNC_NORMAL; 527 output-low; 530 output-low; 528 power-source = <PM8994 531 power-source = <PM8994_GPIO_S4>; /* 1.8V */ 529 qcom,drive-strength = 532 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; 530 bias-pull-down; 533 bias-pull-down; 531 }; 534 }; 532 }; 535 }; 533 536 534 wlan_en_gpios: wlan-en-gpios-state { 537 wlan_en_gpios: wlan-en-gpios-state { 535 pinconf { 538 pinconf { 536 pins = "gpio8"; 539 pins = "gpio8"; 537 function = PMIC_GPIO_F 540 function = PMIC_GPIO_FUNC_NORMAL; 538 output-low; 541 output-low; 539 power-source = <PM8994 542 power-source = <PM8994_GPIO_S4>; /* 1.8V */ 540 qcom,drive-strength = 543 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; 541 bias-pull-down; 544 bias-pull-down; 542 }; 545 }; 543 }; 546 }; 544 547 545 audio_mclk: clk-div1-state { 548 audio_mclk: clk-div1-state { 546 pinconf { 549 pinconf { 547 pins = "gpio15"; 550 pins = "gpio15"; 548 function = "func1"; 551 function = "func1"; 549 power-source = <PM8994 552 power-source = <PM8994_GPIO_S4>; /* 1.8V */ 550 }; 553 }; 551 }; 554 }; 552 555 553 volume_up_gpio: pm8996-gpio2-state { 556 volume_up_gpio: pm8996-gpio2-state { 554 pinconf { 557 pinconf { 555 pins = "gpio2"; 558 pins = "gpio2"; 556 function = "normal"; 559 function = "normal"; 557 input-enable; 560 input-enable; 558 drive-push-pull; 561 drive-push-pull; 559 bias-pull-up; 562 bias-pull-up; 560 qcom,drive-strength = 563 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 561 power-source = <PM8994 564 power-source = <PM8994_GPIO_S4>; /* 1.8V */ 562 }; 565 }; 563 }; 566 }; 564 567 565 divclk4_pin_a: divclk4-state { 568 divclk4_pin_a: divclk4-state { 566 pinconf { 569 pinconf { 567 pins = "gpio18"; 570 pins = "gpio18"; 568 function = PMIC_GPIO_F 571 function = PMIC_GPIO_FUNC_FUNC2; 569 572 570 bias-disable; 573 bias-disable; 571 power-source = <PM8994 574 power-source = <PM8994_GPIO_S4>; 572 }; 575 }; 573 }; 576 }; 574 577 575 usb3_vbus_det_gpio: pm8996-gpio22-stat 578 usb3_vbus_det_gpio: pm8996-gpio22-state { 576 pinconf { 579 pinconf { 577 pins = "gpio22"; 580 pins = "gpio22"; 578 function = PMIC_GPIO_F 581 function = PMIC_GPIO_FUNC_NORMAL; 579 input-enable; 582 input-enable; 580 bias-pull-down; 583 bias-pull-down; 581 qcom,drive-strength = 584 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 582 power-source = <PM8994 585 power-source = <PM8994_GPIO_S4>; /* 1.8V */ 583 }; 586 }; 584 }; 587 }; 585 }; 588 }; 586 589 587 &pm8994_mpps { 590 &pm8994_mpps { 588 gpio-line-names = 591 gpio-line-names = 589 "VDDPX_BIAS", 592 "VDDPX_BIAS", 590 "WIFI_LED", 593 "WIFI_LED", 591 "NC", 594 "NC", 592 "BT_LED", 595 "BT_LED", 593 "PM_MPP05", 596 "PM_MPP05", 594 "PM_MPP06", 597 "PM_MPP06", 595 "PM_MPP07", 598 "PM_MPP07", 596 "NC"; 599 "NC"; 597 }; 600 }; 598 601 599 &pm8994_spmi_regulators { 602 &pm8994_spmi_regulators { 600 qcom,saw-reg = <&saw3>; 603 qcom,saw-reg = <&saw3>; 601 vdd_s11-supply = <&vph_pwr>; 604 vdd_s11-supply = <&vph_pwr>; 602 605 603 s9 { 606 s9 { 604 qcom,saw-slave; 607 qcom,saw-slave; 605 }; 608 }; 606 s10 { 609 s10 { 607 qcom,saw-slave; 610 qcom,saw-slave; 608 }; 611 }; 609 s11 { 612 s11 { 610 qcom,saw-leader; 613 qcom,saw-leader; 611 regulator-name = "VDD_APCC"; 614 regulator-name = "VDD_APCC"; 612 regulator-always-on; 615 regulator-always-on; 613 regulator-min-microvolt = <980 616 regulator-min-microvolt = <980000>; 614 regulator-max-microvolt = <980 617 regulator-max-microvolt = <980000>; 615 }; 618 }; 616 }; 619 }; 617 620 618 &pmi8994_gpios { 621 &pmi8994_gpios { 619 gpio-line-names = 622 gpio-line-names = 620 "NC", 623 "NC", 621 "SPKR_AMP_EN1", 624 "SPKR_AMP_EN1", 622 "SPKR_AMP_EN2", 625 "SPKR_AMP_EN2", 623 "TP61", 626 "TP61", 624 "NC", 627 "NC", 625 "USB2_VBUS_DET", 628 "USB2_VBUS_DET", 626 "NC", 629 "NC", 627 "NC", 630 "NC", 628 "NC", 631 "NC", 629 "NC"; 632 "NC"; 630 633 631 usb2_vbus_det_gpio: pmi8996-gpio6-stat 634 usb2_vbus_det_gpio: pmi8996-gpio6-state { 632 pinconf { 635 pinconf { 633 pins = "gpio6"; 636 pins = "gpio6"; 634 function = PMIC_GPIO_F 637 function = PMIC_GPIO_FUNC_NORMAL; 635 input-enable; 638 input-enable; 636 bias-pull-down; 639 bias-pull-down; 637 qcom,drive-strength = 640 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 638 power-source = <PM8994 641 power-source = <PM8994_GPIO_S4>; /* 1.8V */ 639 }; 642 }; 640 }; 643 }; 641 }; 644 }; 642 645 643 &pmi8994_lpg { 646 &pmi8994_lpg { 644 qcom,power-source = <1>; 647 qcom,power-source = <1>; 645 648 646 pinctrl-names = "default"; 649 pinctrl-names = "default"; 647 pinctrl-0 = <&pmi8994_mpp2_userled4>; 650 pinctrl-0 = <&pmi8994_mpp2_userled4>; 648 651 649 qcom,dtest = <0 0>, 652 qcom,dtest = <0 0>, 650 <0 0>, 653 <0 0>, 651 <0 0>, 654 <0 0>, 652 <4 1>; 655 <4 1>; 653 656 654 status = "okay"; 657 status = "okay"; 655 658 656 led@1 { 659 led@1 { 657 reg = <1>; 660 reg = <1>; 658 color = <LED_COLOR_ID_GREEN>; 661 color = <LED_COLOR_ID_GREEN>; 659 function = LED_FUNCTION_HEARTB 662 function = LED_FUNCTION_HEARTBEAT; 660 function-enumerator = <1>; 663 function-enumerator = <1>; 661 664 662 linux,default-trigger = "heart 665 linux,default-trigger = "heartbeat"; 663 default-state = "on"; 666 default-state = "on"; 664 }; 667 }; 665 668 666 led@2 { 669 led@2 { 667 reg = <2>; 670 reg = <2>; 668 color = <LED_COLOR_ID_GREEN>; 671 color = <LED_COLOR_ID_GREEN>; 669 function = LED_FUNCTION_HEARTB 672 function = LED_FUNCTION_HEARTBEAT; 670 function-enumerator = <0>; 673 function-enumerator = <0>; 671 }; 674 }; 672 675 673 led@3 { 676 led@3 { 674 reg = <3>; 677 reg = <3>; 675 color = <LED_COLOR_ID_GREEN>; 678 color = <LED_COLOR_ID_GREEN>; 676 function = LED_FUNCTION_HEARTB 679 function = LED_FUNCTION_HEARTBEAT; 677 function-enumerator = <2>; 680 function-enumerator = <2>; 678 }; 681 }; 679 682 680 led@4 { 683 led@4 { 681 reg = <4>; 684 reg = <4>; 682 color = <LED_COLOR_ID_GREEN>; 685 color = <LED_COLOR_ID_GREEN>; 683 function = LED_FUNCTION_HEARTB 686 function = LED_FUNCTION_HEARTBEAT; 684 function-enumerator = <3>; 687 function-enumerator = <3>; 685 }; 688 }; 686 }; 689 }; 687 690 688 &pmi8994_mpps { 691 &pmi8994_mpps { 689 pmi8994_mpp2_userled4: mpp2-userled4-s 692 pmi8994_mpp2_userled4: mpp2-userled4-state { 690 pins = "mpp2"; 693 pins = "mpp2"; 691 function = "sink"; 694 function = "sink"; 692 695 693 output-low; 696 output-low; 694 qcom,dtest = <4>; 697 qcom,dtest = <4>; 695 }; 698 }; 696 }; 699 }; 697 700 698 &pmi8994_spmi_regulators { 701 &pmi8994_spmi_regulators { 699 vdd_s2-supply = <&vph_pwr>; 702 vdd_s2-supply = <&vph_pwr>; 700 703 701 vdd_gfx: s2 { 704 vdd_gfx: s2 { 702 regulator-name = "VDD_GFX"; 705 regulator-name = "VDD_GFX"; 703 regulator-min-microvolt = <980 706 regulator-min-microvolt = <980000>; 704 regulator-max-microvolt = <980 707 regulator-max-microvolt = <980000>; 705 }; 708 }; 706 }; 709 }; 707 710 708 &rpm_requests { 711 &rpm_requests { 709 regulators-0 { 712 regulators-0 { 710 compatible = "qcom,rpm-pm8994- 713 compatible = "qcom,rpm-pm8994-regulators"; 711 714 712 vdd_s1-supply = <&vph_pwr>; 715 vdd_s1-supply = <&vph_pwr>; 713 vdd_s2-supply = <&vph_pwr>; 716 vdd_s2-supply = <&vph_pwr>; 714 vdd_s3-supply = <&vph_pwr>; 717 vdd_s3-supply = <&vph_pwr>; 715 vdd_s4-supply = <&vph_pwr>; 718 vdd_s4-supply = <&vph_pwr>; 716 vdd_s5-supply = <&vph_pwr>; 719 vdd_s5-supply = <&vph_pwr>; 717 vdd_s6-supply = <&vph_pwr>; 720 vdd_s6-supply = <&vph_pwr>; 718 vdd_s7-supply = <&vph_pwr>; 721 vdd_s7-supply = <&vph_pwr>; 719 vdd_s8-supply = <&vph_pwr>; 722 vdd_s8-supply = <&vph_pwr>; 720 vdd_s9-supply = <&vph_pwr>; 723 vdd_s9-supply = <&vph_pwr>; 721 vdd_s10-supply = <&vph_pwr>; 724 vdd_s10-supply = <&vph_pwr>; 722 vdd_s11-supply = <&vph_pwr>; 725 vdd_s11-supply = <&vph_pwr>; 723 vdd_s12-supply = <&vph_pwr>; 726 vdd_s12-supply = <&vph_pwr>; 724 vdd_l1-supply = <&vreg_s1b_1p0 727 vdd_l1-supply = <&vreg_s1b_1p025>; 725 vdd_l2_l26_l28-supply = <&vreg 728 vdd_l2_l26_l28-supply = <&vreg_s3a_1p3>; 726 vdd_l3_l11-supply = <&vreg_s3a 729 vdd_l3_l11-supply = <&vreg_s3a_1p3>; 727 vdd_l4_l27_l31-supply = <&vreg 730 vdd_l4_l27_l31-supply = <&vreg_s3a_1p3>; 728 vdd_l5_l7-supply = <&vreg_s5a_ 731 vdd_l5_l7-supply = <&vreg_s5a_2p15>; 729 vdd_l6_l12_l32-supply = <&vreg 732 vdd_l6_l12_l32-supply = <&vreg_s5a_2p15>; 730 vdd_l8_l16_l30-supply = <&vph_ 733 vdd_l8_l16_l30-supply = <&vph_pwr>; 731 vdd_l9_l10_l18_l22-supply = <& 734 vdd_l9_l10_l18_l22-supply = <&vph_pwr_bbyp>; 732 vdd_l13_l19_l23_l24-supply = < 735 vdd_l13_l19_l23_l24-supply = <&vph_pwr_bbyp>; 733 vdd_l14_l15-supply = <&vreg_s5 736 vdd_l14_l15-supply = <&vreg_s5a_2p15>; 734 vdd_l17_l29-supply = <&vph_pwr 737 vdd_l17_l29-supply = <&vph_pwr_bbyp>; 735 vdd_l20_l21-supply = <&vph_pwr 738 vdd_l20_l21-supply = <&vph_pwr_bbyp>; 736 vdd_l25-supply = <&vreg_s3a_1p 739 vdd_l25-supply = <&vreg_s3a_1p3>; 737 vdd_lvs1_2-supply = <&vreg_s4a 740 vdd_lvs1_2-supply = <&vreg_s4a_1p8>; 738 741 739 vreg_s3a_1p3: s3 { 742 vreg_s3a_1p3: s3 { 740 regulator-name = "vreg 743 regulator-name = "vreg_s3a_1p3"; 741 regulator-min-microvol 744 regulator-min-microvolt = <1300000>; 742 regulator-max-microvol 745 regulator-max-microvolt = <1300000>; 743 }; 746 }; 744 747 745 /** 748 /** 746 * 1.8v required on LS expansi 749 * 1.8v required on LS expansion 747 * for mezzanine boards 750 * for mezzanine boards 748 */ 751 */ 749 vreg_s4a_1p8: s4 { 752 vreg_s4a_1p8: s4 { 750 regulator-name = "vreg 753 regulator-name = "vreg_s4a_1p8"; 751 regulator-min-microvol 754 regulator-min-microvolt = <1800000>; 752 regulator-max-microvol 755 regulator-max-microvolt = <1800000>; 753 regulator-always-on; 756 regulator-always-on; 754 }; 757 }; 755 vreg_s5a_2p15: s5 { 758 vreg_s5a_2p15: s5 { 756 regulator-name = "vreg 759 regulator-name = "vreg_s5a_2p15"; 757 regulator-min-microvol 760 regulator-min-microvolt = <2150000>; 758 regulator-max-microvol 761 regulator-max-microvolt = <2150000>; 759 }; 762 }; 760 vreg_s7a_1p0: s7 { 763 vreg_s7a_1p0: s7 { 761 regulator-name = "vreg 764 regulator-name = "vreg_s7a_1p0"; 762 regulator-min-microvol 765 regulator-min-microvolt = <800000>; 763 regulator-max-microvol 766 regulator-max-microvolt = <800000>; 764 }; 767 }; 765 768 766 vreg_l1a_1p0: l1 { 769 vreg_l1a_1p0: l1 { 767 regulator-name = "vreg 770 regulator-name = "vreg_l1a_1p0"; 768 regulator-min-microvol 771 regulator-min-microvolt = <1000000>; 769 regulator-max-microvol 772 regulator-max-microvolt = <1000000>; 770 }; 773 }; 771 vreg_l2a_1p25: l2 { 774 vreg_l2a_1p25: l2 { 772 regulator-name = "vreg 775 regulator-name = "vreg_l2a_1p25"; 773 regulator-min-microvol 776 regulator-min-microvolt = <1250000>; 774 regulator-max-microvol 777 regulator-max-microvolt = <1250000>; 775 }; 778 }; 776 vreg_l3a_0p875: l3 { 779 vreg_l3a_0p875: l3 { 777 regulator-name = "vreg 780 regulator-name = "vreg_l3a_0p875"; 778 regulator-min-microvol 781 regulator-min-microvolt = <850000>; 779 regulator-max-microvol 782 regulator-max-microvolt = <850000>; 780 }; 783 }; 781 vreg_l4a_1p225: l4 { 784 vreg_l4a_1p225: l4 { 782 regulator-name = "vreg 785 regulator-name = "vreg_l4a_1p225"; 783 regulator-min-microvol 786 regulator-min-microvolt = <1225000>; 784 regulator-max-microvol 787 regulator-max-microvolt = <1225000>; 785 }; 788 }; 786 vreg_l6a_1p2: l6 { 789 vreg_l6a_1p2: l6 { 787 regulator-name = "vreg 790 regulator-name = "vreg_l6a_1p2"; 788 regulator-min-microvol 791 regulator-min-microvolt = <1200000>; 789 regulator-max-microvol 792 regulator-max-microvolt = <1200000>; 790 }; 793 }; 791 vreg_l8a_1p8: l8 { 794 vreg_l8a_1p8: l8 { 792 regulator-name = "vreg 795 regulator-name = "vreg_l8a_1p8"; 793 regulator-min-microvol 796 regulator-min-microvolt = <1800000>; 794 regulator-max-microvol 797 regulator-max-microvolt = <1800000>; 795 }; 798 }; 796 vreg_l9a_1p8: l9 { 799 vreg_l9a_1p8: l9 { 797 regulator-name = "vreg 800 regulator-name = "vreg_l9a_1p8"; 798 regulator-min-microvol 801 regulator-min-microvolt = <1800000>; 799 regulator-max-microvol 802 regulator-max-microvolt = <1800000>; 800 }; 803 }; 801 vreg_l10a_1p8: l10 { 804 vreg_l10a_1p8: l10 { 802 regulator-name = "vreg 805 regulator-name = "vreg_l10a_1p8"; 803 regulator-min-microvol 806 regulator-min-microvolt = <1800000>; 804 regulator-max-microvol 807 regulator-max-microvolt = <1800000>; 805 }; 808 }; 806 vreg_l11a_1p15: l11 { 809 vreg_l11a_1p15: l11 { 807 regulator-name = "vreg 810 regulator-name = "vreg_l11a_1p15"; 808 regulator-min-microvol 811 regulator-min-microvolt = <1150000>; 809 regulator-max-microvol 812 regulator-max-microvolt = <1150000>; 810 }; 813 }; 811 vreg_l12a_1p8: l12 { 814 vreg_l12a_1p8: l12 { 812 regulator-name = "vreg 815 regulator-name = "vreg_l12a_1p8"; 813 regulator-min-microvol 816 regulator-min-microvolt = <1800000>; 814 regulator-max-microvol 817 regulator-max-microvolt = <1800000>; 815 }; 818 }; 816 vreg_l13a_2p95: l13 { 819 vreg_l13a_2p95: l13 { 817 regulator-name = "vreg 820 regulator-name = "vreg_l13a_2p95"; 818 regulator-min-microvol 821 regulator-min-microvolt = <1800000>; 819 regulator-max-microvol 822 regulator-max-microvolt = <2950000>; 820 }; 823 }; 821 vreg_l14a_1p8: l14 { 824 vreg_l14a_1p8: l14 { 822 regulator-name = "vreg 825 regulator-name = "vreg_l14a_1p8"; 823 regulator-min-microvol 826 regulator-min-microvolt = <1800000>; 824 regulator-max-microvol 827 regulator-max-microvolt = <1800000>; 825 }; 828 }; 826 vreg_l15a_1p8: l15 { 829 vreg_l15a_1p8: l15 { 827 regulator-name = "vreg 830 regulator-name = "vreg_l15a_1p8"; 828 regulator-min-microvol 831 regulator-min-microvolt = <1800000>; 829 regulator-max-microvol 832 regulator-max-microvolt = <1800000>; 830 }; 833 }; 831 vreg_l16a_2p7: l16 { 834 vreg_l16a_2p7: l16 { 832 regulator-name = "vreg 835 regulator-name = "vreg_l16a_2p7"; 833 regulator-min-microvol 836 regulator-min-microvolt = <2700000>; 834 regulator-max-microvol 837 regulator-max-microvolt = <2700000>; 835 }; 838 }; 836 vreg_l17a_2p8: l17 { 839 vreg_l17a_2p8: l17 { 837 regulator-name = "vreg 840 regulator-name = "vreg_l17a_2p8"; 838 regulator-min-microvol 841 regulator-min-microvolt = <2500000>; 839 regulator-max-microvol 842 regulator-max-microvolt = <2500000>; 840 }; 843 }; 841 vreg_l18a_2p85: l18 { 844 vreg_l18a_2p85: l18 { 842 regulator-name = "vreg 845 regulator-name = "vreg_l18a_2p85"; 843 regulator-min-microvol 846 regulator-min-microvolt = <2700000>; 844 regulator-max-microvol 847 regulator-max-microvolt = <2900000>; 845 }; 848 }; 846 vreg_l19a_2p8: l19 { 849 vreg_l19a_2p8: l19 { 847 regulator-name = "vreg 850 regulator-name = "vreg_l19a_2p8"; 848 regulator-min-microvol 851 regulator-min-microvolt = <3000000>; 849 regulator-max-microvol 852 regulator-max-microvolt = <3000000>; 850 }; 853 }; 851 vreg_l20a_2p95: l20 { 854 vreg_l20a_2p95: l20 { 852 regulator-name = "vreg 855 regulator-name = "vreg_l20a_2p95"; 853 regulator-min-microvol 856 regulator-min-microvolt = <2950000>; 854 regulator-max-microvol 857 regulator-max-microvolt = <2950000>; 855 regulator-allow-set-lo 858 regulator-allow-set-load; 856 }; 859 }; 857 vreg_l21a_2p95: l21 { 860 vreg_l21a_2p95: l21 { 858 regulator-name = "vreg 861 regulator-name = "vreg_l21a_2p95"; 859 regulator-min-microvol 862 regulator-min-microvolt = <2950000>; 860 regulator-max-microvol 863 regulator-max-microvolt = <2950000>; 861 regulator-allow-set-lo 864 regulator-allow-set-load; 862 regulator-system-load 865 regulator-system-load = <200000>; 863 }; 866 }; 864 vreg_l22a_3p0: l22 { 867 vreg_l22a_3p0: l22 { 865 regulator-name = "vreg 868 regulator-name = "vreg_l22a_3p0"; 866 regulator-min-microvol 869 regulator-min-microvolt = <3300000>; 867 regulator-max-microvol 870 regulator-max-microvolt = <3300000>; 868 }; 871 }; 869 vreg_l23a_2p8: l23 { 872 vreg_l23a_2p8: l23 { 870 regulator-name = "vreg 873 regulator-name = "vreg_l23a_2p8"; 871 regulator-min-microvol 874 regulator-min-microvolt = <2800000>; 872 regulator-max-microvol 875 regulator-max-microvolt = <2800000>; 873 }; 876 }; 874 vreg_l24a_3p075: l24 { 877 vreg_l24a_3p075: l24 { 875 regulator-name = "vreg 878 regulator-name = "vreg_l24a_3p075"; 876 regulator-min-microvol 879 regulator-min-microvolt = <3075000>; 877 regulator-max-microvol 880 regulator-max-microvolt = <3075000>; 878 }; 881 }; 879 vreg_l25a_1p2: l25 { 882 vreg_l25a_1p2: l25 { 880 regulator-name = "vreg 883 regulator-name = "vreg_l25a_1p2"; 881 regulator-min-microvol 884 regulator-min-microvolt = <1200000>; 882 regulator-max-microvol 885 regulator-max-microvolt = <1200000>; 883 regulator-allow-set-lo 886 regulator-allow-set-load; 884 }; 887 }; 885 vreg_l26a_0p8: l27 { 888 vreg_l26a_0p8: l27 { 886 regulator-name = "vreg 889 regulator-name = "vreg_l26a_0p8"; 887 regulator-min-microvol 890 regulator-min-microvolt = <1000000>; 888 regulator-max-microvol 891 regulator-max-microvolt = <1000000>; 889 }; 892 }; 890 vreg_l28a_0p925: l28 { 893 vreg_l28a_0p925: l28 { 891 regulator-name = "vreg 894 regulator-name = "vreg_l28a_0p925"; 892 regulator-min-microvol 895 regulator-min-microvolt = <925000>; 893 regulator-max-microvol 896 regulator-max-microvolt = <925000>; 894 regulator-allow-set-lo 897 regulator-allow-set-load; 895 }; 898 }; 896 vreg_l29a_2p8: l29 { 899 vreg_l29a_2p8: l29 { 897 regulator-name = "vreg 900 regulator-name = "vreg_l29a_2p8"; 898 regulator-min-microvol 901 regulator-min-microvolt = <2800000>; 899 regulator-max-microvol 902 regulator-max-microvolt = <2800000>; 900 }; 903 }; 901 vreg_l30a_1p8: l30 { 904 vreg_l30a_1p8: l30 { 902 regulator-name = "vreg 905 regulator-name = "vreg_l30a_1p8"; 903 regulator-min-microvol 906 regulator-min-microvolt = <1800000>; 904 regulator-max-microvol 907 regulator-max-microvolt = <1800000>; 905 }; 908 }; 906 vreg_l32a_1p8: l32 { 909 vreg_l32a_1p8: l32 { 907 regulator-name = "vreg 910 regulator-name = "vreg_l32a_1p8"; 908 regulator-min-microvol 911 regulator-min-microvolt = <1800000>; 909 regulator-max-microvol 912 regulator-max-microvolt = <1800000>; 910 }; 913 }; 911 914 912 vreg_lvs1a_1p8: lvs1 { 915 vreg_lvs1a_1p8: lvs1 { 913 regulator-name = "vreg 916 regulator-name = "vreg_lvs1a_1p8"; 914 }; 917 }; 915 918 916 vreg_lvs2a_1p8: lvs2 { 919 vreg_lvs2a_1p8: lvs2 { 917 regulator-name = "vreg 920 regulator-name = "vreg_lvs2a_1p8"; 918 }; 921 }; 919 }; 922 }; 920 923 921 regulators-1 { 924 regulators-1 { 922 compatible = "qcom,rpm-pmi8994 925 compatible = "qcom,rpm-pmi8994-regulators"; 923 926 924 vdd_s1-supply = <&vph_pwr>; 927 vdd_s1-supply = <&vph_pwr>; 925 vdd_s2-supply = <&vph_pwr>; 928 vdd_s2-supply = <&vph_pwr>; 926 vdd_s3-supply = <&vph_pwr>; 929 vdd_s3-supply = <&vph_pwr>; 927 vdd_bst_byp-supply = <&vph_pwr 930 vdd_bst_byp-supply = <&vph_pwr>; 928 931 929 vph_pwr_bbyp: boost-bypass { 932 vph_pwr_bbyp: boost-bypass { 930 regulator-name = "vph_ 933 regulator-name = "vph_pwr_bbyp"; 931 regulator-min-microvol 934 regulator-min-microvolt = <3300000>; 932 regulator-max-microvol 935 regulator-max-microvolt = <3300000>; 933 }; 936 }; 934 937 935 vreg_s1b_1p025: s1 { 938 vreg_s1b_1p025: s1 { 936 regulator-name = "vreg 939 regulator-name = "vreg_s1b_1p025"; 937 regulator-min-microvol 940 regulator-min-microvolt = <1025000>; 938 regulator-max-microvol 941 regulator-max-microvolt = <1025000>; 939 }; 942 }; 940 }; 943 }; 941 }; 944 }; 942 945 943 &sdhc2 { 946 &sdhc2 { 944 /* External SD card */ 947 /* External SD card */ 945 pinctrl-names = "default", "sleep"; 948 pinctrl-names = "default", "sleep"; 946 pinctrl-0 = <&sdc2_state_on &sdc2_cd_o 949 pinctrl-0 = <&sdc2_state_on &sdc2_cd_on>; 947 pinctrl-1 = <&sdc2_state_off &sdc2_cd_ 950 pinctrl-1 = <&sdc2_state_off &sdc2_cd_off>; 948 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 951 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 949 vmmc-supply = <&vreg_l21a_2p95>; 952 vmmc-supply = <&vreg_l21a_2p95>; 950 vqmmc-supply = <&vreg_l13a_2p95>; 953 vqmmc-supply = <&vreg_l13a_2p95>; 951 status = "okay"; 954 status = "okay"; 952 }; 955 }; 953 956 954 &q6asmdai { 957 &q6asmdai { 955 dai@0 { 958 dai@0 { 956 reg = <0>; 959 reg = <0>; 957 }; 960 }; 958 961 959 dai@1 { 962 dai@1 { 960 reg = <1>; 963 reg = <1>; 961 }; 964 }; 962 965 963 dai@2 { 966 dai@2 { 964 reg = <2>; 967 reg = <2>; 965 }; 968 }; 966 }; 969 }; 967 970 968 &slim_msm { 971 &slim_msm { 969 status = "okay"; 972 status = "okay"; 970 973 971 slim@1 { 974 slim@1 { 972 reg = <1>; 975 reg = <1>; 973 #address-cells = <2>; 976 #address-cells = <2>; 974 #size-cells = <0>; 977 #size-cells = <0>; 975 978 976 tasha_ifd: tas-ifd@0,0 { 979 tasha_ifd: tas-ifd@0,0 { 977 compatible = "slim217, 980 compatible = "slim217,1a0"; 978 reg = <0 0>; 981 reg = <0 0>; 979 }; 982 }; 980 983 981 wcd9335: codec@1,0 { 984 wcd9335: codec@1,0 { 982 compatible = "slim217, 985 compatible = "slim217,1a0"; 983 reg = <1 0>; 986 reg = <1 0>; 984 987 985 clock-names = "mclk", 988 clock-names = "mclk", "slimbus"; 986 clocks = <&div1_mclk>, 989 clocks = <&div1_mclk>, 987 <&rpmcc RPM_S 990 <&rpmcc RPM_SMD_BB_CLK1>; 988 interrupt-parent = <&t 991 interrupt-parent = <&tlmm>; 989 interrupts = <54 IRQ_T 992 interrupts = <54 IRQ_TYPE_LEVEL_HIGH>, 990 <53 IRQ_T 993 <53 IRQ_TYPE_LEVEL_HIGH>; 991 interrupt-names = "int 994 interrupt-names = "intr1", "intr2"; 992 interrupt-controller; 995 interrupt-controller; 993 #interrupt-cells = <1> 996 #interrupt-cells = <1>; 994 997 995 pinctrl-0 = <&cdc_rese 998 pinctrl-0 = <&cdc_reset_active &wcd_intr_default>; 996 pinctrl-names = "defau 999 pinctrl-names = "default"; 997 1000 998 reset-gpios = <&tlmm 6 1001 reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; 999 slim-ifc-dev = <&tasha 1002 slim-ifc-dev = <&tasha_ifd>; 1000 1003 1001 #sound-dai-cells = <1 1004 #sound-dai-cells = <1>; 1002 1005 1003 vdd-buck-supply = <&v 1006 vdd-buck-supply = <&vreg_s4a_1p8>; 1004 vdd-buck-sido-supply 1007 vdd-buck-sido-supply = <&vreg_s4a_1p8>; 1005 vdd-tx-supply = <&vre 1008 vdd-tx-supply = <&vreg_s4a_1p8>; 1006 vdd-rx-supply = <&vre 1009 vdd-rx-supply = <&vreg_s4a_1p8>; 1007 vdd-io-supply = <&vre 1010 vdd-io-supply = <&vreg_s4a_1p8>; 1008 }; 1011 }; 1009 }; 1012 }; 1010 }; 1013 }; 1011 1014 1012 &sound { 1015 &sound { 1013 compatible = "qcom,apq8096-sndcard"; 1016 compatible = "qcom,apq8096-sndcard"; 1014 model = "DB820c"; 1017 model = "DB820c"; 1015 audio-routing = "RX_BIAS", "MCLK", 1018 audio-routing = "RX_BIAS", "MCLK", 1016 "MM_DL1", "MultiMedia1 Playb 1019 "MM_DL1", "MultiMedia1 Playback", 1017 "MM_DL2", "MultiMedia2 Playb 1020 "MM_DL2", "MultiMedia2 Playback", 1018 "MultiMedia3 Capture", "MM_UL 1021 "MultiMedia3 Capture", "MM_UL3"; 1019 1022 1020 mm1-dai-link { 1023 mm1-dai-link { 1021 link-name = "MultiMedia1"; 1024 link-name = "MultiMedia1"; 1022 cpu { 1025 cpu { 1023 sound-dai = <&q6asmda 1026 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; 1024 }; 1027 }; 1025 }; 1028 }; 1026 1029 1027 mm2-dai-link { 1030 mm2-dai-link { 1028 link-name = "MultiMedia2"; 1031 link-name = "MultiMedia2"; 1029 cpu { 1032 cpu { 1030 sound-dai = <&q6asmda 1033 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; 1031 }; 1034 }; 1032 }; 1035 }; 1033 1036 1034 mm3-dai-link { 1037 mm3-dai-link { 1035 link-name = "MultiMedia3"; 1038 link-name = "MultiMedia3"; 1036 cpu { 1039 cpu { 1037 sound-dai = <&q6asmda 1040 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; 1038 }; 1041 }; 1039 }; 1042 }; 1040 1043 1041 hdmi-dai-link { 1044 hdmi-dai-link { 1042 link-name = "HDMI"; 1045 link-name = "HDMI"; 1043 cpu { 1046 cpu { 1044 sound-dai = <&q6afeda 1047 sound-dai = <&q6afedai HDMI_RX>; 1045 }; 1048 }; 1046 1049 1047 platform { 1050 platform { 1048 sound-dai = <&q6routi 1051 sound-dai = <&q6routing>; 1049 }; 1052 }; 1050 1053 1051 codec { 1054 codec { 1052 sound-dai = <&mdss_hd !! 1055 sound-dai = <&hdmi 0>; 1053 }; 1056 }; 1054 }; 1057 }; 1055 1058 1056 slim-dai-link { 1059 slim-dai-link { 1057 link-name = "SLIM Playback"; 1060 link-name = "SLIM Playback"; 1058 cpu { 1061 cpu { 1059 sound-dai = <&q6afeda 1062 sound-dai = <&q6afedai SLIMBUS_6_RX>; 1060 }; 1063 }; 1061 1064 1062 platform { 1065 platform { 1063 sound-dai = <&q6routi 1066 sound-dai = <&q6routing>; 1064 }; 1067 }; 1065 1068 1066 codec { 1069 codec { 1067 sound-dai = <&wcd9335 1070 sound-dai = <&wcd9335 AIF4_PB>; 1068 }; 1071 }; 1069 }; 1072 }; 1070 1073 1071 slimcap-dai-link { 1074 slimcap-dai-link { 1072 link-name = "SLIM Capture"; 1075 link-name = "SLIM Capture"; 1073 cpu { 1076 cpu { 1074 sound-dai = <&q6afeda 1077 sound-dai = <&q6afedai SLIMBUS_0_TX>; 1075 }; 1078 }; 1076 1079 1077 platform { 1080 platform { 1078 sound-dai = <&q6routi 1081 sound-dai = <&q6routing>; 1079 }; 1082 }; 1080 1083 1081 codec { 1084 codec { 1082 sound-dai = <&wcd9335 1085 sound-dai = <&wcd9335 AIF1_CAP>; 1083 }; 1086 }; 1084 }; 1087 }; 1085 }; 1088 }; 1086 1089 1087 &ufsphy { 1090 &ufsphy { 1088 status = "okay"; 1091 status = "okay"; 1089 1092 1090 vdda-phy-supply = <&vreg_l28a_0p925>; 1093 vdda-phy-supply = <&vreg_l28a_0p925>; 1091 vdda-pll-supply = <&vreg_l12a_1p8>; 1094 vdda-pll-supply = <&vreg_l12a_1p8>; >> 1095 vddp-ref-clk-supply = <&vreg_l25a_1p2>; 1092 }; 1096 }; 1093 1097 1094 &ufshc { 1098 &ufshc { 1095 status = "okay"; 1099 status = "okay"; 1096 1100 1097 vcc-supply = <&vreg_l20a_2p95>; 1101 vcc-supply = <&vreg_l20a_2p95>; 1098 vccq-supply = <&vreg_l25a_1p2>; 1102 vccq-supply = <&vreg_l25a_1p2>; 1099 vccq2-supply = <&vreg_s4a_1p8>; 1103 vccq2-supply = <&vreg_s4a_1p8>; 1100 vdd-hba-supply = <&vreg_l25a_1p2>; << 1101 1104 1102 vcc-max-microamp = <600000>; 1105 vcc-max-microamp = <600000>; 1103 vccq-max-microamp = <450000>; 1106 vccq-max-microamp = <450000>; 1104 vccq2-max-microamp = <450000>; 1107 vccq2-max-microamp = <450000>; 1105 }; 1108 }; 1106 1109 1107 &usb2 { 1110 &usb2 { 1108 status = "okay"; 1111 status = "okay"; 1109 extcon = <&usb2_id>; 1112 extcon = <&usb2_id>; 1110 }; 1113 }; 1111 1114 1112 &usb2_dwc3 { 1115 &usb2_dwc3 { 1113 extcon = <&usb2_id>; 1116 extcon = <&usb2_id>; 1114 dr_mode = "otg"; 1117 dr_mode = "otg"; 1115 maximum-speed = "high-speed"; 1118 maximum-speed = "high-speed"; 1116 }; 1119 }; 1117 1120 1118 &usb3 { 1121 &usb3 { 1119 status = "okay"; 1122 status = "okay"; 1120 extcon = <&usb3_id>; 1123 extcon = <&usb3_id>; 1121 }; 1124 }; 1122 1125 1123 &usb3_dwc3 { 1126 &usb3_dwc3 { 1124 extcon = <&usb3_id>; 1127 extcon = <&usb3_id>; 1125 dr_mode = "otg"; 1128 dr_mode = "otg"; 1126 }; 1129 }; 1127 1130 1128 &usb3phy { 1131 &usb3phy { 1129 status = "okay"; 1132 status = "okay"; 1130 1133 1131 vdda-phy-supply = <&vreg_l28a_0p925>; 1134 vdda-phy-supply = <&vreg_l28a_0p925>; 1132 vdda-pll-supply = <&vreg_l12a_1p8>; 1135 vdda-pll-supply = <&vreg_l12a_1p8>; 1133 }; 1136 }; 1134 1137 1135 &venus { 1138 &venus { 1136 status = "okay"; 1139 status = "okay"; 1137 }; 1140 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.