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