2021-09-13 12:08:35 +00:00
|
|
|
From a10fab12a927e60b7141a602e740d70cb4d09e4a Mon Sep 17 00:00:00 2001
|
|
|
|
From: John Crispin <john@phrozen.org>
|
|
|
|
Date: Thu, 9 Mar 2017 11:03:18 +0100
|
|
|
|
Subject: [PATCH] arm: boot: add dts files
|
|
|
|
|
|
|
|
Signed-off-by: John Crispin <john@phrozen.org>
|
|
|
|
---
|
|
|
|
arch/arm/boot/dts/Makefile | 23 +++++++++++++++++++++++
|
|
|
|
1 file changed, 23 insertions(+)
|
|
|
|
|
|
|
|
--- a/arch/arm/boot/dts/Makefile
|
|
|
|
+++ b/arch/arm/boot/dts/Makefile
|
2021-06-09 20:35:46 +00:00
|
|
|
@@ -903,11 +903,77 @@ dtb-$(CONFIG_ARCH_QCOM) += \
|
2021-09-13 12:08:35 +00:00
|
|
|
qcom-apq8074-dragonboard.dtb \
|
|
|
|
qcom-apq8084-ifc6540.dtb \
|
|
|
|
qcom-apq8084-mtp.dtb \
|
|
|
|
+ qcom-ipq4018-a42.dtb \
|
|
|
|
+ qcom-ipq4018-ap120c-ac.dtb \
|
|
|
|
+ qcom-ipq4018-dap-2610.dtb \
|
|
|
|
+ qcom-ipq4018-cs-w3-wd1200g-eup.dtb \
|
|
|
|
+ qcom-ipq4018-magic-2-wifi-next.dtb \
|
|
|
|
+ qcom-ipq4018-ea6350v3.dtb \
|
|
|
|
+ qcom-ipq4018-eap1300.dtb \
|
|
|
|
+ qcom-ipq4018-ecw5211.dtb \
|
|
|
|
+ qcom-ipq4018-emd1.dtb \
|
|
|
|
+ qcom-ipq4018-emr3500.dtb \
|
|
|
|
+ qcom-ipq4018-ens620ext.dtb \
|
|
|
|
+ qcom-ipq4018-ex6100v2.dtb \
|
|
|
|
+ qcom-ipq4018-ex6150v2.dtb \
|
|
|
|
+ qcom-ipq4018-fritzbox-4040.dtb \
|
|
|
|
+ qcom-ipq4018-gl-ap1300.dtb \
|
|
|
|
+ qcom-ipq4018-jalapeno.dtb \
|
|
|
|
+ qcom-ipq4018-meshpoint-one.dtb \
|
2021-04-06 16:38:31 +00:00
|
|
|
+ qcom-ipq4018-cap-ac.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
+ qcom-ipq4018-hap-ac2.dtb \
|
|
|
|
+ qcom-ipq4018-sxtsq-5-ac.dtb \
|
|
|
|
+ qcom-ipq4018-nbg6617.dtb \
|
|
|
|
+ qcom-ipq4019-oap100.dtb \
|
|
|
|
+ qcom-ipq4018-pa1200.dtb \
|
|
|
|
+ qcom-ipq4018-rt-ac58u.dtb \
|
2021-07-15 19:48:11 +00:00
|
|
|
+ qcom-ipq4018-rutx10.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
+ qcom-ipq4018-wac510.dtb \
|
2021-06-09 20:35:46 +00:00
|
|
|
+ qcom-ipq4018-whw01-v1.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
+ qcom-ipq4018-wre6606.dtb \
|
|
|
|
+ qcom-ipq4018-wrtq-329acn.dtb \
|
|
|
|
qcom-ipq4019-ap.dk01.1-c1.dtb \
|
|
|
|
qcom-ipq4019-ap.dk04.1-c1.dtb \
|
|
|
|
qcom-ipq4019-ap.dk04.1-c3.dtb \
|
|
|
|
qcom-ipq4019-ap.dk07.1-c1.dtb \
|
|
|
|
qcom-ipq4019-ap.dk07.1-c2.dtb \
|
|
|
|
+ qcom-ipq4019-a62.dtb \
|
|
|
|
+ qcom-ipq4019-cm520-79f.dtb \
|
2020-09-02 00:10:16 +00:00
|
|
|
+ qcom-ipq4019-e2600ac-c1.dtb \
|
|
|
|
+ qcom-ipq4019-e2600ac-c2.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
+ qcom-ipq4019-ea8300.dtb \
|
|
|
|
+ qcom-ipq4019-eap2200.dtb \
|
|
|
|
+ qcom-ipq4019-fritzbox-7530.dtb \
|
|
|
|
+ qcom-ipq4019-fritzrepeater-1200.dtb \
|
|
|
|
+ qcom-ipq4019-fritzrepeater-3000.dtb \
|
2020-09-02 00:10:16 +00:00
|
|
|
+ qcom-ipq4019-habanero-dvk.dtb \
|
ipq40xx: add support for MikroTik hAP ac3
This adds support for the MikroTik RouterBOARD RBD53iG-5HacD2HnD
(hAP ac³), a indoor dual band, dual-radio 802.11ac
wireless AP with external omnidirectional antennae, USB port, five
10/100/1000 Mbps Ethernet ports and PoE passthrough.
See https://mikrotik.com/product/hap_ac3 for more info.
Specifications:
- SoC: Qualcomm Atheros IPQ4019
- RAM: 256 MB
- Storage: 16 MB NOR + 128 MB NAND
- Wireless:
· Built-in IPQ4019 (SoC) 802.11b/g/n 2x2:2, 3 dBi antennae
· Built-in IPQ4019 (SoC) 802.11a/n/ac 2x2:2, 5.5 dBi antennae
- Ethernet: Built-in IPQ4019 (SoC, QCA8075) , 5x 1000/100/10 port,
passive PoE in, PoE passtrough on port 5
- 1x USB Type A port
Installation:
1. Boot the initramfs image via TFTP
2. Run "cat /proc/mtd" and look for "ubi" partition mtd device number, ex. "mtd1"
3. Use ubiformat to remove MikroTik specific UBI volumes
* Detach the UBI partition by running: "ubidetach -d 0"
* Format the partition by running: "ubiformat /dev/mtdN -y"
Replace mtdN with the correct mtd index from step 2.
3. Flash the sysupgrade image using "sysupgrade -n"
Signed-off-by: Robert Marko <robimarko@gmail.com>
Tested-by: Mark Birss <markbirss@gmail.com>
Tested-by: Michael Büchler <michael.buechler@posteo.net>
Tested-by: Alex Tomkins <tomkins@darkzone.net>
2021-10-09 18:13:25 +00:00
|
|
|
+ qcom-ipq4019-hap-ac3.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
+ qcom-ipq4019-map-ac2200.dtb \
|
2021-01-04 23:22:00 +00:00
|
|
|
+ qcom-ipq4019-lhgg-60ad.dtb \
|
2021-11-23 08:10:14 +00:00
|
|
|
+ qcom-ipq4019-mf286d.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
+ qcom-ipq4019-mr8300.dtb \
|
|
|
|
+ qcom-ipq4019-pa2200.dtb \
|
ipq40xx: add support for P&W R619AC (aka G-DOCK 2.0)
P&W R619AC is a IPQ4019 Dual-Band AC1200 router.
It is made by P&W (p2w-tech.com) known as P&W R619AC
but marketed and sold more popularly as G-DOCK 2.0.
Specification:
* SOC: Qualcomm Atheros IPQ4019 (717 MHz)
* RAM: 512 MiB
* Flash: 16 MiB (NOR) + 128 MiB (NAND)
* Ethernet: 5 x 10/100/1000 (4 x LAN, 1 x WAN)
* Wireless:
- 2.4 GHz b/g/n Qualcomm Atheros IPQ4019
- 5 GHz a/n/ac Qualcomm Atheros IPQ4019
* USB: 1 x USB 3.0
* LED: 4 x LAN, 1 x WAN, 2 x WiFi, 1 x Power (All Blue LED)
* Input: 1 x reset
* 1 x MicroSD card slot
* Serial console: 115200bps, pinheader J2 on PCB
* Power: DC 12V 2A
* 1 x Unpopulated mPCIe Slot (see below how to connect it)
* 1 x Unpopulated Sim Card Slot
Installation:
1. Access to tty console via UART serial
2. Enter failsafe mode and mount rootfs
<https://openwrt.org/docs/guide-user/troubleshooting/failsafe_and_factory_reset>
3. Edit inittab to enable shell on tty console
`sed -i 's/#ttyM/ttyM/' /etc/inittab`
4. Reboot and upload `-nand-factory.bin` to the router (using wget)
5. Use `sysupgrade` command to install
Another installation method is to hijack the upgrade server domain
of stock firmware, because it's using insecure http.
This commit is based on @LGA1150(at GitHub)'s work
<https://github.com/LGA1150/openwrt/commit/a4932c8d5a275d1fb4297bd20ec03f9270a45d1c>
With some changes:
1. Added `qpic_bam` node in dts. I don't know much about this,
but I observed other dtses have this node.
2. Removed `ldo` node under `sd_0_pinmux`, because `ldo` cause SD card not
working. This fix is from
<https://github.com/coolsnowwolf/lede/commit/51143b4c7571f717afe071db60bbb4db1532cbf2>
3. Removed the 32MB NOR variant.
4. Removed `cd-gpios` in `sdhci` node, because it's reported that it makes
wlan2g led light up.
5. Added ethphy led config in dts.
6. Changed nand partition label from `rootfs` to `ubi`.
About the 128MiB variant: The stock bootloader sets size of nand to 64MiB.
But most of this devices have 128MiB nand. If you want to use all 128MiB,
you need to modify the `MIBIB` data of bootloader. More details can be
found on github:
<https://github.com/openwrt/openwrt/pull/3691#issuecomment-818770060>
For instructions on how to flash the MIBIB partition from u-boot console:
<https://github.com/openwrt/openwrt/pull/3691#issuecomment-819138232>
About the Mini PCIe slot: (from "ygleg")
"The REFCLK signals on the Mini PCIe slot is not connected on
this board out of the box. If you want to use the Mini PCIe slot
on the board, you need to (preferably) solder two 0402 resistors:
R436 (REFCLK+) and R444 (REFCLK-)..."
This and much more information is provoided in the github comment:
<https://github.com/openwrt/openwrt/pull/3691#issuecomment-968054670>
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
[Added comment about MIBIB+128 MiB variant. Added commit
message section about pcie slot. Renamed gpio-leds' subnodes
and added color, function+enum properties.]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2021-11-12 03:16:21 +00:00
|
|
|
+ qcom-ipq4019-r619ac-64m.dtb \
|
|
|
|
+ qcom-ipq4019-r619ac-128m.dtb \
|
2020-09-02 00:10:16 +00:00
|
|
|
+ qcom-ipq4019-rbr50.dtb \
|
|
|
|
+ qcom-ipq4019-rbs50.dtb \
|
2021-12-30 20:25:03 +00:00
|
|
|
+ qcom-ipq4019-rt-ac42u.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
+ qcom-ipq4019-rtl30vw.dtb \
|
2020-09-02 00:10:16 +00:00
|
|
|
+ qcom-ipq4019-srr60.dtb \
|
|
|
|
+ qcom-ipq4019-srs60.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
+ qcom-ipq4019-u4019-32m.dtb \
|
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>
2020-05-25 21:50:20 +00:00
|
|
|
+ qcom-ipq4019-wifi.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
+ qcom-ipq4019-wpj419.dtb \
|
|
|
|
+ qcom-ipq4019-wtr-m2133hp.dtb \
|
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>
2020-05-25 21:50:20 +00:00
|
|
|
+ qcom-ipq4019-x1pro.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
+ qcom-ipq4028-wpj428.dtb \
|
|
|
|
+ qcom-ipq4029-ap-303.dtb \
|
|
|
|
+ qcom-ipq4029-ap-303h.dtb \
|
|
|
|
+ qcom-ipq4029-ap-365.dtb \
|
|
|
|
+ qcom-ipq4029-gl-b1300.dtb \
|
ipq40xx: add support for GL.iNet GL-B2200
This patch adds supports for the GL-B2200 router.
Specifications:
- SOC: Qualcomm IPQ4019 ARM Quad-Core
- RAM: 512 MiB
- Flash: 16 MiB NOR - SPI0
- EMMC: 8GB EMMC
- ETH: Qualcomm QCA8075
- WLAN1: Qualcomm Atheros QCA4019 2.4GHz 802.11b/g/n 2x2
- WLAN2: Qualcomm Atheros QCA4019 5GHz 802.11n/ac W2 2x2
- WLAN3: Qualcomm Atheros QCA9886 5GHz 802.11n/ac W2 2x2
- INPUT: Reset, WPS
- LED: Power, Internet
- UART1: On board pin header near to LED (3.3V, TX, RX, GND), 3.3V without pin - 115200 8N1
- UART2: On board with BLE module
- SPI1: On board socket for Zigbee module
Update firmware instructions:
Please update the firmware via U-Boot web UI (by default at 192.168.1.1, following instructions found at
https://docs.gl-inet.com/en/3/troubleshooting/debrick/).
Normal sysupgrade, either via CLI or LuCI, is not possible from stock firmware.
Please do use the *gl-b2200-squashfs-emmc.img file, gunzipping the produced *gl-b2200-squashfs-emmc.img.gz one first.
What's working:
- WiFi 2G, 5G
- WPA2/WPA3
Not tested:
- Bluetooth LE/Zigbee
Credits goes to the original authors of this patch.
V1->V2:
- updates *arm-boot-add-dts-files.patch correctly (sorry, my mistake)
- add uboot-envtools support
V2->V3:
- Li Zhang updated official patch to fix wrong MAC address on wlan0 (PCI) interface
V3->V4:
- wire up sysupgrade
Signed-off-by: Li Zhang <li.zhang@gl-inet.com>
[fix tab and trailing space, document what's working and what's not]
Signed-off-by: TruongSinh Tran-Nguyen <i@truongsinh.pro>
[rebase on top of master, address remaining comments]
Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
[remove redundant check in platform.sh]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-12-01 15:18:17 +00:00
|
|
|
+ qcom-ipq4019-gl-b2200.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
+ qcom-ipq4029-gl-s1300.dtb \
|
|
|
|
+ qcom-ipq4029-mr33.dtb \
|
|
|
|
qcom-ipq8064-ap148.dtb \
|
2021-09-12 20:36:12 +00:00
|
|
|
qcom-ipq8064-rb3011.dtb \
|
2021-09-13 12:08:35 +00:00
|
|
|
qcom-msm8660-surf.dtb \
|