[PATCH 5/5] mediatek: fix bpi-r64 default switch config

2021-02-24 Thread Oskari Lemmela
bananapi r64 uses mediatek,mt753x gsw switch device. configure network defaults accordingly. Signed-off-by: Oskari Lemmela --- target/linux/mediatek/image/mt7622.mk | 6 -- .../linux/mediatek/mt7622/base-files/etc/board.d/02_network | 3 ++- 2 files changed, 6

[PATCH 1/5] mediatek: mt7622: add missing CONFIG_MMC_BLK

2021-02-24 Thread Oskari Lemmela
CONFIG_MMC_BLK enables block devices for SD/eMMC Signed-off-by: Oskari Lemmela --- target/linux/mediatek/mt7622/config-5.4 | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/mediatek/mt7622/config-5.4 b/target/linux/mediatek/mt7622/config-5.4 index 1b0b1e36a6..30afb4ebe2 100644

[PATCH 2/5] mediatek: mt7622: enable support for f2fs overlay

2021-02-24 Thread Oskari Lemmela
f2fs filesystem and loop device support are needed for f2fs overlay over squashfs. Signed-off-by: Oskari Lemmela --- target/linux/mediatek/mt7622/config-5.4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/linux/mediatek/mt7622/config-5.4 b/target/linux/mediatek/mt7622/config-5.4

[PATCH 3/5] mediatek: mt7622: fix bpi-r64 emmc f2fs overlay

2021-02-24 Thread Oskari Lemmela
f2fs tools are needed for generating f2fs overlay. vfat modules are used for recovery mounting. Fixes: f72a2b004c3 ("mediatek: add bpi-r64 emmc support") Signed-off-by: Oskari Lemmela --- target/linux/mediatek/image/mt7622.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) di

[PATCH 0/5] mediatek: bananapi-bpi-r64 fixes

2021-02-24 Thread Oskari Lemmela
mt7622-bananapi-bpi-r64.dts uses gsw switch device. Change default network config to include switch device. Oskari Lemmela (5): mediatek: mt7622: add missing CONFIG_MMC_BLK mediatek: mt7622: enable support for f2fs overlay mediatek: mt7622: fix bpi-r64 emmc f2fs overlay mediatek: mt7622

[PATCH 4/5] mediatek: mt7622-bananapi-bpi-r64-rootdisk rebase to upstream dts

2021-02-24 Thread Oskari Lemmela
simplify maintaining mt7622-bananapi-bpi-r64-rootdisk.dts by storing only differences between upstream dts Signed-off-by: Oskari Lemmela --- .../dts/mt7622-bananapi-bpi-r64-rootdisk.dts | 574 +- 1 file changed, 1 insertion(+), 573 deletions(-) diff --git a/target/linux

[PATCH] mediatek: drop gsw patch from mt7622-bananapi-bpi-r64

2021-02-24 Thread Oskari Lemmela
use upstream DSA solution to match current bananapi-bpi-r64 network default settings. Signed-off-by: Oskari Lemmela --- .../patches-5.4/0005-dts-mt7622-add-gsw.patch | 53 --- 1 file changed, 53 deletions(-) diff --git a/target/linux/mediatek/patches-5.4/0005-dts-mt7622-add

[PATCH 3/6] firmware-utils/ptgen: add support for hybrid MBR

2021-03-03 Thread Oskari Lemmela
Adding -H option copies partition to MBR after pmbr entry. Max 3 partitions can be copied to MBR. Hybrid MBR is needed only in special cases. For example mt7622 SD card boot needs MBR entry with boot flag enabled. Signed-off-by: Oskari Lemmela --- tools/firmware-utils/src/ptgen.c | 39

[PATCH 2/6] firmware-utils/ptgen: fix partition guid and name

2021-03-03 Thread Oskari Lemmela
guid and name function should be called before storing partition info. Signed-off-by: Oskari Lemmela --- tools/firmware-utils/src/ptgen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/firmware-utils/src/ptgen.c b/tools/firmware-utils/src/ptgen.c index a55f2e7a14

[PATCH 0/6] firmware-utils/ptgen: improvements

2021-03-03 Thread Oskari Lemmela
- Clean compile warnings - Fix GPT guid and EFI System Partition naming - Add support for hybrid MBR partitions - Use LBA addressing for GPT and don't leave gaps between partitions. - use hybrid partitions for mt7622 image generation Oskari Lemmela (6): firmware-utils/ptgen

[PATCH 4/6] firmware-utils/ptgen: change GPT to LBA addressing

2021-03-03 Thread Oskari Lemmela
Do not align partitions with sectors. Only kb align for GPT is supported. Use 254 heads and 63 sectors for PMBR. Signed-off-by: Oskari Lemmela --- tools/firmware-utils/src/ptgen.c | 33 +++- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/tools

[PATCH 6/6] mediatek: mt7622: change image generation

2021-03-03 Thread Oskari Lemmela
- set only one EFI system partition - use shorter path for DEVICE_DTS file Signed-off-by: Oskari Lemmela --- target/linux/mediatek/image/mt7622.mk | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/target/linux/mediatek/image/mt7622.mk b/target/linux/mediatek

[PATCH 1/6] firmware-utils/ptgen: fix compile warnings

2021-03-03 Thread Oskari Lemmela
remove extra arguments from printf message Signed-off-by: Oskari Lemmela --- tools/firmware-utils/src/ptgen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/firmware-utils/src/ptgen.c b/tools/firmware-utils/src/ptgen.c index 93c2d32a3f..a55f2e7a14 100644 --- a

[PATCH 5/6] mediatek: mt7622: use ptgen generated MBR header

2021-03-03 Thread Oskari Lemmela
mt7622 uses MBR partition for booting from SD card. Add hybrid MBR entry with boot flag after PMBR entry. Signed-off-by: Oskari Lemmela --- target/linux/mediatek/image/mt7622.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/mediatek/image/mt7622.mk b

[PATCH] build: artifacts add dependency for builded images

2021-03-21 Thread Oskari Lemmela
Add possibility to use images and initramfs in artifacts. Signed-off-by: Oskari Lemmela --- include/image.mk | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/image.mk b/include/image.mk index 29df0938bc..8b7b2b9740 100644 --- a/include/image.mk +++ b/include

[PATCH 2/4] mediatek: fix writing bananapi bpi-r64 env

2021-04-05 Thread Oskari Lemmela
use generic function to get env partition Fixes: 7043e4334f0 ("mediatek: mt7622: improve sysupgrade on MMC") Signed-off-by: Oskari Lemmela --- package/boot/uboot-envtools/files/mediatek | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/boot/uboot-envt

[PATCH 3/4] mediatek: mt7622: add ubi support for bananapi bpi-r64

2021-04-05 Thread Oskari Lemmela
Signed-off-by: Oskari Lemmela --- package/boot/uboot-envtools/files/mediatek| 14 ++-- .../mt7622/base-files/lib/upgrade/platform.sh | 34 +-- 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/package/boot/uboot-envtools/files/mediatek b/package/boot/uboot

[PATCH 4/4] mediatek: mt7622: add snand support for bananapi bpi-r64

2021-04-05 Thread Oskari Lemmela
Signed-off-by: Oskari Lemmela --- package/boot/uboot-mediatek/Makefile | 12 + .../403-add-bananapi_bpi-r64_defconfigs.patch | 275 -- .../404-add-bananapi-bpi-r64-snand.patch | 34 +++ target/linux/mediatek/image/mt7622.mk | 6 +- .../115-dts-bpi64-add

[PATCH 0/4] add serial nand support for bananapi bpi-r64

2021-04-05 Thread Oskari Lemmela
Some BananaPi BPI-R64 boards have W25N01GV 128MB serial NAND attached to SPI bus. Add support for installing OpenWRT to it. Serial NAND bootloader files are added to SD card image. Bootmenu entry provides easy install process. Oskari Lemmela (4): mediatek: bpi-r64: use separate partition for

[PATCH 1/4] mediatek: bpi-r64: use separate partition for emmc bootloader

2021-04-05 Thread Oskari Lemmela
emmc booloader is stored to separate partition. fip size is increased to 2MB. Signed-off-by: Oskari Lemmela --- .../403-add-bananapi_bpi-r64_defconfigs.patch | 8 target/linux/mediatek/image/mt7622.mk | 13 +++-- 2 files changed, 11 insertions(+), 10

[PATCH v2 1/4] mediatek: bpi-r64: use separate partition for emmc bootloader

2021-04-10 Thread Oskari Lemmela
eMMC booloader is stored to separate partition. FIP size is increased to 2MB. Signed-off-by: Oskari Lemmela --- .../403-add-bananapi_bpi-r64_defconfigs.patch | 8 target/linux/mediatek/image/mt7622.mk | 13 +++-- 2 files changed, 11 insertions(+), 10

[PATCH v2 0/4] add serial nand support for bananapi bpi-r64

2021-04-10 Thread Oskari Lemmela
. Changes after v1: - rebase to current master - reorder ubi volumes. fit partition is always with index 2 - rename bl2 and fip images - remove default 32MB value for overlay ubi partition - make nand upgrade as default one - fix indentations Oskari Lemmela (4): mediatek: bpi-r64: use separate

[PATCH v2 3/4] mediatek: mt7622: add ubi support for bananapi bpi-r64

2021-04-10 Thread Oskari Lemmela
Default to nand upgrade if root device is not mmc block device. Change default uboot environment same way. Signed-off-by: Oskari Lemmela --- package/boot/uboot-envtools/files/mediatek| 14 ++-- .../mt7622/base-files/lib/upgrade/platform.sh | 34 +-- 2 files changed, 34

[PATCH v2 2/4] mediatek: fix writing bananapi bpi-r64 env

2021-04-10 Thread Oskari Lemmela
Use generic functions to get env partition. Fixes: 7043e4334f0 ("mediatek: mt7622: improve sysupgrade on MMC") Signed-off-by: Oskari Lemmela --- package/boot/uboot-envtools/files/mediatek | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/boot/uboo

[PATCH v2 4/4] mediatek: mt7622: add snand support for bananapi bpi-r64

2021-04-10 Thread Oskari Lemmela
Some of bpi-r64 boards have serial NAND attached to SPI bus. Add SD card image support for installing openwrt to it. Separate preloader and uboot images for snand are generated. Signed-off-by: Oskari Lemmela --- package/boot/uboot-mediatek/Makefile | 12 + .../403-add-bananapi_bpi

[OpenWrt-Devel] [PATCH 2/9] sunxi: add spi flash support to kernel

2019-01-14 Thread Oskari Lemmela
Some of sunxi devices have onboard SPI flash. Enable SPI NOR support and MTD fit split in kernel config. Signed-off-by: Oskari Lemmela --- target/linux/sunxi/config-4.14 | 9 - target/linux/sunxi/config-4.19 | 9 - 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a

[OpenWrt-Devel] [PATCH 1/9] sunxi: add a64 watchdog support

2019-01-14 Thread Oskari Lemmela
Backport A64 watchdog DTS change to 4.14 kernel. Signed-off-by: Oskari Lemmela --- ...arm64-dts-allwinner-a64-Add-watchdog.patch | 54 +++ 1 file changed, 54 insertions(+) create mode 100644 target/linux/sunxi/patches-4.14/040-arm64-dts-allwinner-a64-Add-watchdog.patch diff

[OpenWrt-Devel] [PATCH 0/9] sunxi: add support for pine64-lts

2019-01-14 Thread Oskari Lemmela
-boot image can be written to SPI flash via booting from SD card and then writing u-boot-with-spl.bin to /dev/mtd0. Oskari Lemmela (9): sunxi: add a64 watchdog support sunxi: add spi flash support to kernel sunxi: spi flash dts changes sunxi: switch to lzma compressed fit image sunxi

[OpenWrt-Devel] [PATCH 3/9] sunxi: spi flash dts changes

2019-01-14 Thread Oskari Lemmela
Backport A64 SPI flash DTS changes to 4.14 kernel. Add Openwrt specific flash partitions to Sopine. Signed-off-by: Oskari Lemmela --- ...80-arm64-allwinner-a64-add-SPI-nodes.patch | 83 +++ ...ner-sun50i-a64-Add-spi-flash-node-fo.patch | 41 + ...a64-sopine-Add-Sopine

[OpenWrt-Devel] [PATCH 4/9] sunxi: switch to lzma compressed fit image

2019-01-14 Thread Oskari Lemmela
Use LZMA compressed fit image to load kernel and dtb. Fit image can be used load kernel and dtb from SPI flash. Signed-off-by: Oskari Lemmela --- package/boot/uboot-sunxi/uEnv-a64.txt | 5 ++- package/boot/uboot-sunxi/uEnv-default.txt | 5 ++- package/boot/uboot-sunxi/uEnv-pangolin.txt

[OpenWrt-Devel] [PATCH 8/9] uboot-envtools: sunxi: add support for the pine64 lts

2019-01-14 Thread Oskari Lemmela
Add support for reading and writing environment stored in SPI flash device. Signed-off-by: Oskari Lemmela --- package/boot/uboot-envtools/files/sunxi | 33 + 1 file changed, 33 insertions(+) create mode 100644 package/boot/uboot-envtools/files/sunxi diff --git a

[OpenWrt-Devel] [PATCH 7/9] uboot-sunxi: move pine64 lts env to spi flash

2019-01-14 Thread Oskari Lemmela
Patches to move pine64 LTS environment to SPI flash device. Signed-off-by: Oskari Lemmela --- ...-move-env-to-spi-flash-in-pine64-lts.patch | 27 + ...efines-if-config-env-is-in-spi-flash.patch | 57 +++ 2 files changed, 84 insertions(+) create mode 100644 package/boot

[OpenWrt-Devel] [PATCH 9/9] sunxi: sysupgrade: add support for pine64 lts spi flash

2019-01-14 Thread Oskari Lemmela
: Oskari Lemmela --- .../sunxi/base-files/lib/upgrade/platform.sh | 30 ++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/target/linux/sunxi/base-files/lib/upgrade/platform.sh b/target/linux/sunxi/base-files/lib/upgrade/platform.sh index 88ef4790e9..436e4d8517

[OpenWrt-Devel] [PATCH 6/9] uboot-sunxi: add spi driver for pine64 lts

2019-01-14 Thread Oskari Lemmela
Add support for SPI driver and booting from SPI. Signed-off-by: Oskari Lemmela --- ...i-allwinner-spi-driver-sun6i-support.patch | 311 ++ ...er-sunxi-fix-spurious-timeout-issues.patch | 30 ++ .../302-sunxi-add-spi-flash-bootcmd.patch | 81 + ...03-sunxi-dt-a64-sopine

[OpenWrt-Devel] [PATCH 5/9] sunxi: add support for pine64 lts

2019-01-14 Thread Oskari Lemmela
CPU: R18 High Performance Quad-core 64-bit Cortex-A53 GPU: Mali400MP2 OpenGL ES 2.0/1.1/1.0, OpenVG 1.1, EGL Memory: 2GB LPDDR3 (shared with GPU) Onboard Storage: TF card / NOR flash(16MB) Onboard Network: 1000M/100M Ethernet RJ45 Signed-off-by: Oskari Lemmela --- package/boot/uboot-sunxi

[OpenWrt-Devel] [PATCH] sunxi: fix: A64 unstable timer

2019-01-27 Thread Oskari Lemmela
Backport A64 unstable timer patches from linux 5.1 Signed-off-by: Oskari Lemmela --- target/linux/sunxi/cortexa53/config-4.14 | 1 + target/linux/sunxi/cortexa53/config-4.19 | 1 + ...arch_counter_get_cntpct-to-read-the-.patch | 125 + ...-for-Allwinner-A64-timer

[PATCH 3/3] uqmi: add more diagnostics commands

2021-10-24 Thread Oskari Lemmela
Useful diagnostic commands for measuring connection info. Implemented cell location, carrier aggregation and MIMO chain info in easily parsable json format. Compressed package size increased by 9kB. Signed-off-by: Oskari Lemmela --- commands-nas.c | 663

[PATCH 1/3] uqmi: update code generator

2021-10-24 Thread Oskari Lemmela
Add support for common-refs and double arrays. Fix error message line and type parsing. Signed-off-by: Oskari Lemmela --- data/gen-code.pl | 11 +-- data/gen-common.pm | 10 ++ data/gen-error-list.pl | 2 +- data/gen-header.pl | 5 - 4 files changed, 24

[PATCH 0/3] uqmi: sync libqmi and add more diagnostic commands

2021-10-24 Thread Oskari Lemmela
First patch updates dynamic code generator to handle newer data from libqmi project. After data is synced from libqmi project, more connection diagnostic commands are added to uqmi. Oskari Lemmela (3): uqmi: update code generator uqmi: sync data from libqmi project uqmi: add more

[PATCH 1/3] generic: platform/mikrotik: make soft_config writable without 4K sectors

2021-12-20 Thread Oskari Lemmela
Make soft_config writable in all cases. Performing soft_config commit will fail if mtd partition is not writable. Signed-off-by: Oskari Lemmela --- .../drivers/platform/mikrotik/rb_softconfig.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/target

[PATCH 2/3] mikrotik: enable variable size erase

2021-12-20 Thread Oskari Lemmela
Add support for variable size erase blocks. Enable it to all targets which has mikrotik targets. Signed-off-by: Oskari Lemmela --- target/linux/ath79/mikrotik/config-default| 1 + target/linux/generic/config-5.10 | 1 + ...support-for-minor-aligned-partitions.patch | 397

[PATCH 0/3] mikrotik: make soft_config partition writable

2021-12-20 Thread Oskari Lemmela
soft_config read-only, so changing it to writable. Variable size erase blocks could be used to replace MTD_SPI_NOR_USE_4K_SECTORS_LIMIT patch too. Oskari Lemmela (3): generic: platform/mikrotik: make soft_config writable without 4K sectors mikrotik: enable variable size erase mikrotik: make

[PATCH 3/3] mikrotik: make soft_config writable

2021-12-20 Thread Oskari Lemmela
Parent mtd partition needs to be writable Signed-off-by: Oskari Lemmela --- target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5n.dtsi | 1 - target/linux/ath79/dts/qca9533_mikrotik_routerboard-16m.dtsi | 1 - .../ath79/dts/qca9556_mikrotik_routerboard-wap-g-5hact2hnd.dts | 1

[RFC PATCH 1/5] ath79: mikrotik: change to DSA driver

2021-12-26 Thread Oskari Lemmela
Current mikrotik ath79 devices do not use switching devices. Change the kernel config options to the DSA driver. Signed-off-by: Oskari Lemmela --- target/linux/ath79/mikrotik/config-default | 4 1 file changed, 4 insertions(+) diff --git a/target/linux/ath79/mikrotik/config-default b

[RFC PATCH 0/5] add support mikrotik routerboard hex poe

2021-12-26 Thread Oskari Lemmela
should be upstremable. Only thing is two non-standard sysfs controls (force_enable, port_state). They are also possible to implement as debugfs files if they are not accepted by the upstream. --- I used the preinit script to rename eth1 interface to sfp. Is there a better way to do this? Oskari

[RFC PATCH 2/5] ath79: add support for MikroTik RouterBOARD 960PGS (hEx PoE)

2021-12-26 Thread Oskari Lemmela
: TFTP boot initramfs image and then perform sysupgrade. Follow common MikroTik procedure as in https://openwrt.org/toh/mikrotik/common. Signed-off-by: Oskari Lemmela --- .../qca9557_mikrotik_routerboard-960pgs.dts | 279 ++ target/linux/ath79/image/mikrotik.mk | 9

[RFC PATCH 5/5] ath79: mikrotik: add poe to the hex poe board

2021-12-26 Thread Oskari Lemmela
Enable POE control to the mikrotik hex poe Signed-off-by: Oskari Lemmela --- .../qca9557_mikrotik_routerboard-960pgs.dts | 31 +++ 1 file changed, 31 insertions(+) diff --git a/target/linux/ath79/dts/qca9557_mikrotik_routerboard-960pgs.dts b/target/linux/ath79/dts

[RFC PATCH 3/5] ath79: ar934x: fix SPI driver delays

2021-12-26 Thread Oskari Lemmela
Backport ar934x SPI driver delay fixes Signed-off-by: Oskari Lemmela --- ...-ar934x-fix-transfer-and-word-delays.patch | 30 +++ 1 file changed, 30 insertions(+) create mode 100644 target/linux/ath79/patches-5.10/401-spi-ar934x-fix-transfer-and-word-delays.patch diff --git a

[RFC PATCH 4/5] ath79: mikrotik: add poe driver

2021-12-26 Thread Oskari Lemmela
Add a hwmon-based driver to the mikrotik POE controllers. Signed-off-by: Oskari Lemmela --- .../linux/ath79/files/drivers/hwmon/rbpoe.c | 260 +++ .../linux/ath79/files/drivers/hwmon/rbpoe.h | 25 ++ .../ath79/files/drivers/hwmon/rbpoeport.c | 315 ++ target

[PATCH v2 1/3] generic: platform/mikrotik: allow soft_config writes without 4k sectors

2022-01-04 Thread Oskari Lemmela
Always allow writing to the soft_config partition. The kernel sets the partition to read-only mode if the mtd device does not support 4k erase size. Signed-off-by: Oskari Lemmela Tested-by: Stefan Hellermann --- .../drivers/platform/mikrotik/rb_softconfig.c | 17 +++-- 1 file

[PATCH v2 3/3] mikrotik: make soft_config writable

2022-01-04 Thread Oskari Lemmela
The parent partition must be writable. Otherwise, all child partitions are in read-only mode. Signed-off-by: Oskari Lemmela Tested-by: Stefan Hellermann --- target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5n.dtsi | 1 - target/linux/ath79/dts/qca9533_mikrotik_routerboard-16m.dtsi

[PATCH v2 0/3] mikrotik: make soft_config partition writable

2022-01-04 Thread Oskari Lemmela
read-only, so changing it to writable. v2 changes: - Collect Tested-by tags - Reword commit messages Oskari Lemmela (3): generic: platform/mikrotik: allow soft_config writes without 4k sectors mikrotik: add support for mtd erase of varying sizes mikrotik: make soft_config writable

[PATCH v2 2/3] mikrotik: add support for mtd erase of varying sizes

2022-01-04 Thread Oskari Lemmela
Add support for variable size erase blocks. Enable it in all targets with mikrotik devices. Signed-off-by: Oskari Lemmela Tested-by: Stefan Hellermann --- target/linux/ath79/mikrotik/config-default| 1 + target/linux/generic/config-5.10 | 1 + ...support-for-minor-aligned

[PATCH] uqmi: add support for get operating mode

2022-01-25 Thread Oskari Lemmela
Currently only the set operation is supported. Add support for getting the current operating mode. Signed-off-by: Henrik Ginstmark Signed-off-by: Oskari Lemmela --- commands-dms.c | 46 +- commands-dms.h | 2 ++ 2 files changed, 35 insertions(+), 13

[PATCH 1/5] ath79: mikrotik: change to qca8k DSA driver

2022-01-25 Thread Oskari Lemmela
Current mikrotik ath79 devices do not use switch drivers. Enable the QCA8K driver and disable the old AR8126 phy. Signed-off-by: Oskari Lemmela --- target/linux/ath79/mikrotik/config-default | 4 1 file changed, 4 insertions(+) diff --git a/target/linux/ath79/mikrotik/config-default b

[PATCH 0/5] ath79: add support for routerboard 960pgs

2022-01-25 Thread Oskari Lemmela
fixes are required for the poe controller. Oskari Lemmela (5): ath79: mikrotik: change to qca8k DSA driver ath79: add support for MikroTik RouterBOARD 960PGS (hEx PoE) ath79: fix ar934x spi driver delays ath79: mikrotik: add poe driver ath79: mikrotik: add poe to hex poe board

[PATCH 3/5] ath79: fix ar934x spi driver delays

2022-01-25 Thread Oskari Lemmela
Backport spi driver delay fixes from the 5.17-rc1 kernel. Signed-off-by: Oskari Lemmela --- ...-ar934x-fix-transfer-and-word-delays.patch | 32 + ...3-v5.17-spi-ar934x-fix-transfer-size.patch | 67 +++ 2 files changed, 99 insertions(+) create mode 100644 target/linux

[PATCH 2/5] ath79: add support for MikroTik RouterBOARD 960PGS (hEx PoE)

2022-01-25 Thread Oskari Lemmela
: TFTP boot initramfs image and then perform sysupgrade. Follow common MikroTik procedure as in https://openwrt.org/toh/mikrotik/common. Signed-off-by: Oskari Lemmela --- .../qca9557_mikrotik_routerboard-960pgs.dts | 279 ++ target/linux/ath79/image/mikrotik.mk | 9

[PATCH 4/5] ath79: mikrotik: add poe driver

2022-01-25 Thread Oskari Lemmela
Add hwmon based driver for mikrotik POE controllers. Signed-off-by: Oskari Lemmela --- .../linux/ath79/files/drivers/hwmon/rbpoe.c | 256 ++ .../linux/ath79/files/drivers/hwmon/rbpoe.h | 25 ++ .../ath79/files/drivers/hwmon/rbpoeport.c | 311 ++ target/linux

[PATCH 5/5] ath79: mikrotik: add poe to hex poe board

2022-01-25 Thread Oskari Lemmela
Enable poe controller to hex poe board. Signed-off-by: Oskari Lemmela --- .../qca9557_mikrotik_routerboard-960pgs.dts | 31 +++ 1 file changed, 31 insertions(+) diff --git a/target/linux/ath79/dts/qca9557_mikrotik_routerboard-960pgs.dts b/target/linux/ath79/dts