gl-infra-builder-FUjr/patches-22.03.4/4008-support-ar750-target.patch
2023-05-04 19:36:47 +08:00

104 lines
2.5 KiB
Diff

From d86adbc1e008610b6766d9351349dc8a613311bd Mon Sep 17 00:00:00 2001
From: Luo Chongjun <luochongjun@gl-inet.com>
Date: Thu, 4 May 2023 19:06:03 +0800
Subject: [PATCH] ath79: support ar750
---
.../ath79/dts/qca9531_glinet_gl-ar750.dts | 40 ++++++++++++++-----
1 file changed, 30 insertions(+), 10 deletions(-)
diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts b/target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts
index 60bd2922a2..1631049de6 100644
--- a/target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts
+++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts
@@ -10,13 +10,31 @@
model = "GL.iNet GL-AR750";
aliases {
- led-boot = &led_power;
- led-failsafe = &led_power;
- led-running = &led_power;
- led-upgrade = &led_power;
label-mac-device = &eth0;
};
+ gl_hw {
+ compatible = "gl-hw-info";
+
+ #address-cells = <1>;
+ #size-cells = <1>;
+ model = "ar750";
+ wan = "eth0";
+ lan = "eth1";
+ flash_size = <16>;
+ radio = "mac80211";
+ reset-button = "gpio-3";
+ usb-port = "1-1.1";
+ switch-button = "gpio-0";
+ factory_data {
+ device_mac = "art";
+ device_ddns = "art", "0x10";
+ device_sn_bak = "art", "0x20";
+ device_sn = "art", "0x30";
+ country_code = "art", "0x88";
+ };
+ };
+
keys {
compatible = "gpio-keys";
@@ -29,9 +47,9 @@
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
- mode {
- label = "mode";
- linux,code = <BTN_0>;
+ switch {
+ label = "switch";
+ linux,code = <KEY_SETUP>;
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
};
@@ -40,19 +58,19 @@
compatible = "gpio-leds";
led_power: power {
- label = "white:power";
+ label = "gl-ar750:white:power";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wlan2g {
- label = "white:wlan2g";
+ label = "gl-ar750:white:wlan2g";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wlan5g {
- label = "white:wlan5g";
+ label = "gl-ar750:white:wlan5g";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
@@ -131,12 +149,14 @@
nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
+ ifname = "eth0";
};
&eth1 {
nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
+ ifname = "eth1";
};
&wmac {
--
2.25.1