Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / arch / arm / boot / dts / ethernut5.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * ethernut5.dts - Device Tree file for Ethernut 5 board
4  *
5  * Copyright (C) 2012 egnite GmbH <info@egnite.de>
6  */
7 /dts-v1/;
8 #include "at91sam9xe.dtsi"
9
10 / {
11         model = "Ethernut 5";
12         compatible = "egnite,ethernut5", "atmel,at91sam9260", "atmel,at91sam9";
13
14         chosen {
15                 bootargs = "console=ttyS0,115200 root=/dev/mtdblock0 rw rootfstype=jffs2";
16         };
17
18         memory {
19                 reg = <0x20000000 0x08000000>;
20         };
21
22         clocks {
23                 slow_xtal {
24                         clock-frequency = <32768>;
25                 };
26
27                 main_xtal {
28                         clock-frequency = <18432000>;
29                 };
30         };
31
32         ahb {
33                 apb {
34                         dbgu: serial@fffff200 {
35                                 status = "okay";
36                         };
37
38                         tcb0: timer@fffa0000 {
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                         usart0: serial@fffb0000 {
51                                 status = "okay";
52                         };
53
54                         usart1: serial@fffb4000 {
55                                 status = "okay";
56                         };
57
58                         macb0: ethernet@fffc4000 {
59                                 phy-mode = "rmii";
60                                 status = "okay";
61                         };
62
63                         usb1: gadget@fffa4000 {
64                                 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
65                                 status = "okay";
66                         };
67                 };
68
69                 ebi: ebi@10000000 {
70                         status = "okay";
71
72                         nand_controller: nand-controller {
73                                 status = "okay";
74                                 pinctrl-0 = <&pinctrl_nand_cs>;
75                                 pinctrl-names = "default";
76
77                                 nand: nand@3 {
78                                         reg = <0x3 0x0 0x800000>;
79                                         cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
80                                         nand-bus-width = <8>;
81                                         nand-ecc-mode = "soft";
82                                         nand-on-flash-bbt;
83                                         label = "atmel_nand";
84
85                                         partitions {
86                                                 compatible = "fixed-partitions";
87                                                 #address-cells = <1>;
88                                                 #size-cells = <1>;
89
90                                                 root@0 {
91                                                         label = "root";
92                                                         reg = <0x0 0x08000000>;
93                                                 };
94
95                                                 data@20000 {
96                                                         label = "data";
97                                                         reg = <0x08000000 0x38000000>;
98                                                 };
99                                         };
100                                 };
101                         };
102                 };
103
104                 usb0: ohci@500000 {
105                         num-ports = <2>;
106                         status = "okay";
107                 };
108         };
109
110         i2c-gpio-0 {
111                 status = "okay";
112
113                 pcf8563@50 {
114                         compatible = "nxp,pcf8563";
115                         reg = <0x51>;
116                 };
117         };
118 };