GNU Linux-libre 4.9.309-gnu1
[releases.git] / arch / arm / boot / dts / usb_a9260_common.dtsi
1 /*
2  * usb_a926x.dts - Device Tree file for Caloa USB A926x board
3  *
4  *  Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
5  *
6  * Licensed under GPLv2 or later.
7  */
8
9 / {
10         clocks {
11                 slow_xtal {
12                         clock-frequency = <32768>;
13                 };
14
15                 main_xtal {
16                         clock-frequency = <12000000>;
17                 };
18         };
19
20         ahb {
21                 apb {
22                         dbgu: serial@fffff200 {
23                                 status = "okay";
24                         };
25
26                         macb0: ethernet@fffc4000 {
27                                 phy-mode = "rmii";
28                                 status = "okay";
29                         };
30
31                         usb1: gadget@fffa4000 {
32                                 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
33                                 status = "okay";
34                         };
35                 };
36
37                 nand0: nand@40000000 {
38                         nand-bus-width = <8>;
39                         nand-ecc-mode = "soft";
40                         nand-on-flash-bbt;
41                         status = "okay";
42
43                         at91bootstrap@0 {
44                                 label = "at91bootstrap";
45                                 reg = <0x0 0x20000>;
46                         };
47
48                         barebox@20000 {
49                                 label = "barebox";
50                                 reg = <0x20000 0x40000>;
51                         };
52
53                         bareboxenv@60000 {
54                                 label = "bareboxenv";
55                                 reg = <0x60000 0x20000>;
56                         };
57
58                         bareboxenv2@80000 {
59                                 label = "bareboxenv2";
60                                 reg = <0x80000 0x20000>;
61                         };
62
63                         oftree@80000 {
64                                 label = "oftree";
65                                 reg = <0xa0000 0x20000>;
66                         };
67
68                         kernel@a0000 {
69                                 label = "kernel";
70                                 reg = <0xc0000 0x400000>;
71                         };
72
73                         rootfs@4a0000 {
74                                 label = "rootfs";
75                                 reg = <0x4c0000 0x7800000>;
76                         };
77
78                         data@7ca0000 {
79                                 label = "data";
80                                 reg = <0x7cc0000 0x8340000>;
81                         };
82                 };
83
84                 usb0: ohci@500000 {
85                         num-ports = <2>;
86                         status = "okay";
87                 };
88         };
89
90         leds {
91                 compatible = "gpio-leds";
92
93                 user_led {
94                         label = "user_led";
95                         gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
96                         linux,default-trigger = "heartbeat";
97                 };
98         };
99
100         gpio_keys {
101                 compatible = "gpio-keys";
102                 #address-cells = <1>;
103                 #size-cells = <0>;
104
105                 user_pb {
106                         label = "user_pb";
107                         gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
108                         linux,code = <28>;
109                         wakeup-source;
110                 };
111         };
112
113         i2c-gpio-0 {
114                 status = "okay";
115         };
116 };