mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
621297e867
The "/dts-v1/;" identifier is supposed to be present once at the top of a device tree file after the includes have been processed. In ramips, we therefore requested to have in the DTS files so far, and omit it in the DTSI files. However, essentially the syntax of the parent mtxxxx/rtxxxx DTSI files already determines the DTS version, so putting it into the DTS files is just a useless repetition. Consequently, this patch puts the dts-v1 statement into the top-level SoC-based DTSI files, and removes all other occurences. Since the dts-v1 statement needs to be before any other definitions, this also moves the includes accordingly where necessary. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
69 lines
1.2 KiB
Plaintext
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 = "routerboard-760igs:blue:pwr";
|
|
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
|
|
default-state = "on";
|
|
};
|
|
|
|
sfp {
|
|
label = "routerboard-760igs: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";
|
|
};
|
|
};
|