Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma
[linux-2.6-block.git] / arch / arm / boot / dts / am335x-pepper.dts
CommitLineData
4341881d
AC
1/*
2 * Copyright (C) 2014 Gumstix, Inc. - https://www.gumstix.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/;
9
10#include <dt-bindings/input/input.h>
11#include "am33xx.dtsi"
12
13/ {
14 model = "Gumstix Pepper";
15 compatible = "gumstix,am335x-pepper", "ti,am33xx";
16
17 cpus {
18 cpu@0 {
19 cpu0-supply = <&dcdc3_reg>;
20 };
21 };
22
23 memory {
24 device_type = "memory";
25 reg = <0x80000000 0x20000000>; /* 512 MB */
26 };
27
28 buttons: user_buttons {
29 compatible = "gpio-keys";
30 };
31
32 leds: user_leds {
33 compatible = "gpio-leds";
34 };
35
36 panel: lcd_panel {
37 compatible = "ti,tilcdc,panel";
38 };
39
40 sound: sound_iface {
41 compatible = "ti,da830-evm-audio";
42 };
43
44 vbat: fixedregulator@0 {
45 compatible = "regulator-fixed";
46 };
47
48 v3v3c_reg: fixedregulator@1 {
49 compatible = "regulator-fixed";
50 };
51
52 vdd5_reg: fixedregulator@2 {
53 compatible = "regulator-fixed";
54 };
55};
56
57/* I2C Busses */
58&i2c0 {
59 status = "okay";
60 pinctrl-names = "default";
61 pinctrl-0 = <&i2c0_pins>;
62
63 clock-frequency = <400000>;
64
65 tps: tps@24 {
66 reg = <0x24>;
67 };
68
69 eeprom: eeprom@50 {
70 compatible = "at,24c256";
71 reg = <0x50>;
72 };
73
74 audio_codec: tlv320aic3106@1b {
75 compatible = "ti,tlv320aic3106";
76 reg = <0x1b>;
9908ac3d 77 ai3x-micbias-vg = <0x2>;
4341881d
AC
78 };
79
80 accel: lis331dlh@1d {
81 compatible = "st,lis3lv02d";
82 reg = <0x1d>;
83 };
84};
85
86&i2c1 {
87 status = "okay";
88 pinctrl-names = "default";
89 pinctrl-0 = <&i2c1_pins>;
90 clock-frequency = <400000>;
91};
92
93&am33xx_pinmux {
94 i2c0_pins: pinmux_i2c0 {
95 pinctrl-single,pins = <
96 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
97 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
98 >;
99 };
100 i2c1_pins: pinmux_i2c1 {
101 pinctrl-single,pins = <
102 0x10C (PIN_INPUT_PULLUP | MUX_MODE3) /* mii1_crs,i2c1_sda */
103 0x110 (PIN_INPUT_PULLUP | MUX_MODE3) /* mii1_rxerr,i2c1_scl */
104 >;
105 };
106};
107
108/* Accelerometer */
109&accel {
110 pinctrl-names = "default";
111 pinctrl-0 = <&accel_pins>;
112
113 Vdd-supply = <&ldo3_reg>;
114 Vdd_IO-supply = <&ldo3_reg>;
115 st,irq1-click;
116 st,wakeup-x-lo;
117 st,wakeup-x-hi;
118 st,wakeup-y-lo;
119 st,wakeup-y-hi;
120 st,wakeup-z-lo;
121 st,wakeup-z-hi;
122 st,min-limit-x = <92>;
123 st,max-limit-x = <14>;
124 st,min-limit-y = <14>;
125 st,max-limit-y = <92>;
126 st,min-limit-z = <92>;
127 st,max-limit-z = <14>;
128};
129
130&am33xx_pinmux {
131 accel_pins: pinmux_accel {
132 pinctrl-single,pins = <
133 0x98 (PIN_INPUT | MUX_MODE7) /* gpmc_wen.gpio2_4 */
134 >;
135 };
136};
137
138/* Audio */
139&audio_codec {
140 status = "okay";
141
142 gpio-reset = <&gpio1 16 GPIO_ACTIVE_LOW>;
143 AVDD-supply = <&ldo3_reg>;
144 IOVDD-supply = <&ldo3_reg>;
145 DRVDD-supply = <&ldo3_reg>;
146 DVDD-supply = <&dcdc1_reg>;
147};
148
149&sound {
150 ti,model = "AM335x-EVM";
151 ti,audio-codec = <&audio_codec>;
152 ti,mcasp-controller = <&mcasp0>;
153 ti,codec-clock-rate = <12000000>;
154 ti,audio-routing =
155 "Headphone Jack", "HPLOUT",
156 "Headphone Jack", "HPROUT",
9908ac3d 157 "MIC3L", "Mic3L Switch";
4341881d
AC
158};
159
160&mcasp0 {
161 status = "okay";
162 pinctrl-names = "default";
163 pinctrl-0 = <&audio_pins>;
164
165 op-mode = <0>; /* MCASP_ISS_MODE */
166 tdm-slots = <2>;
167 serial-dir = <
168 1 2 0 0
169 0 0 0 0
170 0 0 0 0
171 0 0 0 0
172 >;
173 tx-num-evt = <1>;
174 rx-num-evt = <1>;
175};
176
177&am33xx_pinmux {
178 audio_pins: pinmux_audio {
179 pinctrl-single,pins = <
180 0x1AC (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_ahcklx.mcasp0_ahclkx */
181 0x194 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_fsx.mcasp0_fsx */
182 0x190 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_aclkx.mcasp0_aclkx */
183 0x198 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr0.mcasp0_axr0 */
184 0x1A8 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr1.mcasp0_axr1 */
185 0x40 (PIN_OUTPUT | MUX_MODE7) /* gpmc_a0.gpio1_16 */
186 >;
187 };
188};
189
190/* Display: 24-bit LCD Screen */
191&panel {
192 status = "okay";
193 pinctrl-names = "default";
194 pinctrl-0 = <&lcd_pins>;
195 panel-info {
196 ac-bias = <255>;
197 ac-bias-intrpt = <0>;
198 dma-burst-sz = <16>;
199 bpp = <32>;
200 fdd = <0x80>;
201 sync-edge = <0>;
202 sync-ctrl = <1>;
203 raster-order = <0>;
204 fifo-th = <0>;
205 };
206 display-timings {
207 native-mode = <&timing0>;
208 timing0: 480x272 {
209 clock-frequency = <18400000>;
210 hactive = <480>;
211 vactive = <272>;
212 hfront-porch = <8>;
213 hback-porch = <4>;
214 hsync-len = <41>;
215 vfront-porch = <4>;
216 vback-porch = <2>;
217 vsync-len = <10>;
218 hsync-active = <1>;
219 vsync-active = <1>;
220 };
221 };
222};
223
224&lcdc {
225 status = "okay";
226};
227
228&am33xx_pinmux {
229 lcd_pins: pinmux_lcd {
230 pinctrl-single,pins = <
231 0xa0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */
232 0xa4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */
233 0xa8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */
234 0xac (PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */
235 0xb0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */
236 0xb4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */
237 0xb8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */
238 0xbc (PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */
239 0xc0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */
240 0xc4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */
241 0xc8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */
242 0xcc (PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */
243 0xd0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */
244 0xd4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */
245 0xd8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */
246 0xdc (PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */
247 0x20 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad8.lcd_data16 */
248 0x24 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad9.lcd_data17 */
249 0x28 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad10.lcd_data18 */
250 0x2c (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad11.lcd_data19 */
251 0x30 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad12.lcd_data20 */
252 0x34 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad13.lcd_data21 */
253 0x38 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad14.lcd_data22 */
254 0x3c (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad15.lcd_data23 */
255 0xe0 (PIN_OUTPUT | MUX_MODE0) /* lcd_vsync.lcd_vsync */
256 0xe4 (PIN_OUTPUT | MUX_MODE0) /* lcd_hsync.lcd_hsync */
257 0xe8 (PIN_OUTPUT | MUX_MODE0) /* lcd_pclk.lcd_pclk */
258 0xec (PIN_OUTPUT | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */
259 /* Display Enable */
260 0x6c (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a11.gpio1_27 */
261 >;
262 };
263};
264
265/* Ethernet */
266&cpsw_emac0 {
267 status = "okay";
268 phy_id = <&davinci_mdio>, <0>;
269 phy-mode = "rgmii";
270};
271
272&cpsw_emac1 {
273 status = "okay";
274 phy_id = <&davinci_mdio>, <1>;
275 phy-mode = "rgmii";
276};
277
278&davinci_mdio {
279 status = "okay";
280 pinctrl-names = "default";
281 pinctrl-0 = <&mdio_pins>;
282};
283
284&mac {
285 status = "okay";
286 pinctrl-names = "default";
287 pinctrl-0 = <&ethernet_pins>;
288};
289
290
291&am33xx_pinmux {
292 ethernet_pins: pinmux_ethernet {
293 pinctrl-single,pins = <
294 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
295 0x118 (PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */
296 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */
297 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */
298 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
299 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
300 0x12c (PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */
301 0x130 (PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */
302 0x134 (PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd3.rgmii1_rxd3 */
303 0x138 (PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd2.rgmii1_rxd2 */
304 0x13c (PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */
305 0x140 (PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */
306 /* ethernet interrupt */
307 0x144 (PIN_INPUT_PULLUP | MUX_MODE7) /* rmii2_refclk.gpio0_29 */
308 /* ethernet PHY nReset */
309 0x108 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* mii1_col.gpio3_0 */
310 >;
311 };
312
313 mdio_pins: pinmux_mdio {
314 pinctrl-single,pins = <
315 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
316 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
317 >;
318 };
319};
320
321/* MMC */
322&mmc1 {
323 /* Bootable SD card slot */
324 status = "okay";
325 vmmc-supply = <&ldo3_reg>;
326 bus-width = <4>;
327 pinctrl-names = "default";
328 pinctrl-0 = <&sd_pins>;
329 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
330};
331
332&mmc2 {
333 /* eMMC (not populated) on MMC #2 */
334 status = "disabled";
335 pinctrl-names = "default";
336 pinctrl-0 = <&emmc_pins>;
337 vmmc-supply = <&ldo3_reg>;
338 bus-width = <8>;
339 ti,non-removable;
340};
341
342&edma {
343 /* Map eDMA MMC2 Events from Crossbar */
344 ti,edma-xbar-event-map = /bits/ 16 <1 12
345 2 13>;
346};
347
348
349&mmc3 {
350 /* Wifi & Bluetooth on MMC #3 */
351 status = "okay";
352 pinctrl-names = "default";
353 pinctrl-0 = <&wireless_pins>;
354 vmmmc-supply = <&v3v3c_reg>;
355 bus-width = <4>;
356 ti,non-removable;
357 dmas = <&edma 12
358 &edma 13>;
359 dma-names = "tx", "rx";
360};
361
362
363&am33xx_pinmux {
364 sd_pins: pinmux_sd_card {
365 pinctrl-single,pins = <
366 0xf0 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
367 0xf4 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
368 0xf8 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
369 0xfc (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
370 0x100 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
371 0x104 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
372 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
373 >;
374 };
375 emmc_pins: pinmux_emmc {
376 pinctrl-single,pins = <
377 0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
378 0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
379 0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
380 0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
381 0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
382 0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
383 0x10 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
384 0x14 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
385 0x18 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
386 0x1c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
387 /* EMMC nReset */
388 0x74 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
389 >;
390 };
391 wireless_pins: pinmux_wireless {
392 pinctrl-single,pins = <
393 0x44 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */
394 0x48 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */
395 0x4c (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */
396 0x78 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ben1.mmc2_dat3 */
397 0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */
398 0x8c (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc1_clk */
399 /* WLAN nReset */
400 0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */
401 /* WLAN nPower down */
402 0x70 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wait0.gpio0_30 */
403 /* 32kHz Clock */
404 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
405 >;
406 };
407};
408
409/* Power */
410&vbat {
411 regulator-name = "vbat";
412 regulator-min-microvolt = <5000000>;
413 regulator-max-microvolt = <5000000>;
414};
415
416&v3v3c_reg {
417 regulator-name = "v3v3c_reg";
418 regulator-min-microvolt = <3300000>;
419 regulator-max-microvolt = <3300000>;
420 vin-supply = <&vbat>;
421};
422
423&vdd5_reg {
424 regulator-name = "vdd5_reg";
425 regulator-min-microvolt = <5000000>;
426 regulator-max-microvolt = <5000000>;
427 vin-supply = <&vbat>;
428};
429
430/include/ "tps65217.dtsi"
431
432&tps {
433 backlight {
434 isel = <1>; /* ISET1 */
435 fdim = <200>; /* TPS65217_BL_FDIM_200HZ */
436 default-brightness = <80>;
437 };
438
439 regulators {
440 dcdc1_reg: regulator@0 {
441 /* VDD_1V8 system supply */
5aed4ee7 442 regulator-always-on;
4341881d
AC
443 };
444
445 dcdc2_reg: regulator@1 {
446 /* VDD_CORE voltage limits 0.95V - 1.26V with +/-4% tolerance */
447 regulator-name = "vdd_core";
448 regulator-min-microvolt = <925000>;
693f4f4c 449 regulator-max-microvolt = <1150000>;
4341881d 450 regulator-boot-on;
5aed4ee7 451 regulator-always-on;
4341881d
AC
452 };
453
454 dcdc3_reg: regulator@2 {
455 /* VDD_MPU voltage limits 0.95V - 1.1V with +/-4% tolerance */
456 regulator-name = "vdd_mpu";
457 regulator-min-microvolt = <925000>;
693f4f4c 458 regulator-max-microvolt = <1325000>;
4341881d 459 regulator-boot-on;
5aed4ee7 460 regulator-always-on;
4341881d
AC
461 };
462
463 ldo1_reg: regulator@3 {
464 /* VRTC 1.8V always-on supply */
5aed4ee7 465 regulator-name = "vrtc,vdds";
4341881d
AC
466 regulator-always-on;
467 };
468
469 ldo2_reg: regulator@4 {
470 /* 3.3V rail */
5aed4ee7
AYL
471 regulator-name = "vdd_3v3aux";
472 regulator-always-on;
4341881d
AC
473 };
474
475 ldo3_reg: regulator@5 {
476 /* VDD_3V3A 3.3V rail */
5aed4ee7 477 regulator-name = "vdd_3v3a";
4341881d
AC
478 regulator-min-microvolt = <3300000>;
479 regulator-max-microvolt = <3300000>;
480 };
481
482 ldo4_reg: regulator@6 {
483 /* VDD_3V3B 3.3V rail */
5aed4ee7
AYL
484 regulator-name = "vdd_3v3b";
485 regulator-always-on;
4341881d
AC
486 };
487 };
488};
489
490/* SPI Busses */
491&spi0 {
492 status = "okay";
493 pinctrl-names = "default";
494 pinctrl-0 = <&spi0_pins>;
495};
496
497&am33xx_pinmux {
498 spi0_pins: pinmux_spi0 {
499 pinctrl-single,pins = <
500 0x150 (PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_sclk.spi0_sclk */
501 0x15C (PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_cs0.spi0_cs0 */
502 0x154 (PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d0.spi0_d0 */
503 0x158 (PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d1.spi0_d1 */
504 >;
505 };
506};
507
508/* Touch Screen */
509&tscadc {
510 status = "okay";
511 tsc {
512 ti,wires = <4>;
513 ti,x-plate-resistance = <200>;
514 ti,coordinate-readouts = <5>;
515 ti,wire-config = <0x00 0x11 0x22 0x33>;
516 };
517
518 adc {
519 ti,adc-channels = <4 5 6 7>;
520 };
521};
522
523/* UARTs */
524&uart0 {
525 /* Serial Console */
526 status = "okay";
527 pinctrl-names = "default";
528 pinctrl-0 = <&uart0_pins>;
529};
530
531&uart1 {
532 /* Broken out to J6 header */
533 status = "okay";
534 pinctrl-names = "default";
535 pinctrl-0 = <&uart1_pins>;
536};
537
538&am33xx_pinmux {
539 uart0_pins: pinmux_uart0 {
540 pinctrl-single,pins = <
541 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
542 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
543 >;
544 };
545 uart1_pins: pinmux_uart1 {
546 pinctrl-single,pins = <
547 0x178 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */
548 0x17C (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */
549 0x180 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
550 0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
551 >;
552 };
553};
554
555/* USB */
556&usb {
557 status = "okay";
558
559 pinctrl-names = "default";
560 pinctrl-0 = <&usb_pins>;
561};
562
563&usb_ctrl_mod {
564 status = "okay";
565};
566
567&usb0_phy {
568 status = "okay";
569};
570
571&usb1_phy {
572 status = "okay";
573};
574
575&usb0 {
576 status = "okay";
577 dr_mode = "host";
578};
579
580&usb1 {
581 status = "okay";
582 dr_mode = "host";
583};
584
585&cppi41dma {
586 status = "okay";
587};
588
589&am33xx_pinmux {
590 usb_pins: pinmux_usb {
591 pinctrl-single,pins = <
592 /* USB0 Over-Current (active low) */
593 0x64 (PIN_INPUT | MUX_MODE7) /* gpmc_a9.gpio1_25 */
594 /* USB1 Over-Current (active low) */
595 0x68 (PIN_INPUT | MUX_MODE7) /* gpmc_a10.gpio1_26 */
596 >;
597 };
598};
599
600/* User IO */
601&leds {
602 pinctrl-names = "default";
603 pinctrl-0 = <&user_leds_pins>;
604
605 led@0 {
606 label = "pepper:user0:blue";
607 gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
608 linux,default-trigger = "none";
609 default-state = "off";
610 };
611
612 led@1 {
613 label = "pepper:user1:red";
614 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
615 linux,default-trigger = "none";
616 default-state = "off";
617 };
618};
619
620&buttons {
621 pinctrl-names = "default";
622 pinctrl-0 = <&user_buttons_pins>;
623 #address-cells = <1>;
624 #size-cells = <0>;
625
626 button@0 {
627 label = "home";
628 linux,code = <KEY_HOME>;
629 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
630 gpio-key,wakeup;
631 };
632
633 button@1 {
634 label = "menu";
635 linux,code = <KEY_MENU>;
636 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
637 gpio-key,wakeup;
638 };
639
640 buttons@2 {
641 label = "power";
642 linux,code = <KEY_POWER>;
643 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
644 gpio-key,wakeup;
645 };
646};
647
648&am33xx_pinmux {
649 user_leds_pins: pinmux_user_leds {
650 pinctrl-single,pins = <
651 0x50 (PIN_OUTPUT | MUX_MODE7) /* gpmc_a4.gpio1_20 */
652 0x54 (PIN_OUTPUT | MUX_MODE7) /* gpmc_a5.gpio1_21 */
653 >;
654 };
655
656 user_buttons_pins: pinmux_user_buttons {
657 pinctrl-single,pins = <
658 0x58 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */
659 0x5C (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a7.gpio1_21 */
660 0x164 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio0_7 */
661 >;
662 };
663};