[PATCH 3/3] net: RTL-8125B -- write mac to MAC0_BKP

2024-06-24 Thread ETIENNE DUBLE
In the case of RTL-8125B, Linux reads the mac address from register MAC0_BKP instead of MAC0, so let u-boot write the mac address there. Note: writing to MAC0 is still needed too, because this register is used by the hardware for mac filtering (the board will not receive packets if MAC0 is not set

[PATCH 2/3] rockchip: fix wrong PCI range address in rk3568 dtsi

2024-06-24 Thread ETIENNE DUBLE
One of the PCI ranges was wrong in this device tree. When testing with a FriendlyElec Nanopi R5C board, the 2nd ethernet interface (labelled "wan") was not working in u-boot because of that. With the correct value (found in FriendlyElec's downstream u-boot repository), this 2nd ethernet interface

[PATCH 1/3] net: give a different name to rtl8169 interfaces

2024-06-24 Thread ETIENNE DUBLE
This commit implements the .bind member function, and gives a different name to interfaces: "RTL8169#0", "RTL8169#1", etc. This was tested on a FriendlyElec Nanopi R5C board, which has two RTL-8125B interfaces managed by this driver. Since they were given the same name, it was previously not possi

[PATCH 0/3] Improve networking support on FriendlyElec Nanopi R5C

2024-06-24 Thread ETIENNE DUBLE
This board has two RTL-8125B interfaces (drivers/net/rtl8169.c). The secondary interface (labelled "wan") was not working because of a wrong PCI address in file rk3568.dtsi. Moreover, users could not instruct u-boot to use this secondary interface (i.e., using ethprime), because both interfaces ha

[PATCH v3] watchdog: Add a watchdog driver for Raspberry Pi boards

2023-01-25 Thread ETIENNE DUBLE
This driver supports the bcm2835 watchdog found on Raspberry Pi boards. It is derived from the Linux driver and was tested on two Raspberry Pi board versions (B+ and 3B+). Signed-off-by: Etienne Dublé --- Changes for v2: - fixed whitespaces in email - moved a static variable to the priv struct Ch

[PATCH v2] watchdog: Add a watchdog driver for Raspberry Pi boards

2023-01-24 Thread ETIENNE DUBLE
This driver supports the bcm2835 watchdog found on Raspberry Pi boards. It is derived from the Linux driver and was tested on two Raspberry Pi board versions (B+ and 3B+). Signed-off-by: Etienne Dublé --- Changes for v2: - fixed whitespaces in email - moved a static variable to the priv struct

[PATCH] bcmgenet: fix DMA buffer management

2020-07-09 Thread etienne . duble
From: Etienne Dublé This commit fixes a serious issue occuring when several network commands are run on a raspberry pi 4 board: for instance a "dhcp" command and then one or several "tftp" commands. In this case, packet recv callbacks were called several times on the same packets, and send functi