[PATCH 4/4] timer: imx-gpt: Add basic timer support for i.MX SoCs family

2021-02-07 Thread Jesse Taube
Signed-off-by: Jesse Taube Cc: Stefano Babic Cc: Giulio Benetti Cc: Jesse Taube This timer driver is using GPT Timer (General Purpose Timer) available on almost all i.MX SoCs family. Add code to enable timer. Add code get a defualt prescaler. Add defines for register masks. --- drivers

[PATCH 3/4] imxrt1050 dtsi gpt1 node

2021-02-07 Thread Jesse Taube
Signed-off-by: Jesse Taube Cc: Stefano Babic Cc: Giulio Benetti Cc: Jesse Taube --- arch/arm/dts/imxrt1050.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index a9281001e5..47a1d24973 100644 --- a/arch/arm/dts

[PATCH 1/4] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-07 Thread Jesse Taube
This timer driver is using GPT Timer (General Purpose Timer) available on almost all i.MX SoCs family. Signed-off-by: Giulio Benetti Cc: Stefano Babic Cc: Giulio Benetti Cc: Jesse Taube --- drivers/timer/Kconfig | 7 ++ drivers/timer/Makefile| 1 + drivers/timer/imx-gpt

[PATCH 0/3] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-07 Thread Jesse Taube
Add basic driver support for the IMX General Purpose Timer (GPT) available on almost all i.MX SoCs family. Giulio Benetti (3): timer: imx-gpt: Add timer support for i.MX SoCs family dt-bindings: clock: imxrt1050: add PIT GPT clock imxrt1050 dtsi gpt1 node Jesse Taube (1): timer: imx-gpt

[PATCH 2/4] dt-bindings: clock: imxrt1050: add PIT GPT clock

2021-02-07 Thread Jesse Taube
Signed-off-by: Giulio Benetti Cc: Stefano Babic Cc: Giulio Benetti Cc: Jesse Taube --- include/dt-bindings/clock/imxrt1050-clock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/imxrt1050-clock.h b/include/dt-bindings/clock/imxrt1050-clock.h

[PATCH 0/4] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-08 Thread Jesse Taube
Add basic driver support for the IMX General Purpose Timer (GPT) available on almost all i.MX SoCs family. Giulio Benetti (3): timer: imx-gpt: Add timer support for i.MX SoCs family dt-bindings: clock: imxrt1050: add PIT GPT clock imxrt1050 dtsi gpt1 node Jesse Taube (1): timer: imx-gpt

[PATCH] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-09 Thread Jesse Taube
From: Mr-Bossman This timer driver is using GPT Timer (General Purpose Timer) available on almost all i.MX SoCs family. Signed-off-by: Giulio Benetti Signed-off-by: Jesse Taube --- drivers/timer/Kconfig | 7 ++ drivers/timer/Makefile| 1 + drivers/timer/imx-gpt-timer.c

[PATCH v2 1/1] timer: imx-gpt: Add timer support for i.MX SoCs family

2021-02-09 Thread Jesse Taube
Signed-off-by: Jesse Taube --- drivers/timer/Kconfig | 7 ++ drivers/timer/Makefile| 1 + drivers/timer/imx-gpt-timer.c | 132 ++ 3 files changed, 140 insertions(+) create mode 100644 drivers/timer/imx-gpt-timer.c diff --git a/drivers/timer

[PATCH v2 0/1] Add driver support for the IMX General Purpose Timer (GPT) available

2021-02-09 Thread Jesse Taube
Giulio Benetti (3): timer: imx-gpt: Add timer support for i.MX SoCs family Jesse Taube (1): timer: imx-gpt: Add timer support for i.MX SoCs family drivers/timer/Kconfig | 7 ++ drivers/timer/Makefile| 1 + drivers/timer/imx-gpt-timer.c | 132

[PATCH 06/11] sunxi: Add F1C100s DRAM initial support

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Add support for F1C100s internal dram controller. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/include/asm/arch-sunxi/dram.h | 2 + arch/arm/include/asm/arch-sunxi/dram_suniv.h | 46 ++ arch/arm/mach-sunxi/Makefile | 2

[PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Add support for the suniv architecture, which is newer ARM9 SoCs by Allwinner. The design of it seems to be a mixture of sun3i, sun4i and sun6i. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/mach-sunxi/Kconfig | 16 +-- arch/arm/mach

[PATCH 10/11] ARM: dts: suniv: Add device tree files for F1C100s

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Add device tree files for suniv and Lichee Pi Nano it is a board based on F1C100s. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/dts/Makefile| 2 + arch/arm/dts/suniv-f1c100s-licheepi-nano.dts | 64 ++ arch/arm/dts

[PATCH 08/11] configs: sunxi: Add common SUNIV header

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Adds support for SUNIV and the F1C100s. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- include/configs/suniv.h| 14 +++ include/configs/sunxi-common.h | 67 -- 2 files changed, 62 insertions(+), 19 deletions

[PATCH 11/11] configs: sunxi: Add support for Lichee Pi Nano

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng The Lichee Pi Nano is a board based on the F1C100s. Add defconfigs for it. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- configs/licheepi_nano_defconfig | 13 configs/licheepi_nano_spiflash_defconfig | 25 2

[PATCH 02/11] arm: arm926ej-s: add sunxi code

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Some Allwinner SoCs use ARM926EJ-S core. Add Allwinner/sunXi specific code to ARM926EJ-S CPU dircetory. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/cpu/arm926ejs/Makefile | 1 + arch/arm/cpu/arm926ejs/sunxi/Makefile| 15

[PATCH 05/11] ARM: sunxi: Add support for F1C100s

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng This patch aims to add header files for the F1C100s. The header files included add support for gpio, dram and clocks. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/include/asm/arch-sunxi/clock.h | 2 +- arch/arm/include/asm/arch-sunxi

[PATCH 01/11] arm: arm926ej-s: start.S: port save_boot_params support from armv7 code

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng The ARMv7 start code has support for saving some boot params at the entry point, which is used by some SoCs to return to BROM. Port this to ARM926EJ-S start code. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/cpu/arm926ejs/start.S | 19

[PATCH 04/11] dt-bindings: reset: Add initial suniv headers

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng This commit introduces suniv dt-bindings headers needed for device tree files. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- include/dt-bindings/reset/suniv-ccu.h | 36 +++ 1 file changed, 36 insertions(+) create mode 100644 include

[PATCH 03/11] dt-bindings: clock: Add initial suniv headers

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng This commit introduces suniv dt-bindings headers needed for device tree files. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- include/dt-bindings/clock/suniv-ccu.h | 68 +++ 1 file changed, 68 insertions(+) create mode 100644 include

[PATCH 07/11] sunxi: board: Add support for SUNIV

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Generic Timer Extension is not available on SUNIV. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- board/sunxi/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 2790a0f9e8

[PATCH 00/11] Add support for SUNIV and F1C100s.

2022-01-04 Thread Jesse Taube
This patch set aims to add suport for the SUNIV and F1C100s. Suport has been in linux for a while now, but not in u-boot. This patchset contains: - CPU specific initialization code - SUNIV dram driver - SUNIV clock driver adaption - SUNIV gpio driver adaption - SUNIV uart driver adaption -

Re: [PATCH 00/11] Add support for SUNIV and F1C100s.

2022-01-05 Thread Jesse Taube
On 1/5/22 07:14, Andre Przywara wrote: On Wed, 05 Jan 2022 19:36:29 +0800 Icenowy Zheng wrote: Hi Jesse, 在 2022-01-04星期二的 19:34 -0500,Jesse Taube写道: This patch set aims to add suport for the SUNIV and F1C100s. Suport has been in linux for a while now, but not in u-boot. This patchset

Re: [ANN] U-Boot v2022.01-rc3 released

2021-11-29 Thread Jesse Taube
On 11/29/21 11:28, Tom Rini wrote: Hey all, It's been two weeks since v2022.01-rc2, so here's -rc3. To repeat what I said with -rc2, we've enabled issue tracking on our gitlab instance. You can sign up and then be able to file issues at: https://source.denx.de/groups/u-boot/-/issues This

Re: [PATCH v1 8/9] ARM: dts: Add Nuvoton NPCM845 device tree

2021-12-15 Thread Jesse Taube
> OK. The device trees at least need to be in linux-next. That will > cover a lot of baseline review that needs to happen before we take it > in. > Hi Tom! If my understanding is correct device tree's should be accepted into Linux-next before U-Boot, or am I wrong. Also Stanley, I don't think

Re: [PATCH 00/11] Add support for SUNIV and F1C100s.

2022-01-15 Thread Jesse Taube
On 1/10/22 00:13, Tnze Jdao wrote: I tested this patch and tried to run it on my LicheePi Nano. It works, but I found there is WARNINGs when compile the code: --- include/configs/sunxi-common.h:128:0: warning: "CONFIG_ENV_SECT_SIZE" redefined #define CONFIG_ENV_SECT_SIZE 0x1000 Ah I

[PATCH v1 2/2] imx: imxrt1050-evk: Add documentation for SPI boot

2022-03-11 Thread Jesse Taube
Adds documentation for SPI boot. Signed-off-by: Jesse Taube --- doc/board/nxp/imxrt1050-evk.rst | 41 + 1 file changed, 41 insertions(+) diff --git a/doc/board/nxp/imxrt1050-evk.rst b/doc/board/nxp/imxrt1050-evk.rst index c1fb48f0cd..0838a04871 100644 --- a/doc

[PATCH v1] clk: imxrt: Use dts for anatop base address

2022-03-11 Thread Jesse Taube
In Linux IMX and IMXRT use the device tree to hold the anatop address. The anatop is used in clock drivers as it controls the internal PLLs This will move the macro from asm/arch-imxrt to the device tree. This presumably should also be done with the other IMX boards as well. Signed-off-by: Jesse

[PATCH v1 1/2] imx: imxrt1050-evk: Add support for SPI flash booting

2022-03-11 Thread Jesse Taube
This add some macros to change addresses to use flexspi. This commit adds support for booting the imxrt1050-evk from spi. It adds imximage config and the ability for SPL to boot from NOR. Signed-off-by: Jesse Taube --- .../freescale/imxrt1050-evk/imximage-nor.cfg | 42

[PATCH v1 2/8] ARM: dts: imxrt11170-pinfunc: Add pinctrl binding header

2022-03-17 Thread Jesse Taube
Add binding header for i.MXRT1170 pinctrl device tree. Signed-off-by: Jesse Taube --- arch/arm/dts/imxrt1170-pinfunc.h | 1561 ++ 1 file changed, 1561 insertions(+) create mode 100644 arch/arm/dts/imxrt1170-pinfunc.h diff --git a/arch/arm/dts/imxrt1170-pinfunc.h b

[PATCH v2 4/4] board: freescale: imxrt10..-evk: Fix missing include of serial.h

2022-03-17 Thread Jesse Taube
If FALCON mode is enabled we have a missing include in spl_start_uboot. Signed-off-by: Jesse Taube --- board/freescale/imxrt1020-evk/imxrt1020-evk.c | 1 + board/freescale/imxrt1050-evk/imxrt1050-evk.c | 1 + 2 files changed, 2 insertions(+) diff --git a/board/freescale/imxrt1020-evk/imxrt1020

[PATCH v2 3/4] ARM: dts: imxrt10..-evk: Linux moved pins-imxrt1020 to dts

2022-03-17 Thread Jesse Taube
The Linux kernel moved dt-bindings/pinctrl/pins-imxrt to the device tree This patch move it in U-Boot as well. Signed-off-by: Jesse Taube --- arch/arm/dts/imxrt1020-evk.dts | 2 +- .../pins-imxrt1020.h => arch/arm/dts/imxrt1020-pinfunc.h| 0 arch/arm/

[PATCH v2 1/4] clk: imxrt: Use dts for anatop base address

2022-03-17 Thread Jesse Taube
In Linux IMX and IMXRT use the device tree to hold the anatop address. The anatop is used in clock drivers as it controls the internal PLLs This will move the macro from asm/arch-imxrt to the device tree. This presumably should also be done with the other IMX boards as well. Signed-off-by: Jesse

[PATCH v2 2/4] configs/*imxrt10*: SYS_MALLOC_LEN is too large

2022-03-17 Thread Jesse Taube
1M of heap is more than internal ram making booting without SDRAM not possible now it is 256k Signed-off-by: Jesse Taube --- configs/imxrt1020-evk_defconfig | 2 +- configs/imxrt1050-evk_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/imxrt1020

[PATCH v1 7/8] ARM: dts: imx: add i.MXRT1170-EVK support

2022-03-17 Thread Jesse Taube
features as follows: GPIO LPUART SD/MMC SDRAM Signed-off-by: Jesse Taube --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/imxrt1170-evk-u-boot.dtsi | 106 ++ arch/arm/dts/imxrt1170-evk.dts | 246 ++ arch/arm/dts/imxrt1170.dtsi| 274

[PATCH v2 0/4] IMXRT: Maintnice updates

2022-03-17 Thread Jesse Taube
Updates to the imxrt family include: - Adding missing include in board - Moving pinctrl binding to dts - Reducing SYS_MALLOC_LEN - Using device tree for anatop base address Jesse Taube (4): clk: imxrt: Use dts for anatop base address configs/*imxrt10*: SYS_MALLOC_LEN is too large ARM: dts

[PATCH v1 8/8] ARM: imxrt1170_defconfig: Add i.MXRT1170 defconfig

2022-03-17 Thread Jesse Taube
Add a base defconfig for the i.MXRT1170 Signed-off-by: Jesse Taube --- configs/imxrt1170-evk_defconfig | 67 + include/configs/imxrt1170-evk.h | 37 ++ 2 files changed, 104 insertions(+) create mode 100644 configs/imxrt1170-evk_defconfig create

[PATCH v1 4/8] clk: imx: Add i.MXRT11xx pllv3 variant

2022-03-17 Thread Jesse Taube
The i.MXRT11 series has two new pll types but are variants of existing. This patch adds the ability to read one of the pll types' frequency as it can't be changed unlike the generic pll it also has the division factors swapped. Signed-off-by: Jesse Taube --- drivers/clk/imx/clk-pllv3.c | 44

[PATCH v1 6/8] RAM: Add changes for i.MXRT11xx series

2022-03-17 Thread Jesse Taube
The i.MXRT11 series has different offsets for IOCR_MUX, it also can address 64MiB of SDRAM so add a macro for that. Signed-off-by: Jesse Taube --- drivers/ram/imxrt_sdram.c| 9 + include/dt-bindings/memory/imxrt-sdram.h | 1 + 2 files changed, 10 insertions(+) diff

[PATCH v1 5/8] clk: imx: Add initial support for i.MXRT1170 clock driver

2022-03-17 Thread Jesse Taube
Add clock driver support for i.MXRT1170. Signed-off-by: Jesse Taube --- drivers/clk/imx/Kconfig | 16 +++ drivers/clk/imx/Makefile| 1 + drivers/clk/imx/clk-imxrt1170.c | 215 3 files changed, 232 insertions(+) create mode 100644 drivers/clk

[PATCH v1 1/8] imx: imxrt1170-evk: Add support for the NXP i.MXRT1170-EVK

2022-03-17 Thread Jesse Taube
This commit adds board support for i.MXRT1170-EVK from NXP. This board is an evaluation kit provided by NXP for i.MXRT117x processor family. Signed-off-by: Jesse Taube --- arch/arm/include/asm/arch-imx/cpu.h | 1 + arch/arm/mach-imx/imxrt/Kconfig | 9 +++ arch/arm/mach

[PATCH v1 0/8] Add support for the i.MXRT1170

2022-03-17 Thread Jesse Taube
This patchset contains: - i.MXRT1170 clock driver adaption - i.MXRT1170-evk basic support Jesse Taube (8): imx: imxrt1170-evk: Add support for the NXP i.MXRT1170-EVK ARM: dts: imxrt11170-pinfunc: Add pinctrl binding header dt-bindings: imx: Add clock binding for i.MXRT1170 clk: imx: Add

[PATCH v1 3/8] dt-bindings: imx: Add clock binding for i.MXRT1170

2022-03-17 Thread Jesse Taube
Add the clock binding doc for i.MXRT1170. Signed-off-by: Jesse Taube --- include/dt-bindings/clock/imxrt1170-clock.h | 48 + 1 file changed, 48 insertions(+) create mode 100644 include/dt-bindings/clock/imxrt1170-clock.h diff --git a/include/dt-bindings/clock/imxrt1170

Re: [PATCH v2 0/3] Add SPI boot to SPL on SUNIV/F1C100s

2022-02-28 Thread Jesse Taube
Hey just checking if you know about this set. This patch adds the ability to detect the BROM's boot source, as well as the ability to boot from SPI. Jesse Taube (3): mach-sunxi: Add boot device detection for SUNIV/F1C100s mach-sunxi: Add SPL SPI boot for SUNIV mach-sunxi: Enable SPI

[PATCH v2 2/3] mach-sunxi: Add SPL SPI boot for SUNIV

2022-02-11 Thread Jesse Taube
-off-by: Jesse Taube [Jesse: adaptation to Upstream U-Boot] --- V1 -> V2: * Change commit description * Remove redundant conditional statment * Use else if for pin-function --- arch/arm/include/asm/arch-sunxi/gpio.h | 1 + arch/arm/mach-sunxi/spl_spi_sunxi.c| 24 +---

[PATCH v2 1/3] mach-sunxi: Add boot device detection for SUNIV/F1C100s

2022-02-11 Thread Jesse Taube
-by: Jesse Taube Suggested-by: Samuel Holland --- V1 -> V2: * Bail on NAND * Change commit description * Change sunxi_get_boot_source to u32 * Fix FEL boot by next change * Move suniv_get_boot_device call into sunxi_get_boot_source * Rename suniv_get_boot_device * Remove redundant comments --- arch/

[PATCH v2 3/3] mach-sunxi: Enable SPI boot for SUNIV and licheepi nano

2022-02-11 Thread Jesse Taube
Enable SPI boot in SPL on SUNIV architecture and use it in the licheepi nano that uses the F1C100s. Signed-off-by: Jesse Taube Reviewed-by: Andre Przywara --- V1 -> V2: * Change commit description --- arch/arm/mach-sunxi/Kconfig | 2 +- configs/licheepi_nano_defconfig | 1 + 2 fi

[PATCH v2 0/3] Add SPI boot to SPL on SUNIV/F1C100s

2022-02-11 Thread Jesse Taube
This patch adds the ability to detect the BROM's boot source, as well as the ability to boot from SPI. Jesse Taube (3): mach-sunxi: Add boot device detection for SUNIV/F1C100s mach-sunxi: Add SPL SPI boot for SUNIV mach-sunxi: Enable SPI boot for SUNIV and licheepi nano arch/arm/include

Re: [PATCH v2 1/3] mach-sunxi: Add boot device detection for SUNIV/F1C100s

2022-02-11 Thread Jesse Taube
On 2/11/22 19:32, Jesse Taube wrote: In contrast to other Allwinner SoCs the F1C100s BROM does not store a boot source indicator in the eGON header in SRAM. This leaves the SPL guessing where we were exactly booted from, and for instance trying the SD card first, even though we booted from

Re: [PATCH v1 5/8] clk: imx: Add initial support for i.MXRT1170 clock driver

2022-03-20 Thread Jesse Taube
On 3/20/22 15:17, Sean Anderson wrote: On 3/17/22 2:32 PM, Jesse Taube wrote: Add clock driver support for i.MXRT1170. Signed-off-by: Jesse Taube --- drivers/clk/imx/Kconfig | 16 +++ drivers/clk/imx/Makefile| 1 + drivers/clk/imx/clk-imxrt1170.c | 215

[PATCH v3 05/10] sunxi: Add F1C100s DRAM initial support

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Add support for F1C100s internal dram controller. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Nothing done V2->V3: * Nothing done --- arch/arm/include/asm/arch-sunxi/dram.h | 2 + arch/arm/include/asm/arch-sunxi/dram_suniv.h

[PATCH v3 04/10] ARM: sunxi: Add clock and uart to sunxi headers

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng This patch aims to add header files for the suniv. The header files included add support for uart, and clocks. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Signed-off-by: Jesse Taube --- V1->V2: * Change commit description and topic * Change PLL6_CFG_DEFA

[PATCH v3 07/10] configs: sunxi: Add common SUNIV header

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Adds support for SUNIV and the F1C100s. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Signed-off-by: Jesse Taube --- V1->V2: * Combine ifdefs * Fix indentation * Fix negative logic * Fix rebase artifacts * Remove CONFIG_SYS_LOAD_ADDR * Rem

[PATCH v3 03/10] arm: arm926ej-s: Add sunxi code

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Some Allwinner SoCs use ARM926EJ-S core. Add Allwinner/sunXi specific code to ARM926EJ-S CPU dircetory. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Signed-off-by: Jesse Taube --- V1->V2: * Fix Copyright notice * Remove lowlevel_init * Remove replaced time

[PATCH v3 02/10] mach-sunxi: Move timer code to mach folder

2022-01-29 Thread Jesse Taube
Both armv7 and arm926ejs use this timer code so move it to mach-sunxi. Signed-off-by: Jesse Taube --- V1->V2: * New commit V2->V3: * Remove timer.o from armv7 Makefile --- arch/arm/cpu/armv7/sunxi/Makefile| 1 - arch/arm/mach-sunxi/Makefile | 3 +++ ar

[PATCH v3 01/10] arm: arm926ej-s: start.S: port save_boot_params support from armv7 code

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng The ARMv7 start code has support for saving some boot params at the entry point, which is used by some SoCs to return to BROM. Port this to ARM926EJ-S start code. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Signed-off-by: Jesse Taube --- V1->V2: * Noth

[PATCH v3 06/10] sunxi: board: Add support for SUNIV

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Generic Timer Extension is not available on SUNIV. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Signed-off-by: Jesse Taube --- V1->V2: * Nothing done V2->V3: * Nothing done --- board/sunxi/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[PATCH v3 00/10] Add support for SUNIV and F1C100s.

2022-01-29 Thread Jesse Taube
: sunxi: Add support for Lichee Pi Nano Jesse Taube (1): mach-sunxi: Move timer code to mach folder Kconfig | 8 +- arch/arm/cpu/arm926ejs/Makefile | 1 + arch/arm/cpu/arm926ejs/cpu.c | 13 + arch/arm/cpu/arm926ejs/start.S

[PATCH v3 10/10] configs: sunxi: Add support for Lichee Pi Nano

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng The Lichee Pi Nano is a board based on the F1C100s. Add defconfigs for it. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Add SKIP_LOWLEVEL_INIT_ONLY * Remove spi defconfig V2->V3: * Move SYS_MALLOC_F_LEN to kconf and format it * Move SYS_LOA

[PATCH v3 09/10] ARM: dts: suniv: Add device tree files and bindings for F1C100s

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Add device tree files for suniv and Lichee Pi Nano it is a board based on F1C100s. dt-bindings/dts are synced with 5.16.0 Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Sync with Linux * Re-add MMC node V2->V3: * Add ifndef for mmc in s

[PATCH v3 08/10] mach-sunxi: Add support for SUNIV architecture

2022-01-29 Thread Jesse Taube
From: Icenowy Zheng Add support for the suniv architecture, which is newer ARM9 SoCs by Allwinner. The design of it seems to be a mixture of sun3i, sun4i and sun6i. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Remove change in s_init (sunxi: remove lowlevel_init)

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Jesse Taube
On 1/29/22 06:51, Andre Przywara wrote: On Fri, 28 Jan 2022 22:21:28 -0500 Jesse Taube wrote: On 1/26/22 09:38, Jesse Taube wrote: On 1/26/22 09:13, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:06 -0500 Jesse Taube wrote: Hi Jesse, I was checking some bits and pieces here, so

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Jesse Taube
On 1/29/22 15:59, Samuel Holland wrote: On 1/29/22 5:51 AM, Andre Przywara wrote: On Fri, 28 Jan 2022 22:21:28 -0500 Jesse Taube wrote: On 1/26/22 09:38, Jesse Taube wrote: On 1/26/22 09:13, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:06 -0500 Jesse Taube wrote: u32

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Jesse Taube
On 1/29/22 16:05, Jesse Taube wrote: On 1/29/22 15:59, Samuel Holland wrote: On 1/29/22 5:51 AM, Andre Przywara wrote: On Fri, 28 Jan 2022 22:21:28 -0500 Jesse Taube wrote: On 1/26/22 09:38, Jesse Taube wrote: On 1/26/22 09:13, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:06 -0500

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-29 Thread Jesse Taube
On 1/29/22 16:21, Giulio Benetti wrote: On 29/01/22 22:19, Jesse Taube wrote: On 1/29/22 16:05, Jesse Taube wrote: On 1/29/22 15:59, Samuel Holland wrote: On 1/29/22 5:51 AM, Andre Przywara wrote: On Fri, 28 Jan 2022 22:21:28 -0500 Jesse Taube wrote: On 1/26/22 09:38, Jesse Taube

Re: [PATCH v2 02/12] mach-sunxi: Move timer code to mach folder

2022-01-27 Thread Jesse Taube
On 1/27/22 19:41, Andre Przywara wrote: On Thu, 27 Jan 2022 15:40:13 -0500 Jesse Taube wrote: Hi, On 1/27/22 05:21, Andre Przywara wrote: On Wed, 26 Jan 2022 08:53:19 -0500 Jesse Taube wrote: Both armv7 and arm926ejs use this timer code so move it to mach-sunxi. Very nice, thanks

Re: [PATCH v2 02/12] mach-sunxi: Move timer code to mach folder

2022-01-27 Thread Jesse Taube
On 1/27/22 05:21, Andre Przywara wrote: On Wed, 26 Jan 2022 08:53:19 -0500 Jesse Taube wrote: Both armv7 and arm926ejs use this timer code so move it to mach-sunxi. Very nice, thanks for cleaning this up. But please remove the respective line from the Makefile in arch/arm/cpu/armv7

Re: Please test U-Boot Allwinner F1C100s support

2022-01-31 Thread Jesse Taube
On 1/31/22 08:07, Giulio Benetti wrote: Hi Andre, Il giorno 31 gen 2022, alle ore 13:57, Andre Przywara ha scritto: On Mon, 31 Jan 2022 13:17:52 +0100 Giulio Benetti wrote: Hi All, I've tried several times on both F1C100s and F1C200s, maybe I'm doing something wrong but it doesn't

Re: Please test U-Boot Allwinner F1C100s support

2022-01-30 Thread Jesse Taube
-sunxi/board.c with the suggestion that Stephen said. Should I submit after it gets into master or is tomorrow fine. Many thanks, Jesse Taube What should work though is booting via FEL and from SD card (the SPL MMC code is in place, if I am not mistaken). Just booting it to a U-Boot

Re: [PATCH v2 1/1] timer: npcm: Add driver for Nuvoton NPCM SoCs

2022-02-07 Thread Jesse Taube
longer about 2 days. You also may want to find other people more relevant to this patch. Do you have an online presence like linkedin, github etc? Thanks, Jesse Taube --- drivers/timer/Kconfig | 6 ++ drivers/timer/Makefile | 1 + drivers/timer/npcm-timer.c | 110

Re: [PATCH v1 1/3] mach-sunxi: Add boot device detection for SUNIV

2022-02-10 Thread Jesse Taube
On 2/10/22 05:57, Andre Przywara wrote: On Wed, 9 Feb 2022 23:34:36 -0500 Jesse Taube wrote: Hi Jesse, many thanks for sending this, much appreciated! Use Samuel's suggestion of looking at the BootRom's stack to determine the boot device. Can you please elaborate here what's going

Re: [PATCH v1 1/3] mach-sunxi: Add boot device detection for SUNIV

2022-02-10 Thread Jesse Taube
On 2/10/22 05:57, Andre Przywara wrote: On Wed, 9 Feb 2022 23:34:36 -0500 Jesse Taube wrote: Hi Jesse, many thanks for sending this, much appreciated! Use Samuel's suggestion of looking at the BootRom's stack to determine the boot device. Can you please elaborate here what's going

Re: [PATCH v1 1/3] mach-sunxi: Add boot device detection for SUNIV

2022-02-10 Thread Jesse Taube
On 2/10/22 14:38, Siarhei Siamashka wrote: On Thu, Feb 10, 2022 at 6:35 AM Jesse Taube wrote: [...] + case SUNIV_BOOTED_FROM_NAND: + case SUNIV_BOOTED_FROM_SPI: + return BOOT_DEVICE_SPI; Is it really okay to lump SPI and NAND together and return BOOT_DEVICE_SPI

Re: [PATCH v1 1/1] timer: npcm: Add driver for Nuvoton NPCM SoCs

2022-02-06 Thread Jesse Taube
sure why I have been CCed in many of you recent patches is there a reason for this? Thank you, Jesse Taube + +/* + * 24-bits down-counting hw timer. + * last_count: last hw counter value. + * counter: the value to be returned for get_count ops. + */ +struct npcm_timer_priv { +

Re: [PATCH v2 02/12] mach-sunxi: Move timer code to mach folder

2022-01-28 Thread Jesse Taube
On 1/28/22 09:28, Andre Przywara wrote: On Thu, 27 Jan 2022 23:51:09 -0500 Jesse Taube wrote: Hi Jesse, On 1/27/22 19:41, Andre Przywara wrote: On Thu, 27 Jan 2022 15:40:13 -0500 Jesse Taube wrote: Hi, On 1/27/22 05:21, Andre Przywara wrote: On Wed, 26 Jan 2022 08:53:19 -0500

Re: [PATCH v2 00/12] Add support for SUNIV and F1C100s.

2022-01-28 Thread Jesse Taube
On 1/28/22 21:40, Andre Przywara wrote: On Wed, 26 Jan 2022 08:53:17 -0500 Jesse Taube wrote: Hi Jesse, This patch set aims to add support for the SUNIV and F1C100s. Support has been in linux for a while now, but not in u-boot. This patchset contains: - CPU specific initialization code

Re: [PATCH v2 11/12] ARM: dts: suniv: Add device tree files for F1C100s

2022-01-28 Thread Jesse Taube
On 1/28/22 21:37, Andre Przywara wrote: On Fri, 28 Jan 2022 21:31:28 -0500 Jesse Taube wrote: On 1/28/22 21:25, Andre Przywara wrote: On Wed, 26 Jan 2022 08:53:28 -0500 Jesse Taube wrote: From: Icenowy Zheng Add device tree files for suniv and Lichee Pi Nano it is a board based

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-28 Thread Jesse Taube
On 1/26/22 09:38, Jesse Taube wrote: On 1/26/22 09:13, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:06 -0500 Jesse Taube wrote: Hi Jesse, I was checking some bits and pieces here, so sorry for the delay. I saw your v2, and will review that ASAP, so that we get one step closer. Please

Re: [PATCH v2 11/12] ARM: dts: suniv: Add device tree files for F1C100s

2022-01-28 Thread Jesse Taube
On 1/28/22 21:25, Andre Przywara wrote: On Wed, 26 Jan 2022 08:53:28 -0500 Jesse Taube wrote: From: Icenowy Zheng Add device tree files for suniv and Lichee Pi Nano it is a board based on F1C100s. As mentioned in the other email, please do a 1:1 copy from the current Linux tree. Yes

Re: [PATCH v2 03/12] arm: arm926ej-s: Add sunxi code

2022-01-28 Thread Jesse Taube
On 1/28/22 21:05, Andre Przywara wrote: On Wed, 26 Jan 2022 08:53:20 -0500 Jesse Taube wrote: From: Icenowy Zheng Some Allwinner SoCs use ARM926EJ-S core. Add Allwinner/sunXi specific code to ARM926EJ-S CPU dircetory. It looks like we eventually won't need this, since the SPL linker

[PATCH v1 3/3] mach-sunxi: Enable spi boot for SUNIV

2022-02-09 Thread Jesse Taube
Enable spi boot in spl on suniv architecture. Signed-off-by: Jesse Taube --- arch/arm/mach-sunxi/Kconfig | 2 +- configs/licheepi_nano_defconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 205fe3c9d3

[PATCH v1 0/3] Add spi boot to SPL on SUNIV

2022-02-09 Thread Jesse Taube
This patch adds the ability to detect the BROM's boot source as well as the ability to boot from spi. Jesse Taube (3): mach-sunxi: Add boot device detection for SUNIV mach-sunxi: Add spi boot for SUNIV mach-sunxi: Enable spi boot for SUNIV arch/arm/include/asm/arch-sunxi/gpio.h | 1

[PATCH v1 2/3] mach-sunxi: Add spi boot for SUNIV

2022-02-09 Thread Jesse Taube
Add support for the spi boot in spl on suniv architecture. Signed-off-by: Jesse Taube --- arch/arm/include/asm/arch-sunxi/gpio.h | 1 + arch/arm/mach-sunxi/spl_spi_sunxi.c| 26 +++--- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/arch/arm/include/asm

[PATCH v1 1/3] mach-sunxi: Add boot device detection for SUNIV

2022-02-09 Thread Jesse Taube
Use Samuel's suggestion of looking at the BootRom's stack to determine the boot device. Signed-off-by: Jesse Taube Suggested-by: Samuel Holland --- arch/arm/include/asm/arch-sunxi/spl.h | 15 arch/arm/mach-sunxi/board.c | 50 --- 2 files changed, 38

Re: [PATCH 00/11] Add support for SUNIV and F1C100s.

2022-01-20 Thread Jesse Taube
On 1/20/22 13:12, Chris Morgan wrote: On Sat, Jan 15, 2022 at 04:02:05PM -0500, Jesse Taube wrote: On 1/10/22 00:13, Tnze Jdao wrote: I tested this patch and tried to run it on my LicheePi Nano. It works, but I found there is WARNINGs when compile the code: --- include/configs/sunxi

Re: [PATCH 02/11] arm: arm926ej-s: add sunxi code

2022-01-20 Thread Jesse Taube
On 1/20/22 21:25, Andre Przywara wrote: On Tue, 4 Jan 2022 19:34:59 -0500 Jesse Taube wrote: Hi, From: Icenowy Zheng Some Allwinner SoCs use ARM926EJ-S core. Add Allwinner/sunXi specific code to ARM926EJ-S CPU dircetory. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube

Re: [PATCH 10/11] ARM: dts: suniv: Add device tree files for F1C100s

2022-01-20 Thread Jesse Taube
On 1/20/22 20:59, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:07 -0500 Jesse Taube wrote: Hi, From: Icenowy Zheng Add device tree files for suniv and Lichee Pi Nano it is a board based on F1C100s. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube Those files differ

[PATCH v2 05/12] dt-bindings: reset: Add initial suniv headers

2022-01-26 Thread Jesse Taube
From: Icenowy Zheng This commit introduces suniv dt-bindings headers needed for device tree files. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Sync with Linux --- include/dt-bindings/reset/suniv-ccu.h | 37 +++ 1 file changed, 37 inserti

[PATCH v2 03/12] arm: arm926ej-s: Add sunxi code

2022-01-26 Thread Jesse Taube
From: Icenowy Zheng Some Allwinner SoCs use ARM926EJ-S core. Add Allwinner/sunXi specific code to ARM926EJ-S CPU dircetory. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Fix Copyright notice * Remove lowlevel_init * Remove replaced timer.c * Remove Read CP15 Cont

[PATCH v2 04/12] dt-bindings: clock: Add initial suniv headers

2022-01-26 Thread Jesse Taube
From: Icenowy Zheng This commit introduces suniv dt-bindings headers needed for device tree files. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Sync with Linux --- include/dt-bindings/clock/suniv-ccu.h | 69 +++ 1 file changed, 69 inserti

[PATCH v2 02/12] mach-sunxi: Move timer code to mach folder

2022-01-26 Thread Jesse Taube
Both armv7 and arm926ejs use this timer code so move it to mach-sunxi. Signed-off-by: Jesse Taube --- V1->V2: * New commit --- arch/arm/mach-sunxi/Makefile | 3 +++ arch/arm/{cpu/armv7/sunxi => mach-sunxi}/timer.c | 7 --- 2 files changed, 7 insertions(+), 3 del

[PATCH v2 01/12] arm: arm926ej-s: start.S: port save_boot_params support from armv7 code

2022-01-26 Thread Jesse Taube
From: Icenowy Zheng The ARMv7 start code has support for saving some boot params at the entry point, which is used by some SoCs to return to BROM. Port this to ARM926EJ-S start code. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube Reviewed-by: Andre Przywara --- V1->V2: * Noth

[PATCH v2 00/12] Add support for SUNIV and F1C100s.

2022-01-26 Thread Jesse Taube
for SUNIV configs: sunxi: Add common SUNIV header mach-sunxi: Add support for SUNIV architecture ARM: dts: suniv: Add device tree files for F1C100s configs: sunxi: Add support for Lichee Pi Nano Jesse Taube (1): mach-sunxi: Move timer code to mach folder arch/arm/cpu/arm926ej

Re: [PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-26 Thread Jesse Taube
On 1/26/22 09:13, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:06 -0500 Jesse Taube wrote: Hi Jesse, I was checking some bits and pieces here, so sorry for the delay. I saw your v2, and will review that ASAP, so that we get one step closer. Please don't send a v3 before that. If you

[PATCH v2 09/12] configs: sunxi: Add common SUNIV header

2022-01-26 Thread Jesse Taube
From: Icenowy Zheng Adds support for SUNIV and the F1C100s. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Combine ifdefs * Fix indentation * Fix negative logic * Fix rebase artifacts * Remove CONFIG_SYS_LOAD_ADDR * Remove CONFIG_ENV_SECT_SIZE --- include/conf

[PATCH v2 10/12] mach-sunxi: Add support for SUNIV architecture

2022-01-26 Thread Jesse Taube
From: Icenowy Zheng Add support for the suniv architecture, which is newer ARM9 SoCs by Allwinner. The design of it seems to be a mixture of sun3i, sun4i and sun6i. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Remove change in s_init (sunxi: remove lowlevel_i

[PATCH v2 07/12] sunxi: Add F1C100s DRAM initial support

2022-01-26 Thread Jesse Taube
From: Icenowy Zheng Add support for F1C100s internal dram controller. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Nothing done --- arch/arm/include/asm/arch-sunxi/dram.h | 2 + arch/arm/include/asm/arch-sunxi/dram_suniv.h | 46 ++ arch/arm/mach-su

[PATCH v2 06/12] ARM: sunxi: Add clock and uart to sunxi headers

2022-01-26 Thread Jesse Taube
From: Icenowy Zheng This patch aims to add header files for the suniv. The header files included add support for uart, and clocks. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Change commit description and topic * Change PLL6_CFG_DEFAULT * Combine APB1_GATE ifd

[PATCH v2 08/12] sunxi: board: Add support for SUNIV

2022-01-26 Thread Jesse Taube
From: Icenowy Zheng Generic Timer Extension is not available on SUNIV. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Signed-off-by: Jesse Taube --- V1->V2: * Nothing done --- board/sunxi/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/su

Re: [PATCH 11/11] configs: sunxi: Add support for Lichee Pi Nano

2022-01-26 Thread Jesse Taube
On 1/26/22 09:13, Andre Przywara wrote: On Tue, 4 Jan 2022 19:35:08 -0500 Jesse Taube wrote: Hi, From: Icenowy Zheng The Lichee Pi Nano is a board based on the F1C100s. Add defconfigs for it. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- configs

Re: [PATCH v2 09/12] configs: sunxi: Add common SUNIV header

2022-01-26 Thread Jesse Taube
On 1/26/22 08:53, Jesse Taube wrote: From: Icenowy Zheng Adds support for SUNIV and the F1C100s. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- V1->V2: * Combine ifdefs * Fix indentation * Fix negative logic * Fix rebase artifacts * Remove CONFIG_SYS_LOAD_ADDR * Rem

  1   2   >