Re: [RFC PATCH v2 3/3] ramips: add RT6855A SoC Linux support patches

2020-12-28 Thread Rafaël Carré
Hi, On 12/28/20 14:17, Adrian Schmutzler wrote: -Original Message- From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] On Behalf Of Rafaël Carré Sent: Montag, 28. Dezember 2020 01:25 To: openwrt-devel@lists.openwrt.org Cc: Rafaël Carré Subject: [RFC PATCH v2 3/3

[RFC PATCH v2 3/3] ramips: add RT6855A SoC Linux support patches

2020-12-27 Thread Rafaël Carré
TODO: the spi-mt7621 patches will break support for other targets Signed-off-by: Rafaël Carré --- Changes since v1: - Change sysc address, this seems to make resetting devices possible - Remove watchdog driver as it is buggy and maybe not needed? - Use pci-rt3883.c rather than vendor's

[RFC PATCH v2 1/3] ramips: add support for the RT6855A SoC

2020-12-27 Thread Rafaël Carré
Add Linksys WAP300N target Signed-off-by: Rafaël Carré --- Changes since v1: - Use OpenWrt .dts (CONFIG_MIPS_RAW_APPENDED_DTB) - clean up rt6855a.mk - add case/esac in /etc/board.d/* - tidy up config-5.4 target/linux/ramips/Makefile | 2 +- target/linux/ramips/dts

[RFC PATCH v2 2/3] ramips: add RT6855A support to ethernet driver

2020-12-27 Thread Rafaël Carré
Signed-off-by: Rafaël Carré --- Changes since v1: - Extend soc_rt3050.c rather than adding a new file - Use .compatible rather than #ifdef in esw_rt3050.c .../files/drivers/net/ethernet/ralink/Kconfig | 2 +- .../drivers/net/ethernet/ralink/esw_rt3050.c | 61 --- .../drivers

[RFC PATCH v2] RT6855A / Linksys WAP300N support

2020-12-27 Thread Rafaël Carré
Hello, Here is a v2 of the patchset, I worked a bit on PCI, and tried to answer most if not all feedback from Chuanhong Guo. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [PATCH 3/3] ramips: add RT6855A SoC Linux support patches

2020-12-27 Thread Rafaël Carré
Hi, On 12/24/20 03:39, Chuanhong Guo wrote: On Thu, Dec 24, 2020 at 12:52 AM Rafaël Carré wrote: diff --git a/target/linux/ramips/patches-5.4/304-HACK-spi-mt7621-rt6855a-fix.patch b/target/linux/ramips/patches-5.4/304-HACK-spi-mt7621-rt6855a-fix.patch new file mode 100644 index 00

Re: [PATCH 3/3] ramips: add RT6855A SoC Linux support patches

2020-12-24 Thread Rafaël Carré
Hi, On 12/24/20 03:12, Chuanhong Guo wrote: Hi! On Thu, Dec 24, 2020 at 12:52 AM Rafaël Carré wrote: TODO: the spi-mt7621 patches will break support for other targets And please try your best to finish the TODOs before sending them for review. Or send it as RFC instead. No problem

Re: [PATCH 2/3] ramips: add RT6855A support to ethernet driver

2020-12-24 Thread Rafaël Carré
Hello, On 12/24/20 03:52, Chuanhong Guo wrote: Hi! On Thu, Dec 24, 2020 at 12:52 AM Rafaël Carré wrote: TODO: document offsets in rt305x_mii_write ? Please do so if you know what they mean. Unfortunately I don't. I could copy the existing definitions and give them a rt6855a-spe

Re: [PATCH 1/3] ramips: add support for the RT6855A SoC

2020-12-24 Thread Rafaël Carré
Hello, Thank you for your comments, they are very much appreciated! On 12/24/20 04:09, Chuanhong Guo wrote: Hi! On Thu, Dec 24, 2020 at 12:51 AM Rafaël Carré wrote: Add Linksys WAP300N target +ethernet: ethernet@5{ +compatible = "ralink,rt6855-eth&quo

[PATCH 2/3] ramips: add RT6855A support to ethernet driver

2020-12-23 Thread Rafaël Carré
TODO: document offsets in rt305x_mii_write ? Signed-off-by: Rafaël Carré --- .../files/drivers/net/ethernet/ralink/Kconfig | 6 +- .../drivers/net/ethernet/ralink/Makefile | 1 + .../drivers/net/ethernet/ralink/esw_rt3050.c | 22 +++- .../drivers/net/ethernet/ralink/mtk_eth_soc.h

[PATCH 3/3] ramips: add RT6855A SoC Linux support patches

2020-12-23 Thread Rafaël Carré
TODO: the spi-mt7621 patches will break support for other targets Signed-off-by: Rafaël Carré --- ...-ralink-adds-support-for-RT6855A-SoC.patch | 688 ++ .../304-HACK-spi-mt7621-rt6855a-fix.patch | 35 + ...HACK-spi-mt7621.c-hardcode-frequency.patch | 69 + .../306-RT6855A-add

[PATCH 1/3] ramips: add support for the RT6855A SoC

2020-12-23 Thread Rafaël Carré
Add Linksys WAP300N target Signed-off-by: Rafaël Carré --- target/linux/ramips/Makefile |2 +- target/linux/ramips/dts/rt6855.dtsi | 93 + .../ramips/dts/rt6855a_linksys_wap300n.dts| 18 + target/linux/ramips/image/Makefile|1 + target

Re: [RFC/PATCH] Linksys WAP300N support

2020-12-22 Thread Rafaël Carré
On 12/22/20 20:27, Rafaël Carré wrote: Hello, I forgot two things: - I did not sign-off either Linux or OpenWRT patch. Will do that next time. - I have many segfaults in userspace unless I build gcc with PIE: Advanced configuration options (for developers) --> Toolchain Options -->

[RFC/PATCH] Linksys WAP300N support

2020-12-22 Thread Rafaël Carré
Hello, Here is my current work in progress to support the Linksys WAP300N router. See https://openwrt.org/toh/linksys/wap300n for some info. This is based on the RT6855A SoC. Current status: - serial works - ethernet works (didn't test 1G yet, only 100MB), with a couple small changes in the cus