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&enetc_port3 { 63 status = "okay"; 64}; 65 66&i2c3 { 67 eeprom@57 { 68 compatible = "atmel,24c32"; 69 reg = <0x57>; 70 pagesize = <32>; 71 }; 72}; 73 74&mscc_felix { 75 status = "okay"; 76}; 77 78&mscc_felix_port0 { 79 label = "swp0"; 80 managed = "in-band-status"; 81 phy-handle = <&qsgmii_phy0>; 82 phy-mode = "qsgmii"; 83 status = "okay"; 84}; 85 86&mscc_felix_port1 { 87 label = "swp1"; 88 managed = "in-band-status"; 89 phy-handle = <&qsgmii_phy1>; 90 phy-mode = "qsgmii"; 91 status = "okay"; 92}; 93 94&mscc_felix_port2 { 95 label = "swp2"; 96 managed = "in-band-status"; 97 phy-handle = <&qsgmii_phy2>; 98 phy-mode = "qsgmii"; 99 status = "okay"; 100}; 101 102&mscc_felix_port3 { 103 label = "swp3"; 104 managed = "in-band-status"; 105 phy-handle = <&qsgmii_phy3>; 106 phy-mode = "qsgmii"; 107 status = "okay"; 108}; 109 110&mscc_felix_port4 { 111 status = "okay"; 112}; 113 114&mscc_felix_port5 { 115 status = "okay"; 116}; 117 118&sata { 119 status = "okay"; 120}; 121