1 // SPDX-License-Identifier: GPL-2.0+ 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 2 /* 3 * Device Tree File for the Kontron KBox A-230 3 * Device Tree File for the Kontron KBox A-230-LS. 4 * 4 * 5 * This consists of a Kontron SMARC-sAL28 (Dua 5 * This consists of a Kontron SMARC-sAL28 (Dual PHY) and a special 6 * carrier (s1914). 6 * carrier (s1914). 7 * 7 * 8 * Copyright (C) 2019 Michael Walle <michael@wa 8 * Copyright (C) 2019 Michael Walle <michael@walle.cc> 9 * 9 * 10 */ 10 */ 11 11 12 /dts-v1/; 12 /dts-v1/; 13 #include "fsl-ls1028a-kontron-sl28-var4.dts" 13 #include "fsl-ls1028a-kontron-sl28-var4.dts" 14 #include <dt-bindings/leds/common.h> << 15 14 16 / { 15 / { 17 model = "Kontron KBox A-230-LS"; 16 model = "Kontron KBox A-230-LS"; 18 compatible = "kontron,kbox-a-230-ls", 17 compatible = "kontron,kbox-a-230-ls", "kontron,sl28-var4", 19 "kontron,sl28", "fsl,ls10 18 "kontron,sl28", "fsl,ls1028a"; 20 << 21 leds { << 22 compatible = "gpio-leds"; << 23 << 24 alarm-led { << 25 function = LED_FUNCTIO << 26 color = <LED_COLOR_ID_ << 27 gpios = <&sl28cpld_gpi << 28 }; << 29 << 30 power-led { << 31 linux,default-trigger << 32 function = LED_FUNCTIO << 33 color = <LED_COLOR_ID_ << 34 gpios = <&sl28cpld_gpi << 35 }; << 36 }; << 37 }; 19 }; 38 20 39 &enetc_mdio_pf3 { 21 &enetc_mdio_pf3 { 40 /* BCM54140 QSGMII quad PHY */ 22 /* BCM54140 QSGMII quad PHY */ 41 qsgmii_phy0: ethernet-phy@7 { 23 qsgmii_phy0: ethernet-phy@7 { 42 reg = <7>; 24 reg = <7>; 43 }; 25 }; 44 26 45 qsgmii_phy1: ethernet-phy@8 { 27 qsgmii_phy1: ethernet-phy@8 { 46 reg = <8>; 28 reg = <8>; 47 }; 29 }; 48 30 49 qsgmii_phy2: ethernet-phy@9 { 31 qsgmii_phy2: ethernet-phy@9 { 50 reg = <9>; 32 reg = <9>; 51 }; 33 }; 52 34 53 qsgmii_phy3: ethernet-phy@10 { 35 qsgmii_phy3: ethernet-phy@10 { 54 reg = <10>; 36 reg = <10>; 55 }; 37 }; 56 }; 38 }; 57 39 58 &enetc_port2 { 40 &enetc_port2 { 59 nvmem-cells = <&base_mac_address 2>; << 60 nvmem-cell-names = "mac-address"; << 61 status = "okay"; << 62 }; << 63 << 64 &enetc_port3 { << 65 nvmem-cells = <&base_mac_address 3>; << 66 nvmem-cell-names = "mac-address"; << 67 status = "okay"; 41 status = "okay"; 68 }; 42 }; 69 43 70 &i2c3 { 44 &i2c3 { 71 eeprom@57 { 45 eeprom@57 { 72 compatible = "atmel,24c32"; 46 compatible = "atmel,24c32"; 73 reg = <0x57>; 47 reg = <0x57>; 74 pagesize = <32>; 48 pagesize = <32>; 75 }; 49 }; 76 }; 50 }; 77 51 78 &mscc_felix { 52 &mscc_felix { 79 status = "okay"; 53 status = "okay"; 80 }; 54 }; 81 55 82 &mscc_felix_port0 { 56 &mscc_felix_port0 { 83 label = "swp0"; 57 label = "swp0"; 84 managed = "in-band-status"; 58 managed = "in-band-status"; 85 phy-handle = <&qsgmii_phy0>; 59 phy-handle = <&qsgmii_phy0>; 86 phy-mode = "qsgmii"; 60 phy-mode = "qsgmii"; 87 nvmem-cells = <&base_mac_address 4>; << 88 nvmem-cell-names = "mac-address"; << 89 status = "okay"; 61 status = "okay"; 90 }; 62 }; 91 63 92 &mscc_felix_port1 { 64 &mscc_felix_port1 { 93 label = "swp1"; 65 label = "swp1"; 94 managed = "in-band-status"; 66 managed = "in-band-status"; 95 phy-handle = <&qsgmii_phy1>; 67 phy-handle = <&qsgmii_phy1>; 96 phy-mode = "qsgmii"; 68 phy-mode = "qsgmii"; 97 nvmem-cells = <&base_mac_address 5>; << 98 nvmem-cell-names = "mac-address"; << 99 status = "okay"; 69 status = "okay"; 100 }; 70 }; 101 71 102 &mscc_felix_port2 { 72 &mscc_felix_port2 { 103 label = "swp2"; 73 label = "swp2"; 104 managed = "in-band-status"; 74 managed = "in-band-status"; 105 phy-handle = <&qsgmii_phy2>; 75 phy-handle = <&qsgmii_phy2>; 106 phy-mode = "qsgmii"; 76 phy-mode = "qsgmii"; 107 nvmem-cells = <&base_mac_address 6>; << 108 nvmem-cell-names = "mac-address"; << 109 status = "okay"; 77 status = "okay"; 110 }; 78 }; 111 79 112 &mscc_felix_port3 { 80 &mscc_felix_port3 { 113 label = "swp3"; 81 label = "swp3"; 114 managed = "in-band-status"; 82 managed = "in-band-status"; 115 phy-handle = <&qsgmii_phy3>; 83 phy-handle = <&qsgmii_phy3>; 116 phy-mode = "qsgmii"; 84 phy-mode = "qsgmii"; 117 nvmem-cells = <&base_mac_address 7>; << 118 nvmem-cell-names = "mac-address"; << 119 status = "okay"; 85 status = "okay"; 120 }; 86 }; 121 87 122 &mscc_felix_port4 { 88 &mscc_felix_port4 { 123 status = "okay"; !! 89 ethernet = <&enetc_port2>; 124 }; << 125 << 126 &mscc_felix_port5 { << 127 status = "okay"; << 128 }; << 129 << 130 &sata { << 131 status = "okay"; 90 status = "okay"; 132 }; 91 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.