xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/usb_a9263.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * usb_a9263.dts - Device Tree file for Caloa USB A9293 board
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot *  Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot/dts-v1/;
8*f126890aSEmmanuel Vadot#include "at91sam9263.dtsi"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "Calao USB A9263";
12*f126890aSEmmanuel Vadot	compatible = "atmel,usb-a9263", "atmel,at91sam9263", "atmel,at91sam9";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	chosen {
15*f126890aSEmmanuel Vadot		bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs";
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 = <12000000>;
29*f126890aSEmmanuel Vadot		};
30*f126890aSEmmanuel Vadot	};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot	ahb {
33*f126890aSEmmanuel Vadot		apb {
34*f126890aSEmmanuel Vadot			dbgu: serial@ffffee00 {
35*f126890aSEmmanuel Vadot				status = "okay";
36*f126890aSEmmanuel Vadot			};
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot			tcb0: timer@fff7c000 {
39*f126890aSEmmanuel Vadot				timer@0 {
40*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
41*f126890aSEmmanuel Vadot					reg = <0>, <1>;
42*f126890aSEmmanuel Vadot				};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot				timer@2 {
45*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
46*f126890aSEmmanuel Vadot					reg = <2>;
47*f126890aSEmmanuel Vadot				};
48*f126890aSEmmanuel Vadot			};
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot			macb0: ethernet@fffbc000 {
51*f126890aSEmmanuel Vadot				phy-mode = "rmii";
52*f126890aSEmmanuel Vadot				status = "okay";
53*f126890aSEmmanuel Vadot			};
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot			usb1: gadget@fff78000 {
56*f126890aSEmmanuel Vadot				atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
57*f126890aSEmmanuel Vadot				status = "okay";
58*f126890aSEmmanuel Vadot			};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot			spi0: spi@fffa4000 {
61*f126890aSEmmanuel Vadot				cs-gpios = <&pioB 15 GPIO_ACTIVE_HIGH>;
62*f126890aSEmmanuel Vadot				status = "okay";
63*f126890aSEmmanuel Vadot				flash@0 {
64*f126890aSEmmanuel Vadot					compatible = "atmel,at45", "atmel,dataflash";
65*f126890aSEmmanuel Vadot					reg = <0>;
66*f126890aSEmmanuel Vadot					spi-max-frequency = <15000000>;
67*f126890aSEmmanuel Vadot				};
68*f126890aSEmmanuel Vadot			};
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot			poweroff@fffffd10 {
71*f126890aSEmmanuel Vadot				atmel,wakeup-counter = <10>;
72*f126890aSEmmanuel Vadot				atmel,wakeup-rtt-timer;
73*f126890aSEmmanuel Vadot			};
74*f126890aSEmmanuel Vadot		};
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot		ebi0: ebi@10000000 {
77*f126890aSEmmanuel Vadot			status = "okay";
78*f126890aSEmmanuel Vadot
79*f126890aSEmmanuel Vadot			nand_controller: nand-controller {
80*f126890aSEmmanuel Vadot				status = "okay";
81*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
82*f126890aSEmmanuel Vadot				pinctrl-names = "default";
83*f126890aSEmmanuel Vadot
84*f126890aSEmmanuel Vadot				nand@3 {
85*f126890aSEmmanuel Vadot					reg = <0x3 0x0 0x800000>;
86*f126890aSEmmanuel Vadot					rb-gpios = <&pioA 22 GPIO_ACTIVE_HIGH>;
87*f126890aSEmmanuel Vadot					cs-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
88*f126890aSEmmanuel Vadot					nand-bus-width = <8>;
89*f126890aSEmmanuel Vadot					nand-ecc-mode = "soft";
90*f126890aSEmmanuel Vadot					nand-on-flash-bbt;
91*f126890aSEmmanuel Vadot					label = "atmel_nand";
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot					partitions {
94*f126890aSEmmanuel Vadot						compatible = "fixed-partitions";
95*f126890aSEmmanuel Vadot						#address-cells = <1>;
96*f126890aSEmmanuel Vadot						#size-cells = <1>;
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot						at91bootstrap@0 {
99*f126890aSEmmanuel Vadot							label = "at91bootstrap";
100*f126890aSEmmanuel Vadot							reg = <0x0 0x20000>;
101*f126890aSEmmanuel Vadot						};
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot						barebox@20000 {
104*f126890aSEmmanuel Vadot							label = "barebox";
105*f126890aSEmmanuel Vadot							reg = <0x20000 0x40000>;
106*f126890aSEmmanuel Vadot						};
107*f126890aSEmmanuel Vadot
108*f126890aSEmmanuel Vadot						bareboxenv@60000 {
109*f126890aSEmmanuel Vadot							label = "bareboxenv";
110*f126890aSEmmanuel Vadot							reg = <0x60000 0x20000>;
111*f126890aSEmmanuel Vadot						};
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot						bareboxenv2@80000 {
114*f126890aSEmmanuel Vadot							label = "bareboxenv2";
115*f126890aSEmmanuel Vadot							reg = <0x80000 0x20000>;
116*f126890aSEmmanuel Vadot						};
117*f126890aSEmmanuel Vadot
118*f126890aSEmmanuel Vadot						oftree@80000 {
119*f126890aSEmmanuel Vadot							label = "oftree";
120*f126890aSEmmanuel Vadot							reg = <0xa0000 0x20000>;
121*f126890aSEmmanuel Vadot						};
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot						kernel@a0000 {
124*f126890aSEmmanuel Vadot							label = "kernel";
125*f126890aSEmmanuel Vadot							reg = <0xc0000 0x400000>;
126*f126890aSEmmanuel Vadot						};
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot						rootfs@4a0000 {
129*f126890aSEmmanuel Vadot							label = "rootfs";
130*f126890aSEmmanuel Vadot							reg = <0x4c0000 0x7800000>;
131*f126890aSEmmanuel Vadot						};
132*f126890aSEmmanuel Vadot
133*f126890aSEmmanuel Vadot						data@7ca0000 {
134*f126890aSEmmanuel Vadot							label = "data";
135*f126890aSEmmanuel Vadot							reg = <0x7cc0000 0x8340000>;
136*f126890aSEmmanuel Vadot						};
137*f126890aSEmmanuel Vadot					};
138*f126890aSEmmanuel Vadot				};
139*f126890aSEmmanuel Vadot			};
140*f126890aSEmmanuel Vadot		};
141*f126890aSEmmanuel Vadot
142*f126890aSEmmanuel Vadot		usb0: ohci@a00000 {
143*f126890aSEmmanuel Vadot			num-ports = <2>;
144*f126890aSEmmanuel Vadot			status = "okay";
145*f126890aSEmmanuel Vadot		};
146*f126890aSEmmanuel Vadot	};
147*f126890aSEmmanuel Vadot
148*f126890aSEmmanuel Vadot	leds {
149*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
150*f126890aSEmmanuel Vadot
151*f126890aSEmmanuel Vadot		user_led {
152*f126890aSEmmanuel Vadot			label = "user_led";
153*f126890aSEmmanuel Vadot			gpios = <&pioB 21 GPIO_ACTIVE_HIGH>;
154*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
155*f126890aSEmmanuel Vadot		};
156*f126890aSEmmanuel Vadot	};
157*f126890aSEmmanuel Vadot
158*f126890aSEmmanuel Vadot	gpio_keys {
159*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
160*f126890aSEmmanuel Vadot		#address-cells = <1>;
161*f126890aSEmmanuel Vadot		#size-cells = <0>;
162*f126890aSEmmanuel Vadot
163*f126890aSEmmanuel Vadot		user_pb {
164*f126890aSEmmanuel Vadot			label = "user_pb";
165*f126890aSEmmanuel Vadot			gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
166*f126890aSEmmanuel Vadot			linux,code = <28>;
167*f126890aSEmmanuel Vadot			wakeup-source;
168*f126890aSEmmanuel Vadot		};
169*f126890aSEmmanuel Vadot	};
170*f126890aSEmmanuel Vadot
171*f126890aSEmmanuel Vadot	i2c-gpio-0 {
172*f126890aSEmmanuel Vadot		status = "okay";
173*f126890aSEmmanuel Vadot	};
174*f126890aSEmmanuel Vadot};
175