blob: 7c5deef8083f399a2ab80cb1ca35270af8052bd9 [file] [log] [blame]
Lokesh Vutlae8e92b82015-09-19 16:26:55 +05301/*
2 * Copyright 2014 Texas Instruments, Inc.
3 *
Lokesh Vutlae3187b92017-01-31 09:32:57 +05304 * Device Tree Source for K2G EVM
Lokesh Vutlae8e92b82015-09-19 16:26:55 +05305 *
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
Lokesh Vutlae3187b92017-01-31 09:32:57 +053012#include "keystone-k2g.dtsi"
Lokesh Vutlae8e92b82015-09-19 16:26:55 +053013
14/ {
15 compatible = "ti,k2g-evm","ti,keystone";
Lokesh Vutlae3187b92017-01-31 09:32:57 +053016 model = "Texas Instruments K2G General Purpose EVM";
Lokesh Vutlae8e92b82015-09-19 16:26:55 +053017
18 chosen {
19 stdout-path = &uart0;
20 };
Cooper Jr., Franklin4a77a172017-06-16 17:25:29 -050021
22 memory@80000000 {
23 device_type = "memory";
24 reg = <0x80000000 0x80000000>;
25 };
Lokesh Vutlae8e92b82015-09-19 16:26:55 +053026};
Mugunthan V N3784cc22016-02-02 15:51:37 +053027
28&mdio {
29 status = "okay";
30 ethphy0: ethernet-phy@0 {
31 reg = <0>;
Mugunthan V N3784cc22016-02-02 15:51:37 +053032 };
33};
34
Jean-Jacques Hiblot24163d62018-12-04 11:12:58 +010035&keystone_usb0 {
36 status = "okay";
37};
38
39&usb0_phy {
40 status = "okay";
41 compatible = "nop-phy";
42};
43
44&usb0 {
45 dr_mode = "host";
46 status = "okay";
47};
48
49&keystone_usb1 {
50 status = "okay";
51};
52
53&usb1_phy {
54 compatible = "nop-phy";
55 status = "okay";
56};
57
58&usb1 {
59 dr_mode = "peripheral";
60 status = "okay";
61};
62
Mugunthan V N3784cc22016-02-02 15:51:37 +053063&gbe0 {
64 phy-handle = <&ethphy0>;
65};
Vignesh Rcefb8f32016-07-06 09:59:05 +053066
Cooper Jr., Franklinf80dcdc2017-06-16 17:25:30 -050067&netcp {
68 status = "okay";
69};
70
Vignesh Rcefb8f32016-07-06 09:59:05 +053071&spi1 {
72 status = "okay";
73
74 spi_nor: flash@0 {
75 #address-cells = <1>;
76 #size-cells = <1>;
Neil Armstronga009fa72019-02-10 10:16:20 +000077 compatible = "jedec,spi-nor";
Vignesh Rcefb8f32016-07-06 09:59:05 +053078 spi-max-frequency = <50000000>;
79 m25p,fast-read;
80 reg = <0>;
81
82 partition@0 {
83 label = "u-boot-spl";
84 reg = <0x0 0x80000>;
85 read-only;
86 };
87
88 partition@1 {
89 label = "misc";
90 reg = <0x80000 0xf80000>;
91 };
92 };
93};
Vignesh R9b9f0f82016-07-06 10:20:57 +053094
95&qspi {
96 status = "okay";
97
Jason Rushfeaa3f92018-01-23 17:13:10 -060098 flash0: m25p80@0 {
Neil Armstronga009fa72019-02-10 10:16:20 +000099 compatible = "s25fl512s","jedec,spi-nor";
Jason Rushfeaa3f92018-01-23 17:13:10 -0600100 reg = <0>;
101 spi-tx-bus-width = <1>;
102 spi-rx-bus-width = <4>;
103 spi-max-frequency = <96000000>;
104 #address-cells = <1>;
105 #size-cells = <1>;
106 cdns,tshsl-ns = <392>;
107 cdns,tsd2d-ns = <392>;
108 cdns,tchsh-ns = <100>;
109 cdns,tslch-ns = <100>;
Vignesh R9b9f0f82016-07-06 10:20:57 +0530110 block-size = <18>;
111
Jason Rushfeaa3f92018-01-23 17:13:10 -0600112 partition@0 {
113 label = "QSPI.u-boot-spl-os";
114 reg = <0x00000000 0x00100000>;
115 };
116 partition@1 {
117 label = "QSPI.u-boot-env";
118 reg = <0x00100000 0x00040000>;
119 };
120 partition@2 {
121 label = "QSPI.skern";
122 reg = <0x00140000 0x0040000>;
123 };
124 partition@3 {
125 label = "QSPI.pmmc-firmware";
126 reg = <0x00180000 0x0040000>;
127 };
128 partition@4 {
129 label = "QSPI.kernel";
130 reg = <0x001C0000 0x0800000>;
131 };
132 partition@5 {
133 label = "QSPI.file-system";
134 reg = <0x009C0000 0x3640000>;
135 };
136 };
Vignesh R9b9f0f82016-07-06 10:20:57 +0530137};
Sekhar Nori2b2a1372016-08-10 19:24:05 +0530138
139&mmc0 {
140 status = "okay";
141};
142
143&mmc1 {
144 status = "okay";
145};
Cooper Jr., Franklin910ad3e2017-04-20 10:25:48 -0500146
147&i2c0 {
148 status = "okay";
149};
150
151&i2c1 {
152 status = "okay";
153};