| .. | .. |
|---|
| 102 | 102 | wifi_pwrseq: wifi_pwrseq { |
|---|
| 103 | 103 | compatible = "mmc-pwrseq-simple"; |
|---|
| 104 | 104 | reset-gpios = <&pio 6 10 GPIO_ACTIVE_LOW>; /* PG10 WIFI_EN */ |
|---|
| 105 | + clocks = <&ccu CLK_OUTA>; |
|---|
| 106 | + clock-names = "ext_clock"; |
|---|
| 105 | 107 | }; |
|---|
| 108 | +}; |
|---|
| 109 | + |
|---|
| 110 | +&ahci { |
|---|
| 111 | + ahci-supply = <®_dldo4>; |
|---|
| 112 | + phy-supply = <®_eldo3>; |
|---|
| 113 | + status = "okay"; |
|---|
| 106 | 114 | }; |
|---|
| 107 | 115 | |
|---|
| 108 | 116 | &de { |
|---|
| .. | .. |
|---|
| 156 | 164 | |
|---|
| 157 | 165 | #include "axp22x.dtsi" |
|---|
| 158 | 166 | |
|---|
| 167 | +&ir0 { |
|---|
| 168 | + status = "okay"; |
|---|
| 169 | +}; |
|---|
| 170 | + |
|---|
| 159 | 171 | &mmc0 { |
|---|
| 160 | 172 | vmmc-supply = <®_dcdc1>; |
|---|
| 161 | 173 | bus-width = <4>; |
|---|
| 162 | | - cd-gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>; /* PH13 */ |
|---|
| 163 | | - cd-inverted; |
|---|
| 174 | + cd-gpios = <&pio 7 13 GPIO_ACTIVE_LOW>; /* PH13 */ |
|---|
| 164 | 175 | status = "okay"; |
|---|
| 165 | 176 | }; |
|---|
| 166 | 177 | |
|---|
| .. | .. |
|---|
| 191 | 202 | status = "okay"; |
|---|
| 192 | 203 | }; |
|---|
| 193 | 204 | |
|---|
| 205 | +&pio { |
|---|
| 206 | + pinctrl-names = "default"; |
|---|
| 207 | + pinctrl-0 = <&clk_out_a_pin>; |
|---|
| 208 | + vcc-pa-supply = <®_aldo2>; |
|---|
| 209 | + vcc-pc-supply = <®_dcdc1>; |
|---|
| 210 | + vcc-pd-supply = <®_dcdc1>; |
|---|
| 211 | + vcc-pe-supply = <®_eldo1>; |
|---|
| 212 | + vcc-pf-supply = <®_dcdc1>; |
|---|
| 213 | + vcc-pg-supply = <®_dldo1>; |
|---|
| 214 | +}; |
|---|
| 215 | + |
|---|
| 194 | 216 | ®_aldo2 { |
|---|
| 195 | | - regulator-always-on; |
|---|
| 196 | 217 | regulator-min-microvolt = <2500000>; |
|---|
| 197 | 218 | regulator-max-microvolt = <2500000>; |
|---|
| 198 | 219 | regulator-name = "vcc-pa"; |
|---|
| .. | .. |
|---|
| 245 | 266 | regulator-name = "vcc-wifi-io"; |
|---|
| 246 | 267 | }; |
|---|
| 247 | 268 | |
|---|
| 269 | +/* |
|---|
| 270 | + * Our WiFi chip needs both DLDO2 and DLDO3 to be powered at the same |
|---|
| 271 | + * time, with the two being in sync, to be able to meet maximum power |
|---|
| 272 | + * consumption during transmits. Since this is not really supported |
|---|
| 273 | + * right now, just use the two as always on, and we will fix it later. |
|---|
| 274 | + */ |
|---|
| 275 | + |
|---|
| 248 | 276 | ®_dldo2 { |
|---|
| 277 | + regulator-always-on; |
|---|
| 249 | 278 | regulator-min-microvolt = <3300000>; |
|---|
| 250 | 279 | regulator-max-microvolt = <3300000>; |
|---|
| 251 | 280 | regulator-name = "vcc-wifi"; |
|---|
| 281 | +}; |
|---|
| 282 | + |
|---|
| 283 | +®_dldo3 { |
|---|
| 284 | + regulator-always-on; |
|---|
| 285 | + regulator-min-microvolt = <3300000>; |
|---|
| 286 | + regulator-max-microvolt = <3300000>; |
|---|
| 287 | + regulator-name = "vcc-wifi-2"; |
|---|
| 288 | +}; |
|---|
| 289 | + |
|---|
| 290 | +®_dldo4 { |
|---|
| 291 | + regulator-min-microvolt = <2500000>; |
|---|
| 292 | + regulator-max-microvolt = <2500000>; |
|---|
| 293 | + regulator-name = "vdd2v5-sata"; |
|---|
| 294 | +}; |
|---|
| 295 | + |
|---|
| 296 | +®_eldo3 { |
|---|
| 297 | + regulator-min-microvolt = <1200000>; |
|---|
| 298 | + regulator-max-microvolt = <1200000>; |
|---|
| 299 | + regulator-name = "vdd1v2-sata"; |
|---|
| 252 | 300 | }; |
|---|
| 253 | 301 | |
|---|
| 254 | 302 | &tcon_tv0 { |
|---|
| .. | .. |
|---|
| 261 | 309 | status = "okay"; |
|---|
| 262 | 310 | }; |
|---|
| 263 | 311 | |
|---|
| 312 | +&uart3 { |
|---|
| 313 | + pinctrl-names = "default"; |
|---|
| 314 | + pinctrl-0 = <&uart3_pg_pins>, <&uart3_rts_cts_pg_pins>; |
|---|
| 315 | + uart-has-rtscts; |
|---|
| 316 | + status = "okay"; |
|---|
| 317 | + |
|---|
| 318 | + bluetooth { |
|---|
| 319 | + compatible = "brcm,bcm43438-bt"; |
|---|
| 320 | + clocks = <&ccu CLK_OUTA>; |
|---|
| 321 | + clock-names = "lpo"; |
|---|
| 322 | + vbat-supply = <®_dldo2>; |
|---|
| 323 | + vddio-supply = <®_dldo1>; |
|---|
| 324 | + device-wakeup-gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */ |
|---|
| 325 | + /* TODO host wake line connected to PMIC GPIO pins */ |
|---|
| 326 | + shutdown-gpios = <&pio 7 12 GPIO_ACTIVE_HIGH>; /* PH12 */ |
|---|
| 327 | + max-speed = <1500000>; |
|---|
| 328 | + }; |
|---|
| 329 | +}; |
|---|
| 330 | + |
|---|
| 264 | 331 | &usbphy { |
|---|
| 265 | 332 | usb1_vbus-supply = <®_vcc5v0>; |
|---|
| 266 | 333 | usb2_vbus-supply = <®_vcc5v0>; |
|---|