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