openwrt/target/linux/ipq40xx/patches-5.10
Brian Norris f1c041e34f ipq40xx: Add subtarget for Google WiFi (Gale)
Google WiFi (codename: Gale) is an IPQ4019-based AP, with 2 Ethernet
ports, 2x2 2.4+5GHz WiFi, 512 MB RAM, 4 GB eMMC, and a USB type C port.
In its stock configuration, it runs a Chromium OS-based system, but you
wouldn't know it, since you can only manage it via a "cloud" +
mobile-app system.

The "v2" label is coded into the bootloader, which prefers the
"google,gale-v2" compatible string. I believe "v1" must have been
pre-release hardware.

Note: this is *not* the Google Nest WiFi, released in 2019.

I include "factory.bin" support, where we generate a GPT-based disk
image with 2 partitions -- a kernel partition (using the custom "Chrome
OS kernel" GUID type) and a root filesystem partition. See below for
flashing instructions.

Sysupgrade is supported via recent emmc_do_upgrade() helper.

This is a subtarget because it enables different features
(FEATURES=boot-part rootfs-part) whose configurations don't make sense
in the "generic" target, and because it builds in a few USB drivers,
which are necessary for installation (installation is performed by
booting from USB storage, and so these drivers cannot be built as
modules, since we need to load modules from USB storage).

Flashing instructions
=====================

Documented here:
https://openwrt.org/inbox/toh/google/google_wifi

Note this requires booting from USB storage.

Features
========

I've tested:

 * Ethernet, both WAN and LAN ports
 * eMMC
 * USB-C (hub, power-delivery, peripherals)
 * LED0 (R/G/B)
 * WiFi (limited testing)
 * SPI flash
 * Serial console: once in developer mode, console can be accessed via
   the USB-C port with SuzyQable, or other similar "Closed Case
   Debugging" tools:
     https://chromium.googlesource.com/chromiumos/third_party/hdctools/+/master/docs/ccd.md#suzyq-suzyqable
 * Sysupgrade

Not tested:

 * TPM

Known not working:

 * Reboot: this requires some additional TrustZone / SCM
   configuration to disable Qualcomm's SDI. I have a proposal upstream,
   and based on IRC chats, this might be acceptable with additional DT
   logic:
     [RFC PATCH] firmware: qcom_scm: disable SDI at boot
     https://lore.kernel.org/linux-arm-msm/20200721080054.2803881-1-computersforpeace@gmail.com/
 * SMP: enabling secondary CPUs doesn't currently work using the stock
   bootloader, as the qcom_scm driver assumes newer features than this
   TrustZone firmware has. I posted notes here:
     [RFC] qcom_scm: IPQ4019 firmware does not support atomic API?
     https://lore.kernel.org/linux-arm-msm/20200913201608.GA3162100@bDebian/
 * There's a single external button, and a few useful internal GPIO
   switches. I haven't hooked them up.

The first two are fixed with subsequent commits.

Additional notes
================

Much of the DTS is pulled from the Chrome OS kernel 3.18 branch, which
the manufacturer image uses.

Note: the manufacturer bootloader knows how to patch in calibration data
via the wifi{0,1} aliases in the DTB, so while these properties aren't
present in the DTS, they are available at runtime:

  # ls -l
/sys/firmware/devicetree/base/soc/wifi@a*/qcom,ath10k-pre-calibration-data
  -r--r--r--    1 root     root         12064 Jul 15 19:11 /sys/firmware/devicetree/base/soc/wifi@a000000/qcom,ath10k-pre-calibration-data
  -r--r--r--    1 root     root         12064 Jul 15 19:11 /sys/firmware/devicetree/base/soc/wifi@a800000/qcom,ath10k-pre-calibration-data

Ethernet MAC addresses are similarly patched in via the ethernet{0,1} aliases.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
(updated 901 - x1pro moved in the process)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-03-25 18:14:13 +01:00
..
104-clk-fix-apss-cpu-overclocking.patch ipq40xx: 5.10: copy patches 2021-09-25 19:28:54 +02:00
105-ipq40xx-fix-sleep-clock.patch kernel: bump 5.10 to 5.10.83 2021-12-12 21:11:30 +01:00
300-clk-qcom-ipq4019-add-ess-reset.patch ipq40xx: 5.10: copy patches 2021-09-25 19:28:54 +02:00
301-arm-compressed-add-appended-DTB-section.patch ipq40xx: 5.10: refresh patches to apply 2021-09-25 19:28:54 +02:00
302-arm-compressed-set-ipq40xx-watchdog-to-allow-boot.patch kernel: bump 5.10 to 5.10.94 2022-02-01 23:34:07 +00:00
400-mmc-sdhci-sdhci-msm-use-sdhci_set_clock-instead-of-s.patch ipq40xx: 5.10: refresh patches to apply 2021-09-25 19:28:54 +02:00
420-firmware-qcom-scm-disable-SDI.patch ipq40xx: qcom_scm: Disable SDI at boot 2022-03-25 18:14:13 +01:00
421-firmware-qcom-scm-cold-boot-address.patch ipq40xx: qcom_scm: Fix cold boot address command 2022-03-25 18:14:13 +01:00
702-dts-ipq4019-add-PHY-switch-nodes.patch kernel: bump 5.10 to 5.10.83 2021-12-12 21:11:30 +01:00
703-net-IPQ4019-needs-rfs-vlan_tag-callbacks-in.patch ipq40xx: 5.10: refresh patches to apply 2021-09-25 19:28:54 +02:00
705-net-add-qualcomm-ar40xx-phy.patch ipq40xx: 5.10: move AR40xx to MDIO drivers 2021-09-25 19:28:54 +02:00
706-dt-bindings-net-add-QCA807x-PHY.patch ipq40xx: 5.10: copy patches 2021-09-25 19:28:54 +02:00
707-net-phy-Add-Qualcom-QCA807x-driver.patch kernel: bump 5.10 to 5.10.100 2022-02-11 23:17:40 +01:00
708-arm-dts-ipq4019-QCA807x-properties.patch kernel: bump 5.10 to 5.10.83 2021-12-12 21:11:30 +01:00
710-net-add-qualcomm-essedma-ethernet-driver.patch ipq40xx: 5.10: copy patches 2021-09-25 19:28:54 +02:00
711-dts-ipq4019-add-ethernet-essedma-node.patch kernel: bump 5.10 to 5.10.83 2021-12-12 21:11:30 +01:00
850-soc-add-qualcomm-syscon.patch ipq40xx: 5.10: refresh patches to apply 2021-09-25 19:28:54 +02:00
900-dts-ipq4019-ap-dk01.1.patch ipq40xx: 5.10: copy patches 2021-09-25 19:28:54 +02:00
901-arm-boot-add-dts-files.patch ipq40xx: Add subtarget for Google WiFi (Gale) 2022-03-25 18:14:13 +01:00
902-dts-ipq4019-ap-dk04.1.patch ipq40xx: 5.10: copy patches 2021-09-25 19:28:54 +02:00
0001-v5.12-ARM-dts-qcom-ipq4019-add-USB-devicetree-nodes.patch ipq40xx: 5.10: replace patches with upstreamed versions 2021-09-25 19:28:54 +02:00
0002-v5.12-ARM-dts-qcom-ipq4019-add-more-labels.patch ipq40xx: 5.10: replace patches with upstreamed versions 2021-09-25 19:28:54 +02:00
0003-v5.12-ARM-dts-qcom-ipq4019-add-SDHCI-VQMMC-LDO-node.patch ipq40xx: 5.10: replace patches with upstreamed versions 2021-09-25 19:28:54 +02:00