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