at91rm9200ek.dts 2.4 KB
Newer Older
1 2 3 4 5 6 7 8
/*
 * at91rm9200ek.dts - Device Tree file for Atmel AT91RM9200 evaluation kit
 *
 *  Copyright (C) 2012 Joachim Eastwood <manabian@gmail.com>
 *
 * Licensed under GPLv2 only
 */
/dts-v1/;
9
#include "at91rm9200.dtsi"
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

/ {
	model = "Atmel AT91RM9200 evaluation kit";
	compatible = "atmel,at91rm9200ek", "atmel,at91rm9200";

	memory {
		reg = <0x20000000 0x4000000>;
	};

	clocks {
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		main_clock: clock@0 {
			compatible = "atmel,osc", "fixed-clock";
			clock-frequency = <18432000>;
		};
28 29 30 31 32 33 34 35

		slow_xtal {
			clock-frequency = <32768>;
		};

		main_xtal {
			clock-frequency = <18432000>;
		};
36 37 38 39
	};

	ahb {
		apb {
40 41 42
			usb1: gadget@fffb0000 {
				atmel,vbus-gpio = <&pioD 4 GPIO_ACTIVE_HIGH>;
				atmel,pullup-gpio = <&pioD 5 GPIO_ACTIVE_HIGH>;
43 44 45
				status = "okay";
			};

46 47 48
			macb0: ethernet@fffbc000 {
				phy-mode = "rmii";
				status = "okay";
49 50 51 52 53

				phy0: ethernet-phy {
					interrupt-parent = <&pioC>;
					interrupts = <4 IRQ_TYPE_EDGE_BOTH>;
				};
54 55
			};

56 57 58 59 60 61 62 63
			usart1: serial@fffc4000 {
				pinctrl-0 =
						<&pinctrl_uart1
						 &pinctrl_uart1_rts
						 &pinctrl_uart1_cts
						 &pinctrl_uart1_dtr_dsr
						 &pinctrl_uart1_dcd
						 &pinctrl_uart1_ri>;
64 65
				status = "okay";
			};
66 67 68 69 70 71 72 73 74 75

			spi0: spi@fffe0000 {
				status = "okay";
				cs-gpios = <&pioA 3 0>, <0>, <0>, <0>;
				mtd_dataflash@0 {
					compatible = "atmel,at45", "atmel,dataflash";
					spi-max-frequency = <15000000>;
					reg = <0>;
				};
			};
76 77 78 79

			dbgu: serial@fffff200 {
				status = "okay";
			};
80 81 82 83

			rtc: rtc@fffffe00 {
				status = "okay";
			};
84 85 86 87 88 89
		};

		usb0: ohci@00300000 {
			num-ports = <2>;
			status = "okay";
		};
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118

		nor_flash@10000000 {
			compatible = "cfi-flash";
			reg = <0x10000000 0x800000>;
			linux,mtd-name = "physmap-flash.0";
			bank-width = <2>;
			#address-cells = <1>;
			#size-cells = <1>;

			barebox@0 {
				label = "barebox";
				reg = <0x00000 0x40000>;
			};

			bareboxenv@40000 {
				label = "bareboxenv";
				reg = <0x40000 0x10000>;
			};

			kernel@50000 {
				label = "kernel";
				reg = <0x50000 0x300000>;
			};

			root@350000  {
				label = "root";
				reg = <0x350000 0x4B0000>;
			};
		};
119 120 121 122 123 124 125
	};

	leds {
		compatible = "gpio-leds";

		ds2 {
			label = "green";
126
			gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
127 128 129 130 131
			linux,default-trigger = "mmc0";
		};

		ds4 {
			label = "yellow";
132
			gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
133 134 135 136 137
			linux,default-trigger = "heartbeat";
		};

		ds6 {
			label = "red";
138
			gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
139 140 141
		};
	};
};