openwrt/target/linux/ipq40xx/patches-5.4
Felix Matouschek 1cc3b95efc ipq40xx: Add support for Teltonika RUTX10
This patch adds support for the Teltonika RUTX10.
This device is an industrial DIN-rail router with 4 ethernet ports,
2.4G/5G dualband WiFi, Bluetooth, a USB 2.0 port and two GPIOs.

The RUTX series devices are very similiar so common parts of the DTS
are kept in a DTSI file. They are based on the QCA AP-DK01.1-C1 dev
board.

See https://teltonika-networks.com/product/rutx10 for more info.

Hardware:
  SoC:                 Qualcomm IPQ4018
  RAM:                 256MB DDR3
  SPI Flash 1:         XTX XT25F128B (16MB, NOR)
  SPI Flash 2:         XTX XT26G02AWS (256MB, NAND)
  Ethernet:            Built-in IPQ4018 (SoC, QCA8075), 4x 10/100/1000 ports
  WiFi 1:              Qualcomm QCA4019 IEEE 802.11b/g/n
  Wifi 2:              Qualcomm QCA4019 IEEE 802.11a/n/ac
  USB Hub:             Genesys Logic GL852GT
  Bluetooth:           Qualcomm CSR8510 (A10U)
  LED/GPIO controller: STM32F030 with custom firmware
  Buttons:             Reset button
  Leds:                Power (green, cannot be controlled)
                       WiFi 2.4G activity (green)
                       WiFi 5G activity (green)

MACs Details verified with the stock firmware:
   eth0:             Partition 0:CONFIG Offset: 0x0
   eth1:             = eth0 + 1
   radio0 (2.4 GHz): = eth0 + 2
   radio1 (5.0 GHz): = eth0 + 3
Label MAC address is from eth0.

The LED/GPIO controller needs a separate kernel driver to function.
The driver was extracted from the Teltonika GPL sources and can be
found at following feed: https://github.com/0xFelix/teltonika-rutx-openwrt

USB detection of the bluetooth interface is sometimes a bit flaky. When
not detected power cycle the device. When the bluetooth interface was
detected properly it can be used with bluez / bluetoothctl.

Flash instructions via stock web interface (sysupgrade based):
  1. Set PC to fixed ip address 192.168.1.100
  2. Push reset button and power on the device
  3. Open u-boot HTTP recovery at http://192.168.1.1
  4. Upload latest stock firmware and wait until the device is rebooted
  5. Open stock web interface at http://192.168.1.1
  6. Set some password so the web interface is happy
  7. Go to firmware upgrade settings
  8. Choose
     openwrt-ipq40xx-generic-teltonika_rutx10-squashfs-nand-factory.ubi
  9. Set 'Keep settings' to off
  10. Click update, when warned that it is not a signed image proceed

Return to stock firmware:
  1. Set PC to fixed ip address 192.168.1.100
  2. Push reset button and power on the device
  3. Open u-boot HTTP recovery at http://192.168.1.1
  4. Upload latest stock firmware and wait until the device is rebooted

Note: The DTS expects OpenWrt to be running from the second rootfs
partition. u-boot on these devices hot-patches the DTS so running from the
first rootfs partition should also be possible. If you want to be save follow
the instructions above. u-boot HTTP recovery restores the device so that when
flashing OpenWrt from stock firmware it is flashed to the second rootfs
partition and the DTS matches.

Signed-off-by: Felix Matouschek <felix@matouschek.org>
2021-11-28 18:39:01 +01:00
..
0001-v5.7-ARM-qcom-Add-support-for-IPQ40xx.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0002-01-v5.6-regulator-add-IPQ4019-SDHCI-VQMMC-LDO-driver.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0002-02-v5.5-ARM-dts-qcom-ipq4019-Add-SDHCI-controller-node.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0003-v5.6-ARM-dts-qcom-Add-nodes-for-SMP-boot-in-IPQ40xx.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0003-v5.7-ARM-dts-qcom-add-gpio-ranges-property.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0004-v5.8-ARM-dts-qcom-ipq4019-fix-high-resolution-timer.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0005-01-v5.8-net-phy-mdio-add-IPQ4019-MDIO-driver.patch ipq40xx: backport upstream MDIO driver 2020-12-23 16:36:08 +01:00
0005-02-v5.8-02-ARM-dts-qcom-ipq4019-add-MDIO-node.patch ipq40xx: backport upstream MDIO driver 2020-12-23 16:36:08 +01:00
0006-v5.5-crypto-qce-add-CRYPTO_ALG_KERN_DRIVER_ONLY-flag.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0007-v5.5-crypto-qce-switch-to-skcipher-API.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0008-v5.6-crypto-qce-fix-ctr-aes-qce-block-chunk-sizes.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0009-v5.6-crypto-qce-fix-xts-aes-qce-key-sizes.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0010-v5.6-crypto-qce-save-a-sg-table-slot-for-result-buf.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0011-v5.6-crypto-qce-update-the-skcipher-IV.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0012-v5.6-crypto-qce-initialize-fallback-only-for-AES.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0013-v5.6-crypto-qce-allow-building-only-hashes-ciphers.patch kernel: bump 5.4 to 5.4.86 2021-01-01 17:07:28 +01:00
0014-v5.7-crypto-qce-use-cryptlen-when-adding-extra-sgl.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0015-v5.7-crypto-qce-use-AES-fallback-for-small-requests.patch kernel: bump 5.4 to 5.4.86 2021-01-01 17:07:28 +01:00
0016-v5.7-crypto-qce-handle-AES-XTS-cases-that-qce-fails.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0017-v5.8-phy-add-driver-for-Qualcomm-IPQ40xx-USB-PHY.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0018-v5.9-pinctrl-msm-open-drain.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
0019-v5.6-mtd-spi-nor-Add-support-for-mx25r3235f.patch kernel: bump 5.4 to 5.4.158 2021-11-07 19:58:08 +01:00
100-GPIO-add-named-gpio-exports.patch kernel: bump 5.4 to 5.4.114 2021-04-30 23:48:37 +02:00
101-arm-dts-IPQ4019-add-SDHCI-VQMMC-LDO-node.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
102-ARM-dts-qcom-ipq4019-add-USB-devicetree-nodes.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
103-arm-dts-qcom-ipq4019-add-more-labels.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
104-clk-fix-apss-cpu-overclocking.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
105-ipq40xx-fix-sleep-clock.patch kernel: bump 5.4 to 5.4.158 2021-11-07 19:58:08 +01:00
300-clk-qcom-ipq4019-add-ess-reset.patch ipq40xx: 5.4: refresh patches and config 2020-02-28 22:46:27 +01:00
301-arm-compressed-add-appended-DTB-section.patch ipq40xx: arm: compressed: add appended DTB section 2021-01-17 14:23:05 +01:00
302-arm-compressed-set-ipq40xx-watchdog-to-allow-boot.patch ipq40xx: kernel compressed boot: reset watchdog countdown 2021-01-17 14:23:05 +01:00
400-mmc-sdhci-sdhci-msm-use-sdhci_set_clock-instead-of-s.patch kernel: bump 5.4 to 5.4.144 2021-09-13 17:08:17 +02:00
702-dts-ipq4019-add-PHY-switch-nodes.patch ipq40xx: add IPQ4019 SD/MMC controller support 2020-03-09 00:53:50 +01:00
703-net-IPQ4019-needs-rfs-vlan_tag-callbacks-in.patch kernel: bump 5.4 to 5.4.61 2020-08-30 19:44:47 +02:00
705-net-add-qualcomm-ar40xx-phy.patch ipq40xx: net: phy: ar40xx: remove PHY handling 2020-12-23 16:36:08 +01:00
706-dt-bindings-net-add-QCA807x-PHY.patch ipq40xx: add Qualcomm QCA807x driver 2020-12-23 16:36:08 +01:00
707-net-phy-Add-Qualcom-QCA807x-driver.patch ipq40xx: add Qualcomm QCA807x driver 2020-12-23 16:36:08 +01:00
708-arm-dts-ipq4019-QCA807x-properties.patch ipq40xx: dts: add QCA807x properties 2020-12-23 16:36:08 +01:00
710-net-add-qualcomm-essedma-ethernet-driver.patch ipq40xx: edma: convert to of_mdio_find_bus() 2020-12-23 16:36:08 +01:00
711-dts-ipq4019-add-ethernet-essedma-node.patch ipq40xx: dts: add QCA807x properties 2020-12-23 16:36:08 +01:00
850-soc-add-qualcomm-syscon.patch ipq40xx: 5.4: refresh patches and config 2020-02-28 22:46:27 +01:00
900-dts-ipq4019-ap-dk01.1.patch ipq40xx: 5.4: update and reorder patches 2020-11-13 16:08:58 +01:00
901-arm-boot-add-dts-files.patch ipq40xx: Add support for Teltonika RUTX10 2021-11-28 18:39:01 +01:00
902-dts-ipq4019-ap-dk04.1.patch ipq40xx: do not remove pci@40000000 for ap.dk04.1 2020-11-13 18:34:41 +01:00
997-device_tree_cmdline.patch ipq40xx: 5.4: refresh patches and config 2020-02-28 22:46:27 +01:00