Openwrt/target/linux/ipq806x/patches-5.4
Christian Lamparter 98b86296e6 ipq806x: add support for ASRock G10
The ASRock G10 is a 2.4/5 GHz band 11ac "Gaming" router,
based on Qualcomm IPQ8064.

Specifications:

SoC:	Qualcomm IPQ8064
CPU:	Dual-Core A15 @ (384 - 1,400 MHz, 2C2T)
DRAM:	512 MiB (~467 MiB available)
NAND:	128 MB (Micron MT29F1G08ABBEAH4)
WLAN0:	4T4R 5 GHz Wlan (QCA9980)
WLAN1:	4T4R 2.4 GHz Wlan (QCA9980)
ETH:    5x 10/100/1000 Mbps Ethernet (QCA8337)
INPUT:  Reset Button, WPS 2.4G and WPS 5G Button
LEDS:   1 multicolor status LED
USB:    2x USB 3.0 Type-A
POWER:  12VDC/3A AC Adapter + dedicated Power Switch
UART:   Setting is 115200-8-N-1. 1x4 .1" unpopulated header
	on the PCB (J6 - very tiny silkscreen next to TX).
        Pinout: 1. 3v3 (Square - best skipped!), 2. RX, 3. GND, 4. TX

WARNING: The serial port needs a TTL/RS-232 3.3v level converter!
	 (Depending on the serial adapter RX and TX might need to
	  be swapped).

Note about the IR-Remote:
There's a 8-Bit MCU (SONIX SN8F25E21SG) which is controlling the
IR-Remote and is fed by the IR-Photodiode. The SoC can talk to
the device via I2C. The vendor's GPL archive comes with the source
of the interface driver for this as a (character driver), the main
control software is however a blob.

Installation Instructions:
 1. Download factory image to disk
 2. Apply factory image via stock web-gui

Back to stock:
 1. Login to router via ssh
 2. run "asrock_g10_back_to_factory" script from /sbin

Notes:
 - If something goes wrong durring sysupgrade, router will go back to
   factory image.
 - Asrock G10 uses partition layout from smem. So partition layout can
   be normal or alternate.
 - 900-arm-add-cmdline-override.patch was copied from 102-powerpc-add-cmdline-override.patch
   from powerpc target.

Knowledge about BOOTCONFIG partition was based on user "jmomo" post from old
OpenWrt forum (Post #50):
https://forum.archive.openwrt.org/viewtopic.php?id=65956&p=2

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[bump to 5.4, add factory image, fix sysupgrade, convert partition
layout to smem, remove ipq-wifi-asrock-g10 and use ART, minor fixes]
Co-Authored-by: Pawel Dembicki <paweldembicki@gmail.com>
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Tested-by: Lukasz Ostapiuk <palibrzuch@gmail.com>
2020-12-22 19:11:50 +01:00
..
080-v5.7-ARM-dts-qcom-add-gpio-ranges-property.patch
081-v5.8-ARM-dts-qcom-add-scm-definition-to-ipq806x.patch
082-ipq8064-dtsi-tweaks.patch
083-ipq8064-dtsi-additions.patch
084-ipq8064-v1.0-dtsi-cleanup.patch
085-ipq8064-v1.0-dtsi-additions.patch
086-v5.8-pinctrl-qom-use-scm_call-to-route-GPIO-irq-to-Apps.patch
087-v5.8-ipq8064-pinctrl-Fixed-missing-RGMII-pincontrol-defin.patch
088-v5.8-watchdog-qcom-wdt-disable-pretimeout-on-timer-platfo.patch
089-v5.8-ipq806x-gcc-Added-the-enable-regs-and-mask-for-PRNG.patch
090-v5.8-clk-clk-rpm-fixes.patch
091-v5.8-regulator-add-smb208-support.patch
092-1-v5.7-qcom-cpufreq-nvmem-Add-support-for-krait-based-socs.patch
092-2-v5.7-cpufreq-qcom-fix-wrong-compatible-binding.patch
093-4-v5.8-ipq806x-PCI-qcom-Use-bulk-clk-api-and-assert-on-error.patch
093-7-v5.8-ipq806x-PCI-qcom-Add-ipq8064-rev2-variant.patch
093-8-v5.8-ipq806x-PCI-qcom-Support-pci-speed-set-for-ipq806x.patch
094-v5.7-ipq806x-net-mdio-add-ipq8064-mdio-driver.patch
095-1-v5.9-phy-qualcomm-add-qcom-ipq806x-dwc-usb-phy-driver.patch
095-2-v5.9-phy-qualcomm-fix-setting-of-tx_deamp_3_5db-when-device-property-read-fails.patch
850-soc-add-qualcomm-syscon.patch
851-add-gsbi1-dts.patch
900-arm-add-cmdline-override.patch
997-device_tree_cmdline.patch
0001-dtbindings-qcom_adm-Fix-channel-specifiers.patch
0002-dmaengine-Add-ADM-driver.patch
0030-clk-Disable-i2c-device-on-gsbi4.patch
0031-mtd-add-SMEM-parser-for-QCOM-platforms.patch
0033-ARM-qcom-automatically-select-PCI_DOMAINS-if-PCI-is-.patch
0049-PM-OPP-Support-adjusting-OPP-voltages-at-runtime.patch
0051-PM-OPP-Add-a-helper-to-get-an-opp-regulator-for-devi.patch
0052-PM-OPP-Update-the-voltage-tolerance-when-adjusting-t.patch
0054-cpufreq-dt-Handle-OPP-voltage-adjust-events.patch
0055-cpufreq-dt-Add-L2-frequency-scaling-support.patch
0056-cpufreq-dt-Add-missing-rcu-locks.patch
0057-add-fab-scaling-support-with-cpufreq.patch
0059-ARM-cpuidle-Add-cpuidle-support-for-QCOM-cpus.patch
0060-HACK-arch-arm-force-ZRELADDR-on-arch-qcom.patch
0061-mtd-rootfs-conflicts-with-OpenWrt-auto-mounting.patch
0063-1-ipq806x-tsens-driver.patch
0063-2-tsens-support-configurable-interrupts.patch
0063-3-tsens-fix-kernel-5_4.patch
0063-4-ip806x-tsense-rework-driver.patch
0065-arm-override-compiler-flags.patch
0067-generic-Mangle-bootloader-s-kernel-arguments.patch
0069-arm-boot-add-dts-files.patch
0072-add-ipq806x-with-no-clocks.patch