openwrt/target/linux/ipq40xx/files/arch/arm/boot/dts
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
..
qcom-ipq4018-a42.dts ipq40xx: DTS style updates for OpenMesh devices 2020-11-23 13:44:47 +01:00
qcom-ipq4018-ap120c-ac.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4018-cap-ac.dts ipq40xx: add MikroTik cAP ac support 2022-02-01 23:18:58 +01:00
qcom-ipq4018-cs-w3-wd1200g-eup.dts ipq40xx: nvmem cells for EZVIZ CS-W3-WD1200G EUP 2021-12-04 00:36:47 +01:00
qcom-ipq4018-dap-2610.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4018-ea6350v3.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4018-eap1300.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4018-ecw5211.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4018-emd1.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4018-emr3500.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4018-ens620ext.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4018-ex61x0v2.dtsi ipq40xx: utilize nvmem on Netgear EX61X0 v2 Series 2021-11-28 01:13:08 +01:00
qcom-ipq4018-ex6100v2.dts ipq40xx: tidy up dts-v1 statements 2020-09-25 21:10:41 +02:00
qcom-ipq4018-ex6150v2.dts ipq40xx: tidy up dts-v1 statements 2020-09-25 21:10:41 +02:00
qcom-ipq4018-fritzbox-4040.dts ipq40xx: dts: convert PHY GPIO bindings 2020-12-23 16:36:08 +01:00
qcom-ipq4018-gl-ap1300.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4018-hap-ac2.dts ipq40xx: fix hard_config partition size on MikroTik hAP-ac2 2021-05-08 12:18:43 +02:00
qcom-ipq4018-jalapeno.dts
qcom-ipq4018-jalapeno.dtsi ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4018-magic-2-wifi-next.dts ipq40xx: add support for devolo Magic 2 WiFi next 2020-12-22 20:55:40 +01:00
qcom-ipq4018-meshpoint-one.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4018-nbg6617.dts ipq40xx: increase SPI frequency for Zyxel NBG6617 2021-07-11 01:38:52 +02:00
qcom-ipq4018-pa1200.dts ipq40xx: add support for Plasma Cloud PA1200 2020-12-22 19:11:50 +01:00
qcom-ipq4018-rt-ac58u.dts ipq40xx: add support for ASUS RT-ACRH17/RT-AC42U 2022-01-15 17:21:01 +01:00
qcom-ipq4018-rutx10.dts ipq40xx: Add support for Teltonika RUTX10 2021-11-28 18:39:01 +01:00
qcom-ipq4018-rutx.dtsi ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4018-sxtsq-5-ac.dts ipq40xx: add support for MikroTik SXTsq 5 ac 2021-04-29 10:55:07 +02:00
qcom-ipq4018-wac510.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4018-wre6606.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4018-wrtq-329acn.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-a62.dts ipq40xx: DTS style updates for OpenMesh devices 2020-11-23 13:44:47 +01:00
qcom-ipq4019-cm520-79f.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-e2600ac-c1.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-e2600ac-c2.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-e2600ac.dtsi ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-ea8300.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4019-eap2200.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-fritzbox-7530.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4019-fritzrepeater-1200.dts ipq40xx: fix FRITZRepeater 1200 RGMII delay 2021-07-17 20:06:49 +02:00
qcom-ipq4019-fritzrepeater-3000.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4019-gl-b2200.dts ipq40xx: document pcie wifi chip on the GL.Inet GL-B2200 2022-02-19 18:29:42 +01:00
qcom-ipq4019-habanero-dvk.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-hap-ac3.dts ipq40xx: add support for MikroTik hAP ac3 2021-11-28 17:19:52 +01:00
qcom-ipq4019-lhgg-60ad.dts ipq40xx: add MikroTik LHGG-60ad outdoor 802.11ad (60GHz) dish 2021-12-02 19:46:14 +00:00
qcom-ipq4019-map-ac2200.dts ipq40xx: fix 5Ghz tx/rx power on the ASUS MAP-AC2200 2020-12-13 16:12:45 +01:00
qcom-ipq4019-mf286d.dts ipq40xx: add support for ZTE MF286D 2022-02-05 00:44:35 +01:00
qcom-ipq4019-mr8300.dts ipq40xx: remove model name from LED labels 2020-10-07 01:31:37 +02:00
qcom-ipq4019-oap100.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-orbi.dtsi ipq40xx: add support for Netgear SRR60/SRS60 and RBR50/RBS50 2021-11-01 00:56:51 +01:00
qcom-ipq4019-pa2200.dts ipq40xx: add support for Plasma Cloud PA2200 2020-12-22 19:11:50 +01:00
qcom-ipq4019-r619ac-64m.dts ipq40xx: add support for P&W R619AC (aka G-DOCK 2.0) 2021-11-14 14:28:34 +01:00
qcom-ipq4019-r619ac-128m.dts ipq40xx: add support for P&W R619AC (aka G-DOCK 2.0) 2021-11-14 14:28:34 +01:00
qcom-ipq4019-r619ac.dtsi ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-rbr50.dts ipq40xx: add support for Netgear SRR60/SRS60 and RBR50/RBS50 2021-11-01 00:56:51 +01:00
qcom-ipq4019-rbs50.dts ipq40xx: add support for Netgear SRR60/SRS60 and RBR50/RBS50 2021-11-01 00:56:51 +01:00
qcom-ipq4019-rt-ac42u.dts ipq40xx: rename RT-AC42U WLAN/LAN LEDs 2022-01-17 20:38:43 +09:00
qcom-ipq4019-rtl30vw.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-srr60.dts ipq40xx: add support for Netgear SRR60/SRS60 and RBR50/RBS50 2021-11-01 00:56:51 +01:00
qcom-ipq4019-srs60.dts ipq40xx: add support for Netgear SRR60/SRS60 and RBR50/RBS50 2021-11-01 00:56:51 +01:00
qcom-ipq4019-u4019-32m.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-u4019.dtsi ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-wifi.dts ipq40xx: Add subtarget for Google WiFi (Gale) 2022-03-25 18:14:13 +01:00
qcom-ipq4019-wpj419.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-wtr-m2133hp.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4019-x1pro.dts ipq40xx: add support for Telco X1 Pro 2022-03-19 20:05:00 +01:00
qcom-ipq4019-x1pro.dtsi ipq40xx: add support for Telco X1 Pro 2022-03-19 20:05:00 +01:00
qcom-ipq4019-xx8300.dtsi ipq40xx: tidy up dts-v1 statements 2020-09-25 21:10:41 +02:00
qcom-ipq4028-wpj428.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4029-ap-303.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4029-ap-303h.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4029-ap-365.dts ipq40xx: AP-365: fix non-existent node or label "macaddr_mfginfo_1d" 2022-01-16 13:14:58 +01:00
qcom-ipq4029-aruba-glenmorangie.dtsi ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4029-gl-b1300.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4029-gl-s1300.dts ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data 2022-01-15 17:26:55 +01:00
qcom-ipq4029-mr33.dts ipq40xx: MR33: Fix LP5562 LED driver probe 2021-10-23 18:50:25 +02:00