Merge tag 'cris-for-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/jesper...
[cascardo/linux.git] / arch / arm / boot / dts / keystone-k2e-evm.dts
1 /*
2  * Copyright 2013-2014 Texas Instruments, Inc.
3  *
4  * Keystone 2 Edison EVM device tree
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10 /dts-v1/;
11
12 #include "keystone.dtsi"
13 #include "keystone-k2e.dtsi"
14
15 / {
16         compatible = "ti,k2e-evm", "ti,k2e", "ti,keystone";
17         model = "Texas Instruments Keystone 2 Edison EVM";
18
19         soc {
20
21                 clocks {
22                         refclksys: refclksys {
23                                 #clock-cells = <0>;
24                                 compatible = "fixed-clock";
25                                 clock-frequency = <100000000>;
26                                 clock-output-names = "refclk-sys";
27                         };
28
29                         refclkpass: refclkpass {
30                                 #clock-cells = <0>;
31                                 compatible = "fixed-clock";
32                                 clock-frequency = <100000000>;
33                                 clock-output-names = "refclk-pass";
34                         };
35
36                         refclkddr3a: refclkddr3a {
37                                 #clock-cells = <0>;
38                                 compatible = "fixed-clock";
39                                 clock-frequency = <100000000>;
40                                 clock-output-names = "refclk-ddr3a";
41                         };
42                 };
43         };
44 };
45
46 &usb_phy {
47         status = "okay";
48 };
49
50 &keystone_usb0 {
51         status = "okay";
52 };
53
54 &usb0 {
55         dr_mode = "host";
56 };
57
58 &usb1_phy {
59         status = "okay";
60 };
61
62 &keystone_usb1 {
63         status = "okay";
64 };
65
66 &usb1 {
67         dr_mode = "peripheral";
68 };
69
70 &i2c0 {
71         dtt@50 {
72                 compatible = "at,24c1024";
73                 reg = <0x50>;
74         };
75 };
76
77 &aemif {
78         cs0 {
79                 #address-cells = <2>;
80                 #size-cells = <1>;
81                 clock-ranges;
82                 ranges;
83
84                 ti,cs-chipselect = <0>;
85                 /* all timings in nanoseconds */
86                 ti,cs-min-turnaround-ns = <12>;
87                 ti,cs-read-hold-ns = <6>;
88                 ti,cs-read-strobe-ns = <23>;
89                 ti,cs-read-setup-ns = <9>;
90                 ti,cs-write-hold-ns = <8>;
91                 ti,cs-write-strobe-ns = <23>;
92                 ti,cs-write-setup-ns = <8>;
93
94                 nand@0,0 {
95                         compatible = "ti,keystone-nand","ti,davinci-nand";
96                         #address-cells = <1>;
97                         #size-cells = <1>;
98                         reg = <0 0 0x4000000
99                                1 0 0x0000100>;
100
101                         ti,davinci-chipselect = <0>;
102                         ti,davinci-mask-ale = <0x2000>;
103                         ti,davinci-mask-cle = <0x4000>;
104                         ti,davinci-mask-chipsel = <0>;
105                         nand-ecc-mode = "hw";
106                         ti,davinci-ecc-bits = <4>;
107                         nand-on-flash-bbt;
108
109                         partition@0 {
110                                 label = "u-boot";
111                                 reg = <0x0 0x100000>;
112                                 read-only;
113                         };
114
115                         partition@100000 {
116                                 label = "params";
117                                 reg = <0x100000 0x80000>;
118                                 read-only;
119                         };
120
121                         partition@180000 {
122                                 label = "ubifs";
123                                 reg = <0x180000 0x1FE80000>;
124                         };
125                 };
126         };
127 };
128
129 &spi0 {
130         nor_flash: n25q128a11@0 {
131                 #address-cells = <1>;
132                 #size-cells = <1>;
133                 compatible = "Micron,n25q128a11";
134                 spi-max-frequency = <54000000>;
135                 m25p,fast-read;
136                 reg = <0>;
137
138                 partition@0 {
139                         label = "u-boot-spl";
140                         reg = <0x0 0x80000>;
141                         read-only;
142                 };
143
144                 partition@1 {
145                         label = "misc";
146                         reg = <0x80000 0xf80000>;
147                 };
148         };
149 };
150
151 &mdio {
152         status = "ok";
153         ethphy0: ethernet-phy@0 {
154                 compatible = "marvell,88E1514", "marvell,88E1510", "ethernet-phy-ieee802.3-c22";
155                 reg = <0>;
156         };
157
158         ethphy1: ethernet-phy@1 {
159                 compatible = "marvell,88E1514", "marvell,88E1510", "ethernet-phy-ieee802.3-c22";
160                 reg = <1>;
161         };
162 };