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"; 59 status = "okay"; 62 }; 60 }; 63 61 64 &enetc_port3 { 62 &enetc_port3 { 65 nvmem-cells = <&base_mac_address 3>; << 66 nvmem-cell-names = "mac-address"; << 67 status = "okay"; 63 status = "okay"; 68 }; 64 }; 69 65 70 &i2c3 { 66 &i2c3 { 71 eeprom@57 { 67 eeprom@57 { 72 compatible = "atmel,24c32"; 68 compatible = "atmel,24c32"; 73 reg = <0x57>; 69 reg = <0x57>; 74 pagesize = <32>; 70 pagesize = <32>; 75 }; 71 }; 76 }; 72 }; 77 73 78 &mscc_felix { 74 &mscc_felix { 79 status = "okay"; 75 status = "okay"; 80 }; 76 }; 81 77 82 &mscc_felix_port0 { 78 &mscc_felix_port0 { 83 label = "swp0"; 79 label = "swp0"; 84 managed = "in-band-status"; 80 managed = "in-band-status"; 85 phy-handle = <&qsgmii_phy0>; 81 phy-handle = <&qsgmii_phy0>; 86 phy-mode = "qsgmii"; 82 phy-mode = "qsgmii"; 87 nvmem-cells = <&base_mac_address 4>; << 88 nvmem-cell-names = "mac-address"; << 89 status = "okay"; 83 status = "okay"; 90 }; 84 }; 91 85 92 &mscc_felix_port1 { 86 &mscc_felix_port1 { 93 label = "swp1"; 87 label = "swp1"; 94 managed = "in-band-status"; 88 managed = "in-band-status"; 95 phy-handle = <&qsgmii_phy1>; 89 phy-handle = <&qsgmii_phy1>; 96 phy-mode = "qsgmii"; 90 phy-mode = "qsgmii"; 97 nvmem-cells = <&base_mac_address 5>; << 98 nvmem-cell-names = "mac-address"; << 99 status = "okay"; 91 status = "okay"; 100 }; 92 }; 101 93 102 &mscc_felix_port2 { 94 &mscc_felix_port2 { 103 label = "swp2"; 95 label = "swp2"; 104 managed = "in-band-status"; 96 managed = "in-band-status"; 105 phy-handle = <&qsgmii_phy2>; 97 phy-handle = <&qsgmii_phy2>; 106 phy-mode = "qsgmii"; 98 phy-mode = "qsgmii"; 107 nvmem-cells = <&base_mac_address 6>; << 108 nvmem-cell-names = "mac-address"; << 109 status = "okay"; 99 status = "okay"; 110 }; 100 }; 111 101 112 &mscc_felix_port3 { 102 &mscc_felix_port3 { 113 label = "swp3"; 103 label = "swp3"; 114 managed = "in-band-status"; 104 managed = "in-band-status"; 115 phy-handle = <&qsgmii_phy3>; 105 phy-handle = <&qsgmii_phy3>; 116 phy-mode = "qsgmii"; 106 phy-mode = "qsgmii"; 117 nvmem-cells = <&base_mac_address 7>; << 118 nvmem-cell-names = "mac-address"; << 119 status = "okay"; 107 status = "okay"; 120 }; 108 }; 121 109 122 &mscc_felix_port4 { 110 &mscc_felix_port4 { 123 status = "okay"; 111 status = "okay"; 124 }; 112 }; 125 113 126 &mscc_felix_port5 { 114 &mscc_felix_port5 { 127 status = "okay"; 115 status = "okay"; 128 }; 116 }; 129 117 130 &sata { 118 &sata { 131 status = "okay"; 119 status = "okay"; 132 }; 120 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.