summaryrefslogtreecommitdiff
path: root/arch/arm/dts/kirkwood-atl-sbx81lifkw.dts
blob: 4ae74f4316e58b52019cb00a2d395863658962c9 (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
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;

#include "kirkwood.dtsi"
#include "kirkwood-6281.dtsi"

/ {
	model = "Allied Telesis SBx81LIFKW Board";
	compatible = "atl,SBx81LIFKW", "marvell,kirkwood-88f6281",
		     "marvell,kirkwood";

	memory {
		device_type = "memory";
		reg = <0x00000000 0x08000000>; /* 128 MB */
	};

	chosen {
		bootargs = "console=ttyS0,115200n8 earlyprintk";
		stdout-path = &uart0;
	};

	aliases {
		ethernet0 = &eth0;
		i2c0 = &i2c0;
		spi0 = &spi0;
	};

	dsa {
		compatible = "marvell,dsa";
		#address-cells = <2>;
		#size-cells = <0>;
		dsa,ethernet = <&eth0>;
		dsa,mii-bus = <&mdio>;
		status = "okay";

		switch@0 {
			#address-cells =  <1>;
			#size-cells = <0>;
			reg = <1 0>;

			port@0 {
				reg = <0>;
				label = "internal0";
			};
			port@1 {
				reg = <1>;
				label = "internal1";
			};
			port@8 {
				reg = <8>;
				label = "internal8";
				phy-mode = "rgmii-id";
				fixed-link {
					speed = <1000>;
					full-duplex;
				};
			};
			port@9 {
				reg = <9>;
				label = "internal9";
				phy-mode = "rgmii-id";
				fixed-link {
					speed = <1000>;
					full-duplex;
				};
			};
			port@10 {
				reg = <10>;
				label = "cpu";
			};
		};
	};
};

&spi0 {
	status = "okay";

	flash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "st,m25p128", "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <50000000>;
		mode = <0>;

		partition@u-boot {
			reg = <0x00000000 0x00c00000>;
			label = "u-boot";
		};
		partition@u-boot-env {
			reg = <0x00c00000 0x00040000>;
			label = "u-boot-env";
		};
		partition@unused {
			reg = <0x00100000 0x00f00000>;
			label = "unused";
		};
	};
};

&i2c0 {
	status = "okay";

	eeprom@52 {
		compatible = "atmel,24c04";
		reg = <0x52>;
	};
};

&uart0 {
	status = "okay";
};

&mdio {
	status = "okay";
};

&eth0 {
	status = "okay";

	ethernet0-port@0 {
		speed = <1000>;
		duplex = <1>;
	};
};

&pciec {
	status = "okay";
};

&pcie0 {
	status = "okay";
};