Re: [PATCH v2 1/2] arm: socfpga: arria10: add option to reprogram the FPGA every reboot

2024-03-19 Thread Michał Barnaś
On Fri, Mar 8, 2024 at 8:01 PM Marek Vasut wrote: > > On 3/8/24 6:12 PM, Michał Barnaś wrote: > > Add Kconfig that enables FPGA reprogramming with warm boot on Arria 10. > > This option allows to change the bitstream on the filesystem and apply > > changes with warm

[PATCH v3 2/2] chameleonv3: set in defconfig for FPGA to reprogram every reboot

2024-03-19 Thread Michał Barnaś
Set CONFIG_TARGET_SOCFPGA_ARRIA10_ALWAYS_REPROGRAM as enabled in chameleon v3 board's defconfig. Signed-off-by: Michał Barnaś --- Changes in v3: - Update defconfig to use renamed Kconfig configs/socfpga_chameleonv3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[PATCH v3 1/2] arm: socfpga: arria10: add option to reprogram the FPGA every reboot

2024-03-19 Thread Michał Barnaś
Add Kconfig that enables FPGA reprogramming with warm boot on Arria 10. This option allows to change the bitstream on the filesystem and apply changes with warm reboot without the need for a power cycle. Signed-off-by: Michał Barnaś --- Changes in v3: - Rebase on current master branch - Drop

[PATCH v3 0/2] arm: socfpga: arria10: allow to reprogram FPGA with warm reboot

2024-03-19 Thread Michał Barnaś
in v3: - Rebase on current master branch - Drop the TARGET_ prefix in Kconfig - Remove #ifdefs and use IS_ENABLED - Update defconfig to use renamed Kconfig Changes in v2: - Rebase on current master branch Michał Barnaś (2): arm: socfpga: arria10: add option to reprogram the FPGA every reboot

Re: [PATCH 0/3] Fix driver for misc/atsha204a

2024-03-08 Thread Michał Barnaś
Thank you very much! On Tue, Mar 5, 2024 at 2:17 PM Tom Rini wrote: > > On Mon, 19 Feb 2024 16:32:01 +, Michał Barnaś wrote: > > > Fix the driver to behave like the chip datasheet requires. > > Improve wake up function to send low signal on SDA line for at least >

[PATCH v2 2/2] chameleonv3: set in defconfig for FPGA to reprogram every reboot

2024-03-08 Thread Michał Barnaś
Set CONFIG_TARGET_SOCFPGA_ARRIA10_ALWAYS_REPROGRAM as enabled in chameleon v3 board's defconfig. Signed-off-by: Michał Barnaś --- (no changes since v1) configs/socfpga_chameleonv3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_chameleonv3_defconfig b/configs

[PATCH v2 1/2] arm: socfpga: arria10: add option to reprogram the FPGA every reboot

2024-03-08 Thread Michał Barnaś
Add Kconfig that enables FPGA reprogramming with warm boot on Arria 10. This option allows to change the bitstream on the filesystem and apply changes with warm reboot without the need for a power cycle. Signed-off-by: Michał Barnaś --- Changes in v2: - Rebase on current master branch arch

[PATCH v2 0/2] arm: socfpga: arria10: allow to reprogram FPGA with warm reboot

2024-03-08 Thread Michał Barnaś
in v2: - Rebase on current master branch Michał Barnaś (2): arm: socfpga: arria10: add option to reprogram the FPGA every reboot chameleonv3: set in defconfig for FPGA to reprogram every reboot arch/arm/mach-socfpga/Kconfig | 8 arch/arm/mach-socfpga/spl_a10.c | 8

Re: [PATCH 0/2] arm: socfpga: arria10: allow to reprogram FPGA with warm reboot

2024-02-29 Thread Michał Barnaś
On Thu, Feb 29, 2024 at 2:03 PM Dinh Nguyen wrote: > > > > On 2/22/24 09:20, Michał Barnaś wrote: > > > > By default, the board requires power cycle (cold boot) to program the > > FPGA with bitstream. This change adds Kconfig that allows to enable > > re

[PATCH 2/2] chameleonv3: set in defconfig for FPGA to reprogram every reboot

2024-02-22 Thread Michał Barnaś
Set CONFIG_TARGET_SOCFPGA_ARRIA10_ALWAYS_REPROGRAM as enabled in chameleon v3 board's defconfig. Signed-off-by: Michał Barnaś --- configs/socfpga_chameleonv3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_chameleonv3_defconfig b/configs

[PATCH 1/2] arm: socfpga: arria10: add option to reprogram the FPGA every reboot

2024-02-22 Thread Michał Barnaś
Add Kconfig that enables FPGA reprogramming with warm boot on Arria 10. This option allows to change the bitstream on the filesystem and apply changes with warm reboot without the need for a power cycle. Signed-off-by: Michał Barnaś --- arch/arm/mach-socfpga/Kconfig | 8 arch/arm

[PATCH 0/2] arm: socfpga: arria10: allow to reprogram FPGA with warm reboot

2024-02-22 Thread Michał Barnaś
By default, the board requires power cycle (cold boot) to program the FPGA with bitstream. This change adds Kconfig that allows to enable reprogramming the FPGA with every boot. This makes the update process of the bitstream on the filesystem to be applied with simple system reboot. Michał

[PATCH 3/3] misc: atsha204a: fix wakeup function

2024-02-19 Thread Michał Barnaś
by the i2c, so the one byte is sent to the transfer function, but only the address is sent anyway. After sending the zero address, the bus speed is restored to the previous value if it was slowed down to wake up the chip. Signed-off-by: Michał Barnaś --- drivers/misc/atsha204a-i2c.c | 49

[PATCH 2/3] misc: atsha204a: fix sleep function

2024-02-19 Thread Michał Barnaś
Fix the sleep function to issue the sleep command instead of idle one. Signed-off-by: Michał Barnaś --- drivers/misc/atsha204a-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index ab83bbc3e9..29daefb2a5

[PATCH 1/3] misc: atsha204a: remove broken for loop

2024-02-19 Thread Michał Barnaś
Some previous commit changed the continue statement to return, making the for loop used to retry waking up the chip to always return after one iteration. This commit removes the loop, cleaning the code a little. Signed-off-by: Michał Barnaś --- drivers/misc/atsha204a-i2c.c | 45

[PATCH 0/3] Fix driver for misc/atsha204a

2024-02-19 Thread Michał Barnaś
than one iteration. Michał Barnaś (3): misc: atsha204a: remove broken for loop misc: atsha204a: fix sleep function misc: atsha204a: fix wakeup function drivers/misc/atsha204a-i2c.c | 90 1 file changed, 61 insertions(+), 29 deletions(-) -- 2.44.0