162 Commits

Author SHA1 Message Date
Shane Synan
be692b5939 ipq806x: revert SDC clock changes for NBG6817 MMC
Revert the SDC "CLK_SET_RATE_GATE" changes to the SDC clock regulator
structures.

See https://elinux.org/images/b/b8/Elc2013_Clement.pdf
> if ((clk->flags & CLK_SET_RATE_GATE) && clk->prepare_count) {
>
> For this particular clock, setting its rate is possible only if the
> clock is ungated (not yet prepared)

This fixes the MMC failing to initialize on newer ZyXEL NBG6817
hardware revisions with Kingston MMC.  Older revisions should
hopefully be unaffected.

Check MMC hardware details with:
cd /sys/block/mmcblk0/device/ && \
  tail -v cid date name manfid fwrev hwrev oemid rev

Known problematic MMC names (broken before this commit):
* M62704 (dated 12/2018) via myself
* M62704 (dated 11/2018) via Drake Stefani

Known unaffected MMC names (already working without this commit):
* S10004 (dated 12/2015) via slh

Now, the MMC properly initializes and later switches to high speed.

Thanks to:
* Ansuel for maintaining/help with the IPQ806x platform, kernel code
* slh for additional debugging and suggestions
* dwfreed for confirming newer MMC details, clock frequency
* robimarko for device driver debug printing help, clock debugging
* Drake for testing and confirmation with their own newer NBG6817
...and anyone else I missed!

Signed-off-by: Shane Synan <digitalcircuit36939@gmail.com>
Tested-by: Shane Synan <digitalcircuit36939@gmail.com>
2021-12-16 09:22:06 +08:00
AmadeusGhost
5c40fcd80e ipq806x: update some script paths 2021-12-09 10:25:20 +08:00
Beginner
0cd887f7b5
kernel: bump 5.10 to 5.10.83 (#8374)
Removed upstreamed:
    bcm53xx/patches-5.10/033-v5.16-0024-ARM-dts-BCM5301X-Fix-I2C-controller-interrupt.patch[1]
    bcm53xx/patches-5.10/033-v5.16-0025-ARM-dts-BCM5301X-Add-interrupt-properties-to-GPIO-no.patch[2]

All other patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.83&id=b2cd6fdcbe0a5cb44e4610a08cc58261d494a885
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.83&id=9db1d4a3c2700e1cc84c3d61199411d75c2a3ec6

Build system: x86_64*
Build-tested: bcm2711/RPi4B, ipq806x/R7800†
Run-tested: bcm2711/RPi4B, ipq806x/R7800†

* Had to revert 7c99085bd69742f66207d61e9f2da5ec4f8f9d2f in order to build
  (latest bump of ca-certificates)

† Had to revert 7f1edbd41295dff9f2127b169fbc086c0fb2c14e in order to build
  (binutils 2.37, https://bugs.openwrt.org/index.php?do=details&task_id=4149)

Signed-off-by: graysky <graysky@archlinux.us>

Co-authored-by: graysky <graysky@archlinux.us>
2021-12-03 12:10:21 +08:00
Hugo Yuan
5efd70f89f
ipq806x: Add Norton 518 support (#8330) 2021-11-27 18:15:26 +08:00
Beginner
31fc43272d
kernel: bump 5.10 to 5.10.82 (#8303)
* kernel: bump 5.10 to 5.10.81

Manually rebased:
    octeontx/patches-5.10/0004-PCI-add-quirk-for-Gateworks-PLX-PEX860x-switch-with-.patch

All other patches automatically rebased.

Signed-off-by: John Audia <graysky@archlinux.us>

Build system: x86_64
Build-tested: bcm2711/RPi4B, ipq806x/R7800
Run-tested: bcm2711/RPi4B, ipq806x/R7800

* kernel: bump 5.10 to 5.10.82

Removed upstreamed:
    bcm53xx/patches-5.10/033-v5.16-0014-ARM-dts-NSP-Fix-mpcore-mmc-node-names.patch

Manually rebased:
    ipq806x/patches-5.10/086-ipq8064-fix-duplicate-node.patch

All other patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <graysky@archlinux.us>

Co-authored-by: John Audia <graysky@archlinux.us>
2021-11-27 03:02:35 +08:00
Hugo Yuan
19a764717d
ipq806x: fix compile error (#8311) 2021-11-26 07:11:53 +08:00
Beginner
56de0725a4
kernel: bump 5.10 to 5.10.80 (#8280)
Deleted (upstreamed):
ath79/patches-5.10/921-serial-core-add-support-for-boot-console-with-arbitr.patch [1]
bcm53xx/patches-5.10/033-v5.15-0012-ARM-dts-BCM5301X-Fix-memory-nodes-names.patch [2]
lantiq/patches-5.10/0016-mtd-rawnand-xway-Keep-the-driver-compatible-with-on-.patch [3]
lantiq/patches-5.10/0110-MIPS-lantiq-dma-add-small-delay-after-reset.patch [4]
lantiq/patches-5.10/0111-MIPS-lantiq-dma-reset-correct-number-of-channel.patch [5]
lantiq/patches-5.10/0112-MIPS-lantiq-dma-fix-burst-length-for-DEU.patch [6]

Manually rebased:
ipq806x/patches-5.10/0065-arm-override-compiler-flags.patch

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=47462c5e600fbaffd755cd13dedd80d04e41ff83
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=2fde76df1885a6bec04317e457121326070450eb
[3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=9b366f5221d8aa64b22f35be137a5749326444ce
[4] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=5af57ce8a6155fe3e4270d28d171abf8903bebc0
[5] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=b92a5df2c7adc79a57481445f67de0c1c716581f
[6] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=6b72caabc47011d03f44064452b2c65e8ed18326

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-11-20 01:41:26 +08:00
Beginner
047c7ec182
kernel: bump 5.10 to 5.10.76 (#8136)
Deleted (upstreamed):
bcm27xx/patches-5.10/950-0145-xhci-add-quirk-for-host-controllers-that-don-t-updat.patch [1]

Manually rebased:
bcm27xx/patches-5.10/950-0355-xhci-quirks-add-link-TRB-quirk-for-VL805.patch
bcm53xx/patches-5.10/180-usb-xhci-add-support-for-performing-fake-doorbell.patch

Note: although automatically rebaseable, the last patch has been edited to avoid
conflicting bit definitions.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=b6f32897af190d4716412e156ee0abcc16e4f1e5

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-10-31 16:27:59 +08:00
AmadeusGhost
1c6254d794 Revert "ipq806x: skip MTDBLOCK error to speedup booting time by 5x"
This reverts commit 56e6c4b8660f6aa5709e6a2efe941c848e47de1a.
Fixes: #7927
2021-10-08 11:31:03 +08:00
Beginner
a9c5c7aa6b
kernel: bump 5.10 to 5.10.70 (#7976)
* kernel: bump 5.10 to 5.10.65

Manually refreshed:
generic/pending-5.10/800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch
bcm27xx/patches-5.10/950-0053-firmware-bcm2835-Support-ARCH_BCM270x.patch
bcm27xx/patches-5.10/950-0087-firmware-raspberrypi-Add-backward-compatible-get_thr.patch

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

* kernel: bump 5.10 to 5.10.66

No patches refreshed.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

* kernel: bump 5.10 to 5.10.67

Deleted (upstreamed):
bcm27xx/patches-5.10/950-0312-vc4_hdmi-Set-HD_CTL_WHOLSMP-and-HD_CTL_CHALIGN_SET.patch

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

* kernel: bump 5.10 to 5.10.68

Deleted (upstreamed):
generic/backport-5.10/610-v5.13-02-netfilter-Fix-fall-through-warnings-for-Clang.patch
generic/backport-5.10/792-v5.15-0001-net-dsa-b53-Fix-calculating-number-of-switch-ports.patch
generic/backport-5.10/792-v5.15-0002-net-dsa-b53-Set-correct-number-of-ports-in-the-DSA-s.patch
generic/backport-5.10/792-v5.15-0003-net-dsa-b53-Fix-IMP-port-setup-on-BCM5301x.patch
generic/backport-5.10/840-0001-PCI-of-Don-t-fail-devm_pci_alloc_host_bridge-on-miss.patch
generic/backport-5.10/840-0002-PCI-iproc-Fix-BCMA-probe-resource-handling.patch
generic/pending-5.10/498-mtd-mtdconcat-select-readwrite-function.patch

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

* kernel: bump 5.10 to 5.10.69

Patches automatically refreshed.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

* kernel: bump 5.10 to 5.10.70

Deleted (upstreamed):
bcm53xx/patches-5.10/181-Revert-USB-bcma-Add-a-check-for-devm_gpiod_get.patch

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-10-04 22:25:52 +08:00
Beginner
3a5b730796
kernel: bump 5.4 to 5.4.150 (#7981)
Manually rebased:
  generic/pending-5.4/800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch
  mvebu/patches-5.4/021-arm64-dts-marvell-armada-37xx-Move-PCIe-comphy-handl.patch

Removed upstreamed:
  layerscape/patches-5.4/819-uart-0004-MLK-18137-fsl_lpuart-Fix-loopback-mode.patch

All others updated automatically.

Compile-tested on: lantiq/xrx200, armvirt/64
Runtime-tested on: lantiq/xrx200, armvirt/64

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-10-03 10:04:41 +08:00
coolsnowwolf
56e6c4b866 ipq806x: skip MTDBLOCK error to speedup booting time by 5x 2021-09-18 00:32:44 +08:00
AmadeusGhost
f27a1742d6
ipq806x: add support for Arris RAC2V1A (#7680)
This commit add support for Arris RAC2V1A (aka TR4400-AC).

Hardware specs:
  SoC: Qualcomm IPQ8065
  RAM: 256 MB DDR3
  Flash: 512 MB NAND
  WiFi1: Qualcomm QCA9983 2.4 GHz
  WiFi2: Qualcomm QCA9984 5 GHz
  Ethernet1: AR8033 PHY -> Wan
  Ethernet2: QCA8337 Switch -> Lan 1~4
  LED: Status (red / blue)
  USB: 1x USB 3.0 Type-A
  Button: Reset, WPS
  Power: DC 12V,2.5A

Installation:
  Interrupt U-Boot, tftpboot initramfs image,
  than sysupgrade to openwrt.

Very thanks for asushugo's help.

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-08-20 01:36:28 +08:00
AmadeusGhost
129bfbf305
ipq806x: add support for askey rt4230w 256m nand version (#7595)
The difference between flashing:
  Interrupt U-Boot and run these commands:

  setenv bootcmd "setenv mtdids nand0=nand0 && set mtdparts
  mtdparts=nand0:0xDC00000@0x2400000(firmware) && ubi part firmware &&
  ubi read 0x44000000 kernel 0x6e0000 && bootm"
  saveenv
2021-08-06 18:07:10 +08:00
coolsnowwolf
ff042839f3 ipq806x: fix boot pages ecc I/O error cause booting slow issue 2021-07-31 17:09:57 +08:00
coolsnowwolf
8e247edca9 ipq806x: fix E8350 web upgrade again 2021-07-31 16:49:38 +08:00
coolsnowwolf
0c928423f6 Revert "iwinfo: bump version"
This reverts commit 8c55064b3aac70c15f1410bbaefaa14e9b401688.
2021-07-31 16:48:06 +08:00
coolsnowwolf
8c55064b3a iwinfo: bump version 2021-07-30 15:13:53 +08:00
AmadeusGhost
9f569564f3
ipq806x: rt4230w: import some fixes from upstream pr (#7530)
Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2021-07-26 18:09:50 +08:00
coolsnowwolf
b517f4f273 ipq806x: resize D7800 ubi partition 2021-07-25 18:22:21 +08:00
coolsnowwolf
3977f16214 ipq807x: add autocore-arm and some packages to target 2021-07-25 17:53:08 +08:00
coolsnowwolf
1c3806e11f
Update qcom-ipq8065-rt4230w-rev6.dts 2021-07-25 13:38:42 +08:00
coolsnowwolf
c366b45ec9 ipq806x: fix Linksys E8350 web sysupgrade 2021-07-24 22:45:08 +08:00
coolsnowwolf
6a18e18416 ipq806x: add quantenna 5G wifi support for E8350/R7500v1 2021-07-23 16:59:44 +08:00
coolsnowwolf
0551b74b0a ipq806x: scaling mini freq set to 600mhz 2021-07-23 13:00:36 +08:00
coolsnowwolf
47cdbf28f5 ipq806x: fix nss offload for Linksys E8350 2021-07-23 12:30:17 +08:00
coolsnowwolf
ecd242eddd ipq806x: fix linksys e8350 boot 2021-07-23 11:35:05 +08:00
coolsnowwolf
65068ed984 Revert "treewide: convert mtd-mac-address-increment* to generic implementation"
This reverts commit 82d9b3e2c48a012278fef883dd72ca6db706ba09.
2021-07-23 00:29:52 +08:00
coolsnowwolf
82d9b3e2c4 treewide: convert mtd-mac-address-increment* to generic implementation 2021-07-23 00:20:32 +08:00
coolsnowwolf
1857399288 ipq806x: fix linksys E8350 dts 2021-07-22 18:58:43 +08:00
coolsnowwolf
39dfd98c1b ipq806x: fix Netgear D7800 ubi and RAM 2021-07-22 18:49:03 +08:00
coolsnowwolf
28c936c003 Revert "ipq806x: resize Netgear D7800 ubi and RAM"
This reverts commit d09f4409919441fb0956b72f3f23f5fbcb91b4a9.
2021-07-22 18:42:13 +08:00
coolsnowwolf
d09f440991 ipq806x: resize Netgear D7800 ubi and RAM 2021-07-22 18:07:53 +08:00
coolsnowwolf
cda8c08d33 ipq806x: fix linksys E8350 factory header 2021-07-22 14:08:24 +08:00
coolsnowwolf
b4e219dc4b Revert "ipq806x: fix Linksys E8350 factory flash"
This reverts commit 0ac49b89dec02763438eab6d67464a7c7303a643.
2021-07-22 14:01:25 +08:00
coolsnowwolf
0a7c9813a9 ipq806x: add NSS HW-accelerated QOS traffic shaping support 2021-07-22 00:22:15 +08:00
coolsnowwolf
0ac49b89de ipq806x: fix Linksys E8350 factory flash 2021-07-21 12:22:19 +08:00
coolsnowwolf
a9f078bb1a Merge branch 'master' of https://github.com/coolsnowwolf/lede 2021-07-20 20:06:43 +08:00
coolsnowwolf
112c1eee2d ipq806x: Linksys E8350 add NSS Hardware Offloading support 2021-07-20 20:06:35 +08:00
Hugo Yuan
fb430b48e7
ipq806x: RT4230W add NSS Hardware Offloading support (#7452) 2021-07-20 10:47:57 +00:00
coolsnowwolf
54efd56808 ipq806x: rezise R7500 ubi partion from 22MB to 104MB 2021-07-19 17:19:07 +08:00
coolsnowwolf
f5e7d6cec5 ipq806x: Add support for Linksys E8350 2021-07-19 09:19:48 +08:00
Hugo Yuan
25369be255
ipq806x: Rename Netgear XR500 (#7415) 2021-07-17 21:00:17 +08:00
coolsnowwolf
6a7d00deab ipq806x: add Netgear XR500 support 2021-07-17 20:25:49 +08:00
coolsnowwolf
2c6266dbf9 ipq806x: add luci-app-advanced-reboot support for EA7500 v1/EA8500 2021-07-16 18:47:43 +08:00
coolsnowwolf
ed1a6992c8 ipq806x: enable 64-bit time 2021-07-15 16:24:45 +08:00
coolsnowwolf
429c273e1b ipq806x: use schedutil governor replace of ondemand 2021-07-15 16:20:54 +08:00
coolsnowwolf
a0ffc4c4e0 ipq806x: add smallbuffers profile for EA7500 v1 2021-07-15 12:19:46 +08:00
coolsnowwolf
e9991bd82f ipq806x: fix lan nss mdio for EA7500 v1/EA8500 2021-07-15 11:58:38 +08:00
AmadeusGhost
89a8e0d652
ipq806x: fix nss frequency on ipq8062 (#7360) 2021-07-12 13:59:14 +00:00