beaglebone.dts revision 252914
1238106Sdes/*-
2238106Sdes * Copyright (c) 2012 Damjan Marion <dmarion@Freebsd.org>
3238106Sdes * All rights reserved.
4238106Sdes *
5238106Sdes * Redistribution and use in source and binary forms, with or without
6238106Sdes * modification, are permitted provided that the following conditions
7238106Sdes * are met:
8238106Sdes * 1. Redistributions of source code must retain the above copyright
9238106Sdes *    notice, this list of conditions and the following disclaimer.
10238106Sdes * 2. Redistributions in binary form must reproduce the above copyright
11238106Sdes *    notice, this list of conditions and the following disclaimer in the
12238106Sdes *    documentation and/or other materials provided with the distribution.
13238106Sdes *
14238106Sdes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15238106Sdes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16238106Sdes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17238106Sdes * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18238106Sdes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19238106Sdes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20238106Sdes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21238106Sdes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22238106Sdes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23238106Sdes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24266114Sdes * SUCH DAMAGE.
25266114Sdes * 
26266114Sdes * $FreeBSD: head/sys/boot/fdt/dts/beaglebone.dts 252914 2013-07-07 04:23:29Z gonzo $
27266114Sdes */
28266114Sdes
29266114Sdes/dts-v1/;
30266114Sdes
31266114Sdes/include/ "am335x.dtsi"
32266114Sdes
33266114Sdes/ {
34238106Sdes	model = "beaglebone";
35238106Sdes	compatible = "beaglebone", "ti,am335x";
36238106Sdes
37238106Sdes	aliases {
38238106Sdes		soc = &SOC;
39238106Sdes		uart0 = &uart0;
40238106Sdes	};
41238106Sdes
42238106Sdes	memory {
43238106Sdes		device_type = "memory";
44238106Sdes		reg = < 0x80000000 0x10000000 >;	/* 256MB RAM */
45266114Sdes	};
46238106Sdes
47238106Sdes	am335x {
48238106Sdes 		scm@44e10000 {
49238106Sdes			/* Set of triplets < padname, muxname, padstate> */
50238106Sdes			scm-pad-config =
51238106Sdes				/* I2C0 */
52238106Sdes				"I2C0_SDA", "I2C0_SDA","i2c",
53238106Sdes				"I2C0_SCL", "I2C0_SCL","i2c",
54238106Sdes				/* Ethernet */
55238106Sdes				"MII1_RX_ER", "gmii1_rxerr", "input_pulldown",
56238106Sdes				"MII1_TX_EN", "gmii1_txen", "output",
57238106Sdes				"MII1_RX_DV", "gmii1_rxdv", "input_pulldown",
58238106Sdes				"MII1_TXD3", "gmii1_txd3", "output",
59238106Sdes				"MII1_TXD2", "gmii1_txd2", "output",
60238106Sdes				"MII1_TXD1", "gmii1_txd1", "output",
61238106Sdes				"MII1_TXD0", "gmii1_txd0", "output",
62238106Sdes				"MII1_TX_CLK", "gmii1_txclk", "input_pulldown",
63238106Sdes				"MII1_RX_CLK", "gmii1_rxclk", "input_pulldown",
64238106Sdes				"MII1_RXD3", "gmii1_rxd3", "input_pulldown",
65266114Sdes				"MII1_RXD2", "gmii1_rxd2", "input_pulldown",
66238106Sdes				"MII1_RXD1", "gmii1_rxd1",  "input_pulldown",
67238106Sdes				"MII1_RXD0", "gmii1_rxd0",  "input_pulldown",
68238106Sdes				"MDIO", "mdio_data", "input_pullup",
69238106Sdes				"MDC", "mdio_clk", "output_pullup",
70				/* MMCSD0 */
71				"MMC0_CMD", "mmc0_cmd", "input_pullup",
72				"MMC0_CLK", "mmc0_clk", "input_pullup",
73				"MMC0_DAT0", "mmc0_dat0", "input_pullup",
74				"MMC0_DAT1", "mmc0_dat1", "input_pullup",
75				"MMC0_DAT2", "mmc0_dat2", "input_pullup",
76				"MMC0_DAT3", "mmc0_dat3", "input_pullup",
77				/* USB0 and USB1 */
78				"USB0_DRVVBUS", "USB0_DRVVBUS", "output",
79				"USB1_DRVVBUS", "USB1_DRVVBUS", "output",
80				/* GPIO */
81				"ECAP0_IN_PWM0_OUT", "gpio0_7", "input_pulldown",
82				"GPMC_AD10", "gpio0_26", "input_pulldown",
83				"GPMC_AD11", "gpio0_27", "input_pulldown",
84				"GPMC_AD0", "gpio1_0", "input_pulldown",
85				"GPMC_AD1", "gpio1_1", "input_pulldown",
86				"GPMC_AD2", "gpio1_2", "input_pulldown",
87				"GPMC_AD3", "gpio1_3", "input_pulldown",
88				"GPMC_AD4", "gpio1_4", "input_pulldown",
89				"GPMC_AD5", "gpio1_5", "input_pulldown",
90				"GPMC_AD6", "gpio1_6", "input_pulldown",
91				"GPMC_AD7", "gpio1_7", "input_pulldown",
92				"GPMC_AD12", "gpio1_12", "input_pulldown",
93				"GPMC_AD13", "gpio1_13", "input_pulldown",
94				"GPMC_AD14", "gpio1_14", "input_pulldown",
95				"GPMC_AD15", "gpio1_15", "input_pulldown",
96				"GPMC_A0", "gpio1_16", "input_pulldown",
97				"GPMC_A1", "gpio1_17", "input_pulldown",
98				"GPMC_A5", "gpio1_21", "output", /* User LED 1 */
99				"GPMC_A6", "gpio1_22", "output", /* User LED 2 */
100				"GPMC_A7", "gpio1_23", "output", /* User LED 3 */
101				"GPMC_A8", "gpio1_24", "output", /* User LED 4 */
102				"GPMC_BEn1", "gpio1_28", "input_pulldown",
103				"GPMC_CSn0", "gpio1_29", "input_pulldown",
104				"GPMC_CSn1", "gpio1_30", "input_pulldown",
105				"GPMC_CSn2", "gpio1_31", "input_pulldown",
106				"GPMC_CLK", "gpio2_1", "input_pulldown",
107				"LCD_DATA0", "gpio2_6", "input_pulldown", 
108				"LCD_DATA1", "gpio2_7", "input_pulldown", 
109				"LCD_DATA2", "gpio2_8", "input_pulldown", 
110				"LCD_DATA3", "gpio2_9", "input_pulldown", 
111				"LCD_DATA4", "gpio2_10", "input_pulldown", 
112				"LCD_DATA5", "gpio2_11", "input_pulldown", 
113				"LCD_DATA6", "gpio2_12", "input_pulldown", 
114				"LCD_DATA7", "gpio2_13", "input_pulldown", 
115				"LCD_VSYNC", "gpio2_22", "input_pulldown",
116				"LCD_HSYNC", "gpio2_23", "input_pulldown",
117				"LCD_PCLK", "gpio2_24", "input_pulldown",
118				"LCD_AC_BIAS_EN", "gpio2_25", "input_pulldown",
119				"MCASP0_FSR", "gpio3_19", "input_pulldown",
120				"MCASP0_AHCLKX", "gpio3_21", "input_pulldown",
121				/* TIMERs */
122				"GPMC_ADVn_ALE", "timer4", "output",
123				"GPMC_BEn0_CLE", "timer5", "output",
124				"GPMC_WEn", "timer6", "output",
125				"GPMC_OEn_REn", "timer7", "output",
126				/* PWM */
127				"GPMC_A2", "ehrpwm1A", "output",
128				"GPMC_A3", "ehrpwm1B", "output",
129				"GPMC_AD8", "ehrpwm2A", "output",
130				"GPMC_AD9", "ehrpwm2B", "output";
131 		};
132 
133		i2c@44e0b000 {
134			pmic@24 {
135				compatible = "ti,am335x-pmic";
136				reg = <0x24>;
137			};
138		}
139	};
140
141	chosen {
142		stdin = "uart0";
143		stdout = "uart0";
144	};
145};
146