2 * Copyright (C) 2014 Gumstix, Inc. - https://www.gumstix.com/
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.
10 #include <dt-bindings/input/input.h>
11 #include "am33xx.dtsi"
14 model = "Gumstix Pepper";
15 compatible = "gumstix,am335x-pepper", "ti,am33xx";
19 cpu0-supply = <&dcdc3_reg>;
24 device_type = "memory";
25 reg = <0x80000000 0x20000000>; /* 512 MB */
28 buttons: user_buttons {
29 compatible = "gpio-keys";
33 compatible = "gpio-leds";
37 compatible = "ti,tilcdc,panel";
41 compatible = "ti,da830-evm-audio";
44 vbat: fixedregulator@0 {
45 compatible = "regulator-fixed";
48 v3v3c_reg: fixedregulator@1 {
49 compatible = "regulator-fixed";
52 vdd5_reg: fixedregulator@2 {
53 compatible = "regulator-fixed";
60 pinctrl-names = "default";
61 pinctrl-0 = <&i2c0_pins>;
63 clock-frequency = <400000>;
70 compatible = "at,24c256";
74 audio_codec: tlv320aic3106@1b {
75 compatible = "ti,tlv320aic3106";
77 ai3x-micbias-vg = <0x2>;
81 compatible = "st,lis3lv02d";
88 pinctrl-names = "default";
89 pinctrl-0 = <&i2c1_pins>;
90 clock-frequency = <400000>;
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 */
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 */
110 pinctrl-names = "default";
111 pinctrl-0 = <&accel_pins>;
113 Vdd-supply = <&ldo3_reg>;
114 Vdd_IO-supply = <&ldo3_reg>;
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>;
131 accel_pins: pinmux_accel {
132 pinctrl-single,pins = <
133 AM33XX_IOPAD(0x898, PIN_INPUT | MUX_MODE7) /* gpmc_wen.gpio2_4 */
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>;
150 ti,model = "AM335x-EVM";
151 ti,audio-codec = <&audio_codec>;
152 ti,mcasp-controller = <&mcasp0>;
153 ti,codec-clock-rate = <12000000>;
155 "Headphone Jack", "HPLOUT",
156 "Headphone Jack", "HPROUT",
157 "MIC3L", "Mic3L Switch";
162 pinctrl-names = "default";
163 pinctrl-0 = <&audio_pins>;
165 op-mode = <0>; /* MCASP_ISS_MODE */
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 */
190 /* Display: 24-bit LCD Screen */
193 pinctrl-names = "default";
194 pinctrl-0 = <&lcd_pins>;
197 ac-bias-intrpt = <0>;
207 native-mode = <&timing0>;
209 clock-frequency = <18400000>;
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 */
260 AM33XX_IOPAD(0x86c, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a11.gpio1_27 */
268 phy_id = <&davinci_mdio>, <0>;
274 phy_id = <&davinci_mdio>, <1>;
280 pinctrl-names = "default";
281 pinctrl-0 = <&mdio_pins>;
286 pinctrl-names = "default";
287 pinctrl-0 = <ðernet_pins>;
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 */
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 */
323 /* Bootable SD card slot */
325 vmmc-supply = <&ldo3_reg>;
327 pinctrl-names = "default";
328 pinctrl-0 = <&sd_pins>;
329 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
333 /* eMMC (not populated) on MMC #2 */
335 pinctrl-names = "default";
336 pinctrl-0 = <&emmc_pins>;
337 vmmc-supply = <&ldo3_reg>;
343 /* Wifi & Bluetooth on MMC #3 */
345 pinctrl-names = "default";
346 pinctrl-0 = <&wireless_pins>;
347 vmmmc-supply = <&v3v3c_reg>;
350 dmas = <&edma_xbar 12 0 1
352 dma-names = "tx", "rx";
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 */
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 */
381 AM33XX_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
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 */
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 */
397 AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
404 regulator-name = "vbat";
405 regulator-min-microvolt = <5000000>;
406 regulator-max-microvolt = <5000000>;
410 regulator-name = "v3v3c_reg";
411 regulator-min-microvolt = <3300000>;
412 regulator-max-microvolt = <3300000>;
413 vin-supply = <&vbat>;
417 regulator-name = "vdd5_reg";
418 regulator-min-microvolt = <5000000>;
419 regulator-max-microvolt = <5000000>;
420 vin-supply = <&vbat>;
423 /include/ "tps65217.dtsi"
427 isel = <1>; /* ISET1 */
428 fdim = <200>; /* TPS65217_BL_FDIM_200HZ */
429 default-brightness = <80>;
433 dcdc1_reg: regulator@0 {
434 /* VDD_1V8 system supply */
438 dcdc2_reg: regulator@1 {
439 /* VDD_CORE voltage limits 0.95V - 1.26V with +/-4% tolerance */
440 regulator-name = "vdd_core";
441 regulator-min-microvolt = <925000>;
442 regulator-max-microvolt = <1150000>;
447 dcdc3_reg: regulator@2 {
448 /* VDD_MPU voltage limits 0.95V - 1.1V with +/-4% tolerance */
449 regulator-name = "vdd_mpu";
450 regulator-min-microvolt = <925000>;
451 regulator-max-microvolt = <1325000>;
456 ldo1_reg: regulator@3 {
457 /* VRTC 1.8V always-on supply */
458 regulator-name = "vrtc,vdds";
462 ldo2_reg: regulator@4 {
464 regulator-name = "vdd_3v3aux";
468 ldo3_reg: regulator@5 {
469 /* VDD_3V3A 3.3V rail */
470 regulator-name = "vdd_3v3a";
471 regulator-min-microvolt = <3300000>;
472 regulator-max-microvolt = <3300000>;
475 ldo4_reg: regulator@6 {
476 /* VDD_3V3B 3.3V rail */
477 regulator-name = "vdd_3v3b";
486 pinctrl-names = "default";
487 pinctrl-0 = <&spi0_pins>;
491 spi0_pins: pinmux_spi0 {
492 pinctrl-single,pins = <
493 AM33XX_IOPAD(0x950, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_sclk.spi0_sclk */
494 AM33XX_IOPAD(0x95C, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_cs0.spi0_cs0 */
495 AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d0.spi0_d0 */
496 AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d1.spi0_d1 */
506 ti,x-plate-resistance = <200>;
507 ti,coordinate-readouts = <5>;
508 ti,wire-config = <0x00 0x11 0x22 0x33>;
512 ti,adc-channels = <4 5 6 7>;
520 pinctrl-names = "default";
521 pinctrl-0 = <&uart0_pins>;
525 /* Broken out to J6 header */
527 pinctrl-names = "default";
528 pinctrl-0 = <&uart1_pins>;
532 uart0_pins: pinmux_uart0 {
533 pinctrl-single,pins = <
534 AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
535 AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
538 uart1_pins: pinmux_uart1 {
539 pinctrl-single,pins = <
540 AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */
541 AM33XX_IOPAD(0x97C, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */
542 AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
543 AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
552 pinctrl-names = "default";
553 pinctrl-0 = <&usb_pins>;
583 usb_pins: pinmux_usb {
584 pinctrl-single,pins = <
585 /* USB0 Over-Current (active low) */
586 AM33XX_IOPAD(0x864, PIN_INPUT | MUX_MODE7) /* gpmc_a9.gpio1_25 */
587 /* USB1 Over-Current (active low) */
588 AM33XX_IOPAD(0x868, PIN_INPUT | MUX_MODE7) /* gpmc_a10.gpio1_26 */
595 pinctrl-names = "default";
596 pinctrl-0 = <&user_leds_pins>;
599 label = "pepper:user0:blue";
600 gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
601 linux,default-trigger = "none";
602 default-state = "off";
606 label = "pepper:user1:red";
607 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
608 linux,default-trigger = "none";
609 default-state = "off";
614 pinctrl-names = "default";
615 pinctrl-0 = <&user_buttons_pins>;
616 #address-cells = <1>;
621 linux,code = <KEY_HOME>;
622 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
628 linux,code = <KEY_MENU>;
629 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
635 linux,code = <KEY_POWER>;
636 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
642 user_leds_pins: pinmux_user_leds {
643 pinctrl-single,pins = <
644 AM33XX_IOPAD(0x850, PIN_OUTPUT | MUX_MODE7) /* gpmc_a4.gpio1_20 */
645 AM33XX_IOPAD(0x854, PIN_OUTPUT | MUX_MODE7) /* gpmc_a5.gpio1_21 */
649 user_buttons_pins: pinmux_user_buttons {
650 pinctrl-single,pins = <
651 AM33XX_IOPAD(0x858, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */
652 AM33XX_IOPAD(0x85C, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a7.gpio1_21 */
653 AM33XX_IOPAD(0x964, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio0_7 */