Signed-off-by: Torsten Duwe <d...@lst.de>
---
 .../boot/dts/lantiq/vr9_avm_fritz5490.dts     | 98 +++++++++++++++++++
 1 file changed, 98 insertions(+)
 create mode 100644 
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz5490.dts

diff --git 
a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz5490.dts 
b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz5490.dts
new file mode 100644
index 0000000000..67933ff4a1
--- /dev/null
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz5490.dts
@@ -0,0 +1,98 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "vr9_avm_fritzx490.dtsi"
+
+/ {
+       compatible = "avm,fritz5490", "lantiq,xway", "lantiq,vr9";
+       model = "AVM FRITZ!Box 5490";
+
+       aliases {
+               led-boot = &led_power;
+               led-failsafe = &led_info_red;
+               led-running = &led_power;
+               led-upgrade = &led_info_red;
+
+               led-dsl = &led_info_green;
+               led-internet = &led_fon;
+               led-wifi = &led_wlan;
+       };
+
+       leds {
+               compatible = "gpio-leds";
+
+               // led 5 "Power"
+               led_power: power {
+                       label = "green:power";
+                       gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
+                       default-state = "keep";
+               };
+
+               // led 4 "Fiber"
+               led_fiber: fiber {
+                       label = "green:fiber";
+                       gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
+               };
+
+               // led 3 "WLAN"
+               led_wlan: wlan {
+                       label = "green:wlan";
+                       gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
+               };
+
+               // led 2 "Fon"
+               led_fon: fon {
+                       label = "green:fon";
+                       gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
+               };
+
+               // led 1 "Info"
+               led_info_green: info_green {
+                       label = "green:info";
+                       gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
+               };
+               led_info_red: info_red {
+                       label = "red:info";
+                       gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
+               };
+       };
+};
+
+&gswip_mdio {
+       phy0: ethernet-phy@0 {
+               status = "disabled";
+       };
+
+       phy1: ethernet-phy@1 {
+               status = "disabled";
+       };
+
+       phy5: ethernet-phy@5 {
+               reg = <0x05>;
+               // reset-gpios = <&gpio ?? GPIO_ACTIVE_LOW>;
+       };
+
+       // fiber - qca8033 (serdes transceiver) - port0
+       phy6: ethernet-phy@6 {
+               reg = <0x06>;
+               reset-gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
+       };
+       phy9: ethernet-phy@9 {
+               reg = <0x09>;
+               // reset-gpios = <&gpio ?? GPIO_ACTIVE_LOW>;
+       };
+
+};
+
+&gswip_ports {
+       // FIXME: this is guesswork!
+       port@0 {
+               reg = <0>;
+               label = "fiber";
+               phy-mode = "rgmii-rxid";
+               phy-handle = <&phy6>;
+       };
+       port@1 { // ? label = "lan?";
+               phy-handle = <&phy5>;
+       };
+       // port@? { label = "lan?"; phy-handle = <&phy9>;
+};
-- 
2.34.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to