xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/at91rm9200ek.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * at91rm9200ek.dts - Device Tree file for Atmel AT91RM9200 evaluation kit
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot *  Copyright (C) 2012 Joachim Eastwood <manabian@gmail.com>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot/dts-v1/;
8*f126890aSEmmanuel Vadot#include "at91rm9200.dtsi"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "Atmel AT91RM9200 evaluation kit";
12*f126890aSEmmanuel Vadot	compatible = "atmel,at91rm9200ek", "atmel,at91rm9200";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	chosen {
15*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
16*f126890aSEmmanuel Vadot	};
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	memory@20000000 {
19*f126890aSEmmanuel Vadot		reg = <0x20000000 0x4000000>;
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	clocks {
23*f126890aSEmmanuel Vadot		slow_xtal {
24*f126890aSEmmanuel Vadot			clock-frequency = <32768>;
25*f126890aSEmmanuel Vadot		};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot		main_xtal {
28*f126890aSEmmanuel Vadot			clock-frequency = <18432000>;
29*f126890aSEmmanuel Vadot		};
30*f126890aSEmmanuel Vadot	};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot	ahb {
33*f126890aSEmmanuel Vadot		apb {
34*f126890aSEmmanuel Vadot			tcb0: timer@fffa0000 {
35*f126890aSEmmanuel Vadot				timer@0 {
36*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
37*f126890aSEmmanuel Vadot					reg = <0>, <1>;
38*f126890aSEmmanuel Vadot				};
39*f126890aSEmmanuel Vadot
40*f126890aSEmmanuel Vadot				timer@2 {
41*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
42*f126890aSEmmanuel Vadot					reg = <2>;
43*f126890aSEmmanuel Vadot				};
44*f126890aSEmmanuel Vadot			};
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot			usb1: gadget@fffb0000 {
47*f126890aSEmmanuel Vadot				atmel,vbus-gpio = <&pioD 4 GPIO_ACTIVE_HIGH>;
48*f126890aSEmmanuel Vadot				atmel,pullup-gpio = <&pioD 5 GPIO_ACTIVE_HIGH>;
49*f126890aSEmmanuel Vadot				status = "okay";
50*f126890aSEmmanuel Vadot			};
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot			macb0: ethernet@fffbc000 {
53*f126890aSEmmanuel Vadot				phy-mode = "rmii";
54*f126890aSEmmanuel Vadot				status = "okay";
55*f126890aSEmmanuel Vadot
56*f126890aSEmmanuel Vadot				phy0: ethernet-phy {
57*f126890aSEmmanuel Vadot					interrupt-parent = <&pioC>;
58*f126890aSEmmanuel Vadot					interrupts = <4 IRQ_TYPE_EDGE_BOTH>;
59*f126890aSEmmanuel Vadot				};
60*f126890aSEmmanuel Vadot			};
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot			usart1: serial@fffc4000 {
63*f126890aSEmmanuel Vadot				pinctrl-0 =
64*f126890aSEmmanuel Vadot						<&pinctrl_uart1
65*f126890aSEmmanuel Vadot						 &pinctrl_uart1_rts
66*f126890aSEmmanuel Vadot						 &pinctrl_uart1_cts
67*f126890aSEmmanuel Vadot						 &pinctrl_uart1_dtr_dsr
68*f126890aSEmmanuel Vadot						 &pinctrl_uart1_dcd
69*f126890aSEmmanuel Vadot						 &pinctrl_uart1_ri>;
70*f126890aSEmmanuel Vadot				status = "okay";
71*f126890aSEmmanuel Vadot			};
72*f126890aSEmmanuel Vadot
73*f126890aSEmmanuel Vadot			spi0: spi@fffe0000 {
74*f126890aSEmmanuel Vadot				status = "okay";
75*f126890aSEmmanuel Vadot				cs-gpios = <&pioA 3 0>, <0>, <0>, <0>;
76*f126890aSEmmanuel Vadot				flash@0 {
77*f126890aSEmmanuel Vadot					compatible = "atmel,at45", "atmel,dataflash";
78*f126890aSEmmanuel Vadot					spi-max-frequency = <15000000>;
79*f126890aSEmmanuel Vadot					reg = <0>;
80*f126890aSEmmanuel Vadot				};
81*f126890aSEmmanuel Vadot			};
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot			dbgu: serial@fffff200 {
84*f126890aSEmmanuel Vadot				status = "okay";
85*f126890aSEmmanuel Vadot			};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot			rtc: rtc@fffffe00 {
88*f126890aSEmmanuel Vadot				status = "okay";
89*f126890aSEmmanuel Vadot			};
90*f126890aSEmmanuel Vadot		};
91*f126890aSEmmanuel Vadot
92*f126890aSEmmanuel Vadot		usb0: ohci@300000 {
93*f126890aSEmmanuel Vadot			num-ports = <2>;
94*f126890aSEmmanuel Vadot			status = "okay";
95*f126890aSEmmanuel Vadot		};
96*f126890aSEmmanuel Vadot
97*f126890aSEmmanuel Vadot		flash@10000000 {
98*f126890aSEmmanuel Vadot			compatible = "cfi-flash";
99*f126890aSEmmanuel Vadot			reg = <0x10000000 0x800000>;
100*f126890aSEmmanuel Vadot			linux,mtd-name = "physmap-flash.0";
101*f126890aSEmmanuel Vadot			bank-width = <2>;
102*f126890aSEmmanuel Vadot			#address-cells = <1>;
103*f126890aSEmmanuel Vadot			#size-cells = <1>;
104*f126890aSEmmanuel Vadot
105*f126890aSEmmanuel Vadot			barebox@0 {
106*f126890aSEmmanuel Vadot				label = "barebox";
107*f126890aSEmmanuel Vadot				reg = <0x00000 0x40000>;
108*f126890aSEmmanuel Vadot			};
109*f126890aSEmmanuel Vadot
110*f126890aSEmmanuel Vadot			bareboxenv@40000 {
111*f126890aSEmmanuel Vadot				label = "bareboxenv";
112*f126890aSEmmanuel Vadot				reg = <0x40000 0x10000>;
113*f126890aSEmmanuel Vadot			};
114*f126890aSEmmanuel Vadot
115*f126890aSEmmanuel Vadot			kernel@50000 {
116*f126890aSEmmanuel Vadot				label = "kernel";
117*f126890aSEmmanuel Vadot				reg = <0x50000 0x300000>;
118*f126890aSEmmanuel Vadot			};
119*f126890aSEmmanuel Vadot
120*f126890aSEmmanuel Vadot			root@350000  {
121*f126890aSEmmanuel Vadot				label = "root";
122*f126890aSEmmanuel Vadot				reg = <0x350000 0x4B0000>;
123*f126890aSEmmanuel Vadot			};
124*f126890aSEmmanuel Vadot		};
125*f126890aSEmmanuel Vadot	};
126*f126890aSEmmanuel Vadot
127*f126890aSEmmanuel Vadot	leds {
128*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
129*f126890aSEmmanuel Vadot
130*f126890aSEmmanuel Vadot		ds2 {
131*f126890aSEmmanuel Vadot			label = "green";
132*f126890aSEmmanuel Vadot			gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
133*f126890aSEmmanuel Vadot			linux,default-trigger = "mmc0";
134*f126890aSEmmanuel Vadot		};
135*f126890aSEmmanuel Vadot
136*f126890aSEmmanuel Vadot		ds4 {
137*f126890aSEmmanuel Vadot			label = "yellow";
138*f126890aSEmmanuel Vadot			gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
139*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
140*f126890aSEmmanuel Vadot		};
141*f126890aSEmmanuel Vadot
142*f126890aSEmmanuel Vadot		ds6 {
143*f126890aSEmmanuel Vadot			label = "red";
144*f126890aSEmmanuel Vadot			gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
145*f126890aSEmmanuel Vadot		};
146*f126890aSEmmanuel Vadot	};
147*f126890aSEmmanuel Vadot};
148