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 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
97 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
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 */
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 0x98 (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 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 */
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 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 */
260 0x6c (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 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 */
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 */
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 /* Map eDMA MMC2 Events from Crossbar */
344 ti,edma-xbar-event-map = /bits/ 16 <1 12
350 /* Wifi & Bluetooth on MMC #3 */
352 pinctrl-names = "default";
353 pinctrl-0 = <&wireless_pins>;
354 vmmmc-supply = <&v3v3c_reg>;
359 dma-names = "tx", "rx";
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 */
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 */
388 0x74 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
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 */
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 */
404 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
411 regulator-name = "vbat";
412 regulator-min-microvolt = <5000000>;
413 regulator-max-microvolt = <5000000>;
417 regulator-name = "v3v3c_reg";
418 regulator-min-microvolt = <3300000>;
419 regulator-max-microvolt = <3300000>;
420 vin-supply = <&vbat>;
424 regulator-name = "vdd5_reg";
425 regulator-min-microvolt = <5000000>;
426 regulator-max-microvolt = <5000000>;
427 vin-supply = <&vbat>;
430 /include/ "tps65217.dtsi"
434 isel = <1>; /* ISET1 */
435 fdim = <200>; /* TPS65217_BL_FDIM_200HZ */
436 default-brightness = <80>;
440 dcdc1_reg: regulator@0 {
441 /* VDD_1V8 system supply */
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>;
449 regulator-max-microvolt = <1150000>;
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>;
458 regulator-max-microvolt = <1325000>;
463 ldo1_reg: regulator@3 {
464 /* VRTC 1.8V always-on supply */
465 regulator-name = "vrtc,vdds";
469 ldo2_reg: regulator@4 {
471 regulator-name = "vdd_3v3aux";
475 ldo3_reg: regulator@5 {
476 /* VDD_3V3A 3.3V rail */
477 regulator-name = "vdd_3v3a";
478 regulator-min-microvolt = <3300000>;
479 regulator-max-microvolt = <3300000>;
482 ldo4_reg: regulator@6 {
483 /* VDD_3V3B 3.3V rail */
484 regulator-name = "vdd_3v3b";
493 pinctrl-names = "default";
494 pinctrl-0 = <&spi0_pins>;
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 */
513 ti,x-plate-resistance = <200>;
514 ti,coordinate-readouts = <5>;
515 ti,wire-config = <0x00 0x11 0x22 0x33>;
519 ti,adc-channels = <4 5 6 7>;
527 pinctrl-names = "default";
528 pinctrl-0 = <&uart0_pins>;
532 /* Broken out to J6 header */
534 pinctrl-names = "default";
535 pinctrl-0 = <&uart1_pins>;
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 */
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 */
559 pinctrl-names = "default";
560 pinctrl-0 = <&usb_pins>;
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 */
602 pinctrl-names = "default";
603 pinctrl-0 = <&user_leds_pins>;
606 label = "pepper:user0:blue";
607 gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
608 linux,default-trigger = "none";
609 default-state = "off";
613 label = "pepper:user1:red";
614 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
615 linux,default-trigger = "none";
616 default-state = "off";
621 pinctrl-names = "default";
622 pinctrl-0 = <&user_buttons_pins>;
623 #address-cells = <1>;
628 linux,code = <KEY_HOME>;
629 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
635 linux,code = <KEY_MENU>;
636 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
642 linux,code = <KEY_POWER>;
643 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
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 */
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 */