1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include "kirkwood.dtsi"
5#include "kirkwood-98dx4122.dtsi"
6
7/ {
8	model = "Allied Telesis SBx81LIFXCAT Board";
9	compatible = "atl,SBx8LIFXCAT", "marvell,kirkwood-98DX4122",
10		     "marvell,kirkwood";
11
12	memory {
13		device_type = "memory";
14		reg = <0x00000000 0x08000000>; /* 128 MB */
15	};
16
17	chosen {
18		bootargs = "console=ttyS0,115200n8 earlyprintk";
19		stdout-path = &uart0;
20	};
21
22	aliases {
23		ethernet0 = &eth0;
24		i2c0 = &i2c0;
25		spi0 = &spi0;
26	};
27
28	dsa {
29		compatible = "marvell,dsa";
30		#address-cells = <2>;
31		#size-cells = <0>;
32		dsa,ethernet = <&eth0>;
33		dsa,mii-bus = <&mdio>;
34		status = "okay";
35
36		switch@0 {
37			#address-cells =  <1>;
38			#size-cells = <0>;
39			reg = <1 0>;
40
41			port@0 {
42				reg = <0>;
43				label = "internal0";
44			};
45			port@1 {
46				reg = <1>;
47				label = "internal1";
48			};
49			port@8 {
50				reg = <8>;
51				label = "internal8";
52				phy-mode = "rgmii-id";
53				fixed-link {
54					speed = <1000>;
55					full-duplex;
56				};
57			};
58			port@9 {
59				reg = <9>;
60				label = "internal9";
61				phy-mode = "rgmii-id";
62				fixed-link {
63					speed = <1000>;
64					full-duplex;
65				};
66			};
67			port@10 {
68				reg = <10>;
69				label = "cpu";
70			};
71		};
72	};
73
74	gpio-leds {
75		compatible = "gpio-leds";
76
77		ledn {
78			label = "status:ledn";
79			gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
80		};
81
82		ledp {
83			label = "status:ledp";
84			gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>;
85		};
86	};
87};
88
89&spi0 {
90	status = "okay";
91
92	flash@0 {
93		#address-cells = <1>;
94		#size-cells = <1>;
95		compatible = "st,m25p128", "jedec,spi-nor", "spi-flash";
96		reg = <0>;
97		spi-max-frequency = <50000000>;
98		mode = <0>;
99
100		partition@u-boot {
101			reg = <0x00000000 0x00c00000>;
102			label = "u-boot";
103		};
104		partition@u-boot-env {
105			reg = <0x00c00000 0x00040000>;
106			label = "u-boot-env";
107		};
108		partition@unused {
109			reg = <0x00100000 0x00f00000>;
110			label = "unused";
111		};
112	};
113};
114
115&i2c0 {
116	status = "okay";
117
118	eeprom@52 {
119		compatible = "atmel,24c04";
120		reg = <0x52>;
121	};
122
123	gpio3: gpio@76 {
124		#gpio-cells = <2>;
125		compatible = "nxp,pca9539";
126		reg = <0x76>;
127	};
128};
129
130&uart0 {
131	status = "okay";
132};
133
134&mdio {
135	status = "okay";
136};
137
138&eth0 {
139	status = "okay";
140
141	ethernet0-port@0 {
142		speed = <1000>;
143		duplex = <1>;
144	};
145};
146