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