mediatek: add support for Adtran SmartRG Bonanza Peak series
[openwrt/staging/dangole.git] / target / linux / mediatek / dts / mt7986a-smartrg-SDG-8614.dts
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3 * Copyright (C) 2022 SmartRG Inc.
4 * Author: Chad Monroe <chad.monroe@smartrg.com>
5 */
6
7 #include "mt7986a-smartrg-bonanza-peak.dtsi"
8
9 / {
10 model = "SmartRG SDG-8614";
11 compatible = "smartrg,sdg-8614", "mediatek,mt7986a";
12
13 leds {
14 mux_sel {
15 default-state = "off";
16 };
17 };
18
19 /* SFP1 cage (WAN) */
20 i2c_sfp1: i2c-gpio-0 {
21 compatible = "i2c-gpio";
22 sda-gpios = <&pio 62 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
23 scl-gpios = <&pio 63 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
24 i2c-gpio,delay-us = <2>;
25 #address-cells = <1>;
26 #size-cells = <0>;
27 };
28
29 sfp1: sfp1 {
30 compatible = "sff,sfp";
31 i2c-bus = <&i2c_sfp1>;
32 los-gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
33 mod-def0-gpios = <&pio 65 GPIO_ACTIVE_LOW>;
34 rate-select0-gpios = <&pio 9 GPIO_ACTIVE_HIGH>;
35 rate-select1-gpios = <&pio 28 GPIO_ACTIVE_HIGH>;
36 tx-disable-gpios = <&pio 64 GPIO_ACTIVE_HIGH>;
37 tx-fault-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
38 maximum-power-milliwatt = <3000>;
39 };
40 };
41
42 &gmac0 {
43 fixed-link {
44 speed = <2500>;
45 full-duplex;
46 pause;
47 };
48 };
49
50 &gmac1 {
51 sfp = <&sfp1>;
52 managed = "in-band-status";
53 };
54
55 &mdio {
56 switch: switch@0 {
57 compatible = "mediatek,mt7531";
58 reg = <31>;
59 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
60
61 ports {
62 #address-cells = <1>;
63 #size-cells = <0>;
64
65 port@1 {
66 reg = <1>;
67 label = "lan3";
68 };
69
70 port@2 {
71 reg = <2>;
72 label = "lan2";
73 };
74
75 port@3 {
76 reg = <3>;
77 label = "lan1";
78 };
79
80 port5: port@5 {
81 reg = <5>;
82 label = "lan4";
83
84 phy-mode = "2500base-x";
85 phy-handle = <&phy5>;
86 };
87
88 port@6 {
89 reg = <6>;
90 ethernet = <&gmac0>;
91 phy-mode = "2500base-x";
92
93 fixed-link {
94 speed = <2500>;
95 full-duplex;
96 pause;
97 };
98 };
99 };
100 };
101 };
102
103 &wifi {
104 ieee80211-freq-limit = <2400000 2500000>, <5170000 5835000>;
105 };