diff --git a/target/linux/ath79/dts/qca9563_xwrt_csac.dts b/target/linux/ath79/dts/qca9563_xwrt_csac.dts deleted file mode 100644 index 5592568781..0000000000 --- a/target/linux/ath79/dts/qca9563_xwrt_csac.dts +++ /dev/null @@ -1,202 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include -#include -#include - -#include "qca956x.dtsi" - -/ { - model = "XWRT CSAC"; - compatible = "xwrt,csac", "qca,qca9563"; - - aliases { - led-boot = &led_sys; - led-failsafe = &led_sys; - led-running = &led_sys; - led-upgrade = &led_sys; - }; - - chosen { - bootargs = "console=ttyS0,115200n8"; - }; - - leds { - compatible = "gpio-leds"; - - led_sys: sys { - label = "blue:sys"; - gpios = <&gpio 7 GPIO_ACTIVE_LOW>; - }; - - wlan2g { - label = "blue:wlan2g"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - wlan5g { - label = "blue:wlan5g"; - gpios = <&gpio 9 GPIO_ACTIVE_LOW>; - }; - }; - - keys { - compatible = "gpio-keys"; - - reset { - linux,code = ; - gpios = <&gpio 2 GPIO_ACTIVE_LOW>; - debounce-interval = <60>; - }; - }; - - gpio_export { - compatible = "gpio-export"; - #size-cells = <0>; - - lte_modem_enable { - gpio-export,name = "lte_modem_enable"; - gpio-export,output = <1>; - gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&uart { - status = "okay"; -}; - -&gpio { - status = "okay"; -}; - -&pcie { - status = "okay"; -}; - -&spi { - num-cs = <1>; - - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <25000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x000000 0x40000>; - read-only; - }; - - partition@40000 { - label = "u-boot-env"; - reg = <0x040000 0x10000>; - read-only; - }; - - partition@50000 { - label = "loader1"; - reg = <0x050000 0x010000>; - }; - - partition@60000 { - compatible = "openwrt,uimage", "denx,uimage"; - openwrt,ih-magic = ; - label = "firmware"; - reg = <0x060000 0xe20000>; - }; - - partition@e80000 { - label = "loader2"; - reg = <0xe80000 0x010000>; - }; - - partition@e90000 { - label = "unused"; - reg = <0xe90000 0x160000>; - }; - - partition@1 { - label = "oem_firmware"; - reg = <0x050000 0xfa0000>; - }; - - art: partition@ff0000 { - label = "art"; - reg = <0xff0000 0x010000>; - }; - }; - }; -}; - -&usb_phy0 { - status = "okay"; -}; - -&usb0 { - status = "okay"; -}; - -&usb_phy1 { - status = "okay"; -}; - -&usb1 { - status = "okay"; -}; - -&mdio0 { - status = "okay"; - - phy-mask = <0>; - - phy0: ethernet-phy@0 { - reg = <0>; - phy-mode = "sgmii"; - - qca,ar8327-initvals = < - 0x04 0x00080080 /* PORT0 PAD MODE CTRL */ - 0x10 0x81000080 /* POWER_ON_STRIP */ - 0x50 0xcc35cc35 /* LED_CTRL0 */ - 0x54 0xcb37cb37 /* LED_CTRL1 */ - 0x58 0x00000000 /* LED_CTRL2 */ - 0x5c 0x00f3cf00 /* LED_CTRL3 */ - 0x7c 0x0000007e /* PORT0_STATUS */ - >; - }; -}; - -ð0 { - status = "okay"; - mtd-mac-address = <&art 0x0>; - nvmem-cells = <&macaddr_art_0>; - nvmem-cell-names = "mac-address"; - - pll-data = <0x03000101 0x00000101 0x00001919>; - - phy-mode = "sgmii"; - phy-handle = <&phy0>; -}; - -&wmac { - status = "okay"; - mtd-cal-data = <&art 0x1000>; -}; - -&art { - compatible = "nvmem-cells"; - #address-cells = <1>; - #size-cells = <1>; - - macaddr_art_0: macaddr@0 { - reg = <0x0 0x6>; - }; -}; diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index c63c4369c1..6c69aaab88 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -160,34 +160,6 @@ define Build/wrgg-pad-rootfs $(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS) -c 64 >>$@ endef -define Build/xwrt_csac10-factory - -[ -f "$@" ] && \ - mkdir -p "$@.tmp" && \ - mv "$@" "$@.tmp/UploadBrush-bin.img" && \ - binmd5=$$($(MKHASH) md5 "$@.tmp/UploadBrush-bin.img" | head -c32) && \ - oemmd5=$$(echo -n TB-CSAC10-QCA9563_9886-ROUTE-CSAC10 | $(MKHASH) md5 | head -c32) && \ - echo -n $${binmd5}$${oemmd5} | $(MKHASH) md5 | head -c32 >"$@.tmp/bin_random_oem.txt" && \ - echo -n V4.4-201910201745 >"$@.tmp/version.txt" && \ - $(TAR) -czf $@.tmp.tgz -C "$@.tmp" UploadBrush-bin.img bin_random_oem.txt version.txt && \ - $(STAGING_DIR_HOST)/bin/openssl aes-256-cbc -md md5 -salt -in $@.tmp.tgz -out "$@" -k QiLunSmartWL && \ - printf %32s CSAC10 >>"$@" && \ - rm -rf "$@.tmp" -endef - -define Build/xwrt_csac05-factory - -[ -f "$@" ] && \ - mkdir -p "$@.tmp" && \ - mv "$@" "$@.tmp/UploadBrush-bin.img" && \ - binmd5=$$($(MKHASH) md5 "$@.tmp/UploadBrush-bin.img" | head -c32) && \ - oemmd5=$$(echo -n TB-CSAC05-QCA9563_9886-ROUTE-CSAC05 | $(MKHASH) md5 | head -c32) && \ - echo -n $${binmd5}$${oemmd5} | $(MKHASH) md5 | head -c32 >"$@.tmp/bin_random_oem.txt" && \ - echo -n V4.4-201910201745 >"$@.tmp/version.txt" && \ - $(TAR) -czf $@.tmp.tgz -C "$@.tmp" UploadBrush-bin.img bin_random_oem.txt version.txt && \ - $(STAGING_DIR_HOST)/bin/openssl aes-256-cbc -md md5 -salt -in $@.tmp.tgz -out "$@" -k QiLunSmartWL && \ - printf %32s CSAC05 >>"$@" && \ - rm -rf "$@.tmp" -endef - define Device/seama KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma KERNEL_INITRAMFS := $$(KERNEL) | seama @@ -2513,23 +2485,6 @@ define Device/xiaomi_mi-router-4q endef TARGET_DEVICES += xiaomi_mi-router-4q -define Device/xwrt_csac - $(Device/loader-okli-uimage) - SOC := qca9563 - DEVICE_VENDOR := XWRT - DEVICE_MODEL := CSAC - IMAGE_SIZE := 14464k - LOADER_FLASH_OFFS := 0x60000 - KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 - IMAGES += breed-factory.bin factory-10.bin factory-05.bin - IMAGE/breed-factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \ - prepad-okli-kernel $(1) | pad-to 14528k | append-okli-kernel $(1) - IMAGE/factory-10.bin := $$(IMAGE/breed-factory.bin) | xwrt_csac10-factory $(1) - IMAGE/factory-05.bin := $$(IMAGE/breed-factory.bin) | xwrt_csac05-factory $(1) - DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct ath10k-firmware-qca9888-ct kmod-usb-core kmod-usb2 -endef -TARGET_DEVICES += xwrt_csac - define Device/yuncore_a770 SOC := qca9531 DEVICE_VENDOR := YunCore