[PATCH 1/1] ARM: dts: chameleonv3: Update handoffs

2023-12-07 Thread Paweł Anikiel
Update the chameleonv3 handoffs with the ones generated from the final FPGA design. Signed-off-by: Paweł Anikiel --- ...ocfpga_arria10_chameleonv3_480_2_handoff.h | 22 +-- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/arm/dts

[PATCH v2 RESEND 4/6] arm: dts: chameleonv3: Rename chameleonv3.dts to .dtsi

2023-02-21 Thread Paweł Anikiel
This file is included by the different chameleonv3 variants. Change the name to .dtsi. Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- ...arria10_chameleonv3.dts => socfpga_arria10_chameleonv3.dtsi} | 0 arch/arm/dts/socfpga_arria10_chameleonv3_270_3.dts | 2 +- arch/

[PATCH v2 RESEND 6/6] chameleonv3: Convert CONFIG_SPL_MAX_SIZE to Kconfig

2023-02-21 Thread Paweł Anikiel
This file was missed during the conversion process. Add the symbol to defconfig. Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- configs/socfpga_chameleonv3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_chameleonv3_defconfig b/configs

[PATCH v2 RESEND 5/6] arm: dts: chameleonv3: Add 270-2 variant

2023-02-21 Thread Paweł Anikiel
Add devicetree for chameleonv3 with the 270-2I2-D11E variant of the Mercury+ AA1 module Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- arch/arm/dts/Makefile| 1 + .../socfpga_arria10_chameleonv3_270_2-u-boot.dtsi| 12 arch/arm/dts

[PATCH v2 RESEND 1/6] socfpga: chameleonv3: Enable ext4 in SPL

2023-02-21 Thread Paweł Anikiel
Allow SPL to boot from an ext4 filesystem. Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- configs/socfpga_chameleonv3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_chameleonv3_defconfig b/configs/socfpga_chameleonv3_defconfig index 4bbce3591d

[PATCH v2 RESEND 3/6] arm: dts: chameleonv3: Override chameleonv3 bitstream names

2023-02-21 Thread Paweł Anikiel
Set the bitstream name per Chameleon variant. This allows the same boot filesystem with all bitstream variants to be used on different boards. Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- arch/arm/dts/socfpga_arria10_chameleonv3_270_3-u-boot.dtsi | 4 arch/arm/dts

[PATCH v2 RESEND 2/6] socfpga: chameleonv3: Move environment to a text file

2023-02-21 Thread Paweł Anikiel
Move the environment to an easily editable text file in the boot partition Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- board/google/chameleonv3/environment.txt | 13 + include/configs/socfpga_chameleonv3.h| 9 - 2 files changed, 17 insertions(+), 5

[PATCH v2 RESEND 0/6] Update Chameleon v3 configuration

2023-02-21 Thread Paweł Anikiel
These changes add the third chameleon variation and make it easier to deploy images to different boards. v2 changes: - rename chameleonv3.dts to .dtsi - add missing CONFIG_SPL_MAX_SIZE symbol Paweł Anikiel (6): socfpga: chameleonv3: Enable ext4 in SPL socfpga: chameleonv3: Move environment

Re: [PATCH v2 0/6] Update Chameleon v3 configuration

2022-11-25 Thread Paweł Anikiel
On Fri, Oct 14, 2022 at 11:49 AM Paweł Anikiel wrote: > > These changes add the third chameleon variation and make it easier to > deploy images to different boards. > > v2 changes: > - rename chameleonv3.dts to .dtsi > - add missing CONFIG_SPL_MAX_SIZE symbol > > Paw

[PATCH v2 6/6] chameleonv3: Convert CONFIG_SPL_MAX_SIZE to Kconfig

2022-10-14 Thread Paweł Anikiel
This file was missed during the conversion process. Add the symbol to defconfig. Signed-off-by: Paweł Anikiel --- configs/socfpga_chameleonv3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_chameleonv3_defconfig b/configs/socfpga_chameleonv3_defconfig index

[PATCH v2 5/6] arm: dts: chameleonv3: Add 270-2 variant

2022-10-14 Thread Paweł Anikiel
Add devicetree for chameleonv3 with the 270-2I2-D11E variant of the Mercury+ AA1 module Signed-off-by: Paweł Anikiel --- arch/arm/dts/Makefile| 1 + .../socfpga_arria10_chameleonv3_270_2-u-boot.dtsi| 12 arch/arm/dts

[PATCH v2 4/6] arm: dts: chameleonv3: Rename chameleonv3.dts to .dtsi

2022-10-14 Thread Paweł Anikiel
This file is included by the different chameleonv3 variants. Change the name to .dtsi. Signed-off-by: Paweł Anikiel --- ...arria10_chameleonv3.dts => socfpga_arria10_chameleonv3.dtsi} | 0 arch/arm/dts/socfpga_arria10_chameleonv3_270_3.dts | 2 +- arch/arm/

[PATCH v2 3/6] arm: dts: chameleonv3: Override chameleonv3 bitstream names

2022-10-14 Thread Paweł Anikiel
Set the bitstream name per Chameleon variant. This allows the same boot filesystem with all bitstream variants to be used on different boards. Signed-off-by: Paweł Anikiel --- arch/arm/dts/socfpga_arria10_chameleonv3_270_3-u-boot.dtsi | 4 arch/arm/dts/socfpga_arria10_chameleonv3_480_2-u

[PATCH v2 1/6] socfpga: chameleonv3: Enable ext4 in SPL

2022-10-14 Thread Paweł Anikiel
Allow SPL to boot from an ext4 filesystem. Signed-off-by: Paweł Anikiel --- configs/socfpga_chameleonv3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_chameleonv3_defconfig b/configs/socfpga_chameleonv3_defconfig index 478efc59ea..e628ee8ad5 100644 --- a/configs

[PATCH v2 2/6] socfpga: chameleonv3: Move environment to a text file

2022-10-14 Thread Paweł Anikiel
Move the environment to an easily editable text file in the boot partition Signed-off-by: Paweł Anikiel --- board/google/chameleonv3/environment.txt | 13 + include/configs/socfpga_chameleonv3.h| 9 - 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644

[PATCH v2 0/6] Update Chameleon v3 configuration

2022-10-14 Thread Paweł Anikiel
These changes add the third chameleon variation and make it easier to deploy images to different boards. v2 changes: - rename chameleonv3.dts to .dtsi - add missing CONFIG_SPL_MAX_SIZE symbol Paweł Anikiel (6): socfpga: chameleonv3: Enable ext4 in SPL socfpga: chameleonv3: Move environment

Re: [PATCH 4/4] arm: dts: chameleonv3: Add 270-2 variant

2022-09-05 Thread Paweł Anikiel
On Fri, Sep 2, 2022 at 9:59 PM Simon Glass wrote: > > Hi Paweł, > > On Fri, 2 Sept 2022 at 07:16, Paweł Anikiel wrote: > > > > On Tue, Aug 30, 2022 at 5:57 PM Simon Glass wrote: > > > > > > Hi Paweł, > > > > > > On Tue, 30 Aug 2022 at

Re: [PATCH 4/4] arm: dts: chameleonv3: Add 270-2 variant

2022-09-02 Thread Paweł Anikiel
On Tue, Aug 30, 2022 at 5:57 PM Simon Glass wrote: > > Hi Paweł, > > On Tue, 30 Aug 2022 at 05:51, Paweł Anikiel wrote: > > > > On Tue, Aug 30, 2022 at 5:13 AM Alexandru M Stan > > wrote: > > > > > > Hey Simon, > > > > > > On M

Re: [PATCH 4/4] arm: dts: chameleonv3: Add 270-2 variant

2022-08-30 Thread Paweł Anikiel
On Tue, Aug 30, 2022 at 5:13 AM Alexandru M Stan wrote: > > Hey Simon, > > On Mon, Aug 29, 2022 at 7:29 PM Simon Glass wrote: > > > > Hi Paweł, > > > > On Mon, 29 Aug 2022 at 02:23, Paweł Anikiel wrote: > > > > > > On Sat, Aug 27, 2022 a

Re: [PATCH 4/4] arm: dts: chameleonv3: Add 270-2 variant

2022-08-29 Thread Paweł Anikiel
On Sat, Aug 27, 2022 at 2:22 AM Simon Glass wrote: > > Hi Paweł, > > On Fri, 26 Aug 2022 at 01:54, Paweł Anikiel wrote: > > > > Add devicetree for chameleonv3 with the 270-2I2-D11E variant of the > > Mercury+ AA1 module > > > > Signed-off-by: Paweł A

[PATCH 4/4] arm: dts: chameleonv3: Add 270-2 variant

2022-08-26 Thread Paweł Anikiel
Add devicetree for chameleonv3 with the 270-2I2-D11E variant of the Mercury+ AA1 module Signed-off-by: Paweł Anikiel --- arch/arm/dts/Makefile| 1 + .../socfpga_arria10_chameleonv3_270_2-u-boot.dtsi| 12 arch/arm/dts

[PATCH 3/4] arm: dts: chameleonv3: Override chameleonv3 bitstream names

2022-08-26 Thread Paweł Anikiel
Set the bitstream name per Chameleon variant. This allows the same boot filesystem with all bitstream variants to be used on different boards. Signed-off-by: Paweł Anikiel --- arch/arm/dts/socfpga_arria10_chameleonv3_270_3-u-boot.dtsi | 4 arch/arm/dts/socfpga_arria10_chameleonv3_480_2-u

[PATCH 2/4] socfpga: chameleonv3: Move environment to a text file

2022-08-26 Thread Paweł Anikiel
Move the environment to an easily editable text file in the boot partition Signed-off-by: Paweł Anikiel --- board/google/chameleonv3/environment.txt | 13 + include/configs/socfpga_chameleonv3.h| 9 - 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644

[PATCH 1/4] socfpga: chameleonv3: Enable ext4 in SPL

2022-08-26 Thread Paweł Anikiel
Allow SPL to boot from an ext4 filesystem. Signed-off-by: Paweł Anikiel --- configs/socfpga_chameleonv3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_chameleonv3_defconfig b/configs/socfpga_chameleonv3_defconfig index e78d3b51de..a6901980b5 100644 --- a/configs

[PATCH 0/4] Update Chameleon v3 configuration

2022-08-26 Thread Paweł Anikiel
These changes add the third chameleon variation and make it easier to deploy images to different boards. Paweł Anikiel (4): socfpga: chameleonv3: Enable ext4 in SPL socfpga: chameleonv3: Move environment to a text file arm: dts: chameleonv3: Override chameleonv3 bitstream names arm: dts

Re: [PATCH] misc: atsha204a: Don't check for error when waking up the device

2022-08-08 Thread Paweł Anikiel
Hi Pali, I applied the patch and it works fine on my board. Log from atsha204a_wakeup(): Waking up ATSHA204A Try 1... success Tested-by: Paweł Anikiel Regards, Paweł On Sun, Aug 7, 2022 at 9:30 PM Pali Rohár wrote: > > Paweł, could you please test this change if it works on your bo

Re: [PATCH v3 08/11] socfpga: arria10: Replace delays with busy waiting in cm_full_cfg

2022-06-20 Thread Paweł Anikiel
On Mon, Jun 20, 2022 at 2:29 PM Chee, Tien Fong wrote: > > > > > -Original Message- > > From: Paweł Anikiel > > Sent: Monday, 20 June, 2022 8:14 PM > > To: Chee, Tien Fong > > Cc: Vasut, Marek ; simon.k.r.goldschm...@gmail.com; > > mic

Re: [PATCH v3 08/11] socfpga: arria10: Replace delays with busy waiting in cm_full_cfg

2022-06-20 Thread Paweł Anikiel
On Mon, Jun 20, 2022 at 10:40 AM Chee, Tien Fong wrote: > > Hi, > > > -Original Message- > > From: Paweł Anikiel > > Sent: Friday, 17 June, 2022 6:47 PM > > To: Vasut, Marek ; simon.k.r.goldschm...@gmail.com; > > Chee, Tien Fong ; michal.si...@xil

[PATCH v3 11/11] socfpga: arria10: Allow dcache_enable before relocation

2022-06-17 Thread Paweł Anikiel
e in OCRAM with the XN bit set causes a page fault. Override dram_bank_mmu_setup to disable XN in the OCRAM and setup DRAM dcache before relocation. Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- arch/arm/mach-socfpga/misc_arria10.c | 26 ++ 1 file changed, 26

[PATCH v3 10/11] socfpga: arria10: Wait for fifo empty after writing bitstream

2022-06-17 Thread Paweł Anikiel
before and after the delay, imgcfg_FifoEmpty is the only bit that changes. Waiting for this bit (instead of a hardcoded delay) also fixes the issue. Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- drivers/fpga/socfpga_arria10.c | 8 1 file changed, 8 insertions(+) diff --git a

[PATCH v3 09/11] socfpga: arria10: Improve bitstream loading speed

2022-06-17 Thread Paweł Anikiel
the fat fs driver doesn't have to allocate a temporary buffer in get_contents (assuming 8KiB clusters). * Change the buffer size to a larger value when reading to ddr (but not too large, because large transfers cause a stack overflow in the dwmmc driver). Signed-off-by: Paweł An

[PATCH v3 08/11] socfpga: arria10: Replace delays with busy waiting in cm_full_cfg

2022-06-17 Thread Paweł Anikiel
Using udelay while the clocks aren't fully configured causes the timer system to save the wrong clock rate. Use sdelay and wait_on_value instead (the values used in these functions were found experimentally). Signed-off-by: Paweł Anikiel --- arch/arm/mach-socfpga/clock_manager_arria10.c

[PATCH v3 07/11] sysreset: socfpga: Use parent device for reading base address

2022-06-17 Thread Paweł Anikiel
This driver is a child of the rstmgr driver, both of which share the same devicetree node. As a result, passing the child's udevice pointer to dev_read_addr_ptr results in a failure of reading the #address-cells property. Use the parent udevice pointer instead. Signed-off-by: Paweł An

[PATCH v3 06/11] misc: atsha204a: Increase wake delay by tWHI

2022-06-17 Thread Paweł Anikiel
>From the ATSHA204A datasheet (document DS40002025A): Wake: If SDA is held low for a period greater than tWLO, the device exits low-power mode and, after a delay of tWHI, is ready to receive I2C commands. tWHI value can be found in table 7-2. Signed-off-by: Paweł Anikiel Reviewed-by: Si

[PATCH v3 05/11] config: Add Chameleonv3 config

2022-06-17 Thread Paweł Anikiel
Add defconfig and Kconfig files for Google Chameleon V3 board Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- arch/arm/mach-socfpga/Kconfig | 7 + configs/socfpga_chameleonv3_defconfig | 29 ++ include/configs/socfpga_chameleonv3.h | 44

[PATCH v3 04/11] board: Add Chameleonv3 board dir

2022-06-17 Thread Paweł Anikiel
Add board directory for Google Chameleon V3 board Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- board/google/chameleonv3/Makefile | 5 +++ board/google/chameleonv3/board.c | 27 ++ board/google/chameleonv3/fpga.its | 28 ++ board

[PATCH v3 03/11] arm: dts: Add Chameleonv3 devicetrees

2022-06-17 Thread Paweł Anikiel
Add devicetrees for Google Chameleon V3 board Signed-off-by: Paweł Anikiel Signed-off-by: Alexandru M Stan Reviewed-by: Simon Glass --- arch/arm/dts/Makefile | 2 + arch/arm/dts/socfpga_arria10_chameleonv3.dts | 90

[PATCH v3 02/11] arm: dts: Add Chameleonv3 handoff headers

2022-06-17 Thread Paweł Anikiel
Add handoff headers for the Google Chameleonv3 variants: 480-2 and 270-3. Both files were generated using qts-filter-a10.sh. Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- ...ocfpga_arria10_chameleonv3_270_3_handoff.h | 305

[PATCH v3 01/11] arm: dts: Add Mercury+ AA1 devicetrees

2022-06-17 Thread Paweł Anikiel
Devicetree headers for Mercury+ AA1 module Signed-off-by: Paweł Anikiel Reviewed-by: Simon Glass --- .../socfpga_arria10_mercury_aa1-u-boot.dtsi | 54 ++ arch/arm/dts/socfpga_arria10_mercury_aa1.dtsi | 72 +++ 2 files changed, 126 insertions(+) create mode 100644

[PATCH v3 00/11] Add Chameleon v3 support

2022-06-17 Thread Paweł Anikiel
work both in u-boot and linux Put u-boot-specific parts of devicetrees into *-u-boot.dtsi files Minor changes in Kconfig, defconfig, and config.h Paweł Anikiel (11): arm: dts: Add Mercury+ AA1 devicetrees arm: dts: Add Chameleonv3 handoff headers arm: dts: Add Chameleonv3 devicetrees

Re: [PATCH v2 00/11] Add Chameleon v3 support

2022-06-15 Thread Paweł Anikiel
On Thu, May 26, 2022 at 4:37 PM Paweł Anikiel wrote: > > The Google Chameleon v3 is a board made for testing both video and audio > interfaces of external devices. It has a connector compatible with the > Mercury+ AA1 module, which itself contains an Arria 10 SoCFPGA. The AA1 > mo

Re: [PATCH v2 09/11] socfpga: arria10: Improve bitstream loading speed

2022-05-30 Thread Paweł Anikiel
On Fri, May 27, 2022 at 5:55 PM Simon Glass wrote: > > On Thu, 26 May 2022 at 07:38, Paweł Anikiel wrote: > > > > Apply some optimizations to speed up bitstream loading > > (both for full and split periph/core bitstreams): > > > > * Change the size o

[PATCH v2 09/11] socfpga: arria10: Improve bitstream loading speed

2022-05-26 Thread Paweł Anikiel
the fat fs driver doesn't have to allocate a temporary buffer in get_contents (assuming 8KiB clusters). * Change the buffer size to a larger value when reading to ddr (but not too large, because large transfers cause a stack overflow in the dwmmc driver). Signed-off-by: Paweł An

[PATCH v2 11/11] socfpga: arria10: Allow dcache_enable before relocation

2022-05-26 Thread Paweł Anikiel
e in OCRAM with the XN bit set causes a page fault. Override dram_bank_mmu_setup to disable XN in the OCRAM and setup DRAM dcache before relocation. Signed-off-by: Paweł Anikiel --- arch/arm/mach-socfpga/misc_arria10.c | 26 ++ 1 file changed, 26 insertions(+) diff --git

[PATCH v2 06/11] misc: atsha204a: Increase wake delay by tWHI

2022-05-26 Thread Paweł Anikiel
>From the ATSHA204A datasheet (document DS40002025A): Wake: If SDA is held low for a period greater than tWLO, the device exits low-power mode and, after a delay of tWHI, is ready to receive I2C commands. tWHI value can be found in table 7-2. Signed-off-by: Paweł Anikiel --- drivers/m

[PATCH v2 05/11] config: Add Chameleonv3 config

2022-05-26 Thread Paweł Anikiel
Add defconfig and Kconfig files for Google Chameleon V3 board Signed-off-by: Paweł Anikiel --- arch/arm/mach-socfpga/Kconfig | 7 + configs/socfpga_chameleonv3_defconfig | 29 ++ include/configs/socfpga_chameleonv3.h | 44 +++ 3 files changed

[PATCH v2 04/11] board: Add Chameleonv3 board dir

2022-05-26 Thread Paweł Anikiel
Add board directory for Google Chameleon V3 board Signed-off-by: Paweł Anikiel --- board/google/chameleonv3/Makefile | 5 +++ board/google/chameleonv3/board.c | 27 ++ board/google/chameleonv3/fpga.its | 28 ++ board/google/chameleonv3

[PATCH v2 03/11] arm: dts: Add Chameleonv3 devicetrees

2022-05-26 Thread Paweł Anikiel
Add devicetrees for Google Chameleon V3 board Signed-off-by: Paweł Anikiel Signed-off-by: Alexandru M Stan --- arch/arm/dts/Makefile | 2 + arch/arm/dts/socfpga_arria10_chameleonv3.dts | 90 +++ ...fpga_arria10_chameleonv3_270_3-u-boot.dtsi | 8

[PATCH v2 10/11] socfpga: arria10: Wait for fifo empty after writing bitstream

2022-05-26 Thread Paweł Anikiel
before and after the delay, imgcfg_FifoEmpty is the only bit that changes. Waiting for this bit (instead of a hardcoded delay) also fixes the issue. Signed-off-by: Paweł Anikiel --- drivers/fpga/socfpga_arria10.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/fpga

[PATCH v2 08/11] socfpga: arria10: Replace delays with busy waiting in cm_full_cfg

2022-05-26 Thread Paweł Anikiel
Using udelay while the clocks aren't fully configured causes the timer system to save the wrong clock rate. Use sdelay and wait_on_value instead (the values used in these functions were found experimentally). Signed-off-by: Paweł Anikiel --- arch/arm/mach-socfpga/clock_mana

[PATCH v2 07/11] sysreset: socfpga: Use parent device for reading base address

2022-05-26 Thread Paweł Anikiel
This driver is a child of the rstmgr driver, both of which share the same devicetree node. As a result, passing the child's udevice pointer to dev_read_addr_ptr results in a failure of reading the #address-cells property. Use the parent udevice pointer instead. Signed-off-by: Paweł An

[PATCH v2 01/11] arm: dts: Add Mercury+ AA1 devicetrees

2022-05-26 Thread Paweł Anikiel
Devicetree headers for Mercury+ AA1 module Signed-off-by: Paweł Anikiel --- .../socfpga_arria10_mercury_aa1-u-boot.dtsi | 54 ++ arch/arm/dts/socfpga_arria10_mercury_aa1.dtsi | 72 +++ 2 files changed, 126 insertions(+) create mode 100644 arch/arm/dts

[PATCH v2 02/11] arm: dts: Add Chameleonv3 handoff headers

2022-05-26 Thread Paweł Anikiel
Add handoff headers for the Google Chameleonv3 variants: 480-2 and 270-3. Both files were generated using qts-filter-a10.sh. Signed-off-by: Paweł Anikiel --- ...ocfpga_arria10_chameleonv3_270_3_handoff.h | 305 ++ ...ocfpga_arria10_chameleonv3_480_2_handoff.h | 305

[PATCH v2 00/11] Add Chameleon v3 support

2022-05-26 Thread Paweł Anikiel
-boot.dtsi files Minor changes in Kconfig, defconfig, and config.h Paweł Anikiel (11): arm: dts: Add Mercury+ AA1 devicetrees arm: dts: Add Chameleonv3 handoff headers arm: dts: Add Chameleonv3 devicetrees board: Add Chameleonv3 board dir config: Add Chameleonv3 config misc: atsha204a

Re: [PATCH 03/11] arm: dts: Add Chameleonv3 devicetree

2022-04-14 Thread Paweł Anikiel
On Mon, Apr 11, 2022 at 8:35 PM Simon Glass wrote: > > On Fri, 1 Apr 2022 at 06:44, Paweł Anikiel wrote: > > > > Add devicetree for Google Chameleon V3 board > > > > Signed-off-by: Paweł Anikiel > > --- > > arch/arm/dts/Makefile

Re: [PATCH 01/11] arm: dts: Add Mercury+ AA1 devicetree

2022-04-14 Thread Paweł Anikiel
On Mon, Apr 11, 2022 at 8:35 PM Simon Glass wrote: > > Hi Paweł, > > On Fri, 1 Apr 2022 at 06:44, Paweł Anikiel wrote: > > > > Device tree header for Mercury+ AA1 module > > > > Signed-off-by: Paweł Anikiel > > --- >

Re: [PATCH 02/11] arm: dts: Add Chameleonv3 handoff headers

2022-04-14 Thread Paweł Anikiel
On Mon, Apr 11, 2022 at 8:35 PM Simon Glass wrote: > > On Fri, 1 Apr 2022 at 06:44, Paweł Anikiel wrote: > > > > Add handoff headers for the Google Chameleonv3 variants: 480-2 and > > 270-3. Both files were generated using qts-filter-a10.sh. > > &g

Re: [PATCH 07/11] sysreset: socfpga: Use parent device for reading base address

2022-04-14 Thread Paweł Anikiel
On Mon, Apr 11, 2022 at 8:36 PM Simon Glass wrote: > > On Fri, 1 Apr 2022 at 06:44, Paweł Anikiel wrote: > > > > This driver is a child of the rstmgr driver, both of which share the > > same devicetree node. As a result, passing the child's udevice pointer > >

[PATCH 11/11] socfpga: arria10: Allow dcache_enable before relocation

2022-04-01 Thread Paweł Anikiel
e in OCRAM with the XN bit set causes a page fault. Override dram_bank_mmu_setup to disable XN in the OCRAM and setup DRAM dcache before relocation. Signed-off-by: Paweł Anikiel --- arch/arm/mach-socfpga/misc_arria10.c | 26 ++ 1 file changed, 26 insertions(+) diff --git

[PATCH 04/11] board: Add Chameleonv3 board dir

2022-04-01 Thread Paweł Anikiel
Add board directory for Google Chameleon V3 board Signed-off-by: Paweł Anikiel --- board/google/chameleonv3/Makefile | 5 +++ board/google/chameleonv3/board.c | 27 ++ board/google/chameleonv3/fpga.its | 28 ++ board/google/chameleonv3

[PATCH 10/11] socfpga: arria10: Wait for fifo empty after writing bitstream

2022-04-01 Thread Paweł Anikiel
before and after the delay, imgcfg_FifoEmpty is the only bit that changes. Waiting for this bit (instead of a hardcoded delay) also fixes the issue. Signed-off-by: Paweł Anikiel --- drivers/fpga/socfpga_arria10.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/fpga

[PATCH 08/11] socfpga: arria10: Replace delays with busy waiting in cm_full_cfg

2022-04-01 Thread Paweł Anikiel
Using udelay while the clocks aren't fully configured causes the timer system to save the wrong clock rate. Use sdelay and wait_on_value instead (the values used in these functions were found experimentally). Signed-off-by: Paweł Anikiel --- arch/arm/mach-socfpga/clock_mana

[PATCH 09/11] socfpga: arria10: Improve bitstream loading speed

2022-04-01 Thread Paweł Anikiel
the fat fs driver doesn't have to allocate a temporary buffer in get_contents (assuming 8KiB clusters). * Change the buffer size to a larger value when reading to ddr (but not too large, because large transfers cause a stack overflow in the dwmmc driver). Signed-off-by: Paweł An

[PATCH 05/11] config: Add Chameleonv3 config

2022-04-01 Thread Paweł Anikiel
Add defconfig and Kconfig files for Google Chameleon V3 board Signed-off-by: Paweł Anikiel --- arch/arm/mach-socfpga/Kconfig | 15 configs/socfpga_chameleonv3_defconfig | 29 include/configs/socfpga_chameleonv3.h | 49 +++ 3 files

[PATCH 07/11] sysreset: socfpga: Use parent device for reading base address

2022-04-01 Thread Paweł Anikiel
This driver is a child of the rstmgr driver, both of which share the same devicetree node. As a result, passing the child's udevice pointer to dev_read_addr_ptr results in a failure of reading the #address-cells property. Use the parent udevice pointer instead. Signed-off-by: Paweł An

[PATCH 06/11] misc: atsha204a: Increase wake delay by tWHI

2022-04-01 Thread Paweł Anikiel
>From the ATSHA204A datasheet (document DS40002025A): Wake: If SDA is held low for a period greater than tWLO, the device exits low-power mode and, after a delay of tWHI, is ready to receive I2C commands. tWHI value can be found in table 7-2. Signed-off-by: Paweł Anikiel --- drivers/m

[PATCH 03/11] arm: dts: Add Chameleonv3 devicetree

2022-04-01 Thread Paweł Anikiel
Add devicetree for Google Chameleon V3 board Signed-off-by: Paweł Anikiel --- arch/arm/dts/Makefile | 2 ++ arch/arm/dts/socfpga_chameleonv3.dtsi | 21 + arch/arm/dts/socfpga_chameleonv3_270_3.dts | 9 + arch/arm/dts

[PATCH 02/11] arm: dts: Add Chameleonv3 handoff headers

2022-04-01 Thread Paweł Anikiel
Add handoff headers for the Google Chameleonv3 variants: 480-2 and 270-3. Both files were generated using qts-filter-a10.sh. Signed-off-by: Paweł Anikiel --- .../dts/socfpga_chameleonv3_270_3_handoff.h | 305 ++ .../dts/socfpga_chameleonv3_480_2_handoff.h | 305

[PATCH 01/11] arm: dts: Add Mercury+ AA1 devicetree

2022-04-01 Thread Paweł Anikiel
Device tree header for Mercury+ AA1 module Signed-off-by: Paweł Anikiel --- arch/arm/dts/socfpga_mercury_aa1.dtsi | 95 +++ 1 file changed, 95 insertions(+) create mode 100644 arch/arm/dts/socfpga_mercury_aa1.dtsi diff --git a/arch/arm/dts/socfpga_mercury_aa1.dtsi b

[PATCH 00/11] Add Chameleon V3 support

2022-04-01 Thread Paweł Anikiel
-270-3E4-D11 and ME-AA1-480-2I3-D12E. This patchset adds support for the Chameleon V3 (both versions), as well as some bugfixes and optimizations, mostly in Arria 10 code. Paweł Anikiel (11): arm: dts: Add Mercury+ AA1 devicetree arm: dts: Add Chameleonv3 handoff headers arm: dts: Add