Alex Marginean | 72f3aa5 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR X11 |
| 2 | /* |
| 3 | * NXP LS1028A-QDS device tree fragment for RCW 9999 |
| 4 | * |
Vladimir Oltean | 5041e42 | 2021-09-17 14:27:13 +0300 | [diff] [blame] | 5 | * Copyright 2019-2021 NXP |
Alex Marginean | 72f3aa5 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | /* |
| 9 | * This setup is using SCH-24801 cards with VSC8234 quad SGMII PHY. |
| 10 | * LS1028A QDS boards with lane B rework require two cards for the 4 switch |
| 11 | * ports, QDS boards without the lane B rework only require one card. |
| 12 | * |
| 13 | * Switch ports are routed as follows: |
| 14 | * Port 0 goes to 1st port of VSC8234 quad card in slot 1, |
| 15 | * Port 1: |
| 16 | * - if the QDS has had lane B rework, it is 1st port in slot 2, |
| 17 | * - otherwise it is 2nd port in slot 1. |
| 18 | * Port 2: |
| 19 | * - if DIP SW5[1] = 0 it is 3rd port in slot 1, |
| 20 | * - otherwise it is 1st port in slot 3. |
| 21 | * Port 3: |
| 22 | * - if DIP SW5[2-3] = 00b it is 4th port in slot 1, |
| 23 | * - if DIP SW5[2-3] = 01b it is 2nd port in slot 3, |
| 24 | * - if DIP SW5[2-3] = 11b it is 1st port in slot 4. |
| 25 | * |
| 26 | * The following DTS assumes QDS lane B rework and DIP SW5[1-3] = 000b. Two |
| 27 | * SCH-24801 cards are required in slots 1 and 2. |
| 28 | */ |
| 29 | &slot1 { |
| 30 | #include "fsl-sch-24801.dtsi" |
| 31 | }; |
| 32 | |
| 33 | &slot2 { |
| 34 | #include "fsl-sch-24801.dtsi" |
| 35 | }; |
| 36 | |
Vladimir Oltean | c32039a | 2021-06-29 20:53:11 +0300 | [diff] [blame] | 37 | &enetc2 { |
| 38 | status = "okay"; |
| 39 | }; |
| 40 | |
Alex Marginean | 72f3aa5 | 2021-01-27 13:00:00 +0200 | [diff] [blame] | 41 | &mscc_felix { |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
| 45 | &mscc_felix_port0 { |
| 46 | status = "okay"; |
| 47 | phy-mode = "sgmii"; |
| 48 | phy-handle = <&{/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1c}>; |
| 49 | }; |
| 50 | |
| 51 | &mscc_felix_port1 { |
| 52 | status = "okay"; |
| 53 | phy-mode = "sgmii"; |
| 54 | phy-handle = <&{/i2c@2000000/fpga@66/mux-mdio@54/mdio@50/phy@1c}>; |
| 55 | }; |
| 56 | |
| 57 | &mscc_felix_port2 { |
| 58 | status = "okay"; |
| 59 | phy-mode = "sgmii"; |
| 60 | phy-handle = <&{/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1e}>; |
| 61 | }; |
| 62 | |
| 63 | &mscc_felix_port3 { |
| 64 | status = "okay"; |
| 65 | phy-mode = "sgmii"; |
| 66 | phy-handle = <&{/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1f}>; |
| 67 | }; |
Vladimir Oltean | c32039a | 2021-06-29 20:53:11 +0300 | [diff] [blame] | 68 | |
| 69 | &mscc_felix_port4 { |
| 70 | ethernet = <&enetc2>; |
| 71 | status = "okay"; |
| 72 | }; |