xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts (revision ed549cb0c53f8438c52593ce811f6fcc812248e9)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Device Tree File for the Kontron KBox A-230-LS.
4 *
5 * This consists of a Kontron SMARC-sAL28 (Dual PHY) and a special
6 * carrier (s1914).
7 *
8 * Copyright (C) 2019 Michael Walle <michael@walle.cc>
9 *
10 */
11
12/dts-v1/;
13#include "fsl-ls1028a-kontron-sl28-var4.dts"
14#include <dt-bindings/leds/common.h>
15
16/ {
17	model = "Kontron KBox A-230-LS";
18	compatible = "kontron,kbox-a-230-ls", "kontron,sl28-var4",
19		     "kontron,sl28", "fsl,ls1028a";
20
21	leds {
22		compatible = "gpio-leds";
23
24		alarm-led {
25			function = LED_FUNCTION_ALARM;
26			color = <LED_COLOR_ID_YELLOW>;
27			gpios = <&sl28cpld_gpio0 0 GPIO_ACTIVE_HIGH>;
28		};
29
30		power-led {
31			linux,default-trigger = "default-on";
32			function = LED_FUNCTION_POWER;
33			color = <LED_COLOR_ID_GREEN>;
34			gpios = <&sl28cpld_gpio1 3 GPIO_ACTIVE_HIGH>;
35		};
36	};
37};
38
39&enetc_mdio_pf3 {
40	/* BCM54140 QSGMII quad PHY */
41	qsgmii_phy0: ethernet-phy@7 {
42		reg = <7>;
43	};
44
45	qsgmii_phy1: ethernet-phy@8 {
46		reg = <8>;
47	};
48
49	qsgmii_phy2: ethernet-phy@9 {
50		reg = <9>;
51	};
52
53	qsgmii_phy3: ethernet-phy@10 {
54		reg = <10>;
55	};
56};
57
58&enetc_port2 {
59	status = "okay";
60};
61
62&i2c3 {
63	eeprom@57 {
64		compatible = "atmel,24c32";
65		reg = <0x57>;
66		pagesize = <32>;
67	};
68};
69
70&mscc_felix {
71	status = "okay";
72};
73
74&mscc_felix_port0 {
75	label = "swp0";
76	managed = "in-band-status";
77	phy-handle = <&qsgmii_phy0>;
78	phy-mode = "qsgmii";
79	status = "okay";
80};
81
82&mscc_felix_port1 {
83	label = "swp1";
84	managed = "in-band-status";
85	phy-handle = <&qsgmii_phy1>;
86	phy-mode = "qsgmii";
87	status = "okay";
88};
89
90&mscc_felix_port2 {
91	label = "swp2";
92	managed = "in-band-status";
93	phy-handle = <&qsgmii_phy2>;
94	phy-mode = "qsgmii";
95	status = "okay";
96};
97
98&mscc_felix_port3 {
99	label = "swp3";
100	managed = "in-band-status";
101	phy-handle = <&qsgmii_phy3>;
102	phy-mode = "qsgmii";
103	status = "okay";
104};
105
106&mscc_felix_port4 {
107	ethernet = <&enetc_port2>;
108	status = "okay";
109};
110
111&sata {
112	status = "okay";
113};
114