blob: 6c9de25b9447499e1060ba5b90e941e30fd3f52f [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>;
32 phy-mode = "rgmii-id";
33 };
34};
35
Jean-Jacques Hiblot24163d62018-12-04 11:12:58 +010036&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
Mugunthan V N3784cc22016-02-02 15:51:37 +053064&gbe0 {
65 phy-handle = <&ethphy0>;
66};
Vignesh Rcefb8f32016-07-06 09:59:05 +053067
Cooper Jr., Franklinf80dcdc2017-06-16 17:25:30 -050068&netcp {
69 status = "okay";
70};
71
Vignesh Rcefb8f32016-07-06 09:59:05 +053072&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};
Vignesh R9b9f0f82016-07-06 10:20:57 +053095
96&qspi {
97 status = "okay";
98
Jason Rushfeaa3f92018-01-23 17:13:10 -060099 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>;
Vignesh R9b9f0f82016-07-06 10:20:57 +0530111 block-size = <18>;
112
Jason Rushfeaa3f92018-01-23 17:13:10 -0600113 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 };
Vignesh R9b9f0f82016-07-06 10:20:57 +0530138};
Sekhar Nori2b2a1372016-08-10 19:24:05 +0530139
140&mmc0 {
141 status = "okay";
142};
143
144&mmc1 {
145 status = "okay";
146};
Cooper Jr., Franklin910ad3e2017-04-20 10:25:48 -0500147
148&i2c0 {
149 status = "okay";
150};
151
152&i2c1 {
153 status = "okay";
154};