• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * usb_a926x.dts - Device Tree file for Caloa USB A926x board
3 *
4 *  Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
5 *
6 * Licensed under GPLv2 or later.
7 */
8
9/ {
10	clocks {
11		slow_xtal {
12			clock-frequency = <32768>;
13		};
14
15		main_xtal {
16			clock-frequency = <12000000>;
17		};
18	};
19
20	ahb {
21		apb {
22			dbgu: serial@fffff200 {
23				status = "okay";
24			};
25
26			macb0: ethernet@fffc4000 {
27				phy-mode = "rmii";
28				status = "okay";
29			};
30
31			usb1: gadget@fffa4000 {
32				atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
33				status = "okay";
34			};
35		};
36
37		ebi: ebi@10000000 {
38			status = "okay";
39
40			nand_controller: nand-controller {
41				status = "okay";
42				pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
43				pinctrl-names = "default";
44
45				nand@3 {
46					reg = <0x3 0x0 0x800000>;
47					rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
48					cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
49					nand-bus-width = <8>;
50					nand-ecc-mode = "soft";
51					nand-on-flash-bbt;
52					label = "atmel_nand";
53
54					partitions {
55						compatible = "fixed-partitions";
56						#address-cells = <1>;
57						#size-cells = <1>;
58
59						at91bootstrap@0 {
60							label = "at91bootstrap";
61							reg = <0x0 0x20000>;
62						};
63
64						barebox@20000 {
65							label = "barebox";
66							reg = <0x20000 0x40000>;
67						};
68
69						bareboxenv@60000 {
70							label = "bareboxenv";
71							reg = <0x60000 0x20000>;
72						};
73
74						bareboxenv2@80000 {
75							label = "bareboxenv2";
76							reg = <0x80000 0x20000>;
77						};
78
79						oftree@80000 {
80							label = "oftree";
81							reg = <0xa0000 0x20000>;
82						};
83
84						kernel@a0000 {
85							label = "kernel";
86							reg = <0xc0000 0x400000>;
87						};
88
89						rootfs@4a0000 {
90							label = "rootfs";
91							reg = <0x4c0000 0x7800000>;
92						};
93
94						data@7ca0000 {
95							label = "data";
96							reg = <0x7cc0000 0x8340000>;
97						};
98					};
99				};
100			};
101		};
102
103		usb0: ohci@500000 {
104			num-ports = <2>;
105			status = "okay";
106		};
107	};
108
109	leds {
110		compatible = "gpio-leds";
111
112		user_led {
113			label = "user_led";
114			gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
115			linux,default-trigger = "heartbeat";
116		};
117	};
118
119	gpio_keys {
120		compatible = "gpio-keys";
121		#address-cells = <1>;
122		#size-cells = <0>;
123
124		user_pb {
125			label = "user_pb";
126			gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
127			linux,code = <28>;
128			wakeup-source;
129		};
130	};
131
132	i2c-gpio-0 {
133		status = "okay";
134	};
135};
136