Prepare v2024.10
[platform/kernel/u-boot.git] / arch / arm / dts / keystone-k2g-evm.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for K2G EVM
4  *
5  * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/
6  */
7 /dts-v1/;
8
9 #include "keystone-k2g.dtsi"
10
11 / {
12         compatible =  "ti,k2g-evm","ti,keystone";
13         model = "Texas Instruments K2G General Purpose EVM";
14
15         chosen {
16                 stdout-path = &uart0;
17         };
18
19         memory@80000000 {
20                 device_type = "memory";
21                 reg = <0x80000000 0x80000000>;
22         };
23 };
24
25 &mdio {
26         status = "okay";
27         ethphy0: ethernet-phy@0 {
28                 reg = <0>;
29         };
30 };
31
32 &keystone_usb0 {
33         status = "okay";
34 };
35
36 &usb0_phy {
37         status = "okay";
38 };
39
40 &usb0 {
41         dr_mode = "host";
42         status = "okay";
43 };
44
45 &keystone_usb1 {
46         status = "okay";
47 };
48
49 &usb1_phy {
50         status = "okay";
51 };
52
53 &usb1 {
54         dr_mode = "peripheral";
55         status = "okay";
56 };
57
58 &gbe0 {
59         phy-handle = <&ethphy0>;
60 };
61
62 &netcp {
63         status = "okay";
64 };
65
66 &spi1 {
67         status = "okay";
68
69         spi_nor: flash@0 {
70                 #address-cells = <1>;
71                 #size-cells = <1>;
72                 compatible = "jedec,spi-nor";
73                 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 };
89
90 &qspi {
91         status = "okay";
92
93         flash0: flash@0 {
94                 compatible = "s25fl512s", "jedec,spi-nor";
95                 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>;
105                 block-size = <18>;
106
107                 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         };
132 };
133
134 &mmc0 {
135         status = "okay";
136 };
137
138 &mmc1 {
139         status = "okay";
140 };
141
142 &i2c0 {
143         status = "okay";
144 };
145
146 &i2c1 {
147         status = "okay";
148 };