From 7f46d3684d29aaa9bb475d767b400d8254b64838 Mon Sep 17 00:00:00 2001 From: Yin Ni Date: Wed, 15 Mar 2023 07:55:22 -0700 Subject: [PATCH] e750: support E750 target Signed-off-by: Yin Ni --- package/boot/uboot-envtools/files/ath79 | 1 + .../ath79/dts/qca9531_glinet_gl-e750.dts | 53 ++++++++++++++++++- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/package/boot/uboot-envtools/files/ath79 b/package/boot/uboot-envtools/files/ath79 index fde99f8b28..c147c6cbee 100644 --- a/package/boot/uboot-envtools/files/ath79 +++ b/package/boot/uboot-envtools/files/ath79 @@ -96,6 +96,7 @@ glinet,gl-ar300m-lite|\ glinet,gl-ar300m-nand|\ glinet,gl-ar300m-nor|\ glinet,gl-ar300m16|\ +glinet,gl-e750|\ glinet,gl-xe300-nor-nand) idx="$(find_mtd_index u-boot-env)" [ -n "$idx" ] && \ diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-e750.dts b/target/linux/ath79/dts/qca9531_glinet_gl-e750.dts index ca0784e6bf..ff42797843 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-e750.dts +++ b/target/linux/ath79/dts/qca9531_glinet_gl-e750.dts @@ -13,6 +13,32 @@ label-mac-device = ð0; }; + gl_hw { + compatible = "gl-hw-info"; + + #address-cells = <1>; + #size-cells = <1>; + model = "e750"; + lan = "eth0"; + wan = "eth0"; + usb-port = "1-1"; + flash_size = <128>; + noled = "true"; + radio = "radio0"; + build-in-modem = "1-1.2"; + reset-button = "gpio-3"; + switch-button = "gpio-1"; + mcu = "/dev/ttyS0,115200"; + oled = "sh1106"; + 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"; @@ -27,7 +53,7 @@ switch { label = "switch"; - linux,code = ; + linux,code = ; gpios = <&gpio 1 GPIO_ACTIVE_LOW>; }; }; @@ -40,6 +66,24 @@ gpio-export,output = <1>; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; }; + + gpio13 { + gpio-export,name = "gpio13"; + gpio-export,output = <0>; + gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; + }; + + gpio14 { + gpio-export,name = "gpio14"; + gpio-export,output = <0>; + gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; + }; + + gpio17 { + gpio-export,name = "gpio17"; + gpio-export,output = <0>; + gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; + }; }; }; @@ -92,7 +136,12 @@ partition@460000 { label = "reserved"; - reg = <0x460000 0xba0000>; + reg = <0x460000 0xb80000>; + }; + + partition@fe0000 { + label = "log"; + reg = <0xfe0000 0x020000>; }; }; }; -- 2.34.1