0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003 * Device Tree File for the Kontron KBox A-230-LS.
0004 *
0005 * This consists of a Kontron SMARC-sAL28 (Dual PHY) and a special
0006 * carrier (s1914).
0007 *
0008 * Copyright (C) 2019 Michael Walle <michael@walle.cc>
0009 *
0010 */
0011
0012 /dts-v1/;
0013 #include "fsl-ls1028a-kontron-sl28-var4.dts"
0014 #include <dt-bindings/leds/common.h>
0015
0016 / {
0017 model = "Kontron KBox A-230-LS";
0018 compatible = "kontron,kbox-a-230-ls", "kontron,sl28-var4",
0019 "kontron,sl28", "fsl,ls1028a";
0020
0021 leds {
0022 compatible = "gpio-leds";
0023
0024 alarm-led {
0025 function = LED_FUNCTION_ALARM;
0026 color = <LED_COLOR_ID_YELLOW>;
0027 gpios = <&sl28cpld_gpio0 0 GPIO_ACTIVE_HIGH>;
0028 };
0029
0030 power-led {
0031 linux,default-trigger = "default-on";
0032 function = LED_FUNCTION_POWER;
0033 color = <LED_COLOR_ID_GREEN>;
0034 gpios = <&sl28cpld_gpio1 3 GPIO_ACTIVE_HIGH>;
0035 };
0036 };
0037 };
0038
0039 &enetc_mdio_pf3 {
0040 /* BCM54140 QSGMII quad PHY */
0041 qsgmii_phy0: ethernet-phy@7 {
0042 reg = <7>;
0043 };
0044
0045 qsgmii_phy1: ethernet-phy@8 {
0046 reg = <8>;
0047 };
0048
0049 qsgmii_phy2: ethernet-phy@9 {
0050 reg = <9>;
0051 };
0052
0053 qsgmii_phy3: ethernet-phy@10 {
0054 reg = <10>;
0055 };
0056 };
0057
0058 &enetc_port2 {
0059 status = "okay";
0060 };
0061
0062 &i2c3 {
0063 eeprom@57 {
0064 compatible = "atmel,24c32";
0065 reg = <0x57>;
0066 pagesize = <32>;
0067 };
0068 };
0069
0070 &mscc_felix {
0071 status = "okay";
0072 };
0073
0074 &mscc_felix_port0 {
0075 label = "swp0";
0076 managed = "in-band-status";
0077 phy-handle = <&qsgmii_phy0>;
0078 phy-mode = "qsgmii";
0079 status = "okay";
0080 };
0081
0082 &mscc_felix_port1 {
0083 label = "swp1";
0084 managed = "in-band-status";
0085 phy-handle = <&qsgmii_phy1>;
0086 phy-mode = "qsgmii";
0087 status = "okay";
0088 };
0089
0090 &mscc_felix_port2 {
0091 label = "swp2";
0092 managed = "in-band-status";
0093 phy-handle = <&qsgmii_phy2>;
0094 phy-mode = "qsgmii";
0095 status = "okay";
0096 };
0097
0098 &mscc_felix_port3 {
0099 label = "swp3";
0100 managed = "in-band-status";
0101 phy-handle = <&qsgmii_phy3>;
0102 phy-mode = "qsgmii";
0103 status = "okay";
0104 };
0105
0106 &mscc_felix_port4 {
0107 ethernet = <&enetc_port2>;
0108 status = "okay";
0109 };
0110
0111 &sata {
0112 status = "okay";
0113 };