ramips: Cudy WR1300v2 fix mt7613 calibration data length
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_mikrotik_routerboard-760igs.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621_mikrotik_routerboard-7xx.dtsi"
4
5 / {
6 compatible = "mikrotik,routerboard-760igs", "mediatek,mt7621-soc";
7 model = "MikroTik RouterBOARD 760iGS";
8
9 aliases {
10 led-boot = &led_pwr;
11 led-failsafe = &led_pwr;
12 led-running = &led_pwr;
13 led-upgrade = &led_pwr;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_pwr: pwr {
20 label = "blue:pwr";
21 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
22 default-state = "on";
23 };
24
25 sfp {
26 label = "blue:sfp";
27 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
28 };
29 };
30
31 sfp1: sfp1 {
32 compatible = "sff,sfp";
33 i2c-bus = <&i2c>;
34 los-gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
35 mod-def0-gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
36 tx-disable-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
37 maximum-power-milliwatt = <1000>;
38 };
39 };
40
41 &mdio {
42 ephy7: ethernet-phy@7 {
43 reg = <7>;
44 sfp = <&sfp1>;
45 };
46 };
47
48 &gmac1 {
49 status = "okay";
50
51 label = "sfp";
52 phy-mode = "rgmii-rxid";
53 phy-handle = <&ephy7>;
54 };
55
56 &i2c {
57 status = "okay";
58 };
59
60 &state_default {
61 gpio {
62 /* gpio7 (uart3 group) goes high when
63 * port5 (PoE out) is cabled to a
64 * Mikrotik PoE-in capable port,
65 * such as port1 on another rb760iGS */
66 groups = "uart2", "uart3", "jtag", "wdt";
67 function = "gpio";
68 };
69 };