xref: /linux/arch/arm/boot/dts/microchip/usb_a9260_common.dtsi (revision ec71f661a572a770d7c861cd52a50cbbb0e1a8d1)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * usb_a926x.dts - Device Tree file for Calao USB A926x board
4 *
5 *  Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
6 */
7
8/ {
9	chosen {
10		bootargs = "mem=64M root=/dev/mtdblock5 rw rootfstype=ubifs";
11		stdout-path = "serial0:115200n8";
12	};
13
14	clocks {
15		slow_xtal {
16			clock-frequency = <32768>;
17		};
18
19		main_xtal {
20			clock-frequency = <12000000>;
21		};
22	};
23
24	memory@20000000 {
25		reg = <0x20000000 0x4000000>;
26	};
27
28	ahb {
29		apb {
30			dbgu: serial@fffff200 {
31				status = "okay";
32			};
33
34			tcb0: timer@fffa0000 {
35				timer@0 {
36					compatible = "atmel,tcb-timer";
37					reg = <0>, <1>;
38				};
39
40				timer@2 {
41					compatible = "atmel,tcb-timer";
42					reg = <2>;
43				};
44			};
45
46			macb0: ethernet@fffc4000 {
47				phy-mode = "rmii";
48				status = "okay";
49			};
50
51			usb1: gadget@fffa4000 {
52				atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
53				status = "okay";
54			};
55		};
56
57		ebi: ebi@10000000 {
58			status = "okay";
59
60			nand_controller: nand-controller {
61				status = "okay";
62				pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
63				pinctrl-names = "default";
64
65				nand@3 {
66					reg = <0x3 0x0 0x800000>;
67					rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
68					cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
69					nand-bus-width = <8>;
70					nand-ecc-mode = "soft";
71					nand-on-flash-bbt;
72					label = "atmel_nand";
73
74					partitions {
75						compatible = "fixed-partitions";
76						#address-cells = <1>;
77						#size-cells = <1>;
78
79						at91bootstrap@0 {
80							label = "at91bootstrap";
81							reg = <0x0 0x20000>;
82						};
83
84						barebox@20000 {
85							label = "barebox";
86							reg = <0x20000 0x40000>;
87						};
88
89						bareboxenv@60000 {
90							label = "bareboxenv";
91							reg = <0x60000 0x20000>;
92						};
93
94						bareboxenv2@80000 {
95							label = "bareboxenv2";
96							reg = <0x80000 0x20000>;
97						};
98
99						oftree@80000 {
100							label = "oftree";
101							reg = <0xa0000 0x20000>;
102						};
103
104						kernel@a0000 {
105							label = "kernel";
106							reg = <0xc0000 0x400000>;
107						};
108
109						rootfs@4a0000 {
110							label = "rootfs";
111							reg = <0x4c0000 0x7800000>;
112						};
113
114						data@7ca0000 {
115							label = "data";
116							reg = <0x7cc0000 0x8340000>;
117						};
118					};
119				};
120			};
121		};
122
123		usb0: usb@500000 {
124			num-ports = <2>;
125			status = "okay";
126		};
127	};
128
129	leds {
130		compatible = "gpio-leds";
131
132		user_led {
133			label = "user_led";
134			gpios = <&pioB 21 GPIO_ACTIVE_HIGH>;
135		};
136	};
137
138	gpio_keys {
139		compatible = "gpio-keys";
140
141		button-user-pb {
142			label = "user_pb";
143			gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
144			linux,code = <28>;
145			wakeup-source;
146		};
147	};
148
149	i2c-gpio-0 {
150		status = "okay";
151	};
152};
153