beaglebone-black.dts revision 250435
1139749Simp/*-
2139749Simp * Copyright (c) 2012 Damjan Marion <dmarion@Freebsd.org>
3112015Sanholt * All rights reserved.
4145132Sanholt *
5112015Sanholt * Redistribution and use in source and binary forms, with or without
6112015Sanholt * modification, are permitted provided that the following conditions
7112015Sanholt * are met:
8112015Sanholt * 1. Redistributions of source code must retain the above copyright
9112015Sanholt *    notice, this list of conditions and the following disclaimer.
10112015Sanholt * 2. Redistributions in binary form must reproduce the above copyright
11112015Sanholt *    notice, this list of conditions and the following disclaimer in the
12112015Sanholt *    documentation and/or other materials provided with the distribution.
13112015Sanholt *
14112015Sanholt * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15112015Sanholt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16112015Sanholt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17112015Sanholt * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18112015Sanholt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19112015Sanholt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20112015Sanholt * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21112015Sanholt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22112015Sanholt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23112015Sanholt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24112015Sanholt * SUCH DAMAGE.
25112015Sanholt * 
26112015Sanholt * $FreeBSD: head/sys/boot/fdt/dts/beaglebone-black.dts 250435 2013-05-10 05:34:08Z kientzle $
27112015Sanholt */
28112015Sanholt
29112015Sanholt/dts-v1/;
30145132Sanholt
31112015Sanholt/include/ "am335x.dtsi"
32112015Sanholt
33152909Sanholt/ {
34152909Sanholt	model = "beaglebone-black";
35152909Sanholt	compatible = "beaglebone-black", "beaglebone", "ti,am335x";
36112015Sanholt
37112015Sanholt
38112015Sanholt	aliases {
39112015Sanholt		soc = &SOC;
40112015Sanholt		uart0 = &uart0;
41182080Srnoland	};
42152909Sanholt
43182080Srnoland	memory {
44182080Srnoland		device_type = "memory";
45182080Srnoland		reg = < 0x80000000 0x20000000 >;	/* 512MB RAM */
46182080Srnoland	};
47182080Srnoland
48182080Srnoland	am335x {
49182080Srnoland 		scm@44e10000 {
50186465Srnoland			/* Set of triplets < padname, muxname, padstate> */
51186465Srnoland			scm-pad-config =
52182080Srnoland				/* I2C0 */
53182080Srnoland				"I2C0_SDA", "I2C0_SDA","i2c",
54182080Srnoland				"I2C0_SCL", "I2C0_SCL","i2c",
55182080Srnoland				/* Ethernet */
56182080Srnoland				"MII1_RX_ER", "gmii1_rxerr", "input_pulldown",
57182080Srnoland				"MII1_TX_EN", "gmii1_txen", "output",
58182080Srnoland				"MII1_RX_DV", "gmii1_rxdv", "input_pulldown",
59182080Srnoland				"MII1_TXD3", "gmii1_txd3", "output",
60182080Srnoland				"MII1_TXD2", "gmii1_txd2", "output",
61182080Srnoland				"MII1_TXD1", "gmii1_txd1", "output",
62182080Srnoland				"MII1_TXD0", "gmii1_txd0", "output",
63186465Srnoland				"MII1_TX_CLK", "gmii1_txclk", "input_pulldown",
64186465Srnoland				"MII1_RX_CLK", "gmii1_rxclk", "input_pulldown",
65182080Srnoland				"MII1_RXD3", "gmii1_rxd3", "input_pulldown",
66182080Srnoland				"MII1_RXD2", "gmii1_rxd2", "input_pulldown",
67182080Srnoland				"MII1_RXD1", "gmii1_rxd1",  "input_pulldown",
68182080Srnoland				"MII1_RXD0", "gmii1_rxd0",  "input_pulldown",
69182080Srnoland				"MDIO", "mdio_data", "input_pullup",
70182080Srnoland				"MDC", "mdio_clk", "output_pullup",
71189499Srnoland				/* MMCSD0 */
72182080Srnoland				"MMC0_CMD", "mmc0_cmd", "input_pullup",
73182080Srnoland				"MMC0_CLK", "mmc0_clk", "input_pullup",
74182080Srnoland				"MMC0_DAT0", "mmc0_dat0", "input_pullup",
75182080Srnoland				"MMC0_DAT1", "mmc0_dat1", "input_pullup",
76182080Srnoland				"MMC0_DAT2", "mmc0_dat2", "input_pullup",
77182080Srnoland				"MMC0_DAT3", "mmc0_dat3", "input_pullup",
78182080Srnoland				/* MMC1 */
79182080Srnoland				"GPMC_CSn1", "mmc1_clk", "input_pulldown",
80182080Srnoland				"GPMC_CSn2", "mmc1_cmd", "input_pulldown",
81182080Srnoland				"GPMC_AD0", "mmc1_dat0", "input_pulldown",
82182080Srnoland				"GPMC_AD1", "mmc1_dat1", "input_pulldown",
83182080Srnoland				"GPMC_AD2", "mmc1_dat2", "input_pulldown",
84182080Srnoland				"GPMC_AD3", "mmc1_dat3", "input_pulldown",
85182080Srnoland				"GPMC_AD4", "mmc1_dat4", "input_pulldown",
86182080Srnoland				"GPMC_AD5", "mmc1_dat5", "input_pulldown",
87182080Srnoland				"GPMC_AD6", "mmc1_dat6", "input_pulldown",
88182080Srnoland				"GPMC_AD7", "mmc1_dat7", "input_pulldown",
89182080Srnoland				/* GPIO */
90182080Srnoland				"ECAP0_IN_PWM0_OUT", "gpio0_7", "input_pulldown",
91182080Srnoland				"GPMC_AD10", "gpio0_26", "input_pulldown",
92182080Srnoland				"GPMC_AD11", "gpio0_27", "input_pulldown",
93182080Srnoland				"GPMC_AD12", "gpio1_12", "input_pulldown",
94182080Srnoland				"GPMC_AD13", "gpio1_13", "input_pulldown",
95182080Srnoland				"GPMC_AD14", "gpio1_14", "input_pulldown",
96182080Srnoland				"GPMC_AD15", "gpio1_15", "input_pulldown",
97182080Srnoland				"GPMC_A0", "gpio1_16", "input_pulldown",
98182080Srnoland				"GPMC_A1", "gpio1_17", "input_pulldown",
99182080Srnoland				"GPMC_A5", "gpio1_21", "output", /* User LED 1 */
100182080Srnoland				"GPMC_A6", "gpio1_22", "output", /* User LED 2 */
101182080Srnoland				"GPMC_A7", "gpio1_23", "output", /* User LED 3 */
102182080Srnoland				"GPMC_A8", "gpio1_24", "output", /* User LED 4 */
103182080Srnoland				"GPMC_BEn1", "gpio1_28", "input_pulldown",
104182080Srnoland				"GPMC_CSn0", "gpio1_29", "input_pulldown",
105182080Srnoland				"GPMC_CLK", "gpio2_1", "input_pulldown",
106189499Srnoland				"LCD_DATA0", "gpio2_6", "input_pulldown", 
107182080Srnoland				"LCD_DATA1", "gpio2_7", "input_pulldown", 
108182080Srnoland				"LCD_DATA2", "gpio2_8", "input_pulldown", 
109182080Srnoland				"LCD_DATA3", "gpio2_9", "input_pulldown", 
110182080Srnoland				"LCD_DATA4", "gpio2_10", "input_pulldown", 
111182080Srnoland				"LCD_DATA5", "gpio2_11", "input_pulldown", 
112182080Srnoland				"LCD_DATA6", "gpio2_12", "input_pulldown", 
113182080Srnoland				"LCD_DATA7", "gpio2_13", "input_pulldown", 
114182080Srnoland				"LCD_VSYNC", "gpio2_22", "input_pulldown",
115182080Srnoland				"LCD_HSYNC", "gpio2_23", "input_pulldown",
116182080Srnoland				"LCD_PCLK", "gpio2_24", "input_pulldown",
117182080Srnoland				"LCD_AC_BIAS_EN", "gpio2_25", "input_pulldown",
118182080Srnoland				"MCASP0_FSR", "gpio3_19", "input_pulldown",
119182080Srnoland				"MCASP0_AHCLKX", "gpio3_21", "input_pulldown",
120182080Srnoland				/* TIMERs */
121182080Srnoland				"GPMC_ADVn_ALE", "timer4", "output",
122182080Srnoland				"GPMC_BEn0_CLE", "timer5", "output",
123182080Srnoland				"GPMC_WEn", "timer6", "output",
124182080Srnoland				"GPMC_OEn_REn", "timer7", "output",
125182080Srnoland				/* PWM */
126182080Srnoland				"GPMC_A2", "ehrpwm1A", "output",
127182080Srnoland				"GPMC_A3", "ehrpwm1B", "output",
128182080Srnoland				"GPMC_AD8", "ehrpwm2A", "output",
129182080Srnoland				"GPMC_AD9", "ehrpwm2B", "output";
130182080Srnoland 		};
131182080Srnoland
132182080Srnoland		mmchs1@481D8000 {
133182080Srnoland			status = "ok";
134182080Srnoland		};
135182080Srnoland
136182080Srnoland 
137182080Srnoland		i2c@44e0b000 {
138182080Srnoland			pmic@24 {
139182080Srnoland				compatible = "ti,am335x-pmic";
140182080Srnoland				reg = <0x24>;
141189499Srnoland			};
142182080Srnoland		}
143182080Srnoland	};
144182080Srnoland
145182080Srnoland	chosen {
146182080Srnoland		stdin = "uart0";
147182080Srnoland		stdout = "uart0";
148182080Srnoland	};
149182080Srnoland};
150182080Srnoland