Kumar Gala | f335b8a | 2014-04-03 14:48:22 -0500 | [diff] [blame] | 1 | #include "qcom-apq8064-v2.0.dtsi" |
Pramod Gurav | b4e10dd | 2014-10-21 11:23:19 +0530 | [diff] [blame] | 2 | #include <dt-bindings/gpio/gpio.h> |
Srinivas Kandagatla | 03f00be | 2015-09-18 13:31:59 +0100 | [diff] [blame] | 3 | #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
Kumar Gala | f335b8a | 2014-04-03 14:48:22 -0500 | [diff] [blame] | 4 | |
| 5 | / { |
| 6 | model = "Qualcomm APQ8064/IFC6410"; |
| 7 | compatible = "qcom,apq8064-ifc6410", "qcom,apq8064"; |
| 8 | |
Pramod Gurav | d5d4654 | 2015-04-10 21:44:31 +0100 | [diff] [blame] | 9 | aliases { |
| 10 | serial0 = &gsbi7_serial; |
Pramod Gurav | 86e252a | 2015-07-27 14:52:10 +0100 | [diff] [blame] | 11 | serial1 = &gsbi6_serial; |
Pramod Gurav | d5d4654 | 2015-04-10 21:44:31 +0100 | [diff] [blame] | 12 | }; |
| 13 | |
Stephen Boyd | 7f9e28b | 2015-06-16 14:31:46 -0700 | [diff] [blame] | 14 | chosen { |
| 15 | stdout-path = "serial0:115200n8"; |
| 16 | }; |
| 17 | |
Srinivas Kandagatla | 03f00be | 2015-09-18 13:31:59 +0100 | [diff] [blame] | 18 | pwrseq { |
| 19 | compatible = "simple-bus"; |
| 20 | |
| 21 | sdcc4_pwrseq: sdcc4_pwrseq { |
| 22 | pinctrl-names = "default"; |
| 23 | pinctrl-0 = <&wlan_default_gpios>; |
| 24 | compatible = "mmc-pwrseq-simple"; |
| 25 | reset-gpios = <&pm8921_gpio 43 GPIO_ACTIVE_LOW>; |
| 26 | }; |
| 27 | }; |
| 28 | |
Srinivas Kandagatla | 2630a52 | 2015-09-18 13:32:11 +0100 | [diff] [blame] | 29 | leds { |
| 30 | compatible = "gpio-leds"; |
| 31 | pinctrl-names = "default"; |
| 32 | pinctrl-0 = <¬ify_led>; |
| 33 | |
| 34 | led@1 { |
| 35 | label = "apq8064:green:user1"; |
| 36 | gpios = <&pm8921_gpio 18 GPIO_ACTIVE_HIGH>; |
| 37 | default-state = "on"; |
| 38 | }; |
| 39 | }; |
| 40 | |
Kumar Gala | f335b8a | 2014-04-03 14:48:22 -0500 | [diff] [blame] | 41 | soc { |
kiran.padwal@smartplayin.com | 8c3166f | 2014-09-17 16:00:25 +0530 | [diff] [blame] | 42 | pinctrl@800000 { |
Pramod Gurav | b4e10dd | 2014-10-21 11:23:19 +0530 | [diff] [blame] | 43 | card_detect: card_detect { |
| 44 | mux { |
| 45 | pins = "gpio26"; |
| 46 | function = "gpio"; |
| 47 | bias-disable; |
| 48 | }; |
| 49 | }; |
Stanimir Varbanov | 668f472 | 2016-01-05 15:38:25 -0600 | [diff] [blame] | 50 | |
| 51 | pcie_pins: pcie_pinmux { |
| 52 | mux { |
| 53 | pins = "gpio27"; |
| 54 | function = "gpio"; |
| 55 | }; |
| 56 | conf { |
| 57 | pins = "gpio27"; |
| 58 | drive-strength = <12>; |
| 59 | bias-disable; |
| 60 | }; |
| 61 | }; |
kiran.padwal@smartplayin.com | 8c3166f | 2014-09-17 16:00:25 +0530 | [diff] [blame] | 62 | }; |
| 63 | |
Srinivas Kandagatla | ad56045 | 2015-04-10 21:43:14 +0100 | [diff] [blame] | 64 | rpm@108000 { |
| 65 | regulators { |
| 66 | vin_lvs1_3_6-supply = <&pm8921_s4>; |
| 67 | vin_lvs2-supply = <&pm8921_s1>; |
| 68 | vin_lvs4_5_7-supply = <&pm8921_s4>; |
| 69 | |
| 70 | vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; |
| 71 | vdd_l24-supply = <&pm8921_s1>; |
| 72 | vdd_l25-supply = <&pm8921_s1>; |
| 73 | vdd_l26-supply = <&pm8921_s7>; |
| 74 | vdd_l27-supply = <&pm8921_s7>; |
| 75 | vdd_l28-supply = <&pm8921_s7>; |
| 76 | |
| 77 | |
| 78 | /* Buck SMPS */ |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 79 | s1 { |
Srinivas Kandagatla | ad56045 | 2015-04-10 21:43:14 +0100 | [diff] [blame] | 80 | regulator-always-on; |
| 81 | regulator-min-microvolt = <1225000>; |
| 82 | regulator-max-microvolt = <1225000>; |
| 83 | qcom,switch-mode-frequency = <3200000>; |
| 84 | bias-pull-down; |
| 85 | }; |
| 86 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 87 | s3 { |
Srinivas Kandagatla | ad56045 | 2015-04-10 21:43:14 +0100 | [diff] [blame] | 88 | regulator-min-microvolt = <1000000>; |
| 89 | regulator-max-microvolt = <1400000>; |
| 90 | qcom,switch-mode-frequency = <4800000>; |
| 91 | }; |
| 92 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 93 | s4 { |
Srinivas Kandagatla | ad56045 | 2015-04-10 21:43:14 +0100 | [diff] [blame] | 94 | regulator-min-microvolt = <1800000>; |
| 95 | regulator-max-microvolt = <1800000>; |
| 96 | qcom,switch-mode-frequency = <3200000>; |
| 97 | }; |
| 98 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 99 | s7 { |
Srinivas Kandagatla | ad56045 | 2015-04-10 21:43:14 +0100 | [diff] [blame] | 100 | regulator-min-microvolt = <1300000>; |
| 101 | regulator-max-microvolt = <1300000>; |
| 102 | qcom,switch-mode-frequency = <3200000>; |
| 103 | }; |
| 104 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 105 | l3 { |
Srinivas Kandagatla | ad56045 | 2015-04-10 21:43:14 +0100 | [diff] [blame] | 106 | regulator-min-microvolt = <3050000>; |
| 107 | regulator-max-microvolt = <3300000>; |
| 108 | bias-pull-down; |
| 109 | }; |
| 110 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 111 | l4 { |
Srinivas Kandagatla | ad56045 | 2015-04-10 21:43:14 +0100 | [diff] [blame] | 112 | regulator-min-microvolt = <1000000>; |
| 113 | regulator-max-microvolt = <1800000>; |
| 114 | bias-pull-down; |
| 115 | }; |
| 116 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 117 | l5 { |
Srinivas Kandagatla | 2736bba | 2015-07-28 09:12:58 +0100 | [diff] [blame] | 118 | regulator-min-microvolt = <2750000>; |
| 119 | regulator-max-microvolt = <3000000>; |
| 120 | bias-pull-down; |
| 121 | }; |
| 122 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 123 | l6 { |
Srinivas Kandagatla | ad56045 | 2015-04-10 21:43:14 +0100 | [diff] [blame] | 124 | regulator-min-microvolt = <2950000>; |
| 125 | regulator-max-microvolt = <2950000>; |
| 126 | bias-pull-down; |
| 127 | }; |
| 128 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 129 | l23 { |
Srinivas Kandagatla | ad56045 | 2015-04-10 21:43:14 +0100 | [diff] [blame] | 130 | regulator-min-microvolt = <1700000>; |
| 131 | regulator-max-microvolt = <1900000>; |
| 132 | bias-pull-down; |
| 133 | }; |
Srinivas Kandagatla | 2736bba | 2015-07-28 09:12:58 +0100 | [diff] [blame] | 134 | |
Bjorn Andersson | 2bce6e2 | 2015-10-22 11:13:49 -0700 | [diff] [blame] | 135 | lvs1 { |
Srinivas Kandagatla | 2736bba | 2015-07-28 09:12:58 +0100 | [diff] [blame] | 136 | bias-pull-down; |
| 137 | }; |
Stanimir Varbanov | 668f472 | 2016-01-05 15:38:25 -0600 | [diff] [blame] | 138 | |
| 139 | lvs6 { |
| 140 | bias-pull-down; |
| 141 | }; |
Srinivas Kandagatla | ad56045 | 2015-04-10 21:43:14 +0100 | [diff] [blame] | 142 | }; |
| 143 | }; |
| 144 | |
Srinivas Kandagatla | 2736bba | 2015-07-28 09:12:58 +0100 | [diff] [blame] | 145 | ext_3p3v: regulator-fixed@1 { |
| 146 | compatible = "regulator-fixed"; |
| 147 | regulator-min-microvolt = <3300000>; |
| 148 | regulator-max-microvolt = <3300000>; |
| 149 | regulator-name = "ext_3p3v"; |
| 150 | regulator-type = "voltage"; |
| 151 | startup-delay-us = <0>; |
| 152 | gpio = <&tlmm_pinmux 77 GPIO_ACTIVE_HIGH>; |
| 153 | enable-active-high; |
| 154 | regulator-boot-on; |
| 155 | }; |
| 156 | |
Srinivas Kandagatla | 3f62b46 | 2015-04-10 21:44:48 +0100 | [diff] [blame] | 157 | gsbi3: gsbi@16200000 { |
| 158 | status = "okay"; |
| 159 | qcom,mode = <GSBI_PROT_I2C>; |
| 160 | i2c3: i2c@16280000 { |
| 161 | status = "okay"; |
Srinivas Kandagatla | 3f62b46 | 2015-04-10 21:44:48 +0100 | [diff] [blame] | 162 | }; |
| 163 | }; |
| 164 | |
kiran.padwal@smartplayin.com | 8c3166f | 2014-09-17 16:00:25 +0530 | [diff] [blame] | 165 | gsbi@12440000 { |
| 166 | status = "okay"; |
| 167 | qcom,mode = <GSBI_PROT_I2C>; |
| 168 | |
| 169 | i2c@12460000 { |
| 170 | status = "okay"; |
| 171 | clock-frequency = <200000>; |
kiran.padwal@smartplayin.com | 8c3166f | 2014-09-17 16:00:25 +0530 | [diff] [blame] | 172 | |
Srinivas Kandagatla | e28ce3cc | 2015-09-18 13:30:38 +0100 | [diff] [blame] | 173 | eeprom@52 { |
kiran.padwal@smartplayin.com | 8c3166f | 2014-09-17 16:00:25 +0530 | [diff] [blame] | 174 | compatible = "atmel,24c128"; |
| 175 | reg = <0x52>; |
| 176 | pagesize = <32>; |
| 177 | }; |
| 178 | }; |
| 179 | }; |
| 180 | |
Pramod Gurav | 86e252a | 2015-07-27 14:52:10 +0100 | [diff] [blame] | 181 | gsbi@16500000 { |
| 182 | status = "ok"; |
Ivan T. Ivanov | 426ac15 | 2015-12-11 18:29:58 +0000 | [diff] [blame] | 183 | qcom,mode = <GSBI_PROT_UART_W_FC>; |
Pramod Gurav | 86e252a | 2015-07-27 14:52:10 +0100 | [diff] [blame] | 184 | |
| 185 | serial@16540000 { |
| 186 | status = "ok"; |
Pramod Gurav | 86e252a | 2015-07-27 14:52:10 +0100 | [diff] [blame] | 187 | pinctrl-names = "default"; |
Srinivas Kandagatla | 7648c7b | 2015-09-18 13:31:34 +0100 | [diff] [blame] | 188 | pinctrl-0 = <&gsbi6_uart_4pins>; |
Pramod Gurav | 86e252a | 2015-07-27 14:52:10 +0100 | [diff] [blame] | 189 | }; |
| 190 | }; |
| 191 | |
Kumar Gala | f335b8a | 2014-04-03 14:48:22 -0500 | [diff] [blame] | 192 | gsbi@16600000 { |
| 193 | status = "ok"; |
| 194 | qcom,mode = <GSBI_PROT_I2C_UART>; |
| 195 | serial@16640000 { |
| 196 | status = "ok"; |
Srinivas Kandagatla | 17dbc55 | 2015-09-18 13:31:47 +0100 | [diff] [blame] | 197 | pinctrl-names = "default"; |
| 198 | pinctrl-0 = <&gsbi7_uart_2pins>; |
Kumar Gala | f335b8a | 2014-04-03 14:48:22 -0500 | [diff] [blame] | 199 | }; |
| 200 | }; |
Srinivas Kandagatla | 045644f | 2014-04-29 08:33:52 +0100 | [diff] [blame] | 201 | |
Srinivas Kandagatla | e629335 | 2015-04-10 21:43:56 +0100 | [diff] [blame] | 202 | sata_phy0: phy@1b400000 { |
| 203 | status = "okay"; |
| 204 | }; |
| 205 | |
| 206 | sata0: sata@29000000 { |
| 207 | status = "okay"; |
| 208 | target-supply = <&pm8921_s4>; |
| 209 | }; |
| 210 | |
Srinivas Kandagatla | ea98661 | 2015-04-10 21:43:42 +0100 | [diff] [blame] | 211 | /* OTG */ |
| 212 | usb1_phy: phy@12500000 { |
| 213 | status = "okay"; |
| 214 | vddcx-supply = <&pm8921_s3>; |
| 215 | v3p3-supply = <&pm8921_l3>; |
| 216 | v1p8-supply = <&pm8921_l4>; |
| 217 | }; |
| 218 | |
Srinivas Kandagatla | 223280b | 2015-04-10 21:43:30 +0100 | [diff] [blame] | 219 | usb3_phy: phy@12520000 { |
| 220 | status = "okay"; |
| 221 | vddcx-supply = <&pm8921_s3>; |
| 222 | v3p3-supply = <&pm8921_l3>; |
| 223 | v1p8-supply = <&pm8921_l23>; |
| 224 | }; |
| 225 | |
| 226 | usb4_phy: phy@12530000 { |
| 227 | status = "okay"; |
| 228 | vddcx-supply = <&pm8921_s3>; |
| 229 | v3p3-supply = <&pm8921_l3>; |
| 230 | v1p8-supply = <&pm8921_l23>; |
| 231 | }; |
| 232 | |
Srinivas Kandagatla | ea98661 | 2015-04-10 21:43:42 +0100 | [diff] [blame] | 233 | gadget1: gadget@12500000 { |
| 234 | status = "okay"; |
| 235 | }; |
| 236 | |
| 237 | /* OTG */ |
| 238 | usb1: usb@12500000 { |
| 239 | status = "okay"; |
| 240 | }; |
| 241 | |
Srinivas Kandagatla | 223280b | 2015-04-10 21:43:30 +0100 | [diff] [blame] | 242 | usb3: usb@12520000 { |
| 243 | status = "okay"; |
| 244 | }; |
| 245 | |
| 246 | usb4: usb@12530000 { |
| 247 | status = "okay"; |
| 248 | }; |
| 249 | |
Stanimir Varbanov | 668f472 | 2016-01-05 15:38:25 -0600 | [diff] [blame] | 250 | pci@1b500000 { |
| 251 | status = "ok"; |
| 252 | vdda-supply = <&pm8921_s3>; |
| 253 | vdda_phy-supply = <&pm8921_lvs6>; |
| 254 | vdda_refclk-supply = <&ext_3p3v>; |
| 255 | pinctrl-0 = <&pcie_pins>; |
| 256 | pinctrl-names = "default"; |
| 257 | perst-gpio = <&tlmm_pinmux 27 GPIO_ACTIVE_LOW>; |
| 258 | }; |
| 259 | |
Srinivas Kandagatla | 03f00be | 2015-09-18 13:31:59 +0100 | [diff] [blame] | 260 | qcom,ssbi@500000 { |
| 261 | pmic@0 { |
| 262 | gpio@150 { |
| 263 | wlan_default_gpios: wlan-gpios { |
| 264 | pios { |
| 265 | pins = "gpio43"; |
| 266 | function = "normal"; |
| 267 | bias-disable; |
| 268 | power-source = <PM8921_GPIO_S4>; |
| 269 | }; |
| 270 | }; |
Srinivas Kandagatla | 2630a52 | 2015-09-18 13:32:11 +0100 | [diff] [blame] | 271 | |
| 272 | notify_led: nled { |
| 273 | pios { |
| 274 | pins = "gpio18"; |
| 275 | function = "normal"; |
| 276 | bias-disable; |
| 277 | power-source = <PM8921_GPIO_S4>; |
| 278 | }; |
| 279 | }; |
Srinivas Kandagatla | 03f00be | 2015-09-18 13:31:59 +0100 | [diff] [blame] | 280 | }; |
| 281 | }; |
| 282 | }; |
| 283 | |
Srinivas Kandagatla | 045644f | 2014-04-29 08:33:52 +0100 | [diff] [blame] | 284 | amba { |
| 285 | /* eMMC */ |
| 286 | sdcc1: sdcc@12400000 { |
| 287 | status = "okay"; |
Srinivas Kandagatla | 2736bba | 2015-07-28 09:12:58 +0100 | [diff] [blame] | 288 | vmmc-supply = <&pm8921_l5>; |
| 289 | vqmmc-supply = <&pm8921_s4>; |
Srinivas Kandagatla | 045644f | 2014-04-29 08:33:52 +0100 | [diff] [blame] | 290 | }; |
| 291 | |
| 292 | /* External micro SD card */ |
| 293 | sdcc3: sdcc@12180000 { |
| 294 | status = "okay"; |
Srinivas Kandagatla | 2736bba | 2015-07-28 09:12:58 +0100 | [diff] [blame] | 295 | vmmc-supply = <&pm8921_l6>; |
Pramod Gurav | b4e10dd | 2014-10-21 11:23:19 +0530 | [diff] [blame] | 296 | pinctrl-names = "default"; |
| 297 | pinctrl-0 = <&card_detect>; |
| 298 | cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>; |
Srinivas Kandagatla | 045644f | 2014-04-29 08:33:52 +0100 | [diff] [blame] | 299 | }; |
Srinivas Kandagatla | 0be5fef | 2014-09-17 06:39:35 +0100 | [diff] [blame] | 300 | /* WLAN */ |
| 301 | sdcc4: sdcc@121c0000 { |
| 302 | status = "okay"; |
Srinivas Kandagatla | 2736bba | 2015-07-28 09:12:58 +0100 | [diff] [blame] | 303 | vmmc-supply = <&ext_3p3v>; |
| 304 | vqmmc-supply = <&pm8921_lvs1>; |
Srinivas Kandagatla | 03f00be | 2015-09-18 13:31:59 +0100 | [diff] [blame] | 305 | mmc-pwrseq = <&sdcc4_pwrseq>; |
Srinivas Kandagatla | 0be5fef | 2014-09-17 06:39:35 +0100 | [diff] [blame] | 306 | }; |
Srinivas Kandagatla | 045644f | 2014-04-29 08:33:52 +0100 | [diff] [blame] | 307 | }; |
Kumar Gala | f335b8a | 2014-04-03 14:48:22 -0500 | [diff] [blame] | 308 | }; |
| 309 | }; |