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