mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / arch / arm / boot / dts / am335x-boneblue.dts
blobcdc1b2be792f3665d8d17bec7c5b52617ef85a52
1 /*
2  * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
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 as
6  * published by the Free Software Foundation.
7  */
8 /dts-v1/;
10 #include "am33xx.dtsi"
11 #include <dt-bindings/interrupt-controller/irq.h>
13 / {
14         model = "TI AM335x BeagleBone Blue";
15         compatible = "ti,am335x-bone-blue", "ti,am33xx";
17         cpus {
18                 cpu@0 {
19                         cpu0-supply = <&dcdc2_reg>;
20                 };
21         };
23         memory@80000000 {
24                 device_type = "memory";
25                 reg = <0x80000000 0x20000000>; /* 512 MB */
26         };
28         chosen {
29                 stdout-path = &uart0;
30         };
32         leds {
33                 pinctrl-names = "default";
34                 pinctrl-0 = <&user_leds_s0>;
36                 compatible = "gpio-leds";
38                 usr_0_led {
39                         label = "beaglebone:green:usr0";
40                         gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
41                         linux,default-trigger = "heartbeat";
42                         default-state = "off";
43                 };
45                 usr_1_led {
46                         label = "beaglebone:green:usr1";
47                         gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
48                         linux,default-trigger = "mmc0";
49                         default-state = "off";
50                 };
52                 usr_2_led {
53                         label = "beaglebone:green:usr2";
54                         gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
55                         linux,default-trigger = "cpu0";
56                         default-state = "off";
57                 };
59                 usr_3_led {
60                         label = "beaglebone:green:usr3";
61                         gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
62                         linux,default-trigger = "mmc1";
63                         default-state = "off";
64                 };
66                 wifi_led {
67                         label = "wifi";
68                         gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
69                         default-state = "off";
70                         linux,default-trigger = "phy0assoc";
71                 };
73                 red_led {
74                         label = "red";
75                         gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
76                         default-state = "off";
77                 };
79                 green_led {
80                         label = "green";
81                         gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
82                         default-state = "off";
83                 };
85                 batt_1_led {
86                         label = "bat25";
87                         gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
88                         default-state = "off";
89                 };
91                 batt_2_led {
92                         label = "bat50";
93                         gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
94                         default-state = "off";
95                 };
97                 batt_3_led {
98                         label = "bat75";
99                         gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>;
100                         default-state = "off";
101                 };
103                 batt_4_led {
104                         label = "bat100";
105                         gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
106                         default-state = "off";
107                 };
108         };
110         vmmcsd_fixed: fixedregulator0 {
111                 compatible = "regulator-fixed";
112                 regulator-name = "vmmcsd_fixed";
113                 regulator-min-microvolt = <3300000>;
114                 regulator-max-microvolt = <3300000>;
115         };
117         wlan_en_reg: fixedregulator@2 {
118                 compatible = "regulator-fixed";
119                 regulator-name = "wlan-en-regulator";
120                 regulator-min-microvolt = <1800000>;
121                 regulator-max-microvolt = <1800000>;
122                 startup-delay-us= <70000>;
124                 /* WL_EN */
125                 gpio = <&gpio3 9 0>;
126                 enable-active-high;
127         };
130 &am33xx_pinmux {
131         user_leds_s0: user_leds_s0 {
132                 pinctrl-single,pins = <
133                         AM33XX_IOPAD(0x854, PIN_OUTPUT | MUX_MODE7) /* (V15) gpmc_a5.gpio1[21] - USR_LED_0 */
134                         AM33XX_IOPAD(0x858, PIN_OUTPUT | MUX_MODE7) /* (U15) gpmc_a6.gpio1[22] - USR_LED_1 */
135                         AM33XX_IOPAD(0x85c, PIN_OUTPUT | MUX_MODE7) /* (T15) gpmc_a7.gpio1[23] - USR_LED_2 */
136                         AM33XX_IOPAD(0x860, PIN_OUTPUT | MUX_MODE7) /* (V16) gpmc_a8.gpio1[24] - USR_LED_3 */
137                         AM33XX_IOPAD(0x9b0, PIN_OUTPUT | MUX_MODE7) /* (A15) xdma_event_intr0.gpio0[19] - WIFI_LED */
138                         AM33XX_IOPAD(0x890, PIN_OUTPUT | MUX_MODE7) /* (R7) gpmc_advn_ale.gpio2[2] - P8.7, LED_RED, GP1_PIN_5 */
139                         AM33XX_IOPAD(0x894, PIN_OUTPUT | MUX_MODE7) /* (T7) gpmc_oen_ren.gpio2[3] - P8.8, LED_GREEN, GP1_PIN_6 */
140                         AM33XX_IOPAD(0x82c, PIN_OUTPUT | MUX_MODE7) /* (U12) gpmc_ad11.gpio0[27] - P8.17, BATT_LED_1 */
141                         AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE7) /* (T5) lcd_data15.gpio0[11] - P8.32, BATT_LED_2 */
142                         AM33XX_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE7) /* (V6) gpmc_csn0.gpio1[29] - P8.26, BATT_LED_3 */
143                         AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE7) /* (T11) gpmc_ad10.gpio0[26] - P8.14, BATT_LED_4 */
145                 >;
146         };
148         i2c0_pins: pinmux_i2c0_pins {
149                 pinctrl-single,pins = <
150                         AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0)       /* (C17) I2C0_SDA.I2C0_SDA */
151                         AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0)       /* (C16) I2C0_SCL.I2C0_SCL */
152                 >;
153         };
155         i2c2_pins: pinmux_i2c2_pins {
156                 pinctrl-single,pins = <
157                         AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE3)       /* (D18) uart1_ctsn.I2C2_SDA */
158                         AM33XX_IOPAD(0x97c, PIN_INPUT_PULLUP | MUX_MODE3)       /* (D17) uart1_rtsn.I2C2_SCL */
159                 >;
160         };
162         uart0_pins: pinmux_uart0_pins {
163                 pinctrl-single,pins = <
164                         AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0)       /* (E15) uart0_rxd.uart0_rxd */
165                         AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)    /* (E16) uart0_txd.uart0_txd */
166                 >;
167         };
169         mmc1_pins: pinmux_mmc1_pins {
170                 pinctrl-single,pins = <
171                         AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7)              /* (C15) spi0_cs1.gpio0[6] */
172                 >;
173         };
175         mmc2_pins: pinmux_mmc2_pins {
176                 pinctrl-single,pins = <
177                         AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2)       /* (U9) gpmc_csn1.mmc1_clk */
178                         AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2)       /* (V9) gpmc_csn2.mmc1_cmd */
179                         AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1)       /* (U7) gpmc_ad0.mmc1_dat0 */
180                         AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1)       /* (V7) gpmc_ad1.mmc1_dat1 */
181                         AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1)       /* (R8) gpmc_ad2.mmc1_dat2 */
182                         AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1)       /* (T8) gpmc_ad3.mmc1_dat3 */
183                         AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1)       /* (U8) gpmc_ad4.mmc1_dat4 */
184                         AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1)       /* (V8) gpmc_ad5.mmc1_dat5 */
185                         AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1)       /* (R9) gpmc_ad6.mmc1_dat6 */
186                         AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1)       /* (T9) gpmc_ad7.mmc1_dat7 */
187                 >;
188         };
190         mmc3_pins: pinmux_mmc3_pins {
191                 pinctrl-single,pins = <
192                         AM33XX_IOPAD(0x93c, PIN_INPUT_PULLUP | MUX_MODE6)       /* (L15) gmii1_rxd1.mmc2_clk */
193                         AM33XX_IOPAD(0x914, PIN_INPUT_PULLUP | MUX_MODE6)       /* (J16) gmii1_txen.mmc2_cmd */
194                         AM33XX_IOPAD(0x918, PIN_INPUT_PULLUP | MUX_MODE5)       /* (J17) gmii1_rxdv.mmc2_dat0 */
195                         AM33XX_IOPAD(0x91c, PIN_INPUT_PULLUP | MUX_MODE5)       /* (J18) gmii1_txd3.mmc2_dat1 */
196                         AM33XX_IOPAD(0x920, PIN_INPUT_PULLUP | MUX_MODE5)       /* (K15) gmii1_txd2.mmc2_dat2 */
197                         AM33XX_IOPAD(0x908, PIN_INPUT_PULLUP | MUX_MODE5)       /* (H16) gmii1_col.mmc2_dat3 */
198                 >;
199         };
201         bt_pins: pinmux_bt_pins {
202                 pinctrl-single,pins = <
203                         AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLUP | MUX_MODE7)      /* (K17) gmii1_txd0.gpio0[28] - BT_EN */
204                 >;
205         };
207         uart3_pins: pinmux_uart3_pins {
208                 pinctrl-single,pins = <
209                         AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE1)       /* (L17) gmii1_rxd3.uart3_rxd */
210                         AM33XX_IOPAD(0x938, PIN_OUTPUT_PULLDOWN | MUX_MODE1)    /* (L16) gmii1_rxd2.uart3_txd */
211                         AM33XX_IOPAD(0x948, PIN_INPUT | MUX_MODE3)              /* (M17) mdio_data.uart3_ctsn */
212                         AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLDOWN | MUX_MODE3)    /* (M18) mdio_clk.uart3_rtsn */
213                 >;
214         };
216         wl18xx_pins: pinmux_wl18xx_pins {
217                 pinctrl-single,pins = <
218                         AM33XX_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE7)    /* (K18) gmii1_txclk.gpio3[9] - WL_EN */
219                         AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE7)     /* (H18) rmii1_refclk.gpio0[29] - WL_IRQ */
220                         AM33XX_IOPAD(0x930, PIN_OUTPUT_PULLUP | MUX_MODE7)      /* (L18) gmii1_rxclk.gpio3[10] - LS_BUF_EN */
221                 >;
222         };
225 &uart0 {
226         pinctrl-names = "default";
227         pinctrl-0 = <&uart0_pins>;
229         status = "okay";
232 &usb {
233         status = "okay";
236 &usb_ctrl_mod {
237         status = "okay";
240 &usb0_phy {
241         status = "okay";
244 &usb1_phy {
245         status = "okay";
248 &usb0 {
249         status = "okay";
250         dr_mode = "peripheral";
251         interrupts-extended = <&intc 18 &tps 0>;
252         interrupt-names = "mc", "vbus";
255 &usb1 {
256         status = "okay";
257         dr_mode = "host";
260 &cppi41dma  {
261         status = "okay";
264 &i2c0 {
265         pinctrl-names = "default";
266         pinctrl-0 = <&i2c0_pins>;
268         status = "okay";
269         clock-frequency = <400000>;
271         tps: tps@24 {
272                 reg = <0x24>;
273         };
275         baseboard_eeprom: baseboard_eeprom@50 {
276                 compatible = "at,24c256";
277                 reg = <0x50>;
279                 #address-cells = <1>;
280                 #size-cells = <1>;
281                 baseboard_data: baseboard_data@0 {
282                         reg = <0 0x100>;
283                 };
284         };
287 &i2c2 {
288         pinctrl-names = "default";
289         pinctrl-0 = <&i2c2_pins>;
291         status = "okay";
292         clock-frequency = <400000>;
294         mpu9250@68 {
295                 compatible = "invensense,mpu9250";
296                 reg = <0x68>;
297                 interrupt-parent = <&gpio3>;
298                 interrupts = <21 GPIO_ACTIVE_LOW>;
299                 i2c-gate {
300                         #address-cells = <1>;
301                         #size-cells = <0>;
302                         ax8975@c {
303                                 compatible = "ak,ak8975";
304                                 reg = <0x0c>;
305                         };
306                 };
307         };
309         pressure@76 {
310                 compatible = "bosch,bmp280";
311                 reg = <0x76>;
312         };
315 /include/ "tps65217.dtsi"
317 &tps {
318         interrupts = <7>; /* NMI */
319         interrupt-parent = <&intc>;
321         charger {
322                 interrupts = <0>, <1>;
323                 interrupt-names = "USB", "AC";
324                 status = "okay";
325         };
327         pwrbutton {
328                 interrupts = <2>;
329                 status = "okay";
330         };
332         regulators {
333                 dcdc1_reg: regulator@0 {
334                         regulator-name = "vdds_dpr";
335                         regulator-always-on;
336                 };
338                 dcdc2_reg: regulator@1 {
339                         /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
340                         regulator-name = "vdd_mpu";
341                         regulator-min-microvolt = <925000>;
342                         regulator-max-microvolt = <1351500>;
343                         regulator-boot-on;
344                         regulator-always-on;
345                 };
347                 dcdc3_reg: regulator@2 {
348                         /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
349                         regulator-name = "vdd_core";
350                         regulator-min-microvolt = <925000>;
351                         regulator-max-microvolt = <1150000>;
352                         regulator-boot-on;
353                         regulator-always-on;
354                 };
356                 ldo1_reg: regulator@3 {
357                         regulator-name = "vio,vrtc,vdds";
358                         regulator-always-on;
359                 };
361                 ldo2_reg: regulator@4 {
362                         regulator-name = "vdd_3v3aux";
363                         regulator-always-on;
364                 };
366                 ldo3_reg: regulator@5 {
367                         regulator-name = "vdd_1v8";
368                         regulator-min-microvolt = <1800000>;
369                         regulator-max-microvolt = <1800000>;
370                         regulator-always-on;
371                 };
373                 ldo4_reg: regulator@6 {
374                         regulator-name = "vdd_3v3a";
375                         regulator-always-on;
376                 };
377         };
380 &mmc1 {
381         status = "okay";
382         vmmc-supply = <&vmmcsd_fixed>;
383         bus-width = <4>;
384         pinctrl-names = "default";
385         pinctrl-0 = <&mmc1_pins>;
386         cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
389 &mmc2 {
390         status = "okay";
391         vmmc-supply = <&vmmcsd_fixed>;
392         bus-width = <8>;
393         pinctrl-names = "default";
394         pinctrl-0 = <&mmc2_pins>;
397 &mmc3 {
398         dmas = <&edma_xbar 12 0 1
399                 &edma_xbar 13 0 2>;
400         dma-names = "tx", "rx";
401         status = "okay";
402         vmmc-supply = <&wlan_en_reg>;
403         bus-width = <4>;
404         non-removable;
405         cap-power-off-card;
406         ti,needs-special-hs-handling;
407         keep-power-in-suspend;
408         pinctrl-names = "default";
409         pinctrl-0 = <&mmc3_pins &wl18xx_pins>;
411         #address-cells = <1>;
412         #size-cells = <0>;
413         wlcore: wlcore@2 {
414                 compatible = "ti,wl1835";
415                 reg = <2>;
416                 interrupt-parent = <&gpio0>;
417                 interrupts = <29 IRQ_TYPE_EDGE_RISING>;
418         };
421 &tscadc {
422         status = "okay";
423         adc {
424                 ti,adc-channels = <0 1 2 3 4 5 6 7>;
425         };
428 &uart3 {
429         pinctrl-names = "default";
430         pinctrl-0 = <&uart3_pins &bt_pins>;
431         status = "okay";
433         bluetooth {
434                 compatible = "ti,wl1835-st";
435                 enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
436         };
439 &aes {
440         status = "okay";
443 &sham {
444         status = "okay";
447 &rtc {
448         system-power-controller;
449         clocks = <&clk_32768_ck>, <&clkdiv32k_ick>;
450         clock-names = "ext-clk", "int-clk";
453 &gpio3 {
454         ls_buf_en {
455                 gpio-hog;
456                 gpios = <10 GPIO_ACTIVE_HIGH>;
457                 output-high;
458                 line-name = "LS_BUF_EN";
459         };