2d1fe0c0830a3740db33e2c935a9d04de5d0915b
[openwrt/staging/wigyori.git] / target / linux / at91 / files / arch / arm / boot / dts / wb45n.dts
1 /*
2 * wb45n.dts - Device Tree file for WB45NBT board
3 *
4 * Copyright (C) 2015 Laird
5 *
6 * Licensed under GPLv2 or later.
7 */
8 /dts-v1/;
9 #include "at91sam9g25.dtsi"
10
11 / {
12 model = "Laird Workgroup Bridge 45N - Atmel AT91SAM (dt)";
13 compatible = "laird,wb45n", "laird,wbxx", "atmel,at91sam9x5", "atmel,at91sam9";
14
15 chosen {
16 bootargs = "console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs";
17 };
18
19 memory {
20 reg = <0x20000000 0x4000000>;
21 };
22
23 clocks {
24 #address-cells = <1>;
25 #size-cells = <1>;
26 ranges;
27
28 main_clock: clock@0 {
29 compatible = "atmel,osc", "fixed-clock";
30 clock-frequency = <12000000>;
31 };
32
33 slow_xtal {
34 clock-frequency = <32768>;
35 };
36
37 main_xtal {
38 clock-frequency = <12000000>;
39 };
40 };
41
42 ahb {
43 apb {
44
45 rstc@fffffe00 {
46 compatible = "atmel,sama5d3-rstc";
47 };
48
49 pinctrl@fffff400 {
50 nand {
51 pinctrl_nand: nand-0 {
52 atmel,pins =
53 <AT91_PIOD 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD0 periph A Read Enable */
54 AT91_PIOD 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD1 periph A Write Enable */
55 AT91_PIOD 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD2 periph A Address Latch Enable */
56 AT91_PIOD 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD3 periph A Command Latch Enable */
57 AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP /* PD4 gpio Chip Enable pin pull_up */
58 AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD5 gpio RDY/BUSY pin pull_up */
59 };
60 };
61
62 usb2 {
63 pinctrl_board_usb2: usb2-board {
64 atmel,pins =
65 <AT91_PIOB 11 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB11 gpio vbus sense, deglitch */
66 };
67 };
68 };
69
70 dbgu: serial@fffff200 {
71 status = "okay";
72 };
73
74 usart0: serial@f801c000 {
75 status = "okay";
76 };
77
78 usart3: serial@f8028000 {
79 status = "okay";
80 };
81
82 spi0: spi@f0000000 {
83 status = "okay";
84 cs-gpios = <&pioA 14 0>, <&pioA 7 0>, <0>, <0>;
85 };
86
87 mmc0: mmc@f0008000 {
88 pinctrl-0 = <
89 &pinctrl_mmc0_slot0_clk_cmd_dat0
90 &pinctrl_mmc0_slot0_dat1_3>;
91 status = "okay";
92 /delete-property/dmas;
93 /delete-property/dma-names;
94 slot@0 {
95 reg = <0>;
96 bus-width = <4>;
97 };
98 };
99
100 macb0: ethernet@f802c000 {
101 phy-mode = "rmii";
102 status = "okay";
103 };
104
105 usb2: gadget@f803c000 {
106 pinctrl-names = "default";
107 pinctrl-0 = <&pinctrl_board_usb2>;
108 atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
109 status = "okay";
110 };
111
112 i2c1: i2c@f8014000 {
113 status = "okay";
114 };
115
116 watchdog@fffffe40 {
117 status = "okay";
118 };
119
120 shdwc@fffffe10 {
121 atmel,wakeup-mode = "low";
122 };
123
124 rtc@fffffeb0 {
125 status = "okay";
126 };
127 };
128
129 usb0: ohci@00600000 {
130 status = "okay";
131 num-ports = <2>;
132 atmel,vbus-gpio = <
133 &pioB 12 GPIO_ACTIVE_HIGH
134 &pioA 31 GPIO_ACTIVE_HIGH
135 >;
136 atmel,oc-gpio = <&pioB 13 GPIO_ACTIVE_LOW>;
137 };
138
139 usb1: ehci@00700000 {
140 status = "okay";
141 };
142
143 nand0: nand@40000000 {
144 nand-bus-width = <8>;
145 nand-ecc-mode = "hw";
146 atmel,has-pmecc; /* Enable PMECC */
147 atmel,pmecc-cap = <4>;
148 atmel,pmecc-sector-size = <512>;
149 nand-on-flash-bbt;
150 status = "okay";
151
152 at91bootstrap@0 {
153 label = "at91bs";
154 reg = <0x0 0x20000>;
155 };
156
157 uboot@20000 {
158 label = "u-boot";
159 reg = <0x20000 0x80000>;
160 };
161
162 ubootenv@a0000 {
163 label = "u-boot-env";
164 reg = <0xa0000 0x20000>;
165 };
166
167 ubootenv@c0000 {
168 label = "redund-env";
169 reg = <0xc0000 0x20000>;
170 };
171
172 kernel-a@e0000 {
173 label = "kernel-a";
174 reg = <0xe0000 0x280000>;
175 };
176
177 kernel-b@360000 {
178 label = "kernel-b";
179 reg = <0x360000 0x280000>;
180 };
181
182 rootfs-a@5e0000 {
183 label = "rootfs-a";
184 reg = <0x5e0000 0x2600000>;
185 };
186
187 rootfs-b@2be0000 {
188 label = "rootfs-b";
189 reg = <0x2be0000 0x2600000>;
190 };
191
192 user@51e0000 {
193 label = "user";
194 reg = <0x51e0000 0x2dc0000>;
195 };
196
197 logs@7fa0000 {
198 label = "logs";
199 reg = <0x7fa0000 0x60000>;
200 };
201 };
202 };
203
204 atheros {
205 compatible = "atheros,ath6kl";
206 atheros,board-id = "SD32";
207 };
208
209 gpio_keys {
210 compatible = "gpio-keys";
211 #address-cells = <1>;
212 #size-cells = <0>;
213 irqbtn@pb18 {
214 label = "IRQBTN";
215 linux,code = <99>;
216 gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
217 gpio-key,wakeup = <1>;
218 };
219 };
220 };