[PATCH v2 5/7] lantiq: add DTS for Fritzbox 7490

Torsten Duwe duwe at lst.de
Sun Oct 23 05:51:51 PDT 2022


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

diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7490.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7490.dts
new file mode 100644
index 0000000000..55d6b92523
--- /dev/null
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7490.dts
@@ -0,0 +1,61 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "vr9_avm_fritzx490.dtsi"
+
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/mips/lantiq_rcu_gphy.h>
+
+/ {
+	compatible = "avm,fritz7490", "avm,fritzx490", "lantiq,xway", "lantiq,vr9";
+	model = "AVM FRITZ!Box 7490";
+
+	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_internet;
+		led-wifi = &led_wlan;
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		// led 5 "Power/DSL"
+		led_power: power {
+			label = "green:power";
+			gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
+			default-state = "keep";
+		};
+
+		// led 4 "Internet"
+		led_internet: internet {
+			label = "green:internet";
+			gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
+		};
+
+		// led 3 "FixedLine"
+		led_fixedline: fixedline {
+			label = "green:fixedline";
+			gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
+		};
+
+		// led 2 "WLAN"
+		led_wlan: wlan {
+			label = "green:wlan";
+			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>;
+		};
+	};
+};
-- 
2.35.3




More information about the openwrt-devel mailing list