Merge branch 'master' of git://git.denx.de/u-boot-usb
[oweals/u-boot.git] / arch / arm / dts / keystone-k2g-evm.dts
1 /*
2  * Copyright 2014 Texas Instruments, Inc.
3  *
4  * Device Tree Source for K2G EVM
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-k2g.dtsi"
13
14 / {
15         compatible =  "ti,k2g-evm","ti,keystone";
16         model = "Texas Instruments K2G General Purpose EVM";
17
18         chosen {
19                 stdout-path = &uart0;
20         };
21
22         memory@80000000 {
23                 device_type = "memory";
24                 reg = <0x80000000 0x80000000>;
25         };
26 };
27
28 &mdio {
29         status = "okay";
30         ethphy0: ethernet-phy@0 {
31                 reg = <0>;
32                 phy-mode = "rgmii-id";
33         };
34 };
35
36 &keystone_usb0 {
37         status = "okay";
38 };
39
40 &usb0_phy {
41         status = "okay";
42         compatible = "nop-phy";
43 };
44
45 &usb0 {
46         dr_mode = "host";
47         status = "okay";
48 };
49
50 &keystone_usb1 {
51         status = "okay";
52 };
53
54 &usb1_phy {
55         compatible = "nop-phy";
56         status = "okay";
57 };
58
59 &usb1 {
60         dr_mode = "peripheral";
61         status = "okay";
62 };
63
64 &gbe0 {
65         phy-handle = <&ethphy0>;
66 };
67
68 &netcp {
69         status = "okay";
70 };
71
72 &spi1 {
73         status = "okay";
74
75         spi_nor: flash@0 {
76                 #address-cells = <1>;
77                 #size-cells = <1>;
78                 compatible = "spi-flash";
79                 spi-max-frequency = <50000000>;
80                 m25p,fast-read;
81                 reg = <0>;
82
83                 partition@0 {
84                         label = "u-boot-spl";
85                         reg = <0x0 0x80000>;
86                         read-only;
87                 };
88
89                 partition@1 {
90                         label = "misc";
91                         reg = <0x80000 0xf80000>;
92                 };
93         };
94 };
95
96 &qspi {
97         status = "okay";
98
99         flash0: m25p80@0 {
100                 compatible = "s25fl512s","spi-flash";
101                 reg = <0>;
102                 spi-tx-bus-width = <1>;
103                 spi-rx-bus-width = <4>;
104                 spi-max-frequency = <96000000>;
105                 #address-cells = <1>;
106                 #size-cells = <1>;
107                 cdns,tshsl-ns = <392>;
108                 cdns,tsd2d-ns = <392>;
109                 cdns,tchsh-ns = <100>;
110                 cdns,tslch-ns = <100>;
111                 block-size = <18>;
112
113                 partition@0 {
114                         label = "QSPI.u-boot-spl-os";
115                         reg = <0x00000000 0x00100000>;
116                 };
117                 partition@1 {
118                         label = "QSPI.u-boot-env";
119                         reg = <0x00100000 0x00040000>;
120                 };
121                 partition@2 {
122                         label = "QSPI.skern";
123                         reg = <0x00140000 0x0040000>;
124                 };
125                 partition@3 {
126                         label = "QSPI.pmmc-firmware";
127                         reg = <0x00180000 0x0040000>;
128                 };
129                 partition@4 {
130                         label = "QSPI.kernel";
131                         reg = <0x001C0000 0x0800000>;
132                 };
133                 partition@5 {
134                         label = "QSPI.file-system";
135                         reg = <0x009C0000 0x3640000>;
136                 };
137         };
138 };
139
140 &mmc0 {
141         status = "okay";
142 };
143
144 &mmc1 {
145         status = "okay";
146 };
147
148 &i2c0 {
149         status = "okay";
150 };
151
152 &i2c1 {
153         status = "okay";
154 };