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>;
77 ai3x-micbias-vg = <0x2>;
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 AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
97 AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
98 >;
99 };
100 i2c1_pins: pinmux_i2c1 {
101 pinctrl-single,pins = <
102 AM33XX_IOPAD(0x90C, PIN_INPUT_PULLUP | MUX_MODE3) /* mii1_crs,i2c1_sda */
103 AM33XX_IOPAD(0x910, 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 AM33XX_IOPAD(0x898, 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",
157 "MIC3L", "Mic3L Switch";
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 AM33XX_IOPAD(0x9ac, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_ahcklx.mcasp0_ahclkx */
181 AM33XX_IOPAD(0x994, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_fsx.mcasp0_fsx */
182 AM33XX_IOPAD(0x990, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_aclkx.mcasp0_aclkx */
183 AM33XX_IOPAD(0x998, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr0.mcasp0_axr0 */
184 AM33XX_IOPAD(0x9a8, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr1.mcasp0_axr1 */
185 AM33XX_IOPAD(0x840, 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 AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */
232 AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */
233 AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */
234 AM33XX_IOPAD(0x8ac, PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */
235 AM33XX_IOPAD(0x8b0, PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */
236 AM33XX_IOPAD(0x8b4, PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */
237 AM33XX_IOPAD(0x8b8, PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */
238 AM33XX_IOPAD(0x8bc, PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */
239 AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */
240 AM33XX_IOPAD(0x8c4, PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */
241 AM33XX_IOPAD(0x8c8, PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */
242 AM33XX_IOPAD(0x8cc, PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */
243 AM33XX_IOPAD(0x8d0, PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */
244 AM33XX_IOPAD(0x8d4, PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */
245 AM33XX_IOPAD(0x8d8, PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */
246 AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */
247 AM33XX_IOPAD(0x820, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad8.lcd_data16 */
248 AM33XX_IOPAD(0x824, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad9.lcd_data17 */
249 AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad10.lcd_data18 */
250 AM33XX_IOPAD(0x82c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad11.lcd_data19 */
251 AM33XX_IOPAD(0x830, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad12.lcd_data20 */
252 AM33XX_IOPAD(0x834, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad13.lcd_data21 */
253 AM33XX_IOPAD(0x838, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad14.lcd_data22 */
254 AM33XX_IOPAD(0x83c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad15.lcd_data23 */
255 AM33XX_IOPAD(0x8e0, PIN_OUTPUT | MUX_MODE0) /* lcd_vsync.lcd_vsync */
256 AM33XX_IOPAD(0x8e4, PIN_OUTPUT | MUX_MODE0) /* lcd_hsync.lcd_hsync */
257 AM33XX_IOPAD(0x8e8, PIN_OUTPUT | MUX_MODE0) /* lcd_pclk.lcd_pclk */
258 AM33XX_IOPAD(0x8ec, PIN_OUTPUT | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */
259 /* Display Enable */
260 AM33XX_IOPAD(0x86c, 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 = <ðernet_pins>;
288};
289
290
291&am33xx_pinmux {
292 ethernet_pins: pinmux_ethernet {
293 pinctrl-single,pins = <
294 AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
295 AM33XX_IOPAD(0x918, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */
296 AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */
297 AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */
298 AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
299 AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
300 AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */
301 AM33XX_IOPAD(0x930, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */
302 AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd3.rgmii1_rxd3 */
303 AM33XX_IOPAD(0x938, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd2.rgmii1_rxd2 */
304 AM33XX_IOPAD(0x93c, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */
305 AM33XX_IOPAD(0x940, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */
306 /* ethernet interrupt */
307 AM33XX_IOPAD(0x944, PIN_INPUT_PULLUP | MUX_MODE7) /* rmii2_refclk.gpio0_29 */
308 /* ethernet PHY nReset */
309 AM33XX_IOPAD(0x908, PIN_OUTPUT_PULLUP | MUX_MODE7) /* mii1_col.gpio3_0 */
310 >;
311 };
312
313 mdio_pins: pinmux_mdio {
314 pinctrl-single,pins = <
315 AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
316 AM33XX_IOPAD(0x94c, 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&mmc3 {
343 /* Wifi & Bluetooth on MMC #3 */
344 status = "okay";
345 pinctrl-names = "default";
346 pinctrl-0 = <&wireless_pins>;
347 vmmmc-supply = <&v3v3c_reg>;
348 bus-width = <4>;
349 ti,non-removable;
350 dmas = <&edma_xbar 12 0 1
351 &edma_xbar 13 0 2>;
352 dma-names = "tx", "rx";
353};
354
355
356&am33xx_pinmux {
357 sd_pins: pinmux_sd_card {
358 pinctrl-single,pins = <
359 AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
360 AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
361 AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
362 AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
363 AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
364 AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
365 AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
366 >;
367 };
368 emmc_pins: pinmux_emmc {
369 pinctrl-single,pins = <
370 AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
371 AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
372 AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
373 AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
374 AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
375 AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
376 AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
377 AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
378 AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
379 AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
380 /* EMMC nReset */
381 AM33XX_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
382 >;
383 };
384 wireless_pins: pinmux_wireless {
385 pinctrl-single,pins = <
386 AM33XX_IOPAD(0x844, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */
387 AM33XX_IOPAD(0x848, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */
388 AM33XX_IOPAD(0x84c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */
389 AM33XX_IOPAD(0x878, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ben1.mmc2_dat3 */
390 AM33XX_IOPAD(0x888, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */
391 AM33XX_IOPAD(0x88c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc1_clk */
392 /* WLAN nReset */
393 AM33XX_IOPAD(0x860, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */
394 /* WLAN nPower down */
395 AM33XX_IOPAD(0x870, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wait0.gpio0_30 */
396 /* 32kHz Clock */
397 AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
398 >;
399 };
400};
401
402/* Power */
403&vbat {
404 regulator-name = "vbat";
405 regulator-min-microvolt = <5000000>;
406 regulator-max-microvolt = <5000000>;
407};
408
409&v3v3c_reg {
410 regulator-name = "v3v3c_reg";
411 regulator-min-microvolt = <3300000>;
412 regulator-max-microvolt = <3300000>;
413 vin-supply = <&vbat>;
414};
415
416&vdd5_reg {
417 regulator-name = "vdd5_reg";
418 regulator-min-microvolt = <5000000>;
419 regulator-max-microvolt = <5000000>;
420 vin-supply = <&vbat>;
421};
422
423&tps {
424 compatible = "ti,tps65217";
425
426 backlight {
427 isel = <1>; /* ISET1 */
428 fdim = <200>; /* TPS65217_BL_FDIM_200HZ */
429 default-brightness = <80>;
430 };
431
432 regulators {
433 #address-cells = <1>;
434 #size-cells = <0>;
435
436 dcdc1_reg: regulator@0 {
437 reg = <0>;
438 /* VDD_1V8 system supply */
439 regulator-always-on;
440 };
441
442 dcdc2_reg: regulator@1 {
443 reg = <1>;
444 /* VDD_CORE voltage limits 0.95V - 1.26V with +/-4% tolerance */
445 regulator-name = "vdd_core";
446 regulator-min-microvolt = <925000>;
447 regulator-max-microvolt = <1150000>;
448 regulator-boot-on;
449 regulator-always-on;
450 };
451
452 dcdc3_reg: regulator@2 {
453 reg = <2>;
454 /* VDD_MPU voltage limits 0.95V - 1.1V with +/-4% tolerance */
455 regulator-name = "vdd_mpu";
456 regulator-min-microvolt = <925000>;
457 regulator-max-microvolt = <1325000>;
458 regulator-boot-on;
459 regulator-always-on;
460 };
461
462 ldo1_reg: regulator@3 {
463 reg = <3>;
464 /* VRTC 1.8V always-on supply */
465 regulator-name = "vrtc,vdds";
466 regulator-always-on;
467 };
468
469 ldo2_reg: regulator@4 {
470 reg = <4>;
471 /* 3.3V rail */
472 regulator-name = "vdd_3v3aux";
473 regulator-always-on;
474 };
475
476 ldo3_reg: regulator@5 {
477 reg = <5>;
478 /* VDD_3V3A 3.3V rail */
479 regulator-name = "vdd_3v3a";
480 regulator-min-microvolt = <3300000>;
481 regulator-max-microvolt = <3300000>;
482 };
483
484 ldo4_reg: regulator@6 {
485 reg = <6>;
486 /* VDD_3V3B 3.3V rail */
487 regulator-name = "vdd_3v3b";
488 regulator-always-on;
489 };
490 };
491};
492
493/* SPI Busses */
494&spi0 {
495 status = "okay";
496 pinctrl-names = "default";
497 pinctrl-0 = <&spi0_pins>;
498};
499
500&am33xx_pinmux {
501 spi0_pins: pinmux_spi0 {
502 pinctrl-single,pins = <
503 AM33XX_IOPAD(0x950, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_sclk.spi0_sclk */
504 AM33XX_IOPAD(0x95C, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_cs0.spi0_cs0 */
505 AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d0.spi0_d0 */
506 AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d1.spi0_d1 */
507 >;
508 };
509};
510
511/* Touch Screen */
512&tscadc {
513 status = "okay";
514 tsc {
515 ti,wires = <4>;
516 ti,x-plate-resistance = <200>;
517 ti,coordinate-readouts = <5>;
518 ti,wire-config = <0x00 0x11 0x22 0x33>;
519 };
520
521 adc {
522 ti,adc-channels = <4 5 6 7>;
523 };
524};
525
526/* UARTs */
527&uart0 {
528 /* Serial Console */
529 status = "okay";
530 pinctrl-names = "default";
531 pinctrl-0 = <&uart0_pins>;
532};
533
534&uart1 {
535 /* Broken out to J6 header */
536 status = "okay";
537 pinctrl-names = "default";
538 pinctrl-0 = <&uart1_pins>;
539};
540
541&am33xx_pinmux {
542 uart0_pins: pinmux_uart0 {
543 pinctrl-single,pins = <
544 AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
545 AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
546 >;
547 };
548 uart1_pins: pinmux_uart1 {
549 pinctrl-single,pins = <
550 AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */
551 AM33XX_IOPAD(0x97C, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */
552 AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
553 AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
554 >;
555 };
556};
557
558/* USB */
559&usb {
560 status = "okay";
561
562 pinctrl-names = "default";
563 pinctrl-0 = <&usb_pins>;
564};
565
566&usb_ctrl_mod {
567 status = "okay";
568};
569
570&usb0_phy {
571 status = "okay";
572};
573
574&usb1_phy {
575 status = "okay";
576};
577
578&usb0 {
579 status = "okay";
580 dr_mode = "host";
581};
582
583&usb1 {
584 status = "okay";
585 dr_mode = "host";
586};
587
588&cppi41dma {
589 status = "okay";
590};
591
592&am33xx_pinmux {
593 usb_pins: pinmux_usb {
594 pinctrl-single,pins = <
595 /* USB0 Over-Current (active low) */
596 AM33XX_IOPAD(0x864, PIN_INPUT | MUX_MODE7) /* gpmc_a9.gpio1_25 */
597 /* USB1 Over-Current (active low) */
598 AM33XX_IOPAD(0x868, PIN_INPUT | MUX_MODE7) /* gpmc_a10.gpio1_26 */
599 >;
600 };
601};
602
603/* User IO */
604&leds {
605 pinctrl-names = "default";
606 pinctrl-0 = <&user_leds_pins>;
607
608 led@0 {
609 label = "pepper:user0:blue";
610 gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
611 linux,default-trigger = "none";
612 default-state = "off";
613 };
614
615 led@1 {
616 label = "pepper:user1:red";
617 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
618 linux,default-trigger = "none";
619 default-state = "off";
620 };
621};
622
623&buttons {
624 pinctrl-names = "default";
625 pinctrl-0 = <&user_buttons_pins>;
626 #address-cells = <1>;
627 #size-cells = <0>;
628
629 button@0 {
630 label = "home";
631 linux,code = <KEY_HOME>;
632 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
633 wakeup-source;
634 };
635
636 button@1 {
637 label = "menu";
638 linux,code = <KEY_MENU>;
639 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
640 wakeup-source;
641 };
642
643 buttons@2 {
644 label = "power";
645 linux,code = <KEY_POWER>;
646 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
647 wakeup-source;
648 };
649};
650
651&am33xx_pinmux {
652 user_leds_pins: pinmux_user_leds {
653 pinctrl-single,pins = <
654 AM33XX_IOPAD(0x850, PIN_OUTPUT | MUX_MODE7) /* gpmc_a4.gpio1_20 */
655 AM33XX_IOPAD(0x854, PIN_OUTPUT | MUX_MODE7) /* gpmc_a5.gpio1_21 */
656 >;
657 };
658
659 user_buttons_pins: pinmux_user_buttons {
660 pinctrl-single,pins = <
661 AM33XX_IOPAD(0x858, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */
662 AM33XX_IOPAD(0x85C, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a7.gpio1_21 */
663 AM33XX_IOPAD(0x964, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio0_7 */
664 >;
665 };
666};
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>;
77 ai3x-micbias-vg = <0x2>;
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 AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
97 AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
98 >;
99 };
100 i2c1_pins: pinmux_i2c1 {
101 pinctrl-single,pins = <
102 AM33XX_IOPAD(0x90C, PIN_INPUT_PULLUP | MUX_MODE3) /* mii1_crs,i2c1_sda */
103 AM33XX_IOPAD(0x910, 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 AM33XX_IOPAD(0x898, 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",
157 "MIC3L", "Mic3L Switch";
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 AM33XX_IOPAD(0x9ac, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_ahcklx.mcasp0_ahclkx */
181 AM33XX_IOPAD(0x994, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_fsx.mcasp0_fsx */
182 AM33XX_IOPAD(0x990, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_aclkx.mcasp0_aclkx */
183 AM33XX_IOPAD(0x998, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr0.mcasp0_axr0 */
184 AM33XX_IOPAD(0x9a8, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr1.mcasp0_axr1 */
185 AM33XX_IOPAD(0x840, 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 AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */
232 AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */
233 AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */
234 AM33XX_IOPAD(0x8ac, PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */
235 AM33XX_IOPAD(0x8b0, PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */
236 AM33XX_IOPAD(0x8b4, PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */
237 AM33XX_IOPAD(0x8b8, PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */
238 AM33XX_IOPAD(0x8bc, PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */
239 AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */
240 AM33XX_IOPAD(0x8c4, PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */
241 AM33XX_IOPAD(0x8c8, PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */
242 AM33XX_IOPAD(0x8cc, PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */
243 AM33XX_IOPAD(0x8d0, PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */
244 AM33XX_IOPAD(0x8d4, PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */
245 AM33XX_IOPAD(0x8d8, PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */
246 AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */
247 AM33XX_IOPAD(0x820, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad8.lcd_data16 */
248 AM33XX_IOPAD(0x824, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad9.lcd_data17 */
249 AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad10.lcd_data18 */
250 AM33XX_IOPAD(0x82c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad11.lcd_data19 */
251 AM33XX_IOPAD(0x830, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad12.lcd_data20 */
252 AM33XX_IOPAD(0x834, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad13.lcd_data21 */
253 AM33XX_IOPAD(0x838, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad14.lcd_data22 */
254 AM33XX_IOPAD(0x83c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad15.lcd_data23 */
255 AM33XX_IOPAD(0x8e0, PIN_OUTPUT | MUX_MODE0) /* lcd_vsync.lcd_vsync */
256 AM33XX_IOPAD(0x8e4, PIN_OUTPUT | MUX_MODE0) /* lcd_hsync.lcd_hsync */
257 AM33XX_IOPAD(0x8e8, PIN_OUTPUT | MUX_MODE0) /* lcd_pclk.lcd_pclk */
258 AM33XX_IOPAD(0x8ec, PIN_OUTPUT | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */
259 /* Display Enable */
260 AM33XX_IOPAD(0x86c, 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 = <ðernet_pins>;
288};
289
290
291&am33xx_pinmux {
292 ethernet_pins: pinmux_ethernet {
293 pinctrl-single,pins = <
294 AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
295 AM33XX_IOPAD(0x918, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */
296 AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */
297 AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */
298 AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
299 AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
300 AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */
301 AM33XX_IOPAD(0x930, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */
302 AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd3.rgmii1_rxd3 */
303 AM33XX_IOPAD(0x938, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd2.rgmii1_rxd2 */
304 AM33XX_IOPAD(0x93c, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */
305 AM33XX_IOPAD(0x940, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */
306 /* ethernet interrupt */
307 AM33XX_IOPAD(0x944, PIN_INPUT_PULLUP | MUX_MODE7) /* rmii2_refclk.gpio0_29 */
308 /* ethernet PHY nReset */
309 AM33XX_IOPAD(0x908, PIN_OUTPUT_PULLUP | MUX_MODE7) /* mii1_col.gpio3_0 */
310 >;
311 };
312
313 mdio_pins: pinmux_mdio {
314 pinctrl-single,pins = <
315 AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
316 AM33XX_IOPAD(0x94c, 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&mmc3 {
343 /* Wifi & Bluetooth on MMC #3 */
344 status = "okay";
345 pinctrl-names = "default";
346 pinctrl-0 = <&wireless_pins>;
347 vmmmc-supply = <&v3v3c_reg>;
348 bus-width = <4>;
349 ti,non-removable;
350 dmas = <&edma_xbar 12 0 1
351 &edma_xbar 13 0 2>;
352 dma-names = "tx", "rx";
353};
354
355
356&am33xx_pinmux {
357 sd_pins: pinmux_sd_card {
358 pinctrl-single,pins = <
359 AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */
360 AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */
361 AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */
362 AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */
363 AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */
364 AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */
365 AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
366 >;
367 };
368 emmc_pins: pinmux_emmc {
369 pinctrl-single,pins = <
370 AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
371 AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
372 AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
373 AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
374 AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
375 AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
376 AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
377 AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
378 AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
379 AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
380 /* EMMC nReset */
381 AM33XX_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
382 >;
383 };
384 wireless_pins: pinmux_wireless {
385 pinctrl-single,pins = <
386 AM33XX_IOPAD(0x844, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */
387 AM33XX_IOPAD(0x848, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */
388 AM33XX_IOPAD(0x84c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */
389 AM33XX_IOPAD(0x878, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ben1.mmc2_dat3 */
390 AM33XX_IOPAD(0x888, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */
391 AM33XX_IOPAD(0x88c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc1_clk */
392 /* WLAN nReset */
393 AM33XX_IOPAD(0x860, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */
394 /* WLAN nPower down */
395 AM33XX_IOPAD(0x870, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wait0.gpio0_30 */
396 /* 32kHz Clock */
397 AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
398 >;
399 };
400};
401
402/* Power */
403&vbat {
404 regulator-name = "vbat";
405 regulator-min-microvolt = <5000000>;
406 regulator-max-microvolt = <5000000>;
407};
408
409&v3v3c_reg {
410 regulator-name = "v3v3c_reg";
411 regulator-min-microvolt = <3300000>;
412 regulator-max-microvolt = <3300000>;
413 vin-supply = <&vbat>;
414};
415
416&vdd5_reg {
417 regulator-name = "vdd5_reg";
418 regulator-min-microvolt = <5000000>;
419 regulator-max-microvolt = <5000000>;
420 vin-supply = <&vbat>;
421};
422
423&tps {
424 compatible = "ti,tps65217";
425
426 backlight {
427 isel = <1>; /* ISET1 */
428 fdim = <200>; /* TPS65217_BL_FDIM_200HZ */
429 default-brightness = <80>;
430 };
431
432 regulators {
433 #address-cells = <1>;
434 #size-cells = <0>;
435
436 dcdc1_reg: regulator@0 {
437 reg = <0>;
438 /* VDD_1V8 system supply */
439 regulator-always-on;
440 };
441
442 dcdc2_reg: regulator@1 {
443 reg = <1>;
444 /* VDD_CORE voltage limits 0.95V - 1.26V with +/-4% tolerance */
445 regulator-name = "vdd_core";
446 regulator-min-microvolt = <925000>;
447 regulator-max-microvolt = <1150000>;
448 regulator-boot-on;
449 regulator-always-on;
450 };
451
452 dcdc3_reg: regulator@2 {
453 reg = <2>;
454 /* VDD_MPU voltage limits 0.95V - 1.1V with +/-4% tolerance */
455 regulator-name = "vdd_mpu";
456 regulator-min-microvolt = <925000>;
457 regulator-max-microvolt = <1325000>;
458 regulator-boot-on;
459 regulator-always-on;
460 };
461
462 ldo1_reg: regulator@3 {
463 reg = <3>;
464 /* VRTC 1.8V always-on supply */
465 regulator-name = "vrtc,vdds";
466 regulator-always-on;
467 };
468
469 ldo2_reg: regulator@4 {
470 reg = <4>;
471 /* 3.3V rail */
472 regulator-name = "vdd_3v3aux";
473 regulator-always-on;
474 };
475
476 ldo3_reg: regulator@5 {
477 reg = <5>;
478 /* VDD_3V3A 3.3V rail */
479 regulator-name = "vdd_3v3a";
480 regulator-min-microvolt = <3300000>;
481 regulator-max-microvolt = <3300000>;
482 };
483
484 ldo4_reg: regulator@6 {
485 reg = <6>;
486 /* VDD_3V3B 3.3V rail */
487 regulator-name = "vdd_3v3b";
488 regulator-always-on;
489 };
490 };
491};
492
493/* SPI Busses */
494&spi0 {
495 status = "okay";
496 pinctrl-names = "default";
497 pinctrl-0 = <&spi0_pins>;
498};
499
500&am33xx_pinmux {
501 spi0_pins: pinmux_spi0 {
502 pinctrl-single,pins = <
503 AM33XX_IOPAD(0x950, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_sclk.spi0_sclk */
504 AM33XX_IOPAD(0x95C, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_cs0.spi0_cs0 */
505 AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d0.spi0_d0 */
506 AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d1.spi0_d1 */
507 >;
508 };
509};
510
511/* Touch Screen */
512&tscadc {
513 status = "okay";
514 tsc {
515 ti,wires = <4>;
516 ti,x-plate-resistance = <200>;
517 ti,coordinate-readouts = <5>;
518 ti,wire-config = <0x00 0x11 0x22 0x33>;
519 };
520
521 adc {
522 ti,adc-channels = <4 5 6 7>;
523 };
524};
525
526/* UARTs */
527&uart0 {
528 /* Serial Console */
529 status = "okay";
530 pinctrl-names = "default";
531 pinctrl-0 = <&uart0_pins>;
532};
533
534&uart1 {
535 /* Broken out to J6 header */
536 status = "okay";
537 pinctrl-names = "default";
538 pinctrl-0 = <&uart1_pins>;
539};
540
541&am33xx_pinmux {
542 uart0_pins: pinmux_uart0 {
543 pinctrl-single,pins = <
544 AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
545 AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
546 >;
547 };
548 uart1_pins: pinmux_uart1 {
549 pinctrl-single,pins = <
550 AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */
551 AM33XX_IOPAD(0x97C, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */
552 AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
553 AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
554 >;
555 };
556};
557
558/* USB */
559&usb {
560 status = "okay";
561
562 pinctrl-names = "default";
563 pinctrl-0 = <&usb_pins>;
564};
565
566&usb_ctrl_mod {
567 status = "okay";
568};
569
570&usb0_phy {
571 status = "okay";
572};
573
574&usb1_phy {
575 status = "okay";
576};
577
578&usb0 {
579 status = "okay";
580 dr_mode = "host";
581};
582
583&usb1 {
584 status = "okay";
585 dr_mode = "host";
586};
587
588&cppi41dma {
589 status = "okay";
590};
591
592&am33xx_pinmux {
593 usb_pins: pinmux_usb {
594 pinctrl-single,pins = <
595 /* USB0 Over-Current (active low) */
596 AM33XX_IOPAD(0x864, PIN_INPUT | MUX_MODE7) /* gpmc_a9.gpio1_25 */
597 /* USB1 Over-Current (active low) */
598 AM33XX_IOPAD(0x868, PIN_INPUT | MUX_MODE7) /* gpmc_a10.gpio1_26 */
599 >;
600 };
601};
602
603/* User IO */
604&leds {
605 pinctrl-names = "default";
606 pinctrl-0 = <&user_leds_pins>;
607
608 led@0 {
609 label = "pepper:user0:blue";
610 gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
611 linux,default-trigger = "none";
612 default-state = "off";
613 };
614
615 led@1 {
616 label = "pepper:user1:red";
617 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
618 linux,default-trigger = "none";
619 default-state = "off";
620 };
621};
622
623&buttons {
624 pinctrl-names = "default";
625 pinctrl-0 = <&user_buttons_pins>;
626 #address-cells = <1>;
627 #size-cells = <0>;
628
629 button@0 {
630 label = "home";
631 linux,code = <KEY_HOME>;
632 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
633 wakeup-source;
634 };
635
636 button@1 {
637 label = "menu";
638 linux,code = <KEY_MENU>;
639 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
640 wakeup-source;
641 };
642
643 buttons@2 {
644 label = "power";
645 linux,code = <KEY_POWER>;
646 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
647 wakeup-source;
648 };
649};
650
651&am33xx_pinmux {
652 user_leds_pins: pinmux_user_leds {
653 pinctrl-single,pins = <
654 AM33XX_IOPAD(0x850, PIN_OUTPUT | MUX_MODE7) /* gpmc_a4.gpio1_20 */
655 AM33XX_IOPAD(0x854, PIN_OUTPUT | MUX_MODE7) /* gpmc_a5.gpio1_21 */
656 >;
657 };
658
659 user_buttons_pins: pinmux_user_buttons {
660 pinctrl-single,pins = <
661 AM33XX_IOPAD(0x858, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */
662 AM33XX_IOPAD(0x85C, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a7.gpio1_21 */
663 AM33XX_IOPAD(0x964, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio0_7 */
664 >;
665 };
666};