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