[PATCH] timer: npcm: Change counter source

2024-05-13 Thread Jim Liu
From: Stanley Chu The counter value read from TDR register may not be correct. Read SECCNT and CNTR25M instead to get the correct timestamp. Signed-off-by: Stanley Chu --- arch/arm/dts/nuvoton-common-npcm7xx.dtsi | 12 ++-- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 13 ++--

[PATCH] phy: Use dt-bindig definations for npcm usb phy

2024-05-13 Thread Jim Liu
Use dt-binding definations for the phy switch connection. It declares the target usb controller it is connected to. Signed-off-by: Jim Liu --- drivers/phy/phy-npcm-usb.c | 27 ++- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/drivers/phy/phy-npcm-usb.c

[PATCH v1] board: nuvoton: Use an event to replace last_stage_init() and fix build error

2024-05-07 Thread Jim Liu
Followed the new style use event to replace last_stage_init(). Fixed build error After replace last_stage_init(). And remove CONFIG_SYS_SKIP_UART_INIT from defconfig, system will reuse the setting from bootblock and skip the baud rate setting. Signed-off-by: Jim Liu --- board/nuvoton/arbel_evb

[PATCH v1] crypto: nuvoton: npcm_sha: Support SHA 384/512

2024-04-29 Thread Jim Liu
1. Use vendor naming rule to rename each function 2. add SHA 384/512 support Signed-off-by: Jim Liu --- drivers/crypto/nuvoton/npcm_sha.c | 1024 +++-- 1 file changed, 252 insertions(+), 772 deletions(-) diff --git a/drivers/crypto/nuvoton/npcm_sha.c b/drivers/crypto

[PATCH v1 3/3] board: arbel: Limit the dram effective size to bank0 maximal size

2024-04-23 Thread Jim Liu
For 4GB dram size, the dram is divided into 2 banks and the address space of these 2 banks are not concatenated. Limit the gd->ram_top to not exceed bank0 top to prevent accessing invalid memory region. Signed-off-by: Jim Liu --- board/nuvoton/arbel_evb/arbel_evb.c | 14 +- 1 f

[PATCH v1 2/3] configs: arbel: increase u-boot mapping size

2024-04-23 Thread Jim Liu
(0x800), so increase mapping size from 128MB to 192MB. Signed-off-by: Jim Liu --- include/configs/arbel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/arbel.h b/include/configs/arbel.h index 576ee37ee4..d8ccc45968 100644 --- a/include/configs/arbel.h +++ b

[PATCH v1 1/3] Arm: npcm: fix npcm7xx boot to kernel error

2024-04-23 Thread Jim Liu
Add mem and console env information and modify the wrong earlycon env. Signed-off-by: Jim Liu --- board/nuvoton/poleg_evb/poleg_evb.c | 27 --- include/configs/poleg.h | 4 ++-- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/board/nuvoton

[PATCH v1 0/3] Arm: npcm: modify npcm mem and boot issue

2024-04-23 Thread Jim Liu
1. Modify npcm memory setting 2. Fix boot error Jim Liu (3): Arm: npcm: fix npcm7xx boot to kernel error configs: arbel: increase u-boot mapping size board: arbel: Limit the dram effective size to bank0 maximal size board/nuvoton/arbel_evb/arbel_evb.c | 14 +- board/nuvoton

[PATCH v1] spi: npcm_pspi: Reset HW in driver probe

2024-04-23 Thread Jim Liu
Reset HW to clear old status and use default data mode(8-bit). Signed-off-by: Jim Liu --- drivers/spi/npcm_pspi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/spi/npcm_pspi.c b/drivers/spi/npcm_pspi.c index eb14185273..c9441304f5 100644 --- a/drivers/spi/npcm_pspi.c

[PATCH v1] configs: arbel: Use generic timer and npcm reset driver

2024-04-09 Thread Jim Liu
Modify defconfig to use generic timer and npcm reset driver Signed-off-by: Jim Liu --- configs/arbel_evb_defconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index 45fafe790c..08753aebc0 100644 --- a/configs

[PATCH v1] net: designware: Pass all multicast frames in designware driver

2024-04-08 Thread Jim Liu
Allowing multicast packets is required for IPv6 neighbor discovery protocol. Signed-off-by: Parvathi Bhogaraju Signed-off-by: Jim Liu --- drivers/net/designware.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 03b531c667

[PATCH v1] net: designware: Invalidate RX buffer cache before freeing the DMA descriptor

2024-04-08 Thread Jim Liu
. This ensure that the dirty cache line doesn't inadvertently written back due to cache eviction, there by corrupting the RX buffer Signed-off-by: Parvathi Bhogaraju Signed-off-by: Jim Liu --- drivers/net/designware.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net

[PATCH v1] arm: dts: nuvoton: modify npcm8xx reset property

2024-01-23 Thread Jim Liu
Change reset method from generic to reset driver Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 2 + arch/arm/dts/nuvoton-npcm8xx-u-boot.dtsi | 71 2 files changed, 24 insertions(+), 49 deletions(-) diff --git a/arch/arm/dts/nuvoton-common

[PATCH v2] reset: npcm: Add support for Nuvoton NPCM BMC family

2024-01-02 Thread Jim Liu
Add reset controller driver for Nuvoton BMCs. The npcm reset driver not only supports reset each module reset but setting initial value of reset Control Registers. And The driver support each module reset. Signed-off-by: Jim Liu --- Changes for v2: - Use probe function to initialize priv

[PATCH v1] reset: npcm: Add support for Nuvoton NPCM BMC family

2023-12-25 Thread Jim Liu
Add reset controller driver for Nuvoton BMCs. The npcm reset driver not only supports reset each module reset but setting initial value of reset Control Registers. And The driver support each module reset. Signed-off-by: Jim Liu --- drivers/reset/Kconfig | 7 ++ drivers/reset/Makefile

[PATCH v1] spi: npcm_pspi: Fix the wrong clock divider calculation

2023-12-25 Thread Jim Liu
Fix the wrong clock divider calculation. Signed-off-by: Jim Liu --- drivers/spi/npcm_pspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/npcm_pspi.c b/drivers/spi/npcm_pspi.c index 37bab70967..eb14185273 100644 --- a/drivers/spi/npcm_pspi.c +++ b/drivers/spi

[PATCH v2] net: designware: Add bitbang feature for designware driver

2023-11-16 Thread Jim Liu
Add bb_miiphy_bus function for designware bitbang feature. Signed-off-by: Jim Liu --- Changes for v2: - add bitbang delay dts read - modify printf to debug --- drivers/net/designware.c | 105 +++ drivers/net/designware.h | 5 ++ 2 files changed, 110

Re: [PATCH v2 0/4] fix/add npcm845 serial and board error

2023-11-14 Thread Jim Liu
, Jim On Wed, Nov 15, 2023 at 12:23 AM Tom Rini wrote: > > On Tue, Nov 14, 2023 at 04:51:55PM +0800, Jim Liu wrote: > > > 1. Fix serial error and add bypass serial setting. > > 2. Fix/Add dts node node. > > 3. Add full function defconfig > > > > Jim Liu (4

[PATCH v3] clk: nuvoton: add read only feature for clk driver

2023-11-14 Thread Jim Liu
Add a flag to set ahb/apb/fiu/spi clock divider as read-only The spi clock setting is related to booting flash, it is setup by early bootloader. It just protects the clock source and can't modify it in uboot. Signed-off-by: Jim Liu --- Changes for v3: - add commit message Changes for v2

[PATCH v2 4/4] board: nuvoton: update console environment variable

2023-11-14 Thread Jim Liu
If CONFIG_SYS_SKIP_UART_INIT is enabled, calculate the current baud rate and update the "console" environment variable. Signed-off-by: Jim Liu --- Changes for v2: --- rename file --- modify board_set_console to void function --- board/nuvoton/arbel_evb/Kconfig | 1 + boa

[PATCH v2 3/4] serial: npcm: support skip uart clock setting

2023-11-14 Thread Jim Liu
Skip the uart clock setting if CONFIG_SYS_SKIP_UART_INIT is enabled. Fix divisor error. Signed-off-by: Jim Liu --- Changes for v2: - no change --- drivers/serial/serial_npcm.c | 39 ++-- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/drivers

[PATCH v2 2/4] configs: arbel: Enable full functions

2023-11-14 Thread Jim Liu
Enable more functions/commands for arbel evb. Signed-off-by: Jim Liu --- Changes for v2: --- no change --- configs/arbel_evb_defconfig | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index

[PATCH v2 1/4] arm: dts: npcm845-evb: fix/add node and aliases

2023-11-14 Thread Jim Liu
Modify spi and usb aliases name. Add dt-binding for usb phy define and fix usb phy reset error. Add tpm/otpee and host_intf node. Signed-off-by: Jim Liu --- Changes for v2: - add espi node --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 11 ++- arch/arm/dts/nuvoton-npcm845-evb.dts

[PATCH v2 0/4] fix/add npcm845 serial and board error

2023-11-14 Thread Jim Liu
1. Fix serial error and add bypass serial setting. 2. Fix/Add dts node node. 3. Add full function defconfig Jim Liu (4): arm: dts: npcm845-evb: fix/add node and aliases configs: arbel: Enable full functions serial: npcm: support skip uart clock setting board: nuvoton: update console

Re: [PATCH v2] clk: nuvoton: add read only feature for clk driver

2023-11-12 Thread Jim Liu
Hi Sean Thanks for your review. The spi clock setting is related to booting flash, it is setup by early bootloader and we don't want u-boot to change it Best regards, Jim On Thu, Nov 9, 2023 at 2:07 AM Sean Anderson wrote: > > On 11/7/23 04:01, Jim Liu wrote: > > Add a flag to

[PATCH v1 4/4] serial: npcm: support skip uart clock setting

2023-11-07 Thread Jim Liu
Skip the uart clock setting if CONFIG_SYS_SKIP_UART_INIT is enabled. Fix divisor error. Signed-off-by: Jim Liu --- drivers/serial/serial_npcm.c | 39 ++-- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/drivers/serial/serial_npcm.c b/drivers

[PATCH v1 3/4] configs: arbel: Enable full functions

2023-11-07 Thread Jim Liu
Enable more functions/commands for arbel evb. Signed-off-by: Jim Liu --- configs/arbel_evb_defconfig | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index 6cfb5a7d32..dddfa298c9 100644

[PATCH v1 2/4] board: nuvoton: update console environment variable

2023-11-07 Thread Jim Liu
If CONFIG_SYS_SKIP_UART_INIT is enabled, calculate the current baud rate and update the "console" environment variable. Signed-off-by: Jim Liu --- board/nuvoton/arbel_evb/Kconfig | 1 + board/nuvoton/common/Kconfig| 9 + board/nuvoton/common/Makefile | 1 + board/nuvo

[PATCH v1 1/4] arm: dts: npcm845-evb: fix/add node and aliases name

2023-11-07 Thread Jim Liu
Modify spi and usb aliases name. Add dt-binding for usb phy define and fix usb phy reset error. Add tpm and otpee node. Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 2 +- arch/arm/dts/nuvoton-npcm845-evb.dts | 29 ++- arch/arm/dts/nuvoton

[PATCH v1 0/4] fix/add npcm845 serial and board error

2023-11-07 Thread Jim Liu
1. Fix serial error and add bypass serial setting. 2. Fix/Add dts node node. 3. Add full function defconfig Jim Liu (4): arm: dts: npcm845-evb: fix/add node and aliases name board: nuvoton: update console environment variable configs: arbel: Enable full functions serial: npcm: support

[PATCH v2] clk: nuvoton: add read only feature for clk driver

2023-11-07 Thread Jim Liu
Add a flag to set ahb/apb/fiu clock divider as read-only It just protects the clock source and can't modify it in uboot. Signed-off-by: Jim Liu --- Changes for v2: - add commit message --- drivers/clk/nuvoton/clk_npcm.c| 15 --- drivers/clk/nuvoton/clk_npcm.h| 1

[PATCH v4 4/4] configs: nuvoton: npcm8xx: Disable CONFIG_SPI_FLASH_USE_4K_SECTORS

2023-10-23 Thread Jim Liu
disable this config to improve flash program time Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - no change Changes for v4: - no change --- configs/arbel_evb_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/arbel_evb_defconfig b

[PATCH v4 3/4] board: nuvuton: arbel: Fix incorrect ram size

2023-10-23 Thread Jim Liu
1. Fix incorrect ram size of 4GB dram with ECC enabled 2. Fix wrong place to set dram bank size - The dram bank size should be set in dram_init_banksize - Dram_init should not access gd->bd because the board info struct is not reserved yet. Signed-off-by: Jim Liu Changes for

[PATCH v4 2/4] configs: npcm: Support more uart baud rate

2023-10-23 Thread Jim Liu
Add uart baud rate table to arbel(npcm8xx) and poleg(npcm7xx) Signed-off-by: Jim Liu Changes for v2: - Add commit message Changes for v3: - Modify CONFIG_SYS_BAUDRATE_TABLE Changes for v4: - No change --- include/configs/arbel.h | 5 - include/configs/poleg.h | 2 ++ 2 files

[PATCH v4 1/4] pinctrl: npcm8xx: Add name for gpio function

2023-10-23 Thread Jim Liu
GPIO function name is needed in the debug log Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - no change Changes for v4: - no change --- drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/nuvoton

[PATCH v4 0/4] fix npcm bmc error

2023-10-23 Thread Jim Liu
1. Add name for gpio pinctrl function 2. Add baud rate table 3. Fix ecc ram size - ECC ram size - Fix wrong place to set dram bank size 4. Modify configs Jim Liu (4): pinctrl: npcm8xx: add name for gpio function configs: npcm: support more uart baud rate board: nuvuton: arbel: fix

[PATCH v3] wdt: nuvoton: Fix reset/expire function error

2023-10-17 Thread Jim Liu
Fix npcm845 watchdog halt for reset function and expire function. Reset function is restart wdt. Signed-off-by: Jim Liu Changes for v3: - Modify start sentences - Remove empty line Changes for v2: - Add commit message - Fix no empty line problem - Remove dts --- drivers/watchdog

[PATCH v3 4/4] configs: nuvoton: npcm8xx: disable CONFIG_SPI_FLASH_USE_4K_SECTORS

2023-10-12 Thread Jim Liu
disable this config to improve flash program time Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - no change --- configs/arbel_evb_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index

[PATCH v3 3/4] board: nuvuton: arbel: fix incorrect ram size

2023-10-12 Thread Jim Liu
fix incorrect ram size of 4GB dram with ECC enabled Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - no change --- board/nuvoton/arbel_evb/arbel_evb.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/board/nuvoton

[PATCH v3 2/4] configs: npcm: support more uart baud rate

2023-10-12 Thread Jim Liu
add uart baud rate table to arbel(npcm8xx) and poleg(npcm7xx) Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - modify CONFIG_SYS_BAUDRATE_TABLE --- include/configs/arbel.h | 5 - include/configs/poleg.h | 2 ++ 2 files changed, 6 insertions(+), 1

[PATCH v3 1/4] pinctrl: npcm8xx: add name for gpio function

2023-10-12 Thread Jim Liu
gpio function name is needed in the debug log Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - no change --- drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c b/drivers

[PATCH v3 0/4] fix npcm bmc error

2023-10-12 Thread Jim Liu
1. add name for gpio pinctrl function 2. add baud rate table 3. fix ecc ram size 4. modify configs Jim Liu (4): pinctrl: npcm8xx: add name for gpio function configs: npcm: support more uart baud rate board: nuvuton: arbel: fix incorrect ram size configs: nuvoton: npcm8xx: disable

Re: [PATCH v2 2/5] configs: npcm: support more uart baud rate

2023-10-11 Thread Jim Liu
Hi Tom Thanks for your review. Google and other customers need to change baud rate so I added this table. I will modify the name to CFG_SYS_BAUDRATE_TABLE. Best regards, Jim On Wed, Oct 11, 2023 at 7:20 AM Tom Rini wrote: > > On Wed, Oct 11, 2023 at 04:45:30PM +0800, Jim Liu wrote: &

[PATCH v2 5/5] configs: nuvoton: npcm8xx: disable CONFIG_SPI_FLASH_USE_4K_SECTORS

2023-10-11 Thread Jim Liu
disable this config to improve flash program time Signed-off-by: Jim Liu --- configs/arbel_evb_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index 8c32b4b20d..6cfb5a7d32 100644 --- a/configs/arbel_evb_defconfig +++ b

[PATCH v2 4/5] arm: dts: npcm8xx: add watchdog node

2023-10-11 Thread Jim Liu
add npcm8xx watchdog node Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/dts/nuvoton-common-npcm8xx.dtsi b/arch/arm/dts/nuvoton-common-npcm8xx.dtsi index fabe5925b7..fb544e5f1a 100644

[PATCH v2 3/5] board: nuvuton: arbel: fix incorrect ram size

2023-10-11 Thread Jim Liu
fix incorrect ram size of 4GB dram with ECC enabled Signed-off-by: Jim Liu --- board/nuvoton/arbel_evb/arbel_evb.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/board/nuvoton/arbel_evb/arbel_evb.c b/board/nuvoton/arbel_evb/arbel_evb.c index e52e0a59ab

[PATCH v2 2/5] configs: npcm: support more uart baud rate

2023-10-11 Thread Jim Liu
add uart baud rate table to arbel(npcm8xx) and poleg(npcm7xx) Signed-off-by: Jim Liu --- include/configs/arbel.h | 5 - include/configs/poleg.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/configs/arbel.h b/include/configs/arbel.h index 891257bc93

[PATCH v2 1/5] pinctrl: npcm8xx: add name for gpio function

2023-10-11 Thread Jim Liu
gpio function name is needed in the debug log Signed-off-by: Jim Liu --- drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c b/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c index 7976e3b3ed..ff49819b58 100644

[PATCH v2 0/5] fix npcm bmc error

2023-10-11 Thread Jim Liu
1. add name for gpio pinctrl function 2. add baud rate table 3. fix ecc ram size 4. add dts 5. modify configs Jim Liu (5): pinctrl: npcm8xx: add name for gpio function configs: npcm: support more uart baud rate board: nuvuton: arbel: fix incorrect ram size arm: dts: npcm8xx: add watchdog

Re: [PATCH v1 3/3] arm: npcm8xx: support dcache off

2023-10-03 Thread Jim Liu
Hi Tom Thanks for your reply. I will create another thread for this topic. Best regards, Jim On Mon, Oct 2, 2023 at 7:04 AM Tom Rini wrote: > > On Mon, Oct 02, 2023 at 12:40:54AM -0700, Jim Liu wrote: > > > Hi Tom > > > > I followed your suggestion to modify the code

[PATCH v2] i2c: nuvoton: remove standard mode only

2023-10-03 Thread Jim Liu
first version is only support standard mode. remove this judgment to support standard/fast/fast plus mode. Signed-off-by: Jim Liu Changes for v2: - add commit message --- drivers/i2c/npcm_i2c.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/i2c/npcm_i2c.c b/drivers/i2c

[PATCH v2] wdt: nuvoton: fix reset/expire function error

2023-10-03 Thread Jim Liu
fix npcm845 watchdog halt for reset function and expire function. reset function is restart wdt. Signed-off-by: Jim Liu Changes for v2: - add commit message - fix no empty line problem - remove dts --- drivers/watchdog/npcm_wdt.c | 11 +-- 1 file changed, 9 insertions(+), 2

Re: [PATCH v1] i2c: nuvoton: add support fast mode

2023-10-03 Thread Jim Liu
other mode. I will add a commit message in the next version. Best regards, Jim On Mon, Oct 2, 2023 at 9:37 PM Heiko Schocher wrote: > > Hello Jim, > > On 26.09.23 11:08, Jim Liu wrote: > > Signed-off-by: Jim Liu > > --- > > drivers/i2c/npcm_i2c.c | 5 - &g

Re: [PATCH v1 3/3] arm: npcm8xx: support dcache off

2023-10-02 Thread Jim Liu
Hi Tom I followed your suggestion to modify the code. but still have errors. Should I use my workaround? Best regards, Jim On Thu, Sep 28, 2023 at 9:17 AM Tom Rini wrote: > > On Thu, Sep 28, 2023 at 10:32:51PM +0800, Jim Liu wrote: > > Hi Tom > > > > Thank

Re: [PATCH v1 3/3] arm: npcm8xx: support dcache off

2023-09-28 Thread Jim Liu
layout in CONFIG_SYS_MEM_MAP and enable dcache. This error is the same as that link. Best regards, Jim On Thu, Sep 28, 2023 at 8:23 PM Tom Rini wrote: > > On Thu, Sep 28, 2023 at 08:49:23AM +0800, Jim Liu wrote: > > Hi Tom > > > > Thanks for the quick r

Re: [PATCH v1] wdt: nuvoton: fix reset/expire function error and add dts

2023-09-27 Thread Jim Liu
Hi Stefan Thanks for your quick review. i will followed your suggestions to update V2 Best regards, Jim On Tue, Sep 26, 2023 at 5:30 PM Stefan Roese wrote: > > Hi Jim, > > On 9/26/23 11:04, Jim Liu wrote: > > Signed-off-by: Jim Liu > > Please provide a short commit

Re: [PATCH v1 3/3] arm: npcm8xx: support dcache off

2023-09-27 Thread Jim Liu
Tom Rini wrote: > > On Tue, Sep 26, 2023 at 04:56:50PM +0800, Jim Liu wrote: > > > do not enable dcache by setting CONFIG_SYS_NPCM_DCACHE_OFF=y > > > > Signed-off-by: Jim Liu > > --- > > arch/arm/mach-npcm/npcm8xx/Kconfig | 4 > > arch/arm/mach-

[PATCH v1] spi: spi-nor-ids: add flash model w25q01/02 support

2023-09-26 Thread Jim Liu
add flash w25q01jv, w25q01jvfim and w25q02jv support Signed-off-by: Jim Liu --- drivers/mtd/spi/spi-nor-ids.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 4587215984..fd74efe609 100644 --- a/drivers/mtd/spi

[PATCH v1] i2c: nuvoton: add support fast mode

2023-09-26 Thread Jim Liu
Signed-off-by: Jim Liu --- drivers/i2c/npcm_i2c.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/i2c/npcm_i2c.c b/drivers/i2c/npcm_i2c.c index ea4ef53256..b867b6c8e9 100644 --- a/drivers/i2c/npcm_i2c.c +++ b/drivers/i2c/npcm_i2c.c @@ -517,11 +517,6 @@ static int

[PATCH v1] wdt: nuvoton: fix reset/expire function error and add dts

2023-09-26 Thread Jim Liu
Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 24 drivers/watchdog/npcm_wdt.c | 12 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/nuvoton-common-npcm8xx.dtsi b/arch/arm/dts/nuvoton-common

[PATCH v1 3/3] arm: npcm8xx: support dcache off

2023-09-26 Thread Jim Liu
do not enable dcache by setting CONFIG_SYS_NPCM_DCACHE_OFF=y Signed-off-by: Jim Liu --- arch/arm/mach-npcm/npcm8xx/Kconfig | 4 arch/arm/mach-npcm/npcm8xx/cpu.c | 12 +++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-npcm/npcm8xx/Kconfig b/arch

[PATCH v1 2/3] arm: NPCM: modify baud rate table and dram setting

2023-09-26 Thread Jim Liu
Signed-off-by: Jim Liu --- board/nuvoton/arbel_evb/arbel_evb.c | 16 configs/arbel_evb_defconfig | 1 + include/configs/arbel.h | 4 +++- include/configs/poleg.h | 1 + 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/board

[PATCH v1 1/3] pinctrl: npcm8xx: add name for gpio function

2023-09-26 Thread Jim Liu
Signed-off-by: Jim Liu --- drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c b/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c index 7976e3b3ed..ff49819b58 100644 --- a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c

[PATCH v1 0/3] arm: NPCM: fix npcm bmc error

2023-09-26 Thread Jim Liu
1. fix incorrect ram size with ecc enabld 2. add name for gpio function 3. add baud rate table Jim Liu (3): pinctrl: npcm8xx: add name for gpio function arm: NPCM: modify baud rate table and dram setting arm: npcm8xx: support dcache off arch/arm/mach-npcm/npcm8xx/Kconfig| 4

Re: [PATCH v1 0/4] Add NPCM8xx more feature support

2023-07-12 Thread Jim Liu
some information or merge schedule? Best regards, Jim On Tue, Jul 4, 2023 at 4:00 PM Jim Liu wrote: > > 1. support 4g ram and new memory layout > 2. A2 cpu support > 3. fix pinctrl, misc driver error > > Jim Liu (4): > board: nuvoton: arbel: change uboot load address >

[PATCH v1] spi: npcm_pspi: use ACTIVE_LOW flag for cs gpio and set default max_hz

2023-07-04 Thread Jim Liu
If cs gpio is requested with ACTIVE_HIGH flag, it will be pulled low(i.e. active). This is not what we expected. Signed-off-by: Jim Liu --- drivers/spi/npcm_pspi.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/spi/npcm_pspi.c b/drivers/spi/npcm_pspi.c

[PATCH v1 4/4] arch: arm: npcm8xx: add cpu version and 4G ram support

2023-07-04 Thread Jim Liu
Add npcm8xx A2 cpu version check and add 4G RAM support Signed-off-by: Jim Liu --- arch/arm/include/asm/arch-npcm8xx/gcr.h | 1 + arch/arm/mach-npcm/npcm8xx/cpu.c| 12 - board/nuvoton/arbel_evb/arbel_evb.c | 70 +++-- 3 files changed, 79 insertions(+), 4

[PATCH v1 3/4] misc: npcm_host_intf: change initialization sequence

2023-07-04 Thread Jim Liu
configuration should be done before release host wait Signed-off-by: Jim Liu --- drivers/misc/npcm_host_intf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/misc/npcm_host_intf.c b/drivers/misc/npcm_host_intf.c index 0244e40457..79f57f57d8 100644

[PATCH v1 2/4] pinctrl: nuvoton: fix reset reason error for poweron

2023-07-04 Thread Jim Liu
In non tip mode, BMC first power on with PORST+CORST. the gpio status will error. Signed-off-by: Jim Liu --- drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c b/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c

[PATCH v1 1/4] board: nuvoton: arbel: change uboot load address

2023-07-04 Thread Jim Liu
use new memory layout and change uboot load address. open tpm, tee and more config feature No need to reserve top memory because the reserved space is moved to the bottom area of memory. Signed-off-by: Jim Liu --- board/nuvoton/arbel_evb/Kconfig | 4 ++-- configs/arbel_evb_defconfig | 15

[PATCH v1 0/4] Add NPCM8xx more feature support

2023-07-04 Thread Jim Liu
1. support 4g ram and new memory layout 2. A2 cpu support 3. fix pinctrl, misc driver error Jim Liu (4): board: nuvoton: arbel: change uboot load address pinctrl: nuvoton: fix reset reason error for poweron misc: npcm_host_intf: change initialization sequence arch: arm: npcm8xx: add cpu

[PATCH v1 4/4] misc: nuvoton: fix type error

2023-06-13 Thread Jim Liu
Signed-off-by: Jim Liu --- drivers/misc/npcm_otp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/npcm_otp.c b/drivers/misc/npcm_otp.c index 304910888b..08029724c0 100644 --- a/drivers/misc/npcm_otp.c +++ b/drivers/misc/npcm_otp.c @@ -33,7 +33,7 @@ static int

[PATCH v1 3/4] ARM: dts: npcm8xx: fix dts node error

2023-06-13 Thread Jim Liu
The SHA and OTP should under the ahb node Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-npcm8xx-u-boot.dtsi | 33 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/arch/arm/dts/nuvoton-npcm8xx-u-boot.dtsi b/arch/arm/dts/nuvoton-npcm8xx-u-boot.dtsi index

[PATCH v1 2/4] board: nuvoton: add env setting for boot to linux

2023-06-13 Thread Jim Liu
add console and mem env to boot to linux kernel Signed-off-by: Jim Liu --- board/nuvoton/poleg_evb/poleg_evb.c | 7 +++ include/configs/poleg.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/board/nuvoton/poleg_evb/poleg_evb.c b/board/nuvoton/poleg_evb/poleg_evb.c index

[PATCH v1 1/4] ARM: config: Enable config to decompress the FIT image

2023-06-13 Thread Jim Liu
Enable FIT and SHA config to decompress the kernel image Signed-off-by: Jim Liu --- configs/poleg_evb_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/poleg_evb_defconfig b/configs/poleg_evb_defconfig index b00fb48a5a..cab589d7aa 100644 --- a/configs/poleg_evb_defconfig

[PATCH v1 0/4] fix type error and add feature to boot to kernel

2023-06-13 Thread Jim Liu
fix type error and add feature to boot to kernel Jim Liu (4): ARM: config: Enable config to decompress the FIT image board: nuvoton: add env setting for boot to linux ARM: dts: npcm8xx: fix dts node error misc: nuvoton: fix type error arch/arm/dts/nuvoton-npcm8xx-u-boot.dtsi | 33

Re: [PATCH v1 2/2] net: designware: Add bitbang feature for designware driver

2023-06-13 Thread Jim Liu
Hi Ramon Thanks for your review. The udelay timing is defined on our spec . Does this need to use config to control it or use dts method to set the timing? Best regards, Jim On Sun, Jun 11, 2023 at 3:03 AM Ramon Fried wrote: > > On Tue, Feb 14, 2023 at 10:20 AM Jim Liu wrote: >

Re: [PATCH v1 2/2] net: designware: Add bitbang feature for designware driver

2023-06-02 Thread Jim Liu
Hi Ramon Please help to review this patch or provide some suggestions. Nuvoton BMC NPCM845 EVB needs this patch, and customers will use it to test. If you have any questions please let me know. Best regards, Jim On Tue, Feb 14, 2023 at 4:20 PM Jim Liu wrote: > > Add bb_miiphy_bus fu

[PATCH v1] pinctrl: nuvoton: set output state before enabling the output

2023-05-09 Thread Jim Liu
The default output state may be different to request, change the configuration sequence to avoid glitch. Signed-off-by: Jim Liu --- drivers/gpio/npcm_gpio.c | 6 +++--- drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 4 ++-- drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 4 ++-- 3

Re: [PATCH v1] clk: nuvoton: add read only feature for clk driver

2023-03-07 Thread Jim Liu
Hi Sean Thanks for your review. This is a software flag not hardware reg. It just protects the clock source and can't modify it in uboot. Best regards, Jim On Tue, Mar 7, 2023 at 9:57 PM Sean Anderson wrote: > > On 3/7/23 03:13, Jim Liu wrote: > > Set ahb/apb/fiu clock divider

[PATCH v1] clk: nuvoton: add read only feature for clk driver

2023-03-07 Thread Jim Liu
Set ahb/apb/fiu clock divider as read-only Signed-off-by: Jim Liu --- drivers/clk/nuvoton/clk_npcm.c| 15 --- drivers/clk/nuvoton/clk_npcm.h| 1 + drivers/clk/nuvoton/clk_npcm8xx.c | 12 ++-- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/drivers

[PATCH v1] spi: npcm-fiu: add regulator feature and remove set clock

2023-03-07 Thread Jim Liu
NPCM7xx/NPCM8xx default is boot from flash. removed set clock feature due to reliability and security. the clock will set by bootblock or tip. Signed-off-by: Jim Liu --- drivers/spi/npcm_fiu_spi.c | 72 +++--- 1 file changed, 59 insertions(+), 13 deletions

[PATCH v1 2/2] net: designware: Add bitbang feature for designware driver

2023-02-14 Thread Jim Liu
Add bb_miiphy_bus function for designware bitbang feature. Signed-off-by: Jim Liu --- drivers/net/designware.c | 109 ++- drivers/net/designware.h | 3 ++ 2 files changed, 111 insertions(+), 1 deletion(-) diff --git a/drivers/net/designware.c b/drivers/net

[PATCH v1 0/2] Add bitbang feature for npcm8xx and driver

2023-02-14 Thread Jim Liu
ete. TIMEOUT ! Could not initialize PHY eth@f0804000 Speed: 100, full duplex Using eth@f0808000 device host 192.168.0.5 is alive - Jim Liu (2): ARM: configs: add bitbang feature for npcm8xx net: designware: add bitbang feature for designware dri

[PATCH v1 1/2] ARM: configs: add bitbang feature for npcm8xx

2023-02-14 Thread Jim Liu
Signed-off-by: Jim Liu --- configs/arbel_evb_defconfig | 3 +++ include/configs/arbel.h | 1 + 2 files changed, 4 insertions(+) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index 8f8a603b50..ac4bb40193 100644 --- a/configs/arbel_evb_defconfig +++ b/configs

[PATCH v1 3/3] arm: npcm8xx: add security feature header

2023-01-17 Thread Jim Liu
The NPCM driver can use on npcm7xx/npcm8xx so add npcm8xx header for driver. Signed-off-by: Jim Liu --- arch/arm/include/asm/arch-npcm8xx/aes.h | 53 ++ arch/arm/include/asm/arch-npcm8xx/otp.h | 93 + arch/arm/include/asm/arch-npcm8xx/rng.h | 43

[PATCH v1 2/3] ARM: config: enable function for nuvoton npcm845 bmc

2023-01-17 Thread Jim Liu
Enable npcm845 i2c、ethernet、REGULATOR and security feature Signed-off-by: Jim Liu --- configs/arbel_evb_defconfig | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index aa857661d9..8f8a603b50 100644

[PATCH v1 1/3] ARM: dts: npcm8xx: add npcm845 function node

2023-01-17 Thread Jim Liu
Add functaion node list as below: 1. i2c 2. gmac 3. otp 4. aes 5. sha 6. rng 7. serial Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 358 +++ arch/arm/dts/nuvoton-npcm845-evb.dts | 198 + arch/arm/dts/nuvoton-npcm8xx-u-boot.dtsi | 134

[PATCH v1 0/3] add npcm845 function config and dts node

2023-01-17 Thread Jim Liu
1. Enable Nuvoton BMC npcm844 function config and add dts node. 2. Add header file for npcm8xx security key feature. Jim Liu (3): ARM: dts: npcm8xx: add npcm845 function node ARM: config: enable function for nuvoton npcm845 bmc arm: npcm8xx: add security feature header arch/arm/dts

Re: [PATCH v2] ARM: configs: npcm7xx: add full function for nuvoton npcm750

2023-01-09 Thread Jim Liu
> Best regards, Jim On Tue, Jan 10, 2023 at 11:04 AM Jim Liu wrote: > > Add add full function config for nuvoton npcm750 > > Signed-off-by: Jim Liu > --- > Changes for v2: >- use top of the mas

[PATCH v2] ARM: configs: npcm7xx: add full function for nuvoton npcm750

2023-01-09 Thread Jim Liu
Add add full function config for nuvoton npcm750 Signed-off-by: Jim Liu --- Changes for v2: - use top of the master to re-post the patch --- configs/poleg_evb_defconfig | 57 + 1 file changed, 57 insertions(+) diff --git a/configs/poleg_evb_defconfig b

Re: [PATCH v1 1/2] ARM: configs: npcm7xx: add full function for nuvoton npcm750

2023-01-08 Thread Jim Liu
Hi Tom I push some patches to fix some errors about this config patch and wait for all reviewers to merge. Could you check this patch again or should I use new master uboot update patch and resend it ? Best regards, Jim On Tue, Aug 2, 2022 at 8:28 PM Jim Liu wrote: > > Hi Tom &

[PATCH v1] pinctrl: nuvoton: add NPCM7xx/NPCM8xx reset type detect

2022-12-20 Thread Jim Liu
add reset type detect and persist setting. Signed-off-by: Jim Liu --- arch/arm/include/asm/arch-npcm8xx/rst.h | 2 +- drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 20 drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 22 +- 3 files changed, 42 insertions

Re: [PATCH v1] net: nuvoton: fix build broken for use phy_get_interface_by_name

2022-12-12 Thread Jim Liu
Hi Tom OK , thanks for your reply. Best regards, Jim On Tue, Dec 13, 2022 at 11:01 AM Tom Rini wrote: > > On Tue, Dec 13, 2022 at 10:56:49AM +0800, Jim Liu wrote: > > Hi Tom > > > > Thanks for your quick response. > > > > I add defconfig patch and found t

Re: [PATCH v1] net: nuvoton: fix build broken for use phy_get_interface_by_name

2022-12-12 Thread Jim Liu
tch/20220913062521.6067-1-jjl...@nuvoton.com/ -> https://patchwork.ozlabs.org/project/uboot/patch/20221121085932.29686-1-jjl...@nuvoton.com/ i2c patch is already merged. Best regards, Jim On Tue, Dec 13, 2022 at 10:02 AM Tom Rini wrote: > > On Tue, Dec 13, 2022 at 09:48:12AM +0800, J

Re: [PATCH v1] net: nuvoton: fix build broken for use phy_get_interface_by_name

2022-12-12 Thread Jim Liu
Hi Tom My upstream topic status is Awaiting Upstream. What could I do to make it merge fast? Your comments are welcome. Best regards, Jim On Mon, Nov 21, 2022 at 3:41 PM Jim Liu wrote: > > Hi Ramon > > My upstream topic status is Awaiting Upstream. > What could I do to mak

[PATCH v1] ARM: dts: npcm7xx: add npcm750 gpio node compatible name

2022-11-27 Thread Jim Liu
Add npcm750 gpio node compatible name Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-npcm7xx-u-boot.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/dts/nuvoton-npcm7xx-u-boot.dtsi b/arch/arm/dts/nuvoton-npcm7xx-u-boot.dtsi index c547e433e7

[PATCH v1 2/2] ARM: dts: npcm8xx: add npcm845 function node

2022-11-27 Thread Jim Liu
1. add usb phy 2. add ehci ohci sdhci 3. add pinctrl node 4. add fiu node Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 92 + arch/arm/dts/nuvoton-npcm845-evb.dts | 129 ++ arch/arm/dts/nuvoton-npcm845-pincfg.dtsi | 2007 ++ arch/arm/dts

[PATCH v1 1/2] ARM: config: enable function for nuvoton npcm845 bmc

2022-11-27 Thread Jim Liu
Signed-off-by: Jim Liu --- configs/arbel_evb_defconfig | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index 447b97ef4a..aa857661d9 100644 --- a/configs/arbel_evb_defconfig +++ b/configs

[PATCH v1 0/2]add npcm845 function config and dts node

2022-11-27 Thread Jim Liu
Add Nuvoton BMC npcm844 function config and dts node Jim Liu (2): ARM: config: enable function for nuvoton npcm845 bmc ARM: dts: npcm8xx: add npcm845 function node arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 92 + arch/arm/dts/nuvoton-npcm845-evb.dts | 129 ++ arch/arm/dts/nuvoton

  1   2   >