blob: 491fdc4b046d563fdea45cf2b928545037d2e76e [file] [log] [blame]
Andrew Davis25abf732023-04-11 13:25:02 -05001// SPDX-License-Identifier: GPL-2.0
Lokesh Vutla2a9a8422015-09-19 16:26:55 +05302/*
Lokesh Vutlaf0a3f342017-01-31 09:32:57 +05303 * Device Tree Source for K2G EVM
Lokesh Vutla2a9a8422015-09-19 16:26:55 +05304 *
Nishanth Menona94a4072023-11-01 15:56:03 -05005 * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/
Lokesh Vutla2a9a8422015-09-19 16:26:55 +05306 */
7/dts-v1/;
8
Lokesh Vutlaf0a3f342017-01-31 09:32:57 +05309#include "keystone-k2g.dtsi"
Lokesh Vutla2a9a8422015-09-19 16:26:55 +053010
11/ {
12 compatible = "ti,k2g-evm","ti,keystone";
Lokesh Vutlaf0a3f342017-01-31 09:32:57 +053013 model = "Texas Instruments K2G General Purpose EVM";
Lokesh Vutla2a9a8422015-09-19 16:26:55 +053014
15 chosen {
16 stdout-path = &uart0;
17 };
Cooper Jr., Franklin0d3f97d2017-06-16 17:25:29 -050018
19 memory@80000000 {
20 device_type = "memory";
21 reg = <0x80000000 0x80000000>;
22 };
Lokesh Vutla2a9a8422015-09-19 16:26:55 +053023};
Mugunthan V N2c5bf6c2016-02-02 15:51:37 +053024
25&mdio {
26 status = "okay";
27 ethphy0: ethernet-phy@0 {
28 reg = <0>;
Mugunthan V N2c5bf6c2016-02-02 15:51:37 +053029 };
30};
31
Jean-Jacques Hiblotd53653f2018-12-04 11:12:58 +010032&keystone_usb0 {
33 status = "okay";
34};
35
36&usb0_phy {
37 status = "okay";
Jean-Jacques Hiblotd53653f2018-12-04 11:12:58 +010038};
39
40&usb0 {
41 dr_mode = "host";
42 status = "okay";
43};
44
45&keystone_usb1 {
46 status = "okay";
47};
48
49&usb1_phy {
Jean-Jacques Hiblotd53653f2018-12-04 11:12:58 +010050 status = "okay";
51};
52
53&usb1 {
54 dr_mode = "peripheral";
55 status = "okay";
56};
57
Mugunthan V N2c5bf6c2016-02-02 15:51:37 +053058&gbe0 {
59 phy-handle = <&ethphy0>;
60};
Vignesh Rc8e75042016-07-06 09:59:05 +053061
Cooper Jr., Franklin42468c82017-06-16 17:25:30 -050062&netcp {
63 status = "okay";
64};
65
Vignesh Rc8e75042016-07-06 09:59:05 +053066&spi1 {
67 status = "okay";
68
69 spi_nor: flash@0 {
70 #address-cells = <1>;
71 #size-cells = <1>;
Neil Armstrongffd4c7c2019-02-10 10:16:20 +000072 compatible = "jedec,spi-nor";
Vignesh Rc8e75042016-07-06 09:59:05 +053073 spi-max-frequency = <50000000>;
74 m25p,fast-read;
75 reg = <0>;
76
77 partition@0 {
78 label = "u-boot-spl";
79 reg = <0x0 0x80000>;
80 read-only;
81 };
82
83 partition@1 {
84 label = "misc";
85 reg = <0x80000 0xf80000>;
86 };
87 };
88};
Vignesh Rb60774f2016-07-06 10:20:57 +053089
90&qspi {
91 status = "okay";
92
Andrew Davisdb5a3bd2023-04-11 13:25:09 -050093 flash0: flash@0 {
94 compatible = "s25fl512s", "jedec,spi-nor";
Jason Rush6e62b172018-01-23 17:13:10 -060095 reg = <0>;
96 spi-tx-bus-width = <1>;
97 spi-rx-bus-width = <4>;
98 spi-max-frequency = <96000000>;
99 #address-cells = <1>;
100 #size-cells = <1>;
101 cdns,tshsl-ns = <392>;
102 cdns,tsd2d-ns = <392>;
103 cdns,tchsh-ns = <100>;
104 cdns,tslch-ns = <100>;
Vignesh Rb60774f2016-07-06 10:20:57 +0530105 block-size = <18>;
106
Jason Rush6e62b172018-01-23 17:13:10 -0600107 partition@0 {
108 label = "QSPI.u-boot-spl-os";
109 reg = <0x00000000 0x00100000>;
110 };
111 partition@1 {
112 label = "QSPI.u-boot-env";
113 reg = <0x00100000 0x00040000>;
114 };
115 partition@2 {
116 label = "QSPI.skern";
117 reg = <0x00140000 0x0040000>;
118 };
119 partition@3 {
120 label = "QSPI.pmmc-firmware";
121 reg = <0x00180000 0x0040000>;
122 };
123 partition@4 {
124 label = "QSPI.kernel";
125 reg = <0x001C0000 0x0800000>;
126 };
127 partition@5 {
128 label = "QSPI.file-system";
129 reg = <0x009C0000 0x3640000>;
130 };
131 };
Vignesh Rb60774f2016-07-06 10:20:57 +0530132};
Sekhar Norice525312016-08-10 19:24:05 +0530133
134&mmc0 {
135 status = "okay";
136};
137
138&mmc1 {
139 status = "okay";
140};
Cooper Jr., Franklin1eaa0b42017-04-20 10:25:48 -0500141
142&i2c0 {
143 status = "okay";
144};
145
146&i2c1 {
147 status = "okay";
148};