[PATCH v2 4/7] lantiq: add DTS for Fritzbox 5490
Torsten Duwe
duwe at lst.de
Sun Oct 23 05:51:46 PDT 2022
Signed-off-by: Torsten Duwe <duwe at 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 at 0 {
+ status = "disabled";
+ };
+
+ phy1: ethernet-phy at 1 {
+ status = "disabled";
+ };
+
+ phy5: ethernet-phy at 5 {
+ reg = <0x05>;
+ // reset-gpios = <&gpio ?? GPIO_ACTIVE_LOW>;
+ };
+
+ // fiber - qca8033 (serdes transciever) - port0
+ phy6: ethernet-phy at 6 {
+ reg = <0x06>;
+ reset-gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
+ };
+ phy9: ethernet-phy at 9 {
+ reg = <0x09>;
+ // reset-gpios = <&gpio ?? GPIO_ACTIVE_LOW>;
+ };
+
+};
+
+&gswip_ports {
+ // FIXME: this is guesswork!
+ port at 0 {
+ reg = <0>;
+ label = "fiber";
+ phy-mode = "rgmii-rxid";
+ phy-handle = <&phy6>;
+ };
+ port at 1 { // ? label = "lan?";
+ phy-handle = <&phy5>;
+ };
+ // port@? { label = "lan?"; phy-handle = <&phy9>;
+};
--
2.35.3
More information about the openwrt-devel
mailing list