mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-29 15:44:04 +00:00
0fda3b14c7
The WG302 v1 has 32MB of RAM so it can easily run OpenWrt, however it lacks much flash: only 8 MB. By just using the flash for rootfs and booting a kernel over TFTP it works just fine. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
60 lines
1.5 KiB
Diff
60 lines
1.5 KiB
Diff
From 1d22f422fca8875f6d2cb297f735d41fd5830000 Mon Sep 17 00:00:00 2001
|
|
From: Linus Walleij <linus.walleij@linaro.org>
|
|
Date: Mon, 23 Dec 2024 17:50:52 +0100
|
|
Subject: [PATCH] ARM: dts: ixp4xx: Add Netgear WG302 v1 GPIOs
|
|
|
|
This adds GPIO LED indicators, the reset GPIO RESET
|
|
button on the Netgear WG302 v1 to the device tree.
|
|
|
|
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
|
---
|
|
.../ixp/intel-ixp42x-netgear-wg302v1.dts | 30 +++++++++++++++++++
|
|
1 file changed, 30 insertions(+)
|
|
|
|
--- a/arch/arm/boot/dts/intel/ixp/intel-ixp42x-netgear-wg302v1.dts
|
|
+++ b/arch/arm/boot/dts/intel/ixp/intel-ixp42x-netgear-wg302v1.dts
|
|
@@ -8,6 +8,7 @@
|
|
|
|
#include "intel-ixp42x.dtsi"
|
|
#include <dt-bindings/input/input.h>
|
|
+#include <dt-bindings/leds/common.h>
|
|
|
|
/ {
|
|
model = "Netgear WG302 v1";
|
|
@@ -32,6 +33,35 @@
|
|
serial0 = &uart1;
|
|
};
|
|
|
|
+ leds {
|
|
+ compatible = "gpio-leds";
|
|
+ test_led: led-test {
|
|
+ color = <LED_COLOR_ID_AMBER>;
|
|
+ function = "test";
|
|
+ gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
|
|
+ default-state = "off";
|
|
+ };
|
|
+ wlan_led: led-wlan {
|
|
+ color = <LED_COLOR_ID_GREEN>;
|
|
+ function = LED_FUNCTION_WLAN;
|
|
+ gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
|
|
+ default-state = "off";
|
|
+ linux,default-trigger = "phy0tx";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ gpio_keys {
|
|
+ /* RESET is on GPIO13 which can't fire interrupts */
|
|
+ compatible = "gpio-keys-polled";
|
|
+ poll-interval = <100>;
|
|
+
|
|
+ button-reset {
|
|
+ linux,code = <KEY_RESTART>;
|
|
+ label = "reset";
|
|
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+ };
|
|
+
|
|
soc {
|
|
bus@c4000000 {
|
|
flash@0,0 {
|