[openwrt/openwrt] ath79: add support for Qxwlan E750G v8

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 17 14:48:43 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/27a7d071c0e0576eddeb641d1f68abe1b6205aee

commit 27a7d071c0e0576eddeb641d1f68abe1b6205aee
Author: 张鹏 <sd20 at qxwlan.com>
AuthorDate: Wed Oct 14 15:47:35 2020 +0800

    ath79: add support for Qxwlan E750G v8
    
    Qxwlan E750G v8 is based on Qualcomm QCA9344 + QCA9334.
    
    Specification:
    
     - 560/450/225 MHz (CPU/DDR/AHB)
     - 128 MB of RAM (DDR2)
     - 8/16 MB of FLASH (SPI NOR)
     - 2T2R 2.4G GHz (AR9344)
     - 2x 10/100/1000 Mbps Ethernet (one port with PoE support)
     - 7x LED (6 driven by GPIO)
     - 1x button (reset)
     - 1x DC jack for main power input (9-48 V)
     - UART (J23) and LEDs (J2) headers on PCB
    
    Flash instruction:
    
       1.Using tftp mode with UART connection and original LEDE image
          - Configure PC with static IP 192.168.1.10 and tftp server.
          - Rename "openwrt-ar71xx-generic-xxx-squashfs-sysupgrade.bin"
            to "firmware.bin" and place it in tftp server directory.
          - Connect PC with one of LAN ports, power up the router and press
            key "Enter" to access U-Boot CLI.
          - Use the following commands to update the device to LEDE:
            run lfw
          - After that the device will reboot and boot to LEDE.
          - Wait until all LEDs stops flashing and use the router.
    
       2.Using httpd mode with Web UI connection and original LEDE image
          - Configure PC with static IP 192.168.1.xxx(2-255) and tftp server.
          - Connect PC with one of LAN ports,press the reset button, power up
            the router and keep button pressed for around 6-7 seconds, until
            leds flashing.
          - Open your browser and enter 192.168.1.1,You will see the upgrade
            interface, select "openwrt-ar71xx-generic-xxx-squashfs-
            sysupgrade.bin" and click the upgrade button.
          - After that the device will reboot and boot to LEDE.
          - Wait until all LEDs stops flashing and use the router.
    
    Signed-off-by: 张鹏 <sd20 at qxwlan.com>
    [cut out of bigger patch, keep swconfig]
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 .../linux/ath79/dts/ar9344_qxwlan_e750g-v8-16m.dts | 48 ++++++++++++++++++++++
 .../linux/ath79/dts/ar9344_qxwlan_e750g-v8-8m.dts  | 48 ++++++++++++++++++++++
 .../generic/base-files/etc/board.d/02_network      |  2 +
 target/linux/ath79/image/generic.mk                | 21 ++++++++++
 4 files changed, 119 insertions(+)

diff --git a/target/linux/ath79/dts/ar9344_qxwlan_e750g-v8-16m.dts b/target/linux/ath79/dts/ar9344_qxwlan_e750g-v8-16m.dts
new file mode 100644
index 0000000000..fb200fae35
--- /dev/null
+++ b/target/linux/ath79/dts/ar9344_qxwlan_e750g-v8-16m.dts
@@ -0,0 +1,48 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "ar9344_qxwlan_e750x.dtsi"
+
+/ {
+	model = "Qxwlan E750G v8 16M";
+	compatible = "qxwlan,e750g-v8-16m", "qca,ar9344";
+};
+
+&mdio0 {
+	status = "okay";
+
+	phy-mask = <0>;
+
+	phy0: ethernet-phy at 0 {
+		reg = <0>;
+		phy-mode = "rgmii";
+
+		qca,ar8327-initvals = <
+			0x04 0x07600000 /* PORT0 PAD MODE CTRL */
+			0x10 0x81000080 /* POWER_ON_STRAP */
+			0x50 0xcc35cc35 /* LED_CTRL0 */
+			0x54 0xca35ca35 /* LED_CTRL1 */
+			0x58 0xc935c935 /* LED_CTRL2 */
+			0x5c 0x03ffff00 /* LED_CTRL3 */
+			0x7c 0x0000007e /* PORT0_STATUS */
+			>;
+	};
+};
+
+&eth0 {
+	status = "okay";
+
+	pll-data = <0x06000000 0x00000101 0x00001616>;
+
+	mtd-mac-address = <&pridata 0x400>;
+
+	phy-mode = "rgmii";
+	phy-handle = <&phy0>;
+};
+
+&partitions {
+	partition at 70000 {
+		compatible = "denx,uimage";
+		label = "firmware";
+		reg = <0x070000 0xf90000>;
+	};
+};
diff --git a/target/linux/ath79/dts/ar9344_qxwlan_e750g-v8-8m.dts b/target/linux/ath79/dts/ar9344_qxwlan_e750g-v8-8m.dts
new file mode 100644
index 0000000000..75ef13ec13
--- /dev/null
+++ b/target/linux/ath79/dts/ar9344_qxwlan_e750g-v8-8m.dts
@@ -0,0 +1,48 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "ar9344_qxwlan_e750x.dtsi"
+
+/ {
+	model = "Qxwlan E750G v8 8M";
+	compatible = "qxwlan,e750g-v8-8m", "qca,ar9344";
+};
+
+&mdio0 {
+	status = "okay";
+
+	phy-mask = <0>;
+
+	phy0: ethernet-phy at 0 {
+		reg = <0>;
+		phy-mode = "rgmii";
+
+		qca,ar8327-initvals = <
+			0x04 0x07600000 /* PORT0 PAD MODE CTRL */
+			0x10 0x81000080 /* POWER_ON_STRAP */
+			0x50 0xcc35cc35 /* LED_CTRL0 */
+			0x54 0xca35ca35 /* LED_CTRL1 */
+			0x58 0xc935c935 /* LED_CTRL2 */
+			0x5c 0x03ffff00 /* LED_CTRL3 */
+			0x7c 0x0000007e /* PORT0_STATUS */
+			>;
+	};
+};
+
+&eth0 {
+	status = "okay";
+
+	pll-data = <0x06000000 0x00000101 0x00001616>;
+
+	mtd-mac-address = <&pridata 0x400>;
+
+	phy-mode = "rgmii";
+	phy-handle = <&phy0>;
+};
+
+&partitions {
+	partition at 70000 {
+		compatible = "denx,uimage";
+		label = "firmware";
+		reg = <0x070000 0x790000>;
+	};
+};
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network
index 060c0c9e42..78ec5c6afe 100755
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
@@ -244,6 +244,8 @@ ath79_setup_interfaces()
 			"0 at eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
 		;;
 	nec,wg1200cr|\
+	qxwlan,e750g-v8-8m|\
+	qxwlan,e750g-v8-16m|\
 	ubnt,nanostation-ac|\
 	yuncore,a782|\
 	yuncore,xd4200)
diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk
index f15d7a3b89..71dc261b2c 100644
--- a/target/linux/ath79/image/generic.mk
+++ b/target/linux/ath79/image/generic.mk
@@ -1496,6 +1496,27 @@ define Device/qxwlan_e750a-v4-8m
 endef
 TARGET_DEVICES += qxwlan_e750a-v4-8m
 
+define Device/qxwlan_e750g-v8
+  SOC := ar9344
+  DEVICE_VENDOR := Qxwlan
+  DEVICE_MODEL := E750G
+  DEVICE_PACKAGES := kmod-usb2
+endef
+
+define Device/qxwlan_e750g-v8-16m
+  $(Device/qxwlan_e750g-v8)
+  DEVICE_VARIANT := v8 (16M)
+  IMAGE_SIZE := 15936k
+endef
+TARGET_DEVICES += qxwlan_e750g-v8-16m
+
+define Device/qxwlan_e750g-v8-8m
+  $(Device/qxwlan_e750g-v8)
+  DEVICE_VARIANT := v8 (8M)
+  IMAGE_SIZE := 7744k
+endef
+TARGET_DEVICES += qxwlan_e750g-v8-8m
+
 define Device/rosinson_wr818
   SOC := qca9563
   DEVICE_VENDOR := Rosinson



More information about the lede-commits mailing list