xref: /openbmc/linux/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
1815364d0SMichael Walle// SPDX-License-Identifier: GPL-2.0+
2815364d0SMichael Walle/*
3815364d0SMichael Walle * Device Tree File for the Kontron KBox A-230-LS.
4815364d0SMichael Walle *
5815364d0SMichael Walle * This consists of a Kontron SMARC-sAL28 (Dual PHY) and a special
6815364d0SMichael Walle * carrier (s1914).
7815364d0SMichael Walle *
8815364d0SMichael Walle * Copyright (C) 2019 Michael Walle <michael@walle.cc>
9815364d0SMichael Walle *
10815364d0SMichael Walle */
11815364d0SMichael Walle
12815364d0SMichael Walle/dts-v1/;
13815364d0SMichael Walle#include "fsl-ls1028a-kontron-sl28-var4.dts"
143672d6faSMichael Walle#include <dt-bindings/leds/common.h>
15815364d0SMichael Walle
16815364d0SMichael Walle/ {
17815364d0SMichael Walle	model = "Kontron KBox A-230-LS";
18815364d0SMichael Walle	compatible = "kontron,kbox-a-230-ls", "kontron,sl28-var4",
19815364d0SMichael Walle		     "kontron,sl28", "fsl,ls1028a";
203672d6faSMichael Walle
213672d6faSMichael Walle	leds {
223672d6faSMichael Walle		compatible = "gpio-leds";
233672d6faSMichael Walle
243672d6faSMichael Walle		alarm-led {
253672d6faSMichael Walle			function = LED_FUNCTION_ALARM;
263672d6faSMichael Walle			color = <LED_COLOR_ID_YELLOW>;
273672d6faSMichael Walle			gpios = <&sl28cpld_gpio0 0 GPIO_ACTIVE_HIGH>;
283672d6faSMichael Walle		};
293672d6faSMichael Walle
303672d6faSMichael Walle		power-led {
313672d6faSMichael Walle			linux,default-trigger = "default-on";
323672d6faSMichael Walle			function = LED_FUNCTION_POWER;
333672d6faSMichael Walle			color = <LED_COLOR_ID_GREEN>;
343672d6faSMichael Walle			gpios = <&sl28cpld_gpio1 3 GPIO_ACTIVE_HIGH>;
353672d6faSMichael Walle		};
363672d6faSMichael Walle	};
37815364d0SMichael Walle};
38815364d0SMichael Walle
3929c6a69eSMichael Walle&enetc_mdio_pf3 {
4029c6a69eSMichael Walle	/* BCM54140 QSGMII quad PHY */
4129c6a69eSMichael Walle	qsgmii_phy0: ethernet-phy@7 {
4229c6a69eSMichael Walle		reg = <7>;
4329c6a69eSMichael Walle	};
4429c6a69eSMichael Walle
4529c6a69eSMichael Walle	qsgmii_phy1: ethernet-phy@8 {
4629c6a69eSMichael Walle		reg = <8>;
4729c6a69eSMichael Walle	};
4829c6a69eSMichael Walle
4929c6a69eSMichael Walle	qsgmii_phy2: ethernet-phy@9 {
5029c6a69eSMichael Walle		reg = <9>;
5129c6a69eSMichael Walle	};
5229c6a69eSMichael Walle
5329c6a69eSMichael Walle	qsgmii_phy3: ethernet-phy@10 {
5429c6a69eSMichael Walle		reg = <10>;
5529c6a69eSMichael Walle	};
5629c6a69eSMichael Walle};
5729c6a69eSMichael Walle
5829c6a69eSMichael Walle&enetc_port2 {
59*06b944f4SMichael Walle	nvmem-cells = <&base_mac_address 2>;
60*06b944f4SMichael Walle	nvmem-cell-names = "mac-address";
6129c6a69eSMichael Walle	status = "okay";
6229c6a69eSMichael Walle};
6329c6a69eSMichael Walle
6468ad0821SVladimir Oltean&enetc_port3 {
65*06b944f4SMichael Walle	nvmem-cells = <&base_mac_address 3>;
66*06b944f4SMichael Walle	nvmem-cell-names = "mac-address";
6768ad0821SVladimir Oltean	status = "okay";
6868ad0821SVladimir Oltean};
6968ad0821SVladimir Oltean
70f05cd1c2SMichael Walle&i2c3 {
71f05cd1c2SMichael Walle	eeprom@57 {
72815364d0SMichael Walle		compatible = "atmel,24c32";
73f05cd1c2SMichael Walle		reg = <0x57>;
74815364d0SMichael Walle		pagesize = <32>;
75815364d0SMichael Walle	};
76815364d0SMichael Walle};
7729c6a69eSMichael Walle
78630952e1SMichael Walle&mscc_felix {
79630952e1SMichael Walle	status = "okay";
80630952e1SMichael Walle};
81630952e1SMichael Walle
8229c6a69eSMichael Walle&mscc_felix_port0 {
8329c6a69eSMichael Walle	label = "swp0";
8429c6a69eSMichael Walle	managed = "in-band-status";
8529c6a69eSMichael Walle	phy-handle = <&qsgmii_phy0>;
8629c6a69eSMichael Walle	phy-mode = "qsgmii";
87*06b944f4SMichael Walle	nvmem-cells = <&base_mac_address 4>;
88*06b944f4SMichael Walle	nvmem-cell-names = "mac-address";
8929c6a69eSMichael Walle	status = "okay";
9029c6a69eSMichael Walle};
9129c6a69eSMichael Walle
9229c6a69eSMichael Walle&mscc_felix_port1 {
9329c6a69eSMichael Walle	label = "swp1";
9429c6a69eSMichael Walle	managed = "in-band-status";
9529c6a69eSMichael Walle	phy-handle = <&qsgmii_phy1>;
9629c6a69eSMichael Walle	phy-mode = "qsgmii";
97*06b944f4SMichael Walle	nvmem-cells = <&base_mac_address 5>;
98*06b944f4SMichael Walle	nvmem-cell-names = "mac-address";
9929c6a69eSMichael Walle	status = "okay";
10029c6a69eSMichael Walle};
10129c6a69eSMichael Walle
10229c6a69eSMichael Walle&mscc_felix_port2 {
10329c6a69eSMichael Walle	label = "swp2";
10429c6a69eSMichael Walle	managed = "in-band-status";
10529c6a69eSMichael Walle	phy-handle = <&qsgmii_phy2>;
10629c6a69eSMichael Walle	phy-mode = "qsgmii";
107*06b944f4SMichael Walle	nvmem-cells = <&base_mac_address 6>;
108*06b944f4SMichael Walle	nvmem-cell-names = "mac-address";
10929c6a69eSMichael Walle	status = "okay";
11029c6a69eSMichael Walle};
11129c6a69eSMichael Walle
11229c6a69eSMichael Walle&mscc_felix_port3 {
11329c6a69eSMichael Walle	label = "swp3";
11429c6a69eSMichael Walle	managed = "in-band-status";
11529c6a69eSMichael Walle	phy-handle = <&qsgmii_phy3>;
11629c6a69eSMichael Walle	phy-mode = "qsgmii";
117*06b944f4SMichael Walle	nvmem-cells = <&base_mac_address 7>;
118*06b944f4SMichael Walle	nvmem-cell-names = "mac-address";
11929c6a69eSMichael Walle	status = "okay";
12029c6a69eSMichael Walle};
12129c6a69eSMichael Walle
12229c6a69eSMichael Walle&mscc_felix_port4 {
12329c6a69eSMichael Walle	status = "okay";
12429c6a69eSMichael Walle};
1255dd74cf8SMichael Walle
12668ad0821SVladimir Oltean&mscc_felix_port5 {
12768ad0821SVladimir Oltean	status = "okay";
12868ad0821SVladimir Oltean};
12968ad0821SVladimir Oltean
1305dd74cf8SMichael Walle&sata {
1315dd74cf8SMichael Walle	status = "okay";
1325dd74cf8SMichael Walle};
133