xref: /freebsd/sys/contrib/device-tree/src/arm/ti/keystone/keystone-k2e-evm.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Keystone 2 Edison EVM device tree
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (C) 2013-2017 Texas Instruments Incorporated - http://www.ti.com/
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot/dts-v1/;
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot#include "keystone.dtsi"
10*f126890aSEmmanuel Vadot#include "keystone-k2e.dtsi"
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot/ {
13*f126890aSEmmanuel Vadot	compatible = "ti,k2e-evm", "ti,k2e", "ti,keystone";
14*f126890aSEmmanuel Vadot	model = "Texas Instruments Keystone 2 Edison EVM";
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	reserved-memory {
17*f126890aSEmmanuel Vadot		#address-cells = <2>;
18*f126890aSEmmanuel Vadot		#size-cells = <2>;
19*f126890aSEmmanuel Vadot		ranges;
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot		dsp_common_memory: dsp-common-memory@81f800000 {
22*f126890aSEmmanuel Vadot			compatible = "shared-dma-pool";
23*f126890aSEmmanuel Vadot			reg = <0x00000008 0x1f800000 0x00000000 0x800000>;
24*f126890aSEmmanuel Vadot			reusable;
25*f126890aSEmmanuel Vadot			status = "okay";
26*f126890aSEmmanuel Vadot		};
27*f126890aSEmmanuel Vadot	};
28*f126890aSEmmanuel Vadot};
29*f126890aSEmmanuel Vadot
30*f126890aSEmmanuel Vadot&soc0 {
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot		clocks {
33*f126890aSEmmanuel Vadot			refclksys: refclksys {
34*f126890aSEmmanuel Vadot				#clock-cells = <0>;
35*f126890aSEmmanuel Vadot				compatible = "fixed-clock";
36*f126890aSEmmanuel Vadot				clock-frequency = <100000000>;
37*f126890aSEmmanuel Vadot				clock-output-names = "refclk-sys";
38*f126890aSEmmanuel Vadot			};
39*f126890aSEmmanuel Vadot
40*f126890aSEmmanuel Vadot			refclkpass: refclkpass {
41*f126890aSEmmanuel Vadot				#clock-cells = <0>;
42*f126890aSEmmanuel Vadot				compatible = "fixed-clock";
43*f126890aSEmmanuel Vadot				clock-frequency = <100000000>;
44*f126890aSEmmanuel Vadot				clock-output-names = "refclk-pass";
45*f126890aSEmmanuel Vadot			};
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot			refclkddr3a: refclkddr3a {
48*f126890aSEmmanuel Vadot				#clock-cells = <0>;
49*f126890aSEmmanuel Vadot				compatible = "fixed-clock";
50*f126890aSEmmanuel Vadot				clock-frequency = <100000000>;
51*f126890aSEmmanuel Vadot				clock-output-names = "refclk-ddr3a";
52*f126890aSEmmanuel Vadot			};
53*f126890aSEmmanuel Vadot		};
54*f126890aSEmmanuel Vadot};
55*f126890aSEmmanuel Vadot
56*f126890aSEmmanuel Vadot&usb_phy {
57*f126890aSEmmanuel Vadot	status = "okay";
58*f126890aSEmmanuel Vadot};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot&keystone_usb0 {
61*f126890aSEmmanuel Vadot	status = "okay";
62*f126890aSEmmanuel Vadot};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot&usb0 {
65*f126890aSEmmanuel Vadot	dr_mode = "host";
66*f126890aSEmmanuel Vadot};
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot&usb1_phy {
69*f126890aSEmmanuel Vadot	status = "okay";
70*f126890aSEmmanuel Vadot};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot&keystone_usb1 {
73*f126890aSEmmanuel Vadot	status = "okay";
74*f126890aSEmmanuel Vadot};
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot&usb1 {
77*f126890aSEmmanuel Vadot	dr_mode = "peripheral";
78*f126890aSEmmanuel Vadot};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot&i2c0 {
81*f126890aSEmmanuel Vadot	eeprom@50 {
82*f126890aSEmmanuel Vadot		compatible = "atmel,24c1024";
83*f126890aSEmmanuel Vadot		reg = <0x50>;
84*f126890aSEmmanuel Vadot	};
85*f126890aSEmmanuel Vadot};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot&aemif {
88*f126890aSEmmanuel Vadot	cs0 {
89*f126890aSEmmanuel Vadot		#address-cells = <2>;
90*f126890aSEmmanuel Vadot		#size-cells = <1>;
91*f126890aSEmmanuel Vadot		clock-ranges;
92*f126890aSEmmanuel Vadot		ranges;
93*f126890aSEmmanuel Vadot
94*f126890aSEmmanuel Vadot		ti,cs-chipselect = <0>;
95*f126890aSEmmanuel Vadot		/* all timings in nanoseconds */
96*f126890aSEmmanuel Vadot		ti,cs-min-turnaround-ns = <12>;
97*f126890aSEmmanuel Vadot		ti,cs-read-hold-ns = <6>;
98*f126890aSEmmanuel Vadot		ti,cs-read-strobe-ns = <23>;
99*f126890aSEmmanuel Vadot		ti,cs-read-setup-ns = <9>;
100*f126890aSEmmanuel Vadot		ti,cs-write-hold-ns = <8>;
101*f126890aSEmmanuel Vadot		ti,cs-write-strobe-ns = <23>;
102*f126890aSEmmanuel Vadot		ti,cs-write-setup-ns = <8>;
103*f126890aSEmmanuel Vadot
104*f126890aSEmmanuel Vadot		nand@0,0 {
105*f126890aSEmmanuel Vadot			compatible = "ti,keystone-nand","ti,davinci-nand";
106*f126890aSEmmanuel Vadot			#address-cells = <1>;
107*f126890aSEmmanuel Vadot			#size-cells = <1>;
108*f126890aSEmmanuel Vadot			reg = <0 0 0x4000000
109*f126890aSEmmanuel Vadot			       1 0 0x0000100>;
110*f126890aSEmmanuel Vadot
111*f126890aSEmmanuel Vadot			ti,davinci-chipselect = <0>;
112*f126890aSEmmanuel Vadot			ti,davinci-mask-ale = <0x2000>;
113*f126890aSEmmanuel Vadot			ti,davinci-mask-cle = <0x4000>;
114*f126890aSEmmanuel Vadot			ti,davinci-mask-chipsel = <0>;
115*f126890aSEmmanuel Vadot			nand-ecc-mode = "hw";
116*f126890aSEmmanuel Vadot			ti,davinci-ecc-bits = <4>;
117*f126890aSEmmanuel Vadot			nand-on-flash-bbt;
118*f126890aSEmmanuel Vadot
119*f126890aSEmmanuel Vadot			partition@0 {
120*f126890aSEmmanuel Vadot				label = "u-boot";
121*f126890aSEmmanuel Vadot				reg = <0x0 0x100000>;
122*f126890aSEmmanuel Vadot				read-only;
123*f126890aSEmmanuel Vadot			};
124*f126890aSEmmanuel Vadot
125*f126890aSEmmanuel Vadot			partition@100000 {
126*f126890aSEmmanuel Vadot				label = "params";
127*f126890aSEmmanuel Vadot				reg = <0x100000 0x80000>;
128*f126890aSEmmanuel Vadot				read-only;
129*f126890aSEmmanuel Vadot			};
130*f126890aSEmmanuel Vadot
131*f126890aSEmmanuel Vadot			partition@180000 {
132*f126890aSEmmanuel Vadot				label = "ubifs";
133*f126890aSEmmanuel Vadot				reg = <0x180000 0x1fe80000>;
134*f126890aSEmmanuel Vadot			};
135*f126890aSEmmanuel Vadot		};
136*f126890aSEmmanuel Vadot	};
137*f126890aSEmmanuel Vadot};
138*f126890aSEmmanuel Vadot
139*f126890aSEmmanuel Vadot&spi0 {
140*f126890aSEmmanuel Vadot	nor_flash: flash@0 {
141*f126890aSEmmanuel Vadot		#address-cells = <1>;
142*f126890aSEmmanuel Vadot		#size-cells = <1>;
143*f126890aSEmmanuel Vadot		compatible = "micron,n25q128a11", "jedec,spi-nor";
144*f126890aSEmmanuel Vadot		spi-max-frequency = <54000000>;
145*f126890aSEmmanuel Vadot		m25p,fast-read;
146*f126890aSEmmanuel Vadot		reg = <0>;
147*f126890aSEmmanuel Vadot
148*f126890aSEmmanuel Vadot		partition@0 {
149*f126890aSEmmanuel Vadot			label = "u-boot-spl";
150*f126890aSEmmanuel Vadot			reg = <0x0 0x80000>;
151*f126890aSEmmanuel Vadot			read-only;
152*f126890aSEmmanuel Vadot		};
153*f126890aSEmmanuel Vadot
154*f126890aSEmmanuel Vadot		partition@1 {
155*f126890aSEmmanuel Vadot			label = "misc";
156*f126890aSEmmanuel Vadot			reg = <0x80000 0xf80000>;
157*f126890aSEmmanuel Vadot		};
158*f126890aSEmmanuel Vadot	};
159*f126890aSEmmanuel Vadot};
160*f126890aSEmmanuel Vadot
161*f126890aSEmmanuel Vadot&mdio {
162*f126890aSEmmanuel Vadot	status = "okay";
163*f126890aSEmmanuel Vadot	ethphy0: ethernet-phy@0 {
164*f126890aSEmmanuel Vadot		compatible = "marvell,88E1514", "marvell,88E1510", "ethernet-phy-ieee802.3-c22";
165*f126890aSEmmanuel Vadot		reg = <0>;
166*f126890aSEmmanuel Vadot	};
167*f126890aSEmmanuel Vadot
168*f126890aSEmmanuel Vadot	ethphy1: ethernet-phy@1 {
169*f126890aSEmmanuel Vadot		compatible = "marvell,88E1514", "marvell,88E1510", "ethernet-phy-ieee802.3-c22";
170*f126890aSEmmanuel Vadot		reg = <1>;
171*f126890aSEmmanuel Vadot	};
172*f126890aSEmmanuel Vadot};
173*f126890aSEmmanuel Vadot
174*f126890aSEmmanuel Vadot&dsp0 {
175*f126890aSEmmanuel Vadot	memory-region = <&dsp_common_memory>;
176*f126890aSEmmanuel Vadot	status = "okay";
177*f126890aSEmmanuel Vadot};
178