Loading...
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/;
9#include "at91sam9263.dtsi"
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 {
24 slow_xtal {
25 clock-frequency = <32768>;
26 };
27
28 main_xtal {
29 clock-frequency = <12000000>;
30 };
31 };
32
33 ahb {
34 apb {
35 dbgu: serial@ffffee00 {
36 status = "okay";
37 };
38
39 tcb0: timer@fff7c000 {
40 timer@0 {
41 compatible = "atmel,tcb-timer";
42 reg = <0>, <1>;
43 };
44
45 timer@2 {
46 compatible = "atmel,tcb-timer";
47 reg = <2>;
48 };
49 };
50
51 macb0: ethernet@fffbc000 {
52 phy-mode = "rmii";
53 status = "okay";
54 };
55
56 usb1: gadget@fff78000 {
57 atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
58 status = "okay";
59 };
60
61 spi0: spi@fffa4000 {
62 cs-gpios = <&pioB 15 GPIO_ACTIVE_HIGH>;
63 status = "okay";
64 mtd_dataflash@0 {
65 compatible = "atmel,at45", "atmel,dataflash";
66 reg = <0>;
67 spi-max-frequency = <15000000>;
68 };
69 };
70
71 shdwc@fffffd10 {
72 atmel,wakeup-counter = <10>;
73 atmel,wakeup-rtt-timer;
74 };
75 };
76
77 ebi0: ebi@10000000 {
78 status = "okay";
79
80 nand_controller: nand-controller {
81 status = "okay";
82 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
83 pinctrl-names = "default";
84
85 nand@3 {
86 reg = <0x3 0x0 0x800000>;
87 rb-gpios = <&pioA 22 GPIO_ACTIVE_HIGH>;
88 cs-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
89 nand-bus-width = <8>;
90 nand-ecc-mode = "soft";
91 nand-on-flash-bbt;
92 label = "atmel_nand";
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 at91bootstrap@0 {
100 label = "at91bootstrap";
101 reg = <0x0 0x20000>;
102 };
103
104 barebox@20000 {
105 label = "barebox";
106 reg = <0x20000 0x40000>;
107 };
108
109 bareboxenv@60000 {
110 label = "bareboxenv";
111 reg = <0x60000 0x20000>;
112 };
113
114 bareboxenv2@80000 {
115 label = "bareboxenv2";
116 reg = <0x80000 0x20000>;
117 };
118
119 oftree@80000 {
120 label = "oftree";
121 reg = <0xa0000 0x20000>;
122 };
123
124 kernel@a0000 {
125 label = "kernel";
126 reg = <0xc0000 0x400000>;
127 };
128
129 rootfs@4a0000 {
130 label = "rootfs";
131 reg = <0x4c0000 0x7800000>;
132 };
133
134 data@7ca0000 {
135 label = "data";
136 reg = <0x7cc0000 0x8340000>;
137 };
138 };
139 };
140 };
141 };
142
143 usb0: ohci@a00000 {
144 num-ports = <2>;
145 status = "okay";
146 };
147 };
148
149 leds {
150 compatible = "gpio-leds";
151
152 user_led {
153 label = "user_led";
154 gpios = <&pioB 21 GPIO_ACTIVE_HIGH>;
155 linux,default-trigger = "heartbeat";
156 };
157 };
158
159 gpio_keys {
160 compatible = "gpio-keys";
161 #address-cells = <1>;
162 #size-cells = <0>;
163
164 user_pb {
165 label = "user_pb";
166 gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
167 linux,code = <28>;
168 wakeup-source;
169 };
170 };
171
172 i2c-gpio-0 {
173 status = "okay";
174 };
175};
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/;
9#include "at91sam9263.dtsi"
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 {
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 dbgu: serial@ffffee00 {
45 status = "okay";
46 };
47
48 macb0: ethernet@fffbc000 {
49 phy-mode = "rmii";
50 status = "okay";
51 };
52
53 usb1: gadget@fff78000 {
54 atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
55 status = "okay";
56 };
57
58 spi0: spi@fffa4000 {
59 cs-gpios = <&pioB 15 GPIO_ACTIVE_HIGH>;
60 status = "okay";
61 mtd_dataflash@0 {
62 compatible = "atmel,at45", "atmel,dataflash";
63 reg = <0>;
64 spi-max-frequency = <15000000>;
65 };
66 };
67
68 shdwc@fffffd10 {
69 atmel,wakeup-counter = <10>;
70 atmel,wakeup-rtt-timer;
71 };
72 };
73
74 nand0: nand@40000000 {
75 nand-bus-width = <8>;
76 nand-ecc-mode = "soft";
77 nand-on-flash-bbt;
78 status = "okay";
79
80 at91bootstrap@0 {
81 label = "at91bootstrap";
82 reg = <0x0 0x20000>;
83 };
84
85 barebox@20000 {
86 label = "barebox";
87 reg = <0x20000 0x40000>;
88 };
89
90 bareboxenv@60000 {
91 label = "bareboxenv";
92 reg = <0x60000 0x20000>;
93 };
94
95 bareboxenv2@80000 {
96 label = "bareboxenv2";
97 reg = <0x80000 0x20000>;
98 };
99
100 oftree@80000 {
101 label = "oftree";
102 reg = <0xa0000 0x20000>;
103 };
104
105 kernel@a0000 {
106 label = "kernel";
107 reg = <0xc0000 0x400000>;
108 };
109
110 rootfs@4a0000 {
111 label = "rootfs";
112 reg = <0x4c0000 0x7800000>;
113 };
114
115 data@7ca0000 {
116 label = "data";
117 reg = <0x7cc0000 0x8340000>;
118 };
119 };
120
121 usb0: ohci@00a00000 {
122 num-ports = <2>;
123 status = "okay";
124 };
125 };
126
127 leds {
128 compatible = "gpio-leds";
129
130 user_led {
131 label = "user_led";
132 gpios = <&pioB 21 GPIO_ACTIVE_HIGH>;
133 linux,default-trigger = "heartbeat";
134 };
135 };
136
137 gpio_keys {
138 compatible = "gpio-keys";
139 #address-cells = <1>;
140 #size-cells = <0>;
141
142 user_pb {
143 label = "user_pb";
144 gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
145 linux,code = <28>;
146 wakeup-source;
147 };
148 };
149
150 i2c@0 {
151 status = "okay";
152 };
153};