aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x
Commit message (Collapse)AuthorAgeFilesLines
* ipq806x: disable cache and fabric devfreq driver to improve stabilityChristian Marangi2022-11-261-2/+2
| | | | | | | | | | | | It was tested that cache scaling currently cause instability problem. This is probably caused by a latent misconfiguration that cause the L2 cache to be sourced from the wrong source and runs at an unstable freq compared to the original QSDK fw. To improve stability while the problem is bisected, disable the devfreq drivers with minimal perf penality. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: kernel ramoops storage for C2600/AD7200Edward Matijevic2022-11-092-2/+11
| | | | | | | | | Define the kernel crash log storage ramoops/pstore feature for C2600/AD7200 and add kmod-ramoops to default. Tested with C2600 only. Signed-off-by: Edward Matijevic <motolav@gmail.com>
* kernel: bump 5.10 to 5.10.152John Audia2022-10-301-2/+2
| | | | | | All patches automatically rebased. Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: bump 5.10 to 5.10.150John Audia2022-10-301-2/+2
| | | | | | | | | | | Manually rebased: bcm53xx/patches-5.10/180-usb-xhci-add-support-for-performing-fake-doorbell.patch All patches automatically rebased. Signed-off-by: John Audia <therealgraysky@proton.me> [Move gro_skip in 680-NET-skip-GRO-for-foreign-MAC-addresses.patch to old position] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ipq806x: disable ea8500 image by defaultChristian Marangi2022-10-281-0/+1
| | | | | | | | | | | | | Linksys EA8500 is currently broken after the kernel 5.15 bump. Disable compiling it by default from buildbot to prevent brick from the user. Don't mark it as BROKEN to permit user to compile images and permit devs to bisect the problem with the users. The current problem with the device is that the switch is not detected and we can't comunicate with it via MDIO. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: disable ea8500 image by defaultChristian Marangi2022-10-281-0/+1
| | | | | | | | | | | | | Linksys EA8500 is currently broken after the kernel 5.15 bump. Disable compiling it by default from buildbot to prevent brick from the user. Don't mark it as BROKEN to permit user to compile images and permit devs to bisect the problem with the users. The current problem with the device is that the switch is not detected and we can't comunicate with it via MDIO. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 5.15: add missing CMDLINE_OVERRIDE patchChristian Marangi2022-10-251-0/+37
| | | | | | | | | | | This patch was wrongly dropped with the assumption that it was moved to generic. This wasn't the case and caused the malfunction of the Asrock G10 router. Reintroduce it to fix Asrock G10 functionality. Fixes: 8cc2caed58e7 ("ipq806x: 5:15: add testing kernel version") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: drop mmc-ddr-1_8v from sdcc1 nodeChristian Marangi2022-10-251-0/+26
| | | | | | | | | | | | | | | Zyxel NGB6817 is the only router that use mmc for rootfs. Upstream kernel dtsi have mmc-ddr-1_8v enabled for sddc1. This is wrong as mmc on ipq806x is supplied by a fixed 3.3v regulator and can't operate at 1.8v. This cause the sddc1 to malfunction and cause kernel panic. In old 5.15 version this was disabled but it was put in addition to many other changes so it was dropped silently. Restore this patch to fix working condition of such router. Fixes: 88bf652 ("ipq806x: 5.15: replace dtsi patches with upstream version") Fixes: #11000 Tested-by: Hendrik Koerner <koerhen@web.de> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: revert unwanted DSA conversion for ASRock G10Christian Marangi2022-10-251-65/+11
| | | | | | | | | | In refreshing DTS to the upstream version an unwanted change slipped in the commit. The ASRock G10 dts got converted to DSA without any support. Revert this to swconfig driver to restore normal functionality. Fixes: 88bf6525251f ("ipq806x: 5.15: replace dtsi patches with upstream version") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: backport qcom_nandc patch for unprotected spare data fixChristian Marangi2022-10-251-0/+54
| | | | | | | | | | | We currently ignore ret of the nandc partition parser if unprotected spare data is true. This is the case for ipq806x nand. Backport patch that fix this error and correctly handle error from partition parser. Fixes: ae6a63bc97cf ("ipq806x: 5.15: replace nandc patch with upstream version") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: add 6.1 tag to upstream patchChristian Marangi2022-10-188-0/+0
| | | | | | | Add 6.1 tag to upstream patch now that 6.1 got tagged. This permits to track patch in a better way and directly drop them on kernel bump. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: refresh target patchesChristian Marangi2022-10-1712-93/+29
| | | | | | Refresh ipq806x target patches for kernel 5.15. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: switch to 5.15 kernel by defaultChristian Marangi2022-10-111-2/+1
| | | | | | | Switch to 5.15 kernel by default to promote more wider testing and use better upstream patch. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: add clk krait fixes/improvement patchChristian Marangi2022-10-112-0/+198
| | | | | | Add various krait fixes patch that correctly bringup mux and cpu clocks. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: enable again usb node for each deviceChristian Marangi2022-10-1121-15/+343
| | | | | | | Usb node now are disabled by default in dtsi. Enable again them in each device dts. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: add krait-cc modernization patch and fixupChristian Marangi2022-10-1110-8/+760
| | | | | | | | Add multiple patch for krait-cc modernization and multiple fixup for the driver. Also modify a patch to enable the qsb fixed clock and add pxo to krait-cc node. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: add krait clock modernization patchChristian Marangi2022-10-115-0/+282
| | | | | | Backport krait clock modernization patch. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: backport qcom clk fixes for krait and hfpllChristian Marangi2022-10-112-0/+127
| | | | | | Backport some qcom clock fixes for krait and hfpll driver. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: renumber tsens patch with new orderChristian Marangi2022-10-112-0/+0
| | | | | | Renumber tsens patch with new order for consistency. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: enable new devfreq scaling driver in configChristian Marangi2022-10-111-1/+3
| | | | | | Enable new devfreq scaling driver in kernel config. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: rework nand_pins for wg2600hp3 dtsChristian Marangi2022-10-111-2/+0
| | | | | | | nand_pins definition is now shipped in ipq8064 dtsi. Rework the nand_pins definition for wg2600hp3 5.15 files. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: add boot-partitions binding to fix block warningChristian Marangi2022-10-1110-8/+12
| | | | | | | | | | | | | | The patch has changed implementation and now the binding has changed. Replace the old binding with boot-partitions and reimplement the definition with the new definition. The new definition is: <offset1 size1 offset2 size2 offset3 ...> and now supports sparsed patch. Also add missing binding in some dts and add the backup boot partition to the boot-partitions list. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: remove useless spm patchChristian Marangi2022-10-111-10/+0
| | | | | | | Remove useless spm patch as using the normal qcom,spm compatible is enough to register it with no clks. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: replace nandc patch with upstream versionChristian Marangi2022-10-114-281/+674
| | | | | | Replace nandc fix patch with upstream version. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: replace fab scaling patch with devfreq driverChristian Marangi2022-10-113-243/+251
| | | | | | Replace fab scaling patch with devfreq driver. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: add new version of cache cpu scaling driverChristian Marangi2022-10-115-1001/+292
| | | | | | | Use a new implementation by using a devfreq driver to scale the shared cache of the krait cpu cores. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: backport devfreq new cpufreq based PASSIVE governorChristian Marangi2022-10-1110-0/+1399
| | | | | | | Backport devfreq new cpufreq based PASSIVE governor needed for devfreq based fab and cache scaling. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: replace stmmac pcs fix with upstream versionChristian Marangi2022-10-113-83/+261
| | | | | | Replace stmmac pcs fix with upstream version. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: replace gcc fixes with upstream versionChristian Marangi2022-10-1113-272/+1761
| | | | | | Replace gcc patch fixes with upstream version. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: replace lcc patch with upstream versionChristian Marangi2022-10-114-59/+294
| | | | | | Replace lcc patch with proposed upstream version. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: replace dtsi patches with upstream versionChristian Marangi2022-10-1148-1179/+1618
| | | | | | | | | Reorganize dtsi patches with upstream version and drop dtsi in 5.15 files. Also add an additional upstream patch for hwspinlock support. Refresh all the dts with needed changes. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: remove PCI_DOMAINS patch not needed anymoreChristian Marangi2022-10-111-29/+0
| | | | | | | This doesn't cause any panic anymore and no regression are observed with ath10k. Remove this additional patch. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: 5.15: remove qcom adm Documentation patchChristian Marangi2022-10-111-71/+0
| | | | | | | Remove qcom adm Documentation patch that is not needed for the target. Probably a leftover when the adm bus was added, now merged upstream. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq806x: split files dir to 5.10 and 5.15Christian Marangi2022-10-1164-0/+8525
| | | | | | | In preparation for a cleanup of 5.15 patches copy the files dir to 5.10 and 5.15 kernel version. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: bump 5.10 to 5.10.147John Audia2022-10-091-2/+2
| | | | | | | | | | | Removed upstreamed: bcm53xx/patches-5.10/083-v6.0-clk-iproc-Do-not-rely-on-node-name-for-correct-PLL-s.patch[1] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.147&id=a8e6cde5062fb2aff81f86cc0770591714bee545 Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: bump 5.15 to 5.15.62Petr Štetiar2022-08-234-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deleted following upstreamed patches: bcm27xx: 950-0006-drm-vc4-hdmi-Fix-HPD-GPIO-detection.patch bcm27xx: 950-0420-drm-vc4-Adopt-the-dma-configuration-from-the-HVS-or-.patch bcm27xx: 950-0425-drm-vc4-A-present-but-empty-dmas-disables-audio.patch bcm27xx: 950-0432-vc4-drm-Avoid-full-hdmi-audio-fifo-writes.patch bcm27xx: 950-0433-vc4-drm-vc4_plane-Remove-subpixel-positioning-check.patch bcm27xx: 950-0435-drm-vc4-Correct-pixel-order-for-DSI0.patch bcm27xx: 950-0436-drm-vc4-Register-dsi0-as-the-correct-vc4-encoder-typ.patch bcm27xx: 950-0437-drm-vc4-Fix-dsi0-interrupt-support.patch bcm27xx: 950-0438-drm-vc4-Add-correct-stop-condition-to-vc4_dsi_encode.patch bcm27xx: 950-0443-drm-vc4-Fix-timings-for-interlaced-modes.patch bcm27xx: 950-0445-drm-vc4-Fix-margin-calculations-for-the-right-bottom.patch bcm27xx: 950-0475-drm-vc4-Reset-HDMI-MISC_CONTROL-register.patch bcm27xx: 950-0476-drm-vc4-Release-workaround-buffer-and-DMA-in-error-p.patch bcm27xx: 950-0477-drm-vc4-Correct-DSI-divider-calculations.patch bcm27xx: 950-0664-drm-vc4-dsi-Correct-max-divider-to-255-not-7.patch bcm53xx: 072-next-ARM_dts_BCM53015-add-mr26.patch mediatek: 920-linux-next-dts-mt7622-bpi-r64-fix-wps-button.patch Manually rebased following patches: bcm27xx: 950-0004-drm-vc4-hdmi-Remove-the-DDC-probing-for-status-detec.patch bcm27xx: 950-0700-net-phy-lan87xx-Decrease-phy-polling-rate.patch bcm27xx: 950-0711-drm-vc4-Rename-bridge-to-out_bridge.patch bcm27xx: 950-0713-drm-vc4-Remove-splitting-the-bridge-chain-from-the-d.patch bcm27xx: 950-0715-drm-vc4-Convert-vc4_dsi-to-using-a-bridge-instead-of.patch bcm27xx: 950-0787-vc4-drm-vc4_plane-Keep-fractional-source-coords-insi.patch bcm27xx: 950-0914-mmc-block-Don-t-do-single-sector-reads-during-recove.patch Runtime tested on turris-omnia and glinet-b1300. Tested-by: John Audia <therealgraysky@proton.me> [bcm2711/RPi4B, mt7622/RT3200] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* kernel: bump 5.10 to 5.10.137Petr Štetiar2022-08-233-4/+4
| | | | | | | | | | Removed following upstreamed patch: * bcm53xx: 081-next-ARM_dts_BCM53015-add-mr26.patch All other patches automagically rebased. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ipq806x: add missing scaling_available_frequencies for dedicated cpufreqChristian Marangi2022-08-212-2/+14
| | | | | | | | | | Add missing scaling_available_frequencies sysfs entry for dedicated cpufreq driver. This sysfs entry is not standard and each cpufreq driver needs to provide it and declare it in the cpufreq driver struct attr. Fixes: 5dbbefcbccc0 ("ipq806x: introduce dedicated krait cpufreq") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: Activate CONFIG_GPIOLIB in generic configurationHauke Mehrtens2022-08-102-2/+0
| | | | | | | | All targets expect the malta target already activate the CONFIG_GPIOLIB option. Move it to generic kernel configuration and also activate it for malta. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: bump 5.15 to 5.15.54John Audia2022-07-311-1/+1
| | | | | | | | | | All patches automatically rebased. Build system: x86_64 Build-tested: bcm2711/RPi4B, mt7622/RT3200 Run-tested: bcm2711/RPi4B, mt7622/RT3200 Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: bump 5.10 to 5.10.134John Audia2022-07-291-2/+2
| | | | | | All patches automatically rebased. Signed-off-by: John Audia <therealgraysky@proton.me>
* ipq806x: Archer VR2600: fix switch ports numberingChristian Lamparter2022-07-221-3/+3
| | | | | | | | The order of LAN ports shown in Luci is reversed compared to what is written on the case of the device. Fix the order so that they match. Fixes: #10275 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM]Tomasz Maciej Nowak2022-06-242-0/+4
| | | | | | | | | | | | This is now built-in, enable so it won't propagate on target configs. Link: https://lkml.org/lkml/2022/1/3/168 Fixes: 79e7a2552e89 ("kernel: bump 5.15 to 5.15.44") Fixes: 0ca93670693b ("kernel: bump 5.10 to 5.10.119") Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com> (Link to Kernel's commit taht made it built-in, CRYPTO_LIB_BLAKE2S[_ARM|_X86] as it's selectable, 5.10 backport) Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* kernel: backport mtd parser for Sercomm partitionsRafał Miłecki2022-06-191-5/+5
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: bump 5.10 to 5.10.116Hauke Mehrtens2022-06-062-2/+2
| | | | | | | | | | | | Removed upstreamed: generic/backport-5.10/900-regulator-consumer-Add-missing-stubs-to-regulator-co.patch All other patches automatically rebased. Compile-tested: lantiq/xrx200, armvirt/64 Run-tested: lantiq/xrx200, armvirt/64 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ipq-wifi: drop upstreamed board-2.binChristian Lamparter2022-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The BDFs for the: Aruba AP-303 ASUS RT-AC42U AVM FRITZ!Repeater 1200 Buffalo WTR-M2133HP Cell C RTL30VW D-Link DAP-2610 EnGenius EAP2200 EnGenius EMD1 EnGenius EMR3500 EnGenius EMR5000 EZVIZ CS-W3-WD1200G EUP Google Wifi Linksys MR8300 V1.0 Luma WRTQ-329ACN MobiPromo CM520-79F NEC Platforms WG2600HP3 Plasma Cloud PA1200 (updated version) Plasma Cloud PA2200 ZTE MF286D were upstreamed to the ath10k-firmware repository and landed in linux-firmware.git. Furthermore the BDFs for the: 8devices Habanero OpenMesh A62 OpenMesh A42 AVM FRITZ!Box 4040 have been updated. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* kernel: bump 5.15 to 5.15.38Rui Salvaterra2022-05-091-3/+3
| | | | | | | | | | | Deleted (upstreamed): mediatek/patches-5.15/120-10-v5.18-mtd-nand-fix-ecc-parameters-for-mt7622.patch [1] Other patches automatically rebased. [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.38&id=3ec920d755ae69c201b358e8d8e96c32f51145d8 Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
* ipq806x: add support for Arris TR4400 v2 / RAC2V1ARodrigo Balerdi2022-05-056-3/+449
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware specs: SoC: Qualcomm IPQ8065 (dual core Cortex-A15) RAM: 512 MB DDR3 Flash: 256 MB NAND, 32 MB NOR WiFi: QCA9983 2.4 GHz, QCA9984 5 GHz Switch: QCA8337 Ethernet: 5x 10/100/1000 Mbit/s USB: 1x USB 3.0 Type-A Buttons: WPS, Reset Power: 12 VDC, 2.5 A Ethernet ports: 1x WAN: connected to eth2 4x LAN: connected via the switch to eth0 and eth1 (eth0 is disabled in OEM firmware) MAC addresses (OEM and OpenWrt): fw_env @ 0x00 d4:ab:82:??:??:?a LAN (eth1) fw_env @ 0x06 d4:ab:82:??:??:?b WAN (eth2) fw_env @ 0x0c d4:ab:82:??:??:?c WLAN 2.4 GHz (ath1) fw_env @ 0x12 d4:ab:82:??:??:?d WLAN 5 GHz (ath0) fw_env @ 0x18 d4:ab:82:??:??:?e OEM usage unknown (eth0 in OpenWrt) OID d4:ab:82 is registered to: ARRIS Group, Inc., 6450 Sequence Drive, San Diego CA 92121, US More info: https://openwrt.org/inbox/toh/arris/tr4400_v2 IMPORTANT: This port requires moving the 'fw_env' partition prior to first boot to consolidate 70% of the usable space in flash into a contiguous partition. 'fw_env' contains factory-programmed MAC addresses, SSIDs, and passwords. Its contents must be copied to 'rootfs_1' prior to booting via initramfs. Note that the stock 'fw_env' partition will be wiped during sysupgrade. A writable 'stock_fw_env' partition pointing to the old, stock location is included in the port to help rolling back this change if desired. Installation: - Requires serial access and a TFTP server. - Fully boot stock, press ENTER, type in: mtd erase /dev/mtd21 dd if=/dev/mtd22 bs=128K count=1 | mtd write - /dev/mtd21 umount /config && ubidetach -m 23 && mtd erase /dev/mtd23 - Reboot and interrupt U-Boot by pressing a key, type in: set mtdids 'nand0=nand0' set mtdparts 'mtdparts=nand0:155M@0x6500000(mtd_ubi)' set bootcmd 'ubi part mtd_ubi && ubi read 0x44000000 kernel && bootm' env save - Setup TFTP server serving initramfs image as 'recovery.bin', type in: set ipaddr 192.168.1.1 set serverip 192.168.1.2 tftpboot recovery.bin && bootm - Use sysupgrade to install squashfs image. This port is based on work done by AmadeusGhost <amadeus@jmu.edu.cn>. Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> [add 5.15 changes for 0069-arm-boot-add-dts-files.patch] Signed-off-by: Sungbo Eo <mans0n@gorani.run>
* ipq806x: RT4230W: utilize nvmem-cells for ath10k caldataChukun Pan2022-04-162-17/+66
| | | | | | | | | | | Converts extraction entries from 11-ath10k-caldata into nvmem-cells in the individual board's device-tree file. Same as commit 2047058 ("ipq806x: utilize nvmem-cells for pre-calibration data") Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Reviewed-by: Ansuel Smith <ansuelsmth@gmail.com>
* ipq806x: Askey RT4230W REV6: enable onboard spi flashChukun Pan2022-04-161-0/+29
| | | | | | | | | | | There is a mr25h256 spi flash on this machine. From the mtd backup of the stock firmware, this spi flash is empty. [ 3.652745] spi_qup 1a280000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64 [ 3.653925] spi-nor spi0.0: mr25h256 (32 Kbytes) Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>