1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+ 2c66ec88fSEmmanuel Vadot/* 3c66ec88fSEmmanuel Vadot * Device Tree File for the Kontron KBox A-230-LS. 4c66ec88fSEmmanuel Vadot * 5c66ec88fSEmmanuel Vadot * This consists of a Kontron SMARC-sAL28 (Dual PHY) and a special 6c66ec88fSEmmanuel Vadot * carrier (s1914). 7c66ec88fSEmmanuel Vadot * 8c66ec88fSEmmanuel Vadot * Copyright (C) 2019 Michael Walle <michael@walle.cc> 9c66ec88fSEmmanuel Vadot * 10c66ec88fSEmmanuel Vadot */ 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadot/dts-v1/; 13c66ec88fSEmmanuel Vadot#include "fsl-ls1028a-kontron-sl28-var4.dts" 146be33864SEmmanuel Vadot#include <dt-bindings/leds/common.h> 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadot/ { 17c66ec88fSEmmanuel Vadot model = "Kontron KBox A-230-LS"; 18c66ec88fSEmmanuel Vadot compatible = "kontron,kbox-a-230-ls", "kontron,sl28-var4", 19c66ec88fSEmmanuel Vadot "kontron,sl28", "fsl,ls1028a"; 206be33864SEmmanuel Vadot 216be33864SEmmanuel Vadot leds { 226be33864SEmmanuel Vadot compatible = "gpio-leds"; 236be33864SEmmanuel Vadot 246be33864SEmmanuel Vadot alarm-led { 256be33864SEmmanuel Vadot function = LED_FUNCTION_ALARM; 266be33864SEmmanuel Vadot color = <LED_COLOR_ID_YELLOW>; 276be33864SEmmanuel Vadot gpios = <&sl28cpld_gpio0 0 GPIO_ACTIVE_HIGH>; 286be33864SEmmanuel Vadot }; 296be33864SEmmanuel Vadot 306be33864SEmmanuel Vadot power-led { 316be33864SEmmanuel Vadot linux,default-trigger = "default-on"; 326be33864SEmmanuel Vadot function = LED_FUNCTION_POWER; 336be33864SEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 346be33864SEmmanuel Vadot gpios = <&sl28cpld_gpio1 3 GPIO_ACTIVE_HIGH>; 356be33864SEmmanuel Vadot }; 366be33864SEmmanuel Vadot }; 37c66ec88fSEmmanuel Vadot}; 38c66ec88fSEmmanuel Vadot 39c66ec88fSEmmanuel Vadot&enetc_mdio_pf3 { 40c66ec88fSEmmanuel Vadot /* BCM54140 QSGMII quad PHY */ 41c66ec88fSEmmanuel Vadot qsgmii_phy0: ethernet-phy@7 { 42c66ec88fSEmmanuel Vadot reg = <7>; 43c66ec88fSEmmanuel Vadot }; 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot qsgmii_phy1: ethernet-phy@8 { 46c66ec88fSEmmanuel Vadot reg = <8>; 47c66ec88fSEmmanuel Vadot }; 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel Vadot qsgmii_phy2: ethernet-phy@9 { 50c66ec88fSEmmanuel Vadot reg = <9>; 51c66ec88fSEmmanuel Vadot }; 52c66ec88fSEmmanuel Vadot 53c66ec88fSEmmanuel Vadot qsgmii_phy3: ethernet-phy@10 { 54c66ec88fSEmmanuel Vadot reg = <10>; 55c66ec88fSEmmanuel Vadot }; 56c66ec88fSEmmanuel Vadot}; 57c66ec88fSEmmanuel Vadot 58c66ec88fSEmmanuel Vadot&enetc_port2 { 59*aa1a8ff2SEmmanuel Vadot nvmem-cells = <&base_mac_address 2>; 60*aa1a8ff2SEmmanuel Vadot nvmem-cell-names = "mac-address"; 61c66ec88fSEmmanuel Vadot status = "okay"; 62c66ec88fSEmmanuel Vadot}; 63c66ec88fSEmmanuel Vadot 647ef62cebSEmmanuel Vadot&enetc_port3 { 65*aa1a8ff2SEmmanuel Vadot nvmem-cells = <&base_mac_address 3>; 66*aa1a8ff2SEmmanuel Vadot nvmem-cell-names = "mac-address"; 677ef62cebSEmmanuel Vadot status = "okay"; 687ef62cebSEmmanuel Vadot}; 697ef62cebSEmmanuel Vadot 70c66ec88fSEmmanuel Vadot&i2c3 { 71c66ec88fSEmmanuel Vadot eeprom@57 { 72c66ec88fSEmmanuel Vadot compatible = "atmel,24c32"; 73c66ec88fSEmmanuel Vadot reg = <0x57>; 74c66ec88fSEmmanuel Vadot pagesize = <32>; 75c66ec88fSEmmanuel Vadot }; 76c66ec88fSEmmanuel Vadot}; 77c66ec88fSEmmanuel Vadot 78c66ec88fSEmmanuel Vadot&mscc_felix { 79c66ec88fSEmmanuel Vadot status = "okay"; 80c66ec88fSEmmanuel Vadot}; 81c66ec88fSEmmanuel Vadot 82c66ec88fSEmmanuel Vadot&mscc_felix_port0 { 83c66ec88fSEmmanuel Vadot label = "swp0"; 84c66ec88fSEmmanuel Vadot managed = "in-band-status"; 85c66ec88fSEmmanuel Vadot phy-handle = <&qsgmii_phy0>; 86c66ec88fSEmmanuel Vadot phy-mode = "qsgmii"; 87*aa1a8ff2SEmmanuel Vadot nvmem-cells = <&base_mac_address 4>; 88*aa1a8ff2SEmmanuel Vadot nvmem-cell-names = "mac-address"; 89c66ec88fSEmmanuel Vadot status = "okay"; 90c66ec88fSEmmanuel Vadot}; 91c66ec88fSEmmanuel Vadot 92c66ec88fSEmmanuel Vadot&mscc_felix_port1 { 93c66ec88fSEmmanuel Vadot label = "swp1"; 94c66ec88fSEmmanuel Vadot managed = "in-band-status"; 95c66ec88fSEmmanuel Vadot phy-handle = <&qsgmii_phy1>; 96c66ec88fSEmmanuel Vadot phy-mode = "qsgmii"; 97*aa1a8ff2SEmmanuel Vadot nvmem-cells = <&base_mac_address 5>; 98*aa1a8ff2SEmmanuel Vadot nvmem-cell-names = "mac-address"; 99c66ec88fSEmmanuel Vadot status = "okay"; 100c66ec88fSEmmanuel Vadot}; 101c66ec88fSEmmanuel Vadot 102c66ec88fSEmmanuel Vadot&mscc_felix_port2 { 103c66ec88fSEmmanuel Vadot label = "swp2"; 104c66ec88fSEmmanuel Vadot managed = "in-band-status"; 105c66ec88fSEmmanuel Vadot phy-handle = <&qsgmii_phy2>; 106c66ec88fSEmmanuel Vadot phy-mode = "qsgmii"; 107*aa1a8ff2SEmmanuel Vadot nvmem-cells = <&base_mac_address 6>; 108*aa1a8ff2SEmmanuel Vadot nvmem-cell-names = "mac-address"; 109c66ec88fSEmmanuel Vadot status = "okay"; 110c66ec88fSEmmanuel Vadot}; 111c66ec88fSEmmanuel Vadot 112c66ec88fSEmmanuel Vadot&mscc_felix_port3 { 113c66ec88fSEmmanuel Vadot label = "swp3"; 114c66ec88fSEmmanuel Vadot managed = "in-band-status"; 115c66ec88fSEmmanuel Vadot phy-handle = <&qsgmii_phy3>; 116c66ec88fSEmmanuel Vadot phy-mode = "qsgmii"; 117*aa1a8ff2SEmmanuel Vadot nvmem-cells = <&base_mac_address 7>; 118*aa1a8ff2SEmmanuel Vadot nvmem-cell-names = "mac-address"; 119c66ec88fSEmmanuel Vadot status = "okay"; 120c66ec88fSEmmanuel Vadot}; 121c66ec88fSEmmanuel Vadot 122c66ec88fSEmmanuel Vadot&mscc_felix_port4 { 1237ef62cebSEmmanuel Vadot status = "okay"; 1247ef62cebSEmmanuel Vadot}; 1257ef62cebSEmmanuel Vadot 1267ef62cebSEmmanuel Vadot&mscc_felix_port5 { 127c66ec88fSEmmanuel Vadot status = "okay"; 128c66ec88fSEmmanuel Vadot}; 1295def4c47SEmmanuel Vadot 1305def4c47SEmmanuel Vadot&sata { 1315def4c47SEmmanuel Vadot status = "okay"; 1325def4c47SEmmanuel Vadot}; 133