openwrt/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts
Adrian Schmutzler c846dd91f0 ramips: remove model name from LED labels
Like in the previous patch for ath79 target, this will remove the
"devicename" from LED labels in ramips as well.

The devicename is removed in DTS files and 01_leds, consolidation
of definitions into DTSI files is done where (easily) possible,
and migration scripts are updated.

For the latter, all existing definitions were actually just
devicename migrations anyway. Therefore, those are removed and
a common migration file is created in target base-files. This is
actually another example of how the devicename removal makes things
easier.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-02 14:51:57 +02:00

69 lines
1.2 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621_mikrotik_routerboard-7xx.dtsi"
/ {
compatible = "mikrotik,routerboard-760igs", "mediatek,mt7621-soc";
model = "MikroTik RouterBOARD 760iGS";
aliases {
led-boot = &led_pwr;
led-failsafe = &led_pwr;
led-running = &led_pwr;
led-upgrade = &led_pwr;
};
leds {
compatible = "gpio-leds";
led_pwr: pwr {
label = "blue:pwr";
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
sfp {
label = "blue:sfp";
gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
};
};
sfp1: sfp1 {
compatible = "sff,sfp";
i2c-bus = <&i2c>;
los-gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
mod-def0-gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
tx-disable-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
maximum-power-milliwatt = <1000>;
};
};
&mdio {
ephy7: ethernet-phy@7 {
reg = <7>;
sfp = <&sfp1>;
};
};
&gmac1 {
status = "okay";
label = "sfp";
phy-handle = <&ephy7>;
};
&i2c {
status = "okay";
};
&state_default {
gpio {
/* gpio7 (uart3 group) goes high when
* port5 (PoE out) is cabled to a
* Mikrotik PoE-in capable port,
* such as port1 on another rb760iGS */
groups = "uart2", "uart3", "jtag", "wdt";
function = "gpio";
};
};