Kumar Gala | 282703e | 2015-03-20 13:39:54 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #include "msm8916.dtsi" |
Ivan T. Ivanov | 729ee9c | 2015-04-20 10:45:39 +0300 | [diff] [blame] | 15 | #include "pm8916.dtsi" |
Ivan T. Ivanov | a190a1c | 2015-04-20 10:45:41 +0300 | [diff] [blame] | 16 | #include "apq8016-sbc-soc-pins.dtsi" |
| 17 | #include "apq8016-sbc-pmic-pins.dtsi" |
Ivan T. Ivanov | f953d99 | 2017-01-04 13:34:59 +0000 | [diff] [blame] | 18 | #include <dt-bindings/gpio/gpio.h> |
| 19 | #include <dt-bindings/input/input.h> |
Srinivas Kandagatla | 5582fcb | 2016-10-20 15:20:49 +0100 | [diff] [blame] | 20 | #include <dt-bindings/sound/apq8016-lpass.h> |
Kumar Gala | 282703e | 2015-03-20 13:39:54 -0500 | [diff] [blame] | 21 | |
Linus Walleij | f6b1674 | 2017-10-09 11:28:44 +0200 | [diff] [blame] | 22 | /* |
| 23 | * GPIO name legend: proper name = the GPIO line is used as GPIO |
| 24 | * NC = not connected (pin out but not routed from the chip to |
| 25 | * anything the board) |
| 26 | * "[PER]" = pin is muxed for [peripheral] (not GPIO) |
| 27 | * LSEC = Low Speed External Connector |
| 28 | * HSEC = High Speed External Connector |
| 29 | * |
| 30 | * Line names are taken from the schematic "DragonBoard410c" |
| 31 | * dated monday, august 31, 2015. Page 5 in particular. |
| 32 | * |
| 33 | * For the lines routed to the external connectors the |
| 34 | * lines are named after the 96Boards CE Specification 1.0, |
| 35 | * Appendix "Expansion Connector Signal Description". |
| 36 | * |
| 37 | * When the 96Board naming of a line and the schematic name of |
| 38 | * the same line are in conflict, the 96Board specification |
| 39 | * takes precedence, which means that the external UART on the |
| 40 | * LSEC is named UART0 while the schematic and SoC names this |
| 41 | * UART3. This is only for the informational lines i.e. "[FOO]", |
| 42 | * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only |
| 43 | * ones actually used for GPIO. |
| 44 | */ |
| 45 | |
Kumar Gala | 282703e | 2015-03-20 13:39:54 -0500 | [diff] [blame] | 46 | / { |
| 47 | aliases { |
| 48 | serial0 = &blsp1_uart2; |
Andy Gross | 9f43020 | 2015-08-27 15:39:14 -0500 | [diff] [blame] | 49 | serial1 = &blsp1_uart1; |
Stephen Boyd | 2bce84c | 2015-11-20 15:31:19 -0800 | [diff] [blame] | 50 | usid0 = &pm8916_0; |
Srinivas Kandagatla | b98e6c7 | 2015-12-11 18:12:50 +0000 | [diff] [blame] | 51 | i2c0 = &blsp_i2c2; |
| 52 | i2c1 = &blsp_i2c6; |
| 53 | i2c3 = &blsp_i2c4; |
Srinivas Kandagatla | 09cbd8ed | 2016-01-21 18:38:42 +0000 | [diff] [blame] | 54 | spi0 = &blsp_spi5; |
| 55 | spi1 = &blsp_spi3; |
Kumar Gala | 282703e | 2015-03-20 13:39:54 -0500 | [diff] [blame] | 56 | }; |
| 57 | |
| 58 | chosen { |
| 59 | stdout-path = "serial0"; |
| 60 | }; |
| 61 | |
Bjorn Andersson | 1b0c105 | 2017-02-01 02:24:24 -0800 | [diff] [blame] | 62 | reserved-memory { |
| 63 | ramoops@bff00000{ |
| 64 | compatible = "ramoops"; |
| 65 | reg = <0x0 0xbff00000 0x0 0x100000>; |
| 66 | |
| 67 | record-size = <0x20000>; |
| 68 | console-size = <0x20000>; |
| 69 | ftrace-size = <0x20000>; |
| 70 | }; |
| 71 | }; |
| 72 | |
Kumar Gala | 282703e | 2015-03-20 13:39:54 -0500 | [diff] [blame] | 73 | soc { |
Linus Walleij | f6b1674 | 2017-10-09 11:28:44 +0200 | [diff] [blame] | 74 | pinctrl@1000000 { |
| 75 | gpio-line-names = |
| 76 | "[UART0_TX]", /* GPIO_0, LSEC pin 5 */ |
| 77 | "[UART0_RX]", /* GPIO_1, LSEC pin 7 */ |
| 78 | "[UART0_CTS_N]", /* GPIO_2, LSEC pin 3 */ |
| 79 | "[UART0_RTS_N]", /* GPIO_3, LSEC pin 9 */ |
| 80 | "[UART1_TX]", /* GPIO_4, LSEC pin 11 */ |
| 81 | "[UART1_RX]", /* GPIO_5, LSEC pin 13 */ |
| 82 | "[I2C0_SDA]", /* GPIO_8, LSEC pin 17 */ |
| 83 | "[I2C0_SCL]", /* GPIO_7, LSEC pin 15 */ |
| 84 | "[SPI1_DOUT]", /* SPI1_MOSI, HSEC pin 1 */ |
| 85 | "[SPI1_DIN]", /* SPI1_MISO, HSEC pin 11 */ |
| 86 | "[SPI1_CS]", /* SPI1_CS_N, HSEC pin 7 */ |
| 87 | "[SPI1_SCLK]", /* SPI1_CLK, HSEC pin 9 */ |
| 88 | "GPIO-B", /* LS_EXP_GPIO_B, LSEC pin 24 */ |
| 89 | "GPIO-C", /* LS_EXP_GPIO_C, LSEC pin 25 */ |
| 90 | "[I2C3_SDA]", /* HSEC pin 38 */ |
| 91 | "[I2C3_SCL]", /* HSEC pin 36 */ |
| 92 | "[SPI0_MOSI]", /* LSEC pin 14 */ |
| 93 | "[SPI0_MISO]", /* LSEC pin 10 */ |
| 94 | "[SPI0_CS_N]", /* LSEC pin 12 */ |
| 95 | "[SPI0_CLK]", /* LSEC pin 8 */ |
| 96 | "HDMI_HPD_N", /* GPIO 20 */ |
| 97 | "USR_LED_1_CTRL", |
| 98 | "[I2C1_SDA]", /* GPIO_22, LSEC pin 21 */ |
| 99 | "[I2C1_SCL]", /* GPIO_23, LSEC pin 19 */ |
| 100 | "GPIO-G", /* LS_EXP_GPIO_G, LSEC pin 29 */ |
| 101 | "GPIO-H", /* LS_EXP_GPIO_H, LSEC pin 30 */ |
| 102 | "[CSI0_MCLK]", /* HSEC pin 15 */ |
| 103 | "[CSI1_MCLK]", /* HSEC pin 17 */ |
| 104 | "GPIO-K", /* LS_EXP_GPIO_K, LSEC pin 33 */ |
| 105 | "[I2C2_SDA]", /* HSEC pin 34 */ |
| 106 | "[I2C2_SCL]", /* HSEC pin 32 */ |
| 107 | "DSI2HDMI_INT_N", |
| 108 | "DSI_SW_SEL_APQ", |
| 109 | "GPIO-L", /* LS_EXP_GPIO_L, LSEC pin 34 */ |
| 110 | "GPIO-J", /* LS_EXP_GPIO_J, LSEC pin 32 */ |
| 111 | "GPIO-I", /* LS_EXP_GPIO_I, LSEC pin 31 */ |
| 112 | "GPIO-A", /* LS_EXP_GPIO_A, LSEC pin 23 */ |
| 113 | "FORCED_USB_BOOT", |
| 114 | "SD_CARD_DET_N", |
| 115 | "[WCSS_BT_SSBI]", |
| 116 | "[WCSS_WLAN_DATA_2]", /* GPIO 40 */ |
| 117 | "[WCSS_WLAN_DATA_1]", |
| 118 | "[WCSS_WLAN_DATA_0]", |
| 119 | "[WCSS_WLAN_SET]", |
| 120 | "[WCSS_WLAN_CLK]", |
| 121 | "[WCSS_FM_SSBI]", |
| 122 | "[WCSS_FM_SDI]", |
| 123 | "[WCSS_BT_DAT_CTL]", |
| 124 | "[WCSS_BT_DAT_STB]", |
| 125 | "NC", |
| 126 | "NC", /* GPIO 50 */ |
| 127 | "NC", |
| 128 | "NC", |
| 129 | "NC", |
| 130 | "NC", |
| 131 | "NC", |
| 132 | "NC", |
| 133 | "NC", |
| 134 | "NC", |
| 135 | "NC", |
| 136 | "NC", /* GPIO 60 */ |
| 137 | "NC", |
| 138 | "NC", |
| 139 | "[CDC_PDM0_CLK]", |
| 140 | "[CDC_PDM0_SYNC]", |
| 141 | "[CDC_PDM0_TX0]", |
| 142 | "[CDC_PDM0_RX0]", |
| 143 | "[CDC_PDM0_RX1]", |
| 144 | "[CDC_PDM0_RX2]", |
| 145 | "GPIO-D", /* LS_EXP_GPIO_D, LSEC pin 26 */ |
| 146 | "NC", /* GPIO 70 */ |
| 147 | "NC", |
| 148 | "NC", |
| 149 | "NC", |
| 150 | "NC", /* GPIO 74 */ |
| 151 | "NC", |
| 152 | "NC", |
| 153 | "NC", |
| 154 | "NC", |
| 155 | "NC", |
| 156 | "BOOT_CONFIG_0", /* GPIO 80 */ |
| 157 | "BOOT_CONFIG_1", |
| 158 | "BOOT_CONFIG_2", |
| 159 | "BOOT_CONFIG_3", |
| 160 | "NC", |
| 161 | "NC", |
| 162 | "BOOT_CONFIG_5", |
| 163 | "NC", |
| 164 | "NC", |
| 165 | "NC", |
| 166 | "NC", /* GPIO 90 */ |
| 167 | "NC", |
| 168 | "NC", |
| 169 | "NC", |
| 170 | "NC", |
| 171 | "NC", |
| 172 | "NC", |
| 173 | "NC", |
| 174 | "NC", |
| 175 | "NC", |
| 176 | "NC", /* GPIO 100 */ |
| 177 | "NC", |
| 178 | "NC", |
| 179 | "NC", |
| 180 | "SSBI_GPS", |
| 181 | "NC", |
| 182 | "NC", |
| 183 | "KEY_VOLP_N", |
| 184 | "NC", |
| 185 | "NC", |
| 186 | "[LS_EXP_MI2S_WS]", /* GPIO 110 */ |
| 187 | "NC", |
| 188 | "NC", |
| 189 | "[LS_EXP_MI2S_SCK]", |
| 190 | "[LS_EXP_MI2S_DATA0]", |
| 191 | "GPIO-E", /* LS_EXP_GPIO_E, LSEC pin 27 */ |
| 192 | "NC", |
| 193 | "[DSI2HDMI_MI2S_WS]", |
| 194 | "[DSI2HDMI_MI2S_SCK]", |
| 195 | "[DSI2HDMI_MI2S_DATA0]", |
| 196 | "USR_LED_2_CTRL", /* GPIO 120 */ |
| 197 | "SB_HS_ID"; |
| 198 | }; |
| 199 | |
Srinivas Kandagatla | 3f452fe | 2016-02-23 16:50:45 +0000 | [diff] [blame] | 200 | dma@7884000 { |
| 201 | status = "okay"; |
| 202 | }; |
| 203 | |
Rob Herring | 700dfee | 2015-12-10 15:21:11 -0600 | [diff] [blame] | 204 | serial@78af000 { |
Rob Herring | 262c45d | 2015-12-10 15:21:12 -0600 | [diff] [blame] | 205 | label = "LS-UART0"; |
Rob Herring | 700dfee | 2015-12-10 15:21:11 -0600 | [diff] [blame] | 206 | status = "okay"; |
| 207 | pinctrl-names = "default", "sleep"; |
| 208 | pinctrl-0 = <&blsp1_uart1_default>; |
| 209 | pinctrl-1 = <&blsp1_uart1_sleep>; |
| 210 | }; |
| 211 | |
Kumar Gala | 282703e | 2015-03-20 13:39:54 -0500 | [diff] [blame] | 212 | serial@78b0000 { |
Rob Herring | 262c45d | 2015-12-10 15:21:12 -0600 | [diff] [blame] | 213 | label = "LS-UART1"; |
Kumar Gala | 282703e | 2015-03-20 13:39:54 -0500 | [diff] [blame] | 214 | status = "okay"; |
| 215 | pinctrl-names = "default", "sleep"; |
| 216 | pinctrl-0 = <&blsp1_uart2_default>; |
| 217 | pinctrl-1 = <&blsp1_uart2_sleep>; |
| 218 | }; |
Ivan T. Ivanov | 9943230 | 2015-06-04 12:19:06 +0300 | [diff] [blame] | 219 | |
Srinivas Kandagatla | 7c6764b | 2015-10-09 09:55:21 +0100 | [diff] [blame] | 220 | i2c@78b6000 { |
| 221 | /* On Low speed expansion */ |
Rob Herring | 262c45d | 2015-12-10 15:21:12 -0600 | [diff] [blame] | 222 | label = "LS-I2C0"; |
Srinivas Kandagatla | 7c6764b | 2015-10-09 09:55:21 +0100 | [diff] [blame] | 223 | status = "okay"; |
| 224 | }; |
| 225 | |
| 226 | i2c@78b8000 { |
| 227 | /* On High speed expansion */ |
Rob Herring | 262c45d | 2015-12-10 15:21:12 -0600 | [diff] [blame] | 228 | label = "HS-I2C2"; |
Srinivas Kandagatla | 7c6764b | 2015-10-09 09:55:21 +0100 | [diff] [blame] | 229 | status = "okay"; |
Archit Taneja | 28546b0 | 2016-06-23 19:43:30 +0530 | [diff] [blame] | 230 | |
| 231 | adv_bridge: bridge@39 { |
| 232 | status = "okay"; |
| 233 | |
| 234 | compatible = "adi,adv7533"; |
| 235 | reg = <0x39>; |
| 236 | |
| 237 | interrupt-parent = <&msmgpio>; |
| 238 | interrupts = <31 2>; |
| 239 | |
| 240 | adi,dsi-lanes = <4>; |
Hans Verkuil | 5a125b6 | 2017-07-30 15:07:41 +0200 | [diff] [blame] | 241 | clocks = <&rpmcc RPM_SMD_BB_CLK2>; |
| 242 | clock-names = "cec"; |
Archit Taneja | 28546b0 | 2016-06-23 19:43:30 +0530 | [diff] [blame] | 243 | |
| 244 | pd-gpios = <&msmgpio 32 0>; |
| 245 | |
| 246 | avdd-supply = <&pm8916_l6>; |
| 247 | v1p2-supply = <&pm8916_l6>; |
| 248 | v3p3-supply = <&pm8916_l17>; |
| 249 | |
| 250 | pinctrl-names = "default","sleep"; |
| 251 | pinctrl-0 = <&adv7533_int_active &adv7533_switch_active>; |
| 252 | pinctrl-1 = <&adv7533_int_suspend &adv7533_switch_suspend>; |
Srinivas Kandagatla | 70151ff | 2017-01-04 13:34:58 +0000 | [diff] [blame] | 253 | #sound-dai-cells = <1>; |
Archit Taneja | 28546b0 | 2016-06-23 19:43:30 +0530 | [diff] [blame] | 254 | |
| 255 | ports { |
| 256 | #address-cells = <1>; |
| 257 | #size-cells = <0>; |
| 258 | |
| 259 | port@0 { |
| 260 | reg = <0>; |
| 261 | adv7533_in: endpoint { |
| 262 | remote-endpoint = <&dsi0_out>; |
| 263 | }; |
| 264 | }; |
| 265 | |
| 266 | port@1 { |
| 267 | reg = <1>; |
| 268 | adv7533_out: endpoint { |
| 269 | remote-endpoint = <&hdmi_con>; |
| 270 | }; |
| 271 | }; |
| 272 | }; |
| 273 | }; |
Srinivas Kandagatla | 7c6764b | 2015-10-09 09:55:21 +0100 | [diff] [blame] | 274 | }; |
| 275 | |
| 276 | i2c@78ba000 { |
| 277 | /* On Low speed expansion */ |
Rob Herring | 262c45d | 2015-12-10 15:21:12 -0600 | [diff] [blame] | 278 | label = "LS-I2C1"; |
Srinivas Kandagatla | 7c6764b | 2015-10-09 09:55:21 +0100 | [diff] [blame] | 279 | status = "okay"; |
| 280 | }; |
| 281 | |
Srinivas Kandagatla | 00a9e05 | 2015-10-09 09:55:29 +0100 | [diff] [blame] | 282 | spi@78b7000 { |
| 283 | /* On High speed expansion */ |
Rob Herring | 262c45d | 2015-12-10 15:21:12 -0600 | [diff] [blame] | 284 | label = "HS-SPI1"; |
Srinivas Kandagatla | 00a9e05 | 2015-10-09 09:55:29 +0100 | [diff] [blame] | 285 | status = "okay"; |
| 286 | }; |
| 287 | |
| 288 | spi@78b9000 { |
| 289 | /* On Low speed expansion */ |
Rob Herring | 262c45d | 2015-12-10 15:21:12 -0600 | [diff] [blame] | 290 | label = "LS-SPI0"; |
Srinivas Kandagatla | 00a9e05 | 2015-10-09 09:55:29 +0100 | [diff] [blame] | 291 | status = "okay"; |
| 292 | }; |
| 293 | |
Ivan T. Ivanov | 9943230 | 2015-06-04 12:19:06 +0300 | [diff] [blame] | 294 | leds { |
| 295 | pinctrl-names = "default"; |
| 296 | pinctrl-0 = <&msmgpio_leds>, |
| 297 | <&pm8916_gpios_leds>, |
| 298 | <&pm8916_mpps_leds>; |
| 299 | |
| 300 | compatible = "gpio-leds"; |
| 301 | |
| 302 | led@1 { |
| 303 | label = "apq8016-sbc:green:user1"; |
| 304 | gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>; |
| 305 | linux,default-trigger = "heartbeat"; |
| 306 | default-state = "off"; |
| 307 | }; |
| 308 | |
| 309 | led@2 { |
| 310 | label = "apq8016-sbc:green:user2"; |
| 311 | gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>; |
| 312 | linux,default-trigger = "mmc0"; |
| 313 | default-state = "off"; |
| 314 | }; |
| 315 | |
| 316 | led@3 { |
| 317 | label = "apq8016-sbc:green:user3"; |
| 318 | gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>; |
| 319 | linux,default-trigger = "mmc1"; |
| 320 | default-state = "off"; |
| 321 | }; |
| 322 | |
| 323 | led@4 { |
| 324 | label = "apq8016-sbc:green:user4"; |
| 325 | gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>; |
| 326 | linux,default-trigger = "none"; |
Amit Kucheria | 95444f9 | 2017-11-06 12:38:14 +0530 | [diff] [blame] | 327 | panic-indicator; |
Ivan T. Ivanov | 9943230 | 2015-06-04 12:19:06 +0300 | [diff] [blame] | 328 | default-state = "off"; |
| 329 | }; |
| 330 | |
| 331 | led@5 { |
| 332 | label = "apq8016-sbc:yellow:wlan"; |
| 333 | gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>; |
Bjorn Andersson | 20afb8e | 2017-04-26 15:04:44 -0700 | [diff] [blame] | 334 | linux,default-trigger = "phy0tx"; |
Ivan T. Ivanov | 9943230 | 2015-06-04 12:19:06 +0300 | [diff] [blame] | 335 | default-state = "off"; |
| 336 | }; |
| 337 | |
| 338 | led@6 { |
| 339 | label = "apq8016-sbc:blue:bt"; |
| 340 | gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>; |
Loic Poulain | e53db01 | 2018-07-11 14:18:23 +0200 | [diff] [blame] | 341 | linux,default-trigger = "bluetooth-power"; |
Ivan T. Ivanov | 9943230 | 2015-06-04 12:19:06 +0300 | [diff] [blame] | 342 | default-state = "off"; |
| 343 | }; |
| 344 | }; |
Georgi Djakov | 5941c9b | 2015-10-01 12:59:31 +0300 | [diff] [blame] | 345 | |
Rob Herring | d8bcaab | 2017-10-13 12:54:52 -0500 | [diff] [blame] | 346 | sdhci@7824000 { |
Srinivas Kandagatla | b0542d4 | 2016-01-28 17:44:23 +0000 | [diff] [blame] | 347 | vmmc-supply = <&pm8916_l8>; |
| 348 | vqmmc-supply = <&pm8916_l5>; |
| 349 | |
| 350 | pinctrl-names = "default", "sleep"; |
| 351 | pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>; |
| 352 | pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; |
Srinivas Kandagatla | 0283687c | 2016-01-28 17:44:16 +0000 | [diff] [blame] | 353 | status = "okay"; |
| 354 | }; |
Srinivas Kandagatla | dd8cdc9 | 2016-02-23 16:49:56 +0000 | [diff] [blame] | 355 | |
Rob Herring | d8bcaab | 2017-10-13 12:54:52 -0500 | [diff] [blame] | 356 | sdhci@7864000 { |
Georgi Djakov | a9f91b4 | 2016-02-04 14:53:22 +0200 | [diff] [blame] | 357 | vmmc-supply = <&pm8916_l11>; |
| 358 | vqmmc-supply = <&pm8916_l12>; |
| 359 | |
| 360 | pinctrl-names = "default", "sleep"; |
| 361 | pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; |
| 362 | pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; |
| 363 | |
| 364 | cd-gpios = <&msmgpio 38 0x1>; |
| 365 | status = "okay"; |
| 366 | }; |
| 367 | |
Srinivas Kandagatla | dd8cdc9 | 2016-02-23 16:49:56 +0000 | [diff] [blame] | 368 | usb@78d9000 { |
Stephen Boyd | 2691cb4 | 2017-07-13 19:20:42 -0700 | [diff] [blame] | 369 | extcon = <&usb_id>; |
Srinivas Kandagatla | dd8cdc9 | 2016-02-23 16:49:56 +0000 | [diff] [blame] | 370 | status = "okay"; |
Stephen Boyd | ed75d6a | 2017-01-26 16:47:28 -0800 | [diff] [blame] | 371 | adp-disable; |
| 372 | hnp-disable; |
| 373 | srp-disable; |
Stephen Boyd | 2691cb4 | 2017-07-13 19:20:42 -0700 | [diff] [blame] | 374 | dr_mode = "host"; |
| 375 | pinctrl-names = "default"; |
| 376 | pinctrl-0 = <&usb_sw_sel_pm>; |
Stephen Boyd | ed75d6a | 2017-01-26 16:47:28 -0800 | [diff] [blame] | 377 | ulpi { |
| 378 | phy { |
| 379 | v1p8-supply = <&pm8916_l7>; |
| 380 | v3p3-supply = <&pm8916_l13>; |
| 381 | extcon = <&usb_id>; |
| 382 | }; |
| 383 | }; |
Srinivas Kandagatla | dd8cdc9 | 2016-02-23 16:49:56 +0000 | [diff] [blame] | 384 | }; |
Srinivas Kandagatla | b1cda82 | 2016-02-23 16:50:28 +0000 | [diff] [blame] | 385 | |
Rob Herring | d8bcaab | 2017-10-13 12:54:52 -0500 | [diff] [blame] | 386 | lpass@7708000 { |
Srinivas Kandagatla | b1cda82 | 2016-02-23 16:50:28 +0000 | [diff] [blame] | 387 | status = "okay"; |
| 388 | }; |
Archit Taneja | 28546b0 | 2016-06-23 19:43:30 +0530 | [diff] [blame] | 389 | |
| 390 | mdss@1a00000 { |
| 391 | status = "okay"; |
| 392 | |
| 393 | mdp@1a01000 { |
| 394 | status = "okay"; |
| 395 | }; |
| 396 | |
| 397 | dsi@1a98000 { |
| 398 | status = "okay"; |
| 399 | |
| 400 | vdda-supply = <&pm8916_l2>; |
| 401 | vddio-supply = <&pm8916_l6>; |
| 402 | |
| 403 | ports { |
| 404 | port@1 { |
| 405 | endpoint { |
| 406 | remote-endpoint = <&adv7533_in>; |
| 407 | data-lanes = <0 1 2 3>; |
| 408 | }; |
| 409 | }; |
| 410 | }; |
| 411 | }; |
| 412 | |
| 413 | dsi-phy@1a98300 { |
| 414 | status = "okay"; |
| 415 | |
| 416 | vddio-supply = <&pm8916_l6>; |
| 417 | }; |
| 418 | }; |
Srinivas Kandagatla | 5582fcb | 2016-10-20 15:20:49 +0100 | [diff] [blame] | 419 | |
| 420 | lpass_codec: codec{ |
| 421 | status = "okay"; |
| 422 | }; |
| 423 | |
| 424 | /* |
| 425 | Internal Codec |
| 426 | playback - Primary MI2S |
| 427 | capture - Ter MI2S |
| 428 | |
| 429 | External Primary: |
| 430 | playback - secondary MI2S |
| 431 | capture - Quat MI2S |
| 432 | |
| 433 | External Secondary: |
| 434 | playback - Quat MI2S |
| 435 | capture - Quat MI2S |
| 436 | |
| 437 | */ |
| 438 | |
| 439 | sound: sound { |
| 440 | compatible = "qcom,apq8016-sbc-sndcard"; |
| 441 | reg = <0x07702000 0x4>, <0x07702004 0x4>; |
| 442 | reg-names = "mic-iomux", "spkr-iomux"; |
| 443 | |
| 444 | status = "okay"; |
| 445 | pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>; |
| 446 | pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>; |
| 447 | pinctrl-names = "default", "sleep"; |
| 448 | qcom,model = "DB410c"; |
| 449 | qcom,audio-routing = |
| 450 | "AMIC2", "MIC BIAS Internal2", |
| 451 | "AMIC3", "MIC BIAS External1"; |
Srinivas Kandagatla | 70151ff | 2017-01-04 13:34:58 +0000 | [diff] [blame] | 452 | external-dai-link@0 { |
| 453 | link-name = "ADV7533"; |
| 454 | cpu { /* QUAT */ |
| 455 | sound-dai = <&lpass MI2S_QUATERNARY>; |
| 456 | }; |
| 457 | codec { |
| 458 | sound-dai = <&adv_bridge 0>; |
| 459 | }; |
| 460 | }; |
Srinivas Kandagatla | 5582fcb | 2016-10-20 15:20:49 +0100 | [diff] [blame] | 461 | |
| 462 | internal-codec-playback-dai-link@0 { /* I2S - Internal codec */ |
| 463 | link-name = "WCD"; |
| 464 | cpu { /* PRIMARY */ |
| 465 | sound-dai = <&lpass MI2S_PRIMARY>; |
| 466 | }; |
| 467 | codec { |
| 468 | sound-dai = <&lpass_codec 0>, <&wcd_codec 0>; |
| 469 | }; |
| 470 | }; |
| 471 | |
| 472 | internal-codec-capture-dai-link@0 { /* I2S - Internal codec */ |
| 473 | link-name = "WCD-Capture"; |
| 474 | cpu { /* PRIMARY */ |
| 475 | sound-dai = <&lpass MI2S_TERTIARY>; |
| 476 | }; |
| 477 | codec { |
| 478 | sound-dai = <&lpass_codec 1>, <&wcd_codec 1>; |
| 479 | }; |
| 480 | }; |
| 481 | }; |
Bjorn Andersson | 8810609 | 2016-11-18 22:42:32 -0800 | [diff] [blame] | 482 | |
Linus Walleij | f6b1674 | 2017-10-09 11:28:44 +0200 | [diff] [blame] | 483 | spmi@200f000 { |
| 484 | pm8916@0 { |
| 485 | gpios@c000 { |
| 486 | gpio-line-names = |
| 487 | "USR_LED_3_CTRL", |
| 488 | "USR_LED_4_CTRL", |
| 489 | "USB_HUB_RESET_N_PM", |
| 490 | "USB_SW_SEL_PM"; |
| 491 | }; |
| 492 | mpps@a000 { |
| 493 | gpio-line-names = |
| 494 | "VDD_PX_BIAS", |
| 495 | "WLAN_LED_CTRL", |
| 496 | "BT_LED_CTRL", |
| 497 | "GPIO-F"; /* LS_EXP_GPIO_F, LSEC pin 28 */ |
| 498 | }; |
| 499 | }; |
| 500 | }; |
| 501 | |
Bjorn Andersson | 8810609 | 2016-11-18 22:42:32 -0800 | [diff] [blame] | 502 | wcnss@a21b000 { |
| 503 | status = "okay"; |
| 504 | }; |
Srinivas Kandagatla | dd8cdc9 | 2016-02-23 16:49:56 +0000 | [diff] [blame] | 505 | }; |
| 506 | |
| 507 | usb2513 { |
| 508 | compatible = "smsc,usb3503"; |
| 509 | reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>; |
| 510 | initial-mode = <1>; |
| 511 | }; |
| 512 | |
| 513 | usb_id: usb-id { |
| 514 | compatible = "linux,extcon-usb-gpio"; |
Stephen Boyd | 2691cb4 | 2017-07-13 19:20:42 -0700 | [diff] [blame] | 515 | vbus-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>; |
Srinivas Kandagatla | dd8cdc9 | 2016-02-23 16:49:56 +0000 | [diff] [blame] | 516 | pinctrl-names = "default"; |
| 517 | pinctrl-0 = <&usb_id_default>; |
Srinivas Kandagatla | 0283687c | 2016-01-28 17:44:16 +0000 | [diff] [blame] | 518 | }; |
Archit Taneja | 28546b0 | 2016-06-23 19:43:30 +0530 | [diff] [blame] | 519 | |
| 520 | hdmi-out { |
| 521 | compatible = "hdmi-connector"; |
| 522 | type = "a"; |
| 523 | |
| 524 | port { |
| 525 | hdmi_con: endpoint { |
| 526 | remote-endpoint = <&adv7533_out>; |
| 527 | }; |
| 528 | }; |
| 529 | }; |
Ivan T. Ivanov | f953d99 | 2017-01-04 13:34:59 +0000 | [diff] [blame] | 530 | |
| 531 | gpio_keys { |
| 532 | compatible = "gpio-keys"; |
| 533 | #address-cells = <1>; |
| 534 | #size-cells = <0>; |
| 535 | autorepeat; |
| 536 | |
| 537 | pinctrl-names = "default"; |
| 538 | pinctrl-0 = <&msm_key_volp_n_default>; |
| 539 | |
| 540 | button@0 { |
| 541 | label = "Volume Up"; |
| 542 | linux,code = <KEY_VOLUMEUP>; |
| 543 | gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; |
| 544 | }; |
| 545 | }; |
Georgi Djakov | 5941c9b | 2015-10-01 12:59:31 +0300 | [diff] [blame] | 546 | }; |
Srinivas Kandagatla | 4c7d53d1 | 2016-01-28 17:44:01 +0000 | [diff] [blame] | 547 | |
Vinod Koul | caf0cae | 2018-09-10 15:18:48 +0530 | [diff] [blame] | 548 | &spmi_bus { |
| 549 | pm8916_0: pm8916@0 { |
| 550 | pon@800 { |
| 551 | resin { |
| 552 | compatible = "qcom,pm8941-resin"; |
| 553 | interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; |
| 554 | debounce = <15625>; |
| 555 | bias-pull-up; |
| 556 | linux,code = <KEY_VOLUMEDOWN>; |
| 557 | }; |
| 558 | }; |
| 559 | }; |
| 560 | }; |
| 561 | |
Srinivas Kandagatla | 5582fcb | 2016-10-20 15:20:49 +0100 | [diff] [blame] | 562 | &wcd_codec { |
| 563 | status = "okay"; |
| 564 | clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>; |
| 565 | clock-names = "mclk"; |
Srinivas Kandagatla | 64c4d0a | 2017-09-18 13:14:59 +0200 | [diff] [blame] | 566 | qcom,mbhc-vthreshold-low = <75 150 237 450 500>; |
| 567 | qcom,mbhc-vthreshold-high = <75 150 237 450 500>; |
Srinivas Kandagatla | 5582fcb | 2016-10-20 15:20:49 +0100 | [diff] [blame] | 568 | }; |
| 569 | |
Srinivas Kandagatla | 4c7d53d1 | 2016-01-28 17:44:01 +0000 | [diff] [blame] | 570 | &smd_rpm_regulators { |
| 571 | vdd_l1_l2_l3-supply = <&pm8916_s3>; |
| 572 | vdd_l5-supply = <&pm8916_s3>; |
| 573 | vdd_l4_l5_l6-supply = <&pm8916_s4>; |
| 574 | vdd_l7-supply = <&pm8916_s4>; |
| 575 | |
| 576 | s1 { |
| 577 | regulator-min-microvolt = <375000>; |
| 578 | regulator-max-microvolt = <1562000>; |
| 579 | }; |
| 580 | |
| 581 | s3 { |
| 582 | regulator-min-microvolt = <375000>; |
| 583 | regulator-max-microvolt = <1562000>; |
| 584 | }; |
| 585 | |
| 586 | s4 { |
| 587 | regulator-min-microvolt = <1800000>; |
| 588 | regulator-max-microvolt = <1800000>; |
| 589 | |
| 590 | regulator-always-on; |
| 591 | regulator-boot-on; |
| 592 | }; |
| 593 | |
| 594 | l1 { |
| 595 | regulator-min-microvolt = <375000>; |
| 596 | regulator-max-microvolt = <1525000>; |
| 597 | }; |
| 598 | |
| 599 | l2 { |
Archit Taneja | 5c99bfd | 2016-09-23 14:50:30 +0530 | [diff] [blame] | 600 | regulator-min-microvolt = <1200000>; |
| 601 | regulator-max-microvolt = <1200000>; |
Srinivas Kandagatla | 4c7d53d1 | 2016-01-28 17:44:01 +0000 | [diff] [blame] | 602 | }; |
| 603 | |
| 604 | l3 { |
| 605 | regulator-min-microvolt = <375000>; |
| 606 | regulator-max-microvolt = <1525000>; |
| 607 | }; |
| 608 | |
| 609 | l4 { |
| 610 | regulator-min-microvolt = <1750000>; |
| 611 | regulator-max-microvolt = <3337000>; |
| 612 | }; |
| 613 | |
| 614 | l5 { |
| 615 | regulator-min-microvolt = <1750000>; |
| 616 | regulator-max-microvolt = <3337000>; |
| 617 | }; |
| 618 | |
| 619 | l6 { |
Archit Taneja | 5c99bfd | 2016-09-23 14:50:30 +0530 | [diff] [blame] | 620 | regulator-min-microvolt = <1800000>; |
| 621 | regulator-max-microvolt = <1800000>; |
Srinivas Kandagatla | 4c7d53d1 | 2016-01-28 17:44:01 +0000 | [diff] [blame] | 622 | }; |
| 623 | |
| 624 | l7 { |
| 625 | regulator-min-microvolt = <1750000>; |
| 626 | regulator-max-microvolt = <3337000>; |
| 627 | }; |
| 628 | |
| 629 | l8 { |
| 630 | regulator-min-microvolt = <1750000>; |
| 631 | regulator-max-microvolt = <3337000>; |
| 632 | }; |
| 633 | |
| 634 | l9 { |
| 635 | regulator-min-microvolt = <1750000>; |
| 636 | regulator-max-microvolt = <3337000>; |
| 637 | }; |
| 638 | |
| 639 | l10 { |
| 640 | regulator-min-microvolt = <1750000>; |
| 641 | regulator-max-microvolt = <3337000>; |
| 642 | }; |
| 643 | |
| 644 | l11 { |
| 645 | regulator-min-microvolt = <1750000>; |
| 646 | regulator-max-microvolt = <3337000>; |
Loic Poulain | af61bef | 2018-12-14 12:01:02 +0100 | [diff] [blame] | 647 | regulator-allow-set-load; |
| 648 | regulator-system-load = <200000>; |
Srinivas Kandagatla | 4c7d53d1 | 2016-01-28 17:44:01 +0000 | [diff] [blame] | 649 | }; |
| 650 | |
| 651 | l12 { |
| 652 | regulator-min-microvolt = <1750000>; |
| 653 | regulator-max-microvolt = <3337000>; |
| 654 | }; |
| 655 | |
| 656 | l13 { |
| 657 | regulator-min-microvolt = <1750000>; |
| 658 | regulator-max-microvolt = <3337000>; |
| 659 | }; |
| 660 | |
| 661 | l14 { |
| 662 | regulator-min-microvolt = <1750000>; |
| 663 | regulator-max-microvolt = <3337000>; |
| 664 | }; |
| 665 | |
Srinivas Kandagatla | 828dd5d | 2016-01-28 17:44:09 +0000 | [diff] [blame] | 666 | /** |
| 667 | * 1.8v required on LS expansion |
| 668 | * for mezzanine boards |
| 669 | */ |
Srinivas Kandagatla | 4c7d53d1 | 2016-01-28 17:44:01 +0000 | [diff] [blame] | 670 | l15 { |
| 671 | regulator-min-microvolt = <1750000>; |
| 672 | regulator-max-microvolt = <3337000>; |
Srinivas Kandagatla | 828dd5d | 2016-01-28 17:44:09 +0000 | [diff] [blame] | 673 | regulator-always-on; |
Srinivas Kandagatla | 4c7d53d1 | 2016-01-28 17:44:01 +0000 | [diff] [blame] | 674 | }; |
| 675 | |
| 676 | l16 { |
| 677 | regulator-min-microvolt = <1750000>; |
| 678 | regulator-max-microvolt = <3337000>; |
| 679 | }; |
| 680 | |
| 681 | l17 { |
Archit Taneja | 5c99bfd | 2016-09-23 14:50:30 +0530 | [diff] [blame] | 682 | regulator-min-microvolt = <3300000>; |
| 683 | regulator-max-microvolt = <3300000>; |
Srinivas Kandagatla | 4c7d53d1 | 2016-01-28 17:44:01 +0000 | [diff] [blame] | 684 | }; |
| 685 | |
| 686 | l18 { |
| 687 | regulator-min-microvolt = <1750000>; |
| 688 | regulator-max-microvolt = <3337000>; |
| 689 | }; |
| 690 | }; |