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