Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
| 2 | /* |
| 3 | * Author: Arınç ÜNAL <arinc.unal@arinc9.com> |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "bcm47094-asus-rt-ac3100.dtsi" |
| 9 | |
| 10 | / { |
| 11 | compatible = "asus,rt-ac88u", "brcm,bcm47094", "brcm,bcm4708"; |
| 12 | model = "ASUS RT-AC88U"; |
| 13 | |
| 14 | nvram@1c080000 { |
| 15 | et1macaddr: et1macaddr { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 16 | #nvmem-cell-cells = <1>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 17 | }; |
| 18 | }; |
| 19 | |
| 20 | switch { |
| 21 | compatible = "realtek,rtl8365mb"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 22 | mdc-gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; |
| 23 | mdio-gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>; |
| 24 | reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; |
| 25 | realtek,disable-leds; |
| 26 | dsa,member = <1 0>; |
| 27 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 28 | mdio { |
| 29 | compatible = "realtek,smi-mdio"; |
| 30 | #address-cells = <1>; |
| 31 | #size-cells = <0>; |
| 32 | |
| 33 | ethphy0: ethernet-phy@0 { |
| 34 | reg = <0>; |
| 35 | }; |
| 36 | |
| 37 | ethphy1: ethernet-phy@1 { |
| 38 | reg = <1>; |
| 39 | }; |
| 40 | |
| 41 | ethphy2: ethernet-phy@2 { |
| 42 | reg = <2>; |
| 43 | }; |
| 44 | |
| 45 | ethphy3: ethernet-phy@3 { |
| 46 | reg = <3>; |
| 47 | }; |
| 48 | }; |
| 49 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 50 | ports { |
| 51 | #address-cells = <1>; |
| 52 | #size-cells = <0>; |
| 53 | |
| 54 | port@0 { |
| 55 | reg = <0>; |
| 56 | label = "lan5"; |
| 57 | phy-handle = <ðphy0>; |
| 58 | }; |
| 59 | |
| 60 | port@1 { |
| 61 | reg = <1>; |
| 62 | label = "lan6"; |
| 63 | phy-handle = <ðphy1>; |
| 64 | }; |
| 65 | |
| 66 | port@2 { |
| 67 | reg = <2>; |
| 68 | label = "lan7"; |
| 69 | phy-handle = <ðphy2>; |
| 70 | }; |
| 71 | |
| 72 | port@3 { |
| 73 | reg = <3>; |
| 74 | label = "lan8"; |
| 75 | phy-handle = <ðphy3>; |
| 76 | }; |
| 77 | |
| 78 | port@6 { |
| 79 | reg = <6>; |
| 80 | label = "cpu"; |
| 81 | ethernet = <&sw0_p5>; |
| 82 | phy-mode = "rgmii"; |
| 83 | tx-internal-delay-ps = <2000>; |
| 84 | rx-internal-delay-ps = <2100>; |
| 85 | |
| 86 | fixed-link { |
| 87 | speed = <1000>; |
| 88 | full-duplex; |
| 89 | pause; |
| 90 | }; |
| 91 | }; |
| 92 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 93 | }; |
| 94 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 95 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 96 | &gmac0 { |
| 97 | status = "disabled"; |
| 98 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 99 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 100 | &gmac1 { |
| 101 | nvmem-cells = <&et1macaddr 0>; |
| 102 | nvmem-cell-names = "mac-address"; |
| 103 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 104 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame^] | 105 | &gmac2 { |
| 106 | nvmem-cells = <&et1macaddr 1>; |
| 107 | nvmem-cell-names = "mac-address"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 108 | }; |
| 109 | |
| 110 | &srab { |
| 111 | dsa,member = <0 0>; |
| 112 | |
| 113 | ports { |
| 114 | sw0_p5: port@5 { |
| 115 | /delete-property/ethernet; |
| 116 | |
| 117 | label = "extsw"; |
| 118 | phy-mode = "rgmii"; |
| 119 | |
| 120 | fixed-link { |
| 121 | speed = <1000>; |
| 122 | full-duplex; |
| 123 | pause; |
| 124 | }; |
| 125 | }; |
| 126 | }; |
| 127 | }; |