openwrtv4/target/linux/ipq40xx/patches-4.14
Sven Eckelmann 2796ab85ed ipq40xx: add support for Compex WPJ428
* QCA IPQ4028
* 256 MB of RAM
* 32 MB of SPI NOR flash (mx25l25635e)
* 128 MB of SPI NAND flash (gd5f1gq4ucy1g)
* 2T2R 2.4 GHz
  - QCA4019 hw1.0 (SoC)
  - uses AP-DK03 BDF from QCA4019/hw1.0/board-2.bin
* 2T2R 5 GHz
  - QCA4019 hw1.0 (SoC)
  - uses AP-DK03 BDF from QCA4019/hw1.0/board-2.bin
* 2 fully software controllable GPIO-LEDs
* 2 additional GPIO-LEDs which also affect the SIM card detection
* 1x button (reset)
* 1x GPIO buzzer
* 1x USB (xHCI)
* 1x NGFF (USB-only with Dual-SIM support, untested)
* TTL pins are on board (R124 is next to GND, then follows: RX, TX, VCC)
* 2x gigabit ethernet
  - phy@mdio4:
    + Manual: Ethernet port 0
    + gmac0 (ethaddr) in original firmware
    + 802.3af POE (HV version)
    + 24v passive POE (LV version)
  - phy@mdio3:
    + Manual: Ethernet port 1
    + gmac1 (eth1addr) in original firmware
* DC Jack connector
  + 24-56V (HV version)
  + 12-24V (LV version)

The SPI NAND flash isn't supported at the moment.

The bootloader has to be updated before OpenWrt is installed to fix a
reboot problem. The nor-ipq40xx-single.img from
https://downloads.compex.com.sg/?dir=uploads/QSDK/QCA-Reference/WPJ428/b170123-IPQ40xx-Reference-Firmware
has to be downloaded and the transfered in u-boot via TFTP

  set ipaddr 192.168.1.11
  set serverip 192.168.1.10
  ping ${serverip}
  tftpboot 0x84000000 nor-ipq40xx-single.img
  imgaddr=0x84000000 && source $imgaddr:script

The sysupgrade image can be installed directly on flash using u-boot:

  sf probe
  tftpboot 0x84000000 openwrt-ipq40xx-compex_wpj428-squashfs-sysupgrade.bin
  sf erase 0x00180000 +$filesize
  sf write 0x84000000 0x00180000 $filesize
  bootipq

The initramfs image can be started using

  tftpboot 0x82000000 openwrt-ipq40xx-compex_wpj428-initramfs-fit-uImage.itb
  set fdt_high 0x83000000
  bootm 0x82000000

The used SIM card slot can be changed using

  # slot 1 (also enables orange LED)
  echo 1 > /sys/class/gpio/gpio3/value
  # slot 2
  echo 0 > /sys/class/gpio/gpio3/value

It can be checked whether a SIM card is inserted in the current slot and
the red LED is subsequently on via:

  echo 2 > /sys/class/gpio/export
  cat /sys/class/gpio/gpio2/value

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2018-03-17 08:09:04 +01:00
..
017-qcom-ipq4019-add-cpu-operating-points-for-cpufreq-su.patch
030-mtd-nand-Use-standard-large-page-OOB-layout-when-usi.patch
031-mtd-nand-use-usual-return-values-for-the-erase-hook.patch
040-dmaengine-qcom-bam-Process-multiple-pending-descript.patch
050-0002-mtd-nand-qcom-add-command-elements-in-BAM-transactio.patch
050-0003-mtd-nand-qcom-support-for-command-descriptor-formati.patch
050-0004-mtd-nand-provide-several-helpers-to-do-common-NAND-o.patch
050-0005-mtd-nand-force-drivers-to-explicitly-send-READ-PROG-.patch
050-0006-mtd-nand-qcom-Add-a-NULL-check-for-devm_kasprintf.patch
059-ARM-cpuidle-Add-cpuidle-support-for-QCOM-cpus.patch
069-arm-boot-add-dts-files.patch ipq40xx: add support for Compex WPJ428 2018-03-17 08:09:04 +01:00
070-qcom-spm-fix-probe-order.patch
101-ARM-dts-ipq4019-Add-a-few-peripheral-nodes.patch
102-ARM-dts-ipq4019-fix-PCI-range.patch
104-mtd-nand-add-Winbond-manufacturer-and-chip.patch
305-qcom-ipq4019-use-v2-of-the-kpss-bringup-mechanism.patch
306-qcom-ipq4019-add-USB-nodes-to-ipq4019-SoC-device-tre.patch
307-ARM-qcom-Add-IPQ4019-SoC-support.patch
310-msm-adhoc-bus-support.patch
400-mtd-ubi-add-quirk-to-autoload-ubi-on-rt-ac58u.patch ipq40xx: add support for ASUS RT-AC58U/RT-ACRH13 2018-03-14 19:04:51 +01:00
605-net-IPQ4019-needs-rfs-vlan_tag-callbacks-in.patch
700-net-add-qualcomm-mdio-and-phy.patch
701-dts-ipq4019-add-mdio-node.patch
702-dts-ipq4019-add-PHY-switch-nodes.patch
710-net-add-qualcomm-essedma-ethernet-driver.patch
711-dts-ipq4019-add-ethernet-essedma-node.patch
712-mr33-essedma.patch ipq40xx: add Cisco Meraki MR33 Support 2018-03-14 19:04:52 +01:00
820-qcom-ipq4019-Add-IPQ4019-USB-HS-SS-PHY-drivers.patch
830-usb-dwc3-register-qca-ipq4019-dwc3-in-dwc3-of-simple.patch
850-soc-add-qualcomm-syscon.patch
864-03-dts-ipq4019-ap-dk01-add-tcsr-config-to-dtsi.patch
864-05-dts-ipq4019-ap-dk01-remove-spi-chip-node-from-dtsi.patch
864-07-dts-ipq4019-ap-dk01.1-c1-add-spi-and-ram-nodes.patch
864-08-dts-ipq4019-ap-dk01.1-c1-add-compatible-string.patch
900-clk-fix.patch