Re: [PATCH 2/5] ramips: mt7621: drop custom uImage function

2020-11-04 Thread Sander Vanheule
Hi Adrian, On Wed, 2020-11-04 at 14:42 +0100, Adrian Schmutzler wrote: > Hi Sander, > > > -Original Message- > > From: openwrt-devel > > [mailto:openwrt-devel-boun...@lists.openwrt.org] > > On Behalf Of Sander Vanheule > > Sent: Mittwoch, 4. Novem

Re: [PATCH 0/8] kernel: mtdsplit_uimage: use device tree properties for non-standard uimage parsing

2020-11-25 Thread Sander Vanheule
Hi Bjørn, Just some thoughts in addition to what was already mentioned about the property names. On Wed, 2020-11-25 at 12:45 +0100, Bjørn Mork wrote: > This ended up a bit more invasive than I imagined, but here goes.. > > I wanted to add a couple of new rtl83xx devices.  They both use > standar

[PATCH] ramips: mt7621: replace missing custom-initramfs-uimage

2020-11-26 Thread Sander Vanheule
custom-initramfs-uimage was replaced by calls to uImage, but apparently mtc_wr1201 was missed in the transistion. Use uImage for this device too. Fixes: 9f574b1b875c "ramips: mt7621: drop custom uImage function" Signed-off-by: Sander Vanheule --- target/linux/ramips/image/mt7621.mk

Re: [PATCH] ath79: switch to kernel loader for ar9344 CPE/WBS

2020-12-22 Thread Sander Vanheule
Hi, On Tue, 2020-12-22 at 12:21 +0100, Petr Štetiar wrote: > > does not apply anymore, so you should rebase and resend. I was actually made aware that my approach is not recommended, so I'm just going to retract this patch. As described in commit 0c0bb6299 [1], the bootloader on these devices h

Re: [PATCH v5 2/2] realtek: add support for ZyXEL GS1900-8HP v1 and v2

2021-01-08 Thread Sander Vanheule
Hi Stijn, On Fri, 2021-01-08 at 14:32 +0100, Stijn Segers wrote: > diff --git a/target/linux/realtek/image/Makefile > b/target/linux/realtek/image/Makefile > index 765e516a0a..39b28b6c67 100644 > --- a/target/linux/realtek/image/Makefile > +++ b/target/linux/realtek/image/Makefile > @@ -65,11 +65,

Re: [PATCH v2 00/10] kernel: mtdsplit_uimage: use device tree properties for non-standard uimage parsing

2021-01-13 Thread Sander Vanheule
r's builds and my own builds, I've run-tested this on my WNDR3700v2 (ath79/generic). Flashing first Petr's build, I ended up in a boot loop, although booting only failed after the partitions were correctly processed, similar to [1]. My own build and a second flash with ynezz's test

[PATCH] ramips: manage low reset lines

2021-02-04 Thread Sander Vanheule
85a9c from mips-next to allow control of the "mcm" reset line. Signed-off-by: Sander Vanheule --- The devices this is currently required for are: * TP-Link Archer C6U v1: https://github.com/openwrt/openwrt/pull/3757 * TP-Link Archer A6 v3: https://github.com/openwrt/openwrt/pull/3786 *

[PATCH] ramips: mt7621: add TP-Link EAP235-Wall support

2021-02-14 Thread Sander Vanheule
x27; during boot, which drops the bootloader into its shell * Change default 'serverip' and 'ipaddr' variables (optional) * Download initramfs with `tftpboot`, and boot image with `bootm` # tftpboot 8400 openwrt-initramfs.bin # bootm Hardware was kindly provided f

Re: [PATCH] ramips: mt7621: add TP-Link EAP235-Wall support

2021-02-17 Thread Sander Vanheule
Hi Adrian, Thanks for the review. I'll fix the naming issues in a v2, some extra comments below. On Wed, 2021-02-17 at 01:47 +0100, Adrian Schmutzler wrote: > > Known issues with this device: > > The MT7613BE radio is currently not well supported by the mt7615 > > driver: > > - The EEPROM blob is

[PATCH v2] ramips: mt7621: add TP-Link EAP235-Wall support

2021-02-18 Thread Sander Vanheule
was an issue with the ddc75ff704 version of mt76, but appears to have improved/disappeared with bc3963764d. Error notice example: [ 7099.554067] mt7615e :02:00.0: Message 73 (seq 1) timeout Hardware was kindly provided for porting by Stijn Segers. Tested-by: Stijn Segers Signed-off-by: Sande

[PATCH] ramips: mt7621: enable SX150x driver

2021-02-20 Thread Sander Vanheule
devices. Run-tested on a Netgear R6800. Cc: Stijn Segers Cc: Hauke Mehrtens Signed-off-by: Sander Vanheule --- target/linux/ramips/mt7621/config-5.4 | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ramips/mt7621/config-5.4 b/target/linux/ramips/mt7621/config-5.4 index

Re: [PATCH] uboot-envtools: add support for GS108T v3 & GS110TPP v1

2021-02-28 Thread Sander Vanheule
Hi Stijn On Sat, 2021-02-27 at 23:05 +0100, Stijn Segers wrote: > The Netgear GS108T v3 and its GS110TPP v1 sibling apparently label > their u-boot environment parition 'bdinfo' instead of 'u-boot-env'. Alternatively, the u-boot data partition could also just be renamed to 'u-boot-env', to match

Re: [PATCH] ramips: gpio-ralink: use ngpios, not ralink,num-gpios

2021-04-07 Thread Sander Vanheule
Hi Ilya, On Mon, 2021-04-05 at 22:53 -0700, Ilya Lipnitskiy wrote: > DTS properties that match *-gpios are treated specially. > > Use ngpios instead, as most GPIO drivers upstream do. > > Fixes 5.10 DTS errors such as: >   OF: /palmbus@30/gpio@600: could not find phandle > > Fixes DTC warni

Re: [PATCH] firmware-utils: tplink-safeloader: support displaying fw info

2021-04-10 Thread Sander Vanheule
Hi Rafał, This looks like a useful addition to the safeloader tool. On Thu, 2021-04-08 at 23:49 +0200, Rafał Miłecki wrote: > From: Rafał Miłecki > > Add "-i" option for reading & displaying firmware info. First it lists > in-firmware partitions ("fwup-ptn"). Then it checks for human > understa

Re: [PATCH 2/3] realtek: sort the port list numerically

2021-04-12 Thread Sander Vanheule
Hi Bjørn, On Mon, 2021-04-12 at 14:27 +0200, Bjørn Mork wrote: > Mac adresses are assigned in the order given by the port list.  The > interfaces are also brought up in this order.  This target supports > devices with up to 52 ports.  Sorting these alphabetically is very > confusing, and assigning

[PATCH 0/2] TP-Link safeloader custom soft-version support

2021-08-27 Thread Sander Vanheule
s need to first install a snapshot image before they can install a 21.02 release image. How would PKG_RELEASE conflicts be avoided for backported patches? Sander Vanheule (2): firmware-utils: tplink-safeloader: improve soft-version customisation firmware-utils: tplink-safeloader: set EAP235-Wall

[PATCH 2/2] firmware-utils: tplink-safeloader: set EAP235-Wall v1 soft-version

2021-08-27 Thread Sander Vanheule
users can install OpenWrt on their devices. Signed-off-by: Sander Vanheule --- tools/firmware-utils/src/tplink-safeloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c index 93491

[PATCH 1/2] firmware-utils: tplink-safeloader: improve soft-version customisation

2021-08-27 Thread Sander Vanheule
-defined types of soft-version overwrites, and provide a few macros for easy value initialisation. Requires all existing values to be updated to match the new structure. Signed-off-by: Sander Vanheule --- tools/firmware-utils/Makefile| 2 +- tools/firmware-utils/src/tplink-safeloader.c

Re: [PATCH 2/2] firmware-utils: tplink-safeloader: set EAP235-Wall v1 soft-version

2021-08-31 Thread Sander Vanheule
On Fri, 2021-08-27 at 11:38 +0200, Sander Vanheule wrote: > Starting with v3 of the vendor firmware for the TP-Link EAP235-Wall v1, > downgrades to firmware versions below v3 as not allowed.  Since OpenWrt > uses version 0.0.0 as a default, this causes the factory install to fail > on

Re: [PATCH 0/2] TP-Link safeloader custom soft-version support

2021-08-31 Thread Sander Vanheule
On Sat, 2021-08-28 at 10:24 -0300, Henrique de Moraes Holschuh wrote: > On 27/08/2021 06:38, Sander Vanheule wrote: > > > > EAP235-Wall support will be included in the 21.02 release, but users who > > have a v3 (or later) firmware installed, will not be able to install &g

[PATCH] firmware-utils: tplink-safeloader: use revision field

2021-09-01 Thread Sander Vanheule
this revision number when printing image info. Fixes: 1a211af2cb3b ("firmware-utils: tplink-safeloader: refactor meta-partition generation") Signed-off-by: Sander Vanheule --- This patch conflicts with my other tplink-safeloader patch [1] due to the PKG_RELEASE version bump. Dependin

[PATCH v2 0/2] Safeloader firmware images contain a soft-version partition, which encodes version info about the image. There are currently two formats: plain text and structured binary with the firmw

2021-09-10 Thread Sander Vanheule
then changes the (structured) soft-version override for the EAP235-WALL v1 to support recent vendor firmwares. Series v1: https://lists.infradead.org/pipermail/openwrt-devel/2021-August/036170.html Sander Vanheule (2): firmware-utils: tplink-safeloader: improve soft-version customisation

[PATCH v2 2/2] firmware-utils: tplink-safeloader: set EAP235-Wall v1 soft-version

2021-09-10 Thread Sander Vanheule
users can install OpenWrt on their devices. Reported-by: Colton Conor Tested-by: Colton Conor Signed-off-by: Sander Vanheule --- v2: Add Colton Conor's tags tools/firmware-utils/src/tplink-safeloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/firmware-utils/

[PATCH v2 1/2] firmware-utils: tplink-safeloader: improve soft-version customisation

2021-09-10 Thread Sander Vanheule
-defined types of soft-version overwrites, and provide a few macros for easy value initialisation. Requires all existing values to be updated to match the new structure. Signed-off-by: Sander Vanheule --- v2: Rebase for PKG_RELEASE bump tools/firmware-utils/Makefile| 2 +- tools

Re: [PATCH] realtek: fix RTL8231 gpio expander for high GPIOs

2021-09-20 Thread Sander Vanheule
Hi Paul, Thanks for the patch. One comment below. On Fri, 2021-09-17 at 16:11 +0300, Paul Fertser wrote: > GPIOs > 31 require special handling. This patch fixes both the > initialisation (defaulting to input) and direction get/set operations. > > Runtime-tested on D-Link DGS-1210-10P-R1 which ha

Re: [PATCH v2] realtek: fix RTL8231 gpio expander for high GPIOs

2021-09-20 Thread Sander Vanheule
y high GPIOs direction bits on init Thanks for the update. Reviewed-by: Sander Vanheule > >  .../realtek/files-5.4/drivers/gpio/gpio-rtl8231.c   | 13 - >  1 file changed, 8 insertions(+), 5 deletions(-) > > diff --git a/target/linux/realtek/files-5.4/drivers/gpio/gpio

[PATCH] ath79: add support for TP-Link EAP225 v1

2021-09-25 Thread Sander Vanheule
itramfs.bin bootelf $fileaddr Tested by forum user KernelMaker. Signed-off-by: Sander Vanheule --- .../ath79/dts/qca9563_tplink_eap225-v1.dts| 44 +++ .../generic/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 1 + target/linux/ath7

Re: [PATCH] realtek: ensure output drivers are enabled in RTL8231

2021-09-30 Thread Sander Vanheule
the boot in case the bootloader left direction and > data registers in an inconsistent state (e.g. pulling SoC's reset to 0) > reconfigure everything as input. > > Thanks to Sander Vanheule for telling about LED_Start. > > Signed-off-by: Paul Fertser > --- > >

Re: [PATCH v2] realtek: ensure output drivers are enabled in RTL8231

2021-09-30 Thread Sander Vanheule
ffect. > > To avoid disrupting the boot in case the bootloader left direction and > data registers in an inconsistent state (e.g. pulling SoC's reset to 0) > reconfigure everything as input. > > Signed-off-by: Paul Fertser Review

Re: [PATCH] realtek: do not hardcode restart handler and enable gpio-restart

2021-10-05 Thread Sander Vanheule
Hi Paul, On Tue, 2021-10-05 at 16:35 +0300, Paul Fertser wrote: > Most boards supported by this target have a dedicated GPIO line > connected to SoC's /RESET to allow full clean reliable reboot. > > Use regular kernel notifier methods for default restart routines to > allow higher-priority handle

Re: [PATCH] realtek: fix ZyXEL initramfs image generation

2021-10-29 Thread Sander Vanheule
S1900-8 actually accepts images with bogus trailers. That being said, an image produced with your patch applied, thus a correct trailer, can also be flashed and the trailer is recognized by the stock firmware. So I guess I can already provide this: Tested-by: Sander Vanheule I also have one

Re: [PATCH] realtek: fix ZyXEL initramfs image generation

2021-10-30 Thread Sander Vanheule
On Sat, 2021-10-30 at 10:38 +0200, Bjørn Mork wrote: > Sander Vanheule writes: > > > I wanted to verify that your patch fixes OpenWrt flashing, but > > V2.60(AAHH.4) on > > my > > GS1900-8 actually accepts images with bogus trailers. > > This is so strange

[PATCH] realtek: backport GPIO IRQ index fix

2021-10-31 Thread Sander Vanheule
Backport the patch queued upstream for 5.16. The patch differs slightly from the upstream patch due to an upstream change that added a convenience function. Signed-off-by: Sander Vanheule --- ...ealtek-otto-fix-gpio-line-irq-offset.patch | 21 +++ 1 file changed, 21 insertions

[PATCH 2/5] realtek: Add Lexra bus clock

2021-11-04 Thread Sander Vanheule
The Realtek Otto WDT driver requires a bus clock source definition. Add a fixed-clock node to provide the 200MHz clock. Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5.10/rtl838x.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/linux/realtek/dts-5.10

[PATCH 0/5] realtek: Use WDT for system restart

2021-11-04 Thread Sander Vanheule
, Zyxel GS1900-8, and Zyxel XGS1250-12. Testers with other devices should ensure that their system can still restart after applying the complete series. Sander Vanheule (5): realtek: Consolidate bootargs realtek: Add Lexra bus clock realtek: backport Realtek Otto WDT driver realtek: Add

[PATCH 4/5] realtek: Add watchdog node

2021-11-04 Thread Sander Vanheule
reliably on selected devices, default this platform to use reboot=warm and "cpu" reset. RTL930x devices have more reliable reset logic, and can use the default (cold) reboot and "soc" resets. Note that watchdog restarts are not yet exposed, since the _machine_restart override

[PATCH 3/5] realtek: backport Realtek Otto WDT driver

2021-11-04 Thread Sander Vanheule
Add patch submitted upstream to linux-watchdog and replace the MIPS architecture symbols. Requires one extra patch for the DIV_ROUND_* macros, which have moved to a different header since 5.10. Also refresh the kernel config to enable the new driver. Signed-off-by: Sander Vanheule --- target

[PATCH 1/5] realtek: Consolidate bootargs

2021-11-04 Thread Sander Vanheule
All current devices use identical bootargs, so let's move that to the common devicetree includes. Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi| 4 target/linux/realtek/dts-5.10/rtl8380_zyxel_gs1900.dtsi | 4 target/

[PATCH 5/5] realtek: Remove _machine_restart and _machine_halt

2021-11-04 Thread Sander Vanheule
timer"). Let's remove it again. Signed-off-by: Sander Vanheule --- .../files-5.10/arch/mips/rtl838x/setup.c | 85 --- 1 file changed, 85 deletions(-) diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c b/target/linux/realtek/files-5.10/arch/m

Re: [PATCH 3/5] realtek: backport Realtek Otto WDT driver

2021-11-04 Thread Sander Vanheule
On Thu, 2021-11-04 at 15:55 +0100, Sander Vanheule wrote: > Add patch submitted upstream to linux-watchdog and replace the MIPS > architecture symbols. Requires one extra patch for the DIV_ROUND_* > macros, which have moved to a different header since 5.10. > > Also refresh the k

Re: [PATCH 1/5] realtek: Consolidate bootargs

2021-11-04 Thread Sander Vanheule
Hi Christian, On Thu, 2021-11-04 at 17:07 +0100, Christian Lamparter wrote: > On 04/11/2021 15:55, Sander Vanheule wrote: > > All current devices use identical bootargs, so let's move that to the > > common devicetree includes. > > hmm,  that "console=ttyS0,...&q

[PATCH v3 4/5] realtek: Add and enable watchdog node

2021-11-06 Thread Sander Vanheule
reliably on selected devices, default this platform to use reboot=warm and "cpu" reset. RTL930x devices have more reliable reset logic, and can use the default (cold) reboot and "soc" resets. Note that watchdog restarts are not yet exposed, since the _machine_restart override

[PATCH v3 1/5] realtek: Consolidate bootargs

2021-11-06 Thread Sander Vanheule
All current devices use identical bootargs, so let's move that to the common devicetree includes. At the same time, also add the equivalent value for /chosen/stdout-path and add earlycon to the bootargs, in line with upstream DTS. Signed-off-by: Sander Vanheule -- v2: - Add stdout-path

[PATCH v3 0/5] realtek: Use WDT for system restart

2021-11-06 Thread Sander Vanheule
, Zyxel GS1900-8, and Zyxel XGS1250-12. Testers with other devices should ensure that their system can still restart after applying the complete series. Sander Vanheule (5): realtek: Consolidate bootargs realtek: Add Lexra bus clock realtek: Backport Realtek Otto WDT driver realtek: Add and

[PATCH v3 2/5] realtek: Add Lexra bus clock

2021-11-06 Thread Sander Vanheule
frequencies: - RTL838x: 200MHz - RTL839x: 200MHz - RTL930x: 175MHz Signed-off-by: Sander Vanheule -- v2: - Lexra clock defintion for RTL930x, update peripherals --- target/linux/realtek/dts-5.10/rtl838x.dtsi | 10 -- target/linux/realtek/dts-5.10/rtl930x.dtsi | 11 +-- 2 files

[PATCH v3 5/5] realtek: Remove _machine_restart and _machine_halt

2021-11-06 Thread Sander Vanheule
timer"). Let's remove it again. Signed-off-by: Sander Vanheule --- .../files-5.10/arch/mips/rtl838x/setup.c | 85 --- 1 file changed, 85 deletions(-) diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c b/target/linux/realtek/files-5.10/arch/m

[PATCH v3 3/5] realtek: Backport Realtek Otto WDT driver

2021-11-06 Thread Sander Vanheule
Add patch submitted upstream to linux-watchdog and replace the MIPS architecture symbols. Requires one extra patch for the DIV_ROUND_* macros, which have moved to a different header since 5.10. Signed-off-by: Sander Vanheule -- v3: - Fix watchdog Kconfig modifation patch v2: - Remove kernel

Re: [PATCH v3 0/5] realtek: Use WDT for system restart

2021-11-06 Thread Sander Vanheule
bles, etc. Any thoughts on this? Best, Sander > Birger > > On 06/11/2021 15:52, Sander Vanheule wrote: > > Backport and enable the Realtek Otto watchdog driver for enhanced system > > reliability. The watchdog driver can also be used to restart the system, > >

[PATCH v1] realtek: reset both ethernet NIC and queues

2021-11-07 Thread Sander Vanheule
(RTL8380). Suggested-by: Birger Koblitz Signed-off-by: Sander Vanheule --- .../realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c b/target/linux/realtek

Re: [PATCH 0/3] realtek: add support for Panasonic Switch-M8eG PN28080K

2021-11-12 Thread Sander Vanheule
Hi, On Sun, 2021-10-03 at 15:53 +0900, INAGAKI Hiroshi wrote: [...] > > INAGAKI Hiroshi (3): >   realtek: enable pca953x driver for target >   realtek: enable gpio-restart driver in target >   realtek: add support for Panasonic Switch-M8eG PN28080K > >  target/linux/realtek/config-5.10 

Re: [PATCH 2/3] realtek: enable gpio-restart driver in target

2021-11-12 Thread Sander Vanheule
Hi, On Sun, 2021-10-03 at 15:53 +0900, INAGAKI Hiroshi wrote: > On Panasonic Switch-M8eG PN28080K, a GPIO pin on PCA9539 chip is used > for for hard-reset of the system. To use this, enable gpio-restart > driver and built-in to the kernel. > > Signed-off-by: INAGAKI Hiroshi As made clear by Pau

Re: [PATCH 3/3] realtek: add support for Panasonic Switch-M8eG PN28080K

2021-11-12 Thread Sander Vanheule
Hi Hiroshi, On Sun, 2021-10-03 at 15:53 +0900, INAGAKI Hiroshi wrote: > Panasonic M8eG PN28080K is a 8 + 1 port gigabit switch, based on > RTL8380M. > > Specification: > > - SoC   : Realtek RTL8380M > - RAM   : DDR3 128 MiB (Winbond W631GG8KB-15) > - Flash : SPI-NOR 32 Mi

Re: [PATCH 3/3] realtek: add support for Panasonic Switch-M8eG PN28080K

2021-11-13 Thread Sander Vanheule
On Fri, 2021-11-12 at 23:46 +0100, Sander Vanheule wrote: > > diff --git > > a/target/linux/realtek/dts-5.10/rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi > > b/target/linux/realtek/dts-5.10/rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi > > new file mode 100644 > > index 00

Re: [PATCH 3/3] realtek: add support for Panasonic Switch-M8eG PN28080K

2021-11-14 Thread Sander Vanheule
Hi Hiroshi, On Sun, 2021-11-14 at 14:32 +0900, INAGAKI Hiroshi wrote: > Hi Sander, > > Thank you for your review. > > On 2021/11/13 7:46, Sander Vanheule wrote: > > Hi Hiroshi, > > > > On Sun, 2021-10-03 at 15:53 +0900, INAGAKI Hiroshi wrote: > > &g

[PATCH v4 1/5] realtek: Consolidate bootargs

2021-11-14 Thread Sander Vanheule
All current devices use identical bootargs, so let's move that to the common devicetree includes. Signed-off-by: Sander Vanheule -- v4: - Drop stdout-path and earlycon again, to limit scope of patch v2: - Add stdout-path node, and earlycon to bootargs --- target/linux/realtek/dts

[PATCH v4 0/5] realtek: Use WDT for system restart

2021-11-14 Thread Sander Vanheule
, Zyxel GS1900-8, and Zyxel XGS1250-12. Testers with other devices should ensure that their system can still restart after applying the complete series. Main changes in v4: - Use cold restart (full SoC reset) on all devices by default Sander Vanheule (5): realtek: Consolidate bootargs realtek: Add

[PATCH v4 2/5] realtek: Add Lexra bus clock

2021-11-14 Thread Sander Vanheule
frequencies: - RTL838x: 200MHz - RTL839x: 200MHz - RTL930x: 175MHz Signed-off-by: Sander Vanheule -- v2: - Lexra clock defintion for RTL930x, update peripherals --- target/linux/realtek/dts-5.10/rtl838x.dtsi | 10 -- target/linux/realtek/dts-5.10/rtl930x.dtsi | 11 +-- 2 files

[PATCH v4 5/5] realtek: Remove _machine_restart and _machine_halt

2021-11-14 Thread Sander Vanheule
timer"). Let's remove it again. Signed-off-by: Sander Vanheule --- .../files-5.10/arch/mips/rtl838x/setup.c | 85 --- 1 file changed, 85 deletions(-) diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c b/target/linux/realtek/files-5.10/arch/m

[PATCH v4 3/5] realtek: Backport Realtek Otto WDT driver

2021-11-14 Thread Sander Vanheule
Add patch submitted upstream to linux-watchdog and replace the MIPS architecture symbols. Requires one extra patch for the DIV_ROUND_* macros, which have moved to a different header since 5.10. Signed-off-by: Sander Vanheule -- v3: - Fix watchdog Kconfig modifation patch v2: - Remove kernel

[PATCH v4 4/5] realtek: Add and enable watchdog node

2021-11-14 Thread Sander Vanheule
tware| reboot=software Preferrably, these devices should use an alternative restart method like gpio-restart to provide reliable restarts. Note that watchdog restarts are not yet exposed, since the _machine_restart override is still present. Signed-off-by: Sander Vanheule -- v4: - Als

[PATCH 0/3] realtek: RTL8231 refinements

2021-11-15 Thread Sander Vanheule
The RTL8231 driver is currently not setting the maximum number of GPIOs correctly, so this needs to be fixed. While we're at it, add some other small improvements to the driver. These patches were tested on my GS110TPP. Sander Vanheule (3): realtek: Fix RTL8231 gpio count realtek

[PATCH 1/3] realtek: Fix RTL8231 gpio count

2021-11-15 Thread Sander Vanheule
The RTL8231's gpio_chip.ngpio was set to 36, which is the largest valid GPIO index. Fix the allowed number of GPIOs by setting ngpio to 37, the actual line count. Reported-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.

[PATCH 3/3] realtek: Always require SMI bus ID for RTL8231

2021-11-15 Thread Sander Vanheule
perty, and perform a sanity check when probing the device. This allows the other parts of the driver to be simplified a bit. Signed-off-by: Sander Vanheule --- .../files-5.10/drivers/gpio/gpio-rtl8231.c| 33 +-- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/ta

[PATCH 2/3] realtek: Use automatic GPIO numbering for RTL8231

2021-11-15 Thread Sander Vanheule
Set the gpio_chip.base to -1 to use automatic GPIO line indexing. Setting base to 0 or a positive number is deprecated and should not be used. Signed-off-by: Sander Vanheule --- target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v2] realtek: reset both ethernet NIC and queues

2021-11-18 Thread Sander Vanheule
ds to unresponsive network after the restart. By resetting both the ethernet NIC and queues, networking always comes up reliably. Suggested-by: Birger Koblitz Signed-off-by: Sander Vanheule --- v1 -> v2: - Reword commit message - Introduce reset_mask variable --- .../files-5.10/drivers/net/

[PATCH v2 2/2] ath79: add support for TP-Link EAP225 v1

2021-11-20 Thread Sander Vanheule
bin bootelf $fileaddr Tested by forum user KernelMaker. Link: https://forum.openwrt.org/t/eap225-v1-firmware/87116 Signed-off-by: Sander Vanheule --- .../ath79/dts/qca9563_tplink_eap225-v1.dts| 44 +++ .../generic/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d

[PATCH v2 0/2] Add support for TP-Link EAP225 v1

2021-11-20 Thread Sander Vanheule
This series adds support for the (not so popular) EAP225v1 2x2 802.11ac Wave-1 access point. This device is almost identical to the EAP245v1 from commit b11ad4876440 ("ath79: support for TP-Link EAP245 v1"), with the main difference being the 5GHz radio. Support was requested by a few forum users,

[firmware-utils PATCH v2 1/2] tplink-safeloader: add EAP225 v1 support

2021-11-20 Thread Sander Vanheule
3 partition radio base 0xff size 0x1 For OpenWrt, the os-image and file-system partition are merged into one firmware partition, to enable dynamic rootfs partition splits. Signed-off-by: Sander Vanheule --- src/tplink-safeloader.c | 26 ++ 1 file changed, 26 inser

[PATCH v2 0/4] realtek: RTL8231 refinements

2021-11-20 Thread Sander Vanheule
[3/4] - Verify chip presence when probing, and fail if it cannot be found [4/4] Main changes since v1: - Add chip detection patch These patches were tested on my GS110TPP. Sander Vanheule (4): realtek: fix RTL8231 gpio count realtek: use automatic GPIO numbering for RTL8231 realtek: always requir

[PATCH v2 2/4] realtek: use automatic GPIO numbering for RTL8231

2021-11-20 Thread Sander Vanheule
Set the gpio_chip.base to -1 to use automatic GPIO line indexing. Setting base to 0 or a positive number is deprecated and should not be used. Signed-off-by: Sander Vanheule --- target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v2 4/4] realtek: add RTL8231 chip detection

2021-11-20 Thread Sander Vanheule
two lines will be logged: [0.453698] Probing RTL8231 GPIOs [0.457312] rtl8231_init called, MDIO bus ID: 31 Signed-off-by: Sander Vanheule --- .../files-5.10/drivers/gpio/gpio-rtl8231.c| 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/target

[PATCH v2 3/4] realtek: always require SMI bus ID for RTL8231

2021-11-20 Thread Sander Vanheule
operty, as there is no real reason to use 0 as default, and perform a sanity check on the value when probing. This allows the other parts of the driver to be simplified a bit. Signed-off-by: Sander Vanheule --- .../files-5.10/drivers/gpio/gpio-rtl8231.c| 33 +-- 1 file changed, 16

[PATCH v2 1/4] realtek: fix RTL8231 gpio count

2021-11-20 Thread Sander Vanheule
The RTL8231's gpio_chip.ngpio was set to 36, which is the largest valid GPIO index. Fix the allowed number of GPIOs by setting ngpio to 37, the actual line count. Reported-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.

[PATCH v3 0/1] Add support for TP-Link EAP225 v1

2021-11-22 Thread Sander Vanheule
d by a few forum users, although only one came back to inform me they were succesful in flashing OpenWrt. Support for generating images for this devices was merged in firmware-utils with commit fa3537981859 (" tplink-safeloader: add EAP225 v1 support"). Sander Vanheule (1): ath79: add

Re: [PATCH v2 2/2] ath79: add support for TP-Link EAP225 v1

2021-11-22 Thread Sander Vanheule
On Sat, 2021-11-20 at 14:06 +0100, Sander Vanheule wrote: > TP-Link EAP225 v1 is an AC1200 (802.11ac Wave-1) ceiling mount access point. > > Device specifications: > * SoC: QCA9563 @ 775MHz > * RAM: 128MiB DDR2 > * Flash: 16MiB SPI-NOR > * Wireless 2.4GHz (SoC): b/g/n,

[PATCH v3 1/1] ath79: add support for TP-Link EAP225 v1

2021-11-22 Thread Sander Vanheule
bin bootelf $fileaddr Tested by forum user KernelMaker. Link: https://forum.openwrt.org/t/eap225-v1-firmware/87116 Signed-off-by: Sander Vanheule --- v2 -> v3: - Use upstream-compliant names for led nodes - Add color and function properties to led nodes v1 -> v2: - Split fir

Re: [PATCH v4 0/5] realtek: Use WDT for system restart

2021-11-24 Thread Sander Vanheule
On Wed, 2021-11-24 at 21:33 +0200, Stijn Tintel wrote: > On 14/11/2021 20:45, Sander Vanheule wrote: > > Backport and enable the Realtek Otto watchdog driver for enhanced system > > reliability. The watchdog driver can also be used to restart the system, > > but that requires

[PATCH] realtek: add missing GPIO irq properties

2021-11-24 Thread Sander Vanheule
The internal GPIO controller on RTL838x is also an IRQ controller, which requires the 'interrupt-controller' and '#interrupts-cells' properties to be present in the device tree. Reported-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5

[PATCH 0/2] gpio-restart for Netgear switches

2021-11-24 Thread Sander Vanheule
Now that _machine_restart has been removed for the realtek target, gpio-restart can be enabled and used on devices that support it. These patches enable the driver, and set up the correct GPIO on supported Realtek-based switches from Netgear. Sander Vanheule (2): realtek: Enable gpio-restart

[PATCH 1/2] realtek: Enable gpio-restart driver

2021-11-24 Thread Sander Vanheule
Add the gpio-restart driver to the realtek build. This way devices, which cannot reliably perform resets using the SoC's internal reset logic, can use a GPIO line to drive the SoC's hard reset input. Signed-off-by: Sander Vanheule --- target/linux/realtek/config-5.10 | 1 + 1 file

[PATCH 2/2] realtek: netgear-gigabit: Add gpio-restart node

2021-11-24 Thread Sander Vanheule
tarts work properly. Cc: Raylynn Knight Cc: Michael Mohr Cc: Stijn Segers Cc: Stijn Tintel Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigab

[PATCH 0/2] External GPIO improvements for Netgear GS1xx and GS3xx

2021-11-24 Thread Sander Vanheule
Although all supported Netgear GS1xx/GS3xx switches have an RTL8231 GPIO expander, this is not yet enabled on these devices. These patches fix the device tree, and then expose the status LEDs on the GS110TPP v1. Sander Vanheule (2): realtek: netgear-gigabit: Enable RTL8231 realtek: netgear

[PATCH 1/2] realtek: netgear-gigabit: Enable RTL8231

2021-11-24 Thread Sander Vanheule
: Michael Mohr Cc: Stijn Segers Cc: Stijn Tintel Signed-off-by: Sander Vanheule --- To everyone in CC, could you please verify that the RTL8231 is present in your device(s) at address 31. On my GS110TPP the status LEDs are located on external GPIOs 31, 32, and 34. Other devices configure the same

[PATCH 2/2] realtek: netgear-gs110tpp: Add system LEDs

2021-11-24 Thread Sander Vanheule
The GS110TPP has an RGB LED used for system status indication. Expose all three components as separate GPIO LEDs connected via the device's RTL8231. Signed-off-by: Sander Vanheule --- .../dts-5.10/rtl8380_netgear_gs110tpp-v1.dts | 33 +++ 1 file changed, 33 insertions(+)

Re: [PATCH 1/2] realtek: netgear-gigabit: Enable RTL8231

2021-11-26 Thread Sander Vanheule
Hi Bjørn, On Fri, 2021-11-26 at 13:41 +0100, Bjørn Mork wrote: > Sander Vanheule writes: > > > To everyone in CC, could you please verify that the RTL8231 is present > > in your device(s) at address 31. On my GS110TPP the status LEDs are > > located on external GPI

[PATCH] realtek: update watchdog timer patch

2021-12-01 Thread Sander Vanheule
The Realtek Otto watchdog timer driver was accepted upstream, and is queued for 5.17. Update the patch's file name, and replace by the final version. Signed-off-by: Sander Vanheule --- ...dog-add-realtek-otto-watchdog-timer.patch} | 82 +-- 1 file changed, 57 insertions(+

Re: [PATCH v2 2/2] realtek: add support for Panasonic Switch-M8eG PN28080K

2021-12-04 Thread Sander Vanheule
Hi Hiroshi, Thanks for the update. Some inline comments below. On Tue, 2021-11-30 at 19:43 +0900, INAGAKI Hiroshi wrote: > Panasonic Switch-M8eG PN28080K is a 8 + 1 port gigabit switch, based on > RTL8380M. > > Specification: > > - SoC   : Realtek RTL8380M > - RAM   : DDR3 128 M

[PATCH 01/13] realtek: add missing gpio0 pinctrl properties

2021-12-08 Thread Sander Vanheule
Not all devices using the gpio0/sys-led pin as a GPIO, configure the pinmux. Add the necessary pinctrl properties to these devices to ensure the pin is set up for use as GPIO. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux

[PATCH 00/13] Switch realtek target to upstream platform

2021-12-08 Thread Sander Vanheule
changes for users, although there will be some bootlog differences. We hope these patches will make it easier for developers to write upstream- compatible code on OpenWrt. Vice versa, it should also be easier with these changes to backport drivers and patches that were upstreamed. Sander Vanheule (13

[PATCH 04/13] realtek: use fixed-clock as CPU clock

2021-12-08 Thread Sander Vanheule
Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5.10/rtl838x.dtsi | 9 - target/linux/realtek/dts-5.10/rtl930x.dtsi | 9 - 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/target/linux/realtek/dts-5.10/rtl838x.dtsi b/target/linux/realtek/dts-5.10

[PATCH 02/13] realtek: add sys-led disable pinctrl for rtl930x

2021-12-08 Thread Sander Vanheule
Like for RTL838x devices, add a pinctrl-single node to manage the sys-led/gpio0 mux, and allow using the pin as GPIO. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5.10/rtl930x.dtsi | 15 +++ 1 file

[PATCH 03/13] realtek: remove hardcoded sys-led configurations

2021-12-08 Thread Sander Vanheule
: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- .../files-5.10/arch/mips/rtl838x/setup.c | 40 --- 1 file changed, 40 deletions(-) diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c b/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c index

[PATCH 05/13] realtek: include io.h in mach-rtl83xx.h

2021-12-08 Thread Sander Vanheule
-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- .../files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h b/target/linux/realtek/files-5.10

[PATCH 06/13] realtek: update mach-rtl83xx.h includes

2021-12-08 Thread Sander Vanheule
Include the mach-rtl83xx.h header from the root MIPS asm include directory. This will allow custom build options to be dropped once ioremap.h is no longer required. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/files

[PATCH 07/13] realtek: backport upstream platform

2021-12-08 Thread Sander Vanheule
Backport the patch that introduced the MACH_REALTEK_RTL platform in 5.12, which is based on MIPS_GENERIC. This will allow some custom platform code to be dropped from the realtek target. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- ...-add

[PATCH 09/13] realtek: update driver platform dependencies

2021-12-08 Thread Sander Vanheule
Make all drivers depend on the upstream platform, instead of the downstream platform. This can be achieved by dropping the dependendy patches, and requires some updates to the downstream drivers. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule

[PATCH 08/13] realtek: add board file for MACH_REALTEK_RTL

2021-12-08 Thread Sander Vanheule
: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- .../arch/mips/generic/board-realtek.c | 145 ++ ...-in-board-realtek-for-generic-kernel.patch | 9 ++ 2 files changed, 154 insertions(+) create mode 100644 target/linux/realtek/files-5.10/arch/mips/generic/board-realtek.c

[PATCH 10/13] realtek: switch target to upstream platform

2021-12-08 Thread Sander Vanheule
, the kernel load and entry addresses need to be updated to match the expected values. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/config-5.10| 36 - target/linux/realtek/image/Makefile

[PATCH 12/13] realtek: modernise devicetree console setup

2021-12-08 Thread Sander Vanheule
Instead of providing a console= bootarg, provide the stdout-path property. Complement this with adding the earlycon bootarg, so early console output is available. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/dts-5.10

[PATCH 11/13] realtek: drop downstream platform

2021-12-08 Thread Sander Vanheule
The original platform is no longer used by any drivers, but was replaced by MACH_REALTEK_RTL. Drop the old platform patch and unused files. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- .../mips/include/asm/mach-rtl838x/ioremap.h | 29

  1   2   3   4   5   >