summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts
blob: 73eb6061c73eeaa475ef80812c2371476da36210 (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
// SPDX-License-Identifier: GPL-2.0+
/*
 * Device Tree File for the Kontron KBox A-230-LS.
 *
 * This consists of a Kontron SMARC-sAL28 (Dual PHY) and a special
 * carrier (s1914).
 *
 * Copyright (C) 2019 Michael Walle <michael@walle.cc>
 *
 */

/dts-v1/;
#include "fsl-ls1028a-kontron-sl28-var4.dts"
#include <dt-bindings/leds/common.h>

/ {
	model = "Kontron KBox A-230-LS";
	compatible = "kontron,kbox-a-230-ls", "kontron,sl28-var4",
		     "kontron,sl28", "fsl,ls1028a";

	leds {
		compatible = "gpio-leds";

		alarm-led {
			function = LED_FUNCTION_ALARM;
			color = <LED_COLOR_ID_YELLOW>;
			gpios = <&sl28cpld_gpio0 0 GPIO_ACTIVE_HIGH>;
		};

		power-led {
			linux,default-trigger = "default-on";
			function = LED_FUNCTION_POWER;
			color = <LED_COLOR_ID_GREEN>;
			gpios = <&sl28cpld_gpio1 3 GPIO_ACTIVE_HIGH>;
		};
	};
};

&enetc_mdio_pf3 {
	/* BCM54140 QSGMII quad PHY */
	qsgmii_phy0: ethernet-phy@7 {
		reg = <7>;
	};

	qsgmii_phy1: ethernet-phy@8 {
		reg = <8>;
	};

	qsgmii_phy2: ethernet-phy@9 {
		reg = <9>;
	};

	qsgmii_phy3: ethernet-phy@10 {
		reg = <10>;
	};
};

&enetc_port2 {
	status = "okay";
};

&enetc_port3 {
	status = "okay";
};

&i2c3 {
	eeprom@57 {
		compatible = "atmel,24c32";
		reg = <0x57>;
		pagesize = <32>;
	};
};

&mscc_felix {
	status = "okay";
};

&mscc_felix_port0 {
	label = "swp0";
	managed = "in-band-status";
	phy-handle = <&qsgmii_phy0>;
	phy-mode = "qsgmii";
	status = "okay";
};

&mscc_felix_port1 {
	label = "swp1";
	managed = "in-band-status";
	phy-handle = <&qsgmii_phy1>;
	phy-mode = "qsgmii";
	status = "okay";
};

&mscc_felix_port2 {
	label = "swp2";
	managed = "in-band-status";
	phy-handle = <&qsgmii_phy2>;
	phy-mode = "qsgmii";
	status = "okay";
};

&mscc_felix_port3 {
	label = "swp3";
	managed = "in-band-status";
	phy-handle = <&qsgmii_phy3>;
	phy-mode = "qsgmii";
	status = "okay";
};

&mscc_felix_port4 {
	status = "okay";
};

&mscc_felix_port5 {
	status = "okay";
};

&sata {
	status = "okay";
};