~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: ec8e7dee27115bb02fa1ab82a28a8da2d7c915df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// SPDX-License-Identifier: GPL-2.0+
/*
 * Hitachi ABB Power Grids EXPU1 board device tree source
 *
 * Copyright 2020 Hitachi ABB Power Grids
 *
 * Copyright 2013-2015 Freescale Semiconductor, Inc.
 */

/dts-v1/;
#include "ls1021a.dtsi"

/ {
	model = "EXPU1 Service Unit for XMC and FOX";

	aliases {
		enet2-rgmii-debug-phy = &debug_phy;
	};

	chosen {
		stdout-path = &uart0;
	};
};

&enet0 {
	status = "okay";
	tbi-handle = <&tbi0>;
	phy-connection-type = "sgmii";
	fixed-link {
		speed = <1000>;
		full-duplex;
	};
};

&enet1 {
	status = "okay";
	tbi-handle = <&tbi1>;
	phy-connection-type = "sgmii";
	fixed-link {
		speed = <1000>;
		full-duplex;
	};
};

&enet2 {
	phy-handle = <&debug_phy>;
	phy-connection-type = "rgmii-id";
	max-speed = <100>;
	status = "okay";
};

&i2c0 {
	status = "okay";
};

&dspi1 {
	bus-num = <0>;
	status = "okay";
	zl30343@0 {
		compatible = "gen,spidev", "zarlink,zl30343";
		reg = <0>;
		spi-max-frequency = <8000000>;
	};
};

&ifc {
	#address-cells = <2>;
	#size-cells = <1>;
	/* NOR Flash on board */
	ranges = <0x0 0x0 0x60000000 0x04000000>;
	status = "okay";

	nor@0,0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "cfi-flash";
		reg = <0x0 0x0 0x4000000>;
		bank-width = <2>;
		device-width = <1>;

		partition@0 {
			label = "rcw";
			reg = <0x0 0x20000>;
			read-only;
		};
		partition@20000 {
			label = "qe";
			reg = <0x20000 0x20000>;
		};
		partition@40000 {
			label = "envred";
			reg = <0x40000 0x20000>;
		};
		partition@60000 {
			label = "env";
			reg = <0x60000 0x20000>;
		};
		partition@100000 {
			label = "u-boot";
			reg = <0x100000 0x100000>;
		};
		partition@200000 {
			label = "redenvred";
			reg = <0x200000 0x20000>;
		};
		partition@220000 {
			label = "redenv";
			reg = <0x220000 0x20000>;
		};
		partition@240000 {
			label = "redu-boot";
			reg = <0x240000 0x100000>;
		};
		partition@340000 {
			label = "ubi0";
			reg = <0x340000 0x03C00000>;
		};
	};
};

&mdio0 {
	debug_phy: ethernet-phy@11 {
		reg = <0x11>;
	};

	tbi0: tbi-phy@0xb {
		reg = <0xb>;
		device_type = "tbi-phy";
	};
};

&mdio1 {
	tbi1: tbi-phy@0xd {
		reg = <0xd>;
		device_type = "tbi-phy";
	};
};

&uart0 {
	status = "okay";
};