ipq4019: patch initialization of Lantiq DSL on FritzBox 7530.
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 7 May 2024 18:44:27 +0000 (20:44 +0200)
committerRobert Marko <robimarko@gmail.com>
Sat, 18 Jan 2025 17:50:51 +0000 (18:50 +0100)
commit676dcb1b2cf84142a61d51a15e7a8e1bdc937c23
treeb190be4b0937322e1eaf844e8b0dc18b4bdca64a
parent144af32b47be6181f01815762159dff863f4616b
ipq4019: patch initialization of Lantiq DSL on FritzBox 7530.

Some VRX518 modems fail to initialize properly with the error message
"dc_ep_clk_on failed". As a result, the DSL data path doesn't work.

This hack, which is based on code from the FRITZ!Box 7530 GPL archive,
fixes the issue. It changes the PCIe vendor/device ID to values matching
a Lantiq SoC. It also appears to emulate a Lantiq CPU ID register for
connected PCIe devices, by remapping the matching address area to a
specially crafted buffer using the address translation unit.

A dedicated compatible is created to activate this in
the device tree, so this shouldn't affect any devices other than
FRITZ!Box 7530/7520.

Original investigation was done in https://github.com/janh/openwrt/commit/59f52125178146a9dc44290c11c63e5e029e8044 which used the "avm,host_magic" property to enabled the patch.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Florian Maurer <f.maurer@outlook.de>
Link: https://github.com/openwrt/openwrt/pull/17622
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/generic/backport-6.6/870-v6.7-01-PCI-dwc-Add-host_post_init-callback.patch [new file with mode: 0644]
target/linux/generic/backport-6.6/870-v6.7-02-PCI-qcom-Enable-ASPM-for-platforms-supporting-1.9.0-.patch [new file with mode: 0644]
target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-fritzbox-7530.dts
target/linux/ipq40xx/patches-6.6/900-PCI-qcom-add-hack-compatible-for-ipq4019-Lantiq-DSL.patch [new file with mode: 0644]