aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr-v3.dtsi
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2023-08-28 00:14:10 +0100
committerDaniel Golle <daniel@makrotopia.org>2023-09-04 23:00:34 +0100
commit230c09d2034995540aaec920466eb25387173e56 (patch)
tree335292a466fef2d7506da1764a71e9c24095698b /target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr-v3.dtsi
parentc8c18051002c7812bfa33c4572e94a0fd855bbeb (diff)
downloadupstream-230c09d2034995540aaec920466eb25387173e56.tar.gz
upstream-230c09d2034995540aaec920466eb25387173e56.tar.bz2
upstream-230c09d2034995540aaec920466eb25387173e56.zip
mediatek: add support for Ubiquiti UniFi 6 LR v3
Some recent models of the Ubiquiti Networks UniFi 6 LR access point come with a RealTek RTL8211FS 1000M/100M/10M PHY instead of the Aquantia AQR112 2500M/1000M/100M/10M PHY used in both v1 and v2. Add build for this variant so we can support Ethernet with the PHY. Signed-off-by: Daniel Golle <daniel@makrotopia.org> (cherry picked from commit a0f4eadf6a25fb54c189bde91425673e11125d35)
Diffstat (limited to 'target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr-v3.dtsi')
-rw-r--r--target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr-v3.dtsi50
1 files changed, 50 insertions, 0 deletions
diff --git a/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr-v3.dtsi b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr-v3.dtsi
new file mode 100644
index 0000000000..c581bd7d90
--- /dev/null
+++ b/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr-v3.dtsi
@@ -0,0 +1,50 @@
+#include "mt7622-ubnt-unifi-6-lr.dtsi"
+
+/ {
+ aliases {
+ led-boot = &led_white;
+ led-failsafe = &led_white;
+ led-running = &led_blue;
+ led-upgrade = &led_blue;
+ };
+
+ gpio-leds {
+ compatible = "gpio-leds";
+
+ led_white: dome_white {
+ label = "white:dome";
+ gpios = <&pio 0x43 GPIO_ACTIVE_LOW>;
+ };
+
+ led_blue: dome_blue {
+ label = "blue:dome";
+ gpios = <&pio 0x44 GPIO_ACTIVE_HIGH>;
+ };
+ };
+};
+
+&eth {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&eth_pins>;
+
+ gmac0: mac@0 {
+ compatible = "mediatek,eth-mac";
+ reg = <0>;
+
+ phy-mode = "sgmii";
+ phy-handle = <&phy0>;
+ phy-connection-type = "sgmii";
+ managed = "in-band-status";
+ };
+
+ mdio: mdio-bus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ phy0: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0x0>;
+ };
+ };
+};