[PATCH v6] pinctrl: nuvoton: Add NPCM8xx pinctrl driver

2022-05-02 Thread Stanley Chu
Add Nuvoton BMC NPCM845 Pinmux and Pinconf support. Signed-off-by: Stanley Chu --- v6: - sync pin name with Linux driver - add support for gpi35/gpi36/gpio183~189 v5: - lower-case hex consistently - use uint type for pin list in the group_config struct v4: - correct the pin flags, add slew

[PATCH v5] pinctrl: nuvoton: Add NPCM8xx pinctrl driver

2022-03-28 Thread Stanley Chu
Add Nuvoton BMC NPCM845 Pinmux and Pinconf support. Signed-off-by: Stanley Chu --- v5: - lower-case hex consistently - use uint type for pin list in the group_config struct v4: - correct the pin flags, add slew rate control suuport for rgmii pins v3: - separate group names and function names

Re: [PATCH v6] pinctrl: nuvoton: Add NPCM8xx pinctrl driver

2022-05-27 Thread Stanley Chu
Hi Sean, Thanks for the review, it will be revised in the next version. -- Stanley On Fri, May 27, 2022 at 12:06 PM Sean Anderson wrote: > > On 5/3/22 1:33 AM, Stanley Chu wrote: > > Add Nuvoton BMC NPCM845 Pinmux and Pinconf support. > > > > Signed-off-by: Sta

[PATCH v1] serial: npcm: Add support for Nuvoton NPCM SoCs

2022-01-16 Thread Stanley Chu
Add Nuvoton BMC NPCM7xx/NPCM8xx uart driver Signed-off-by: Stanley Chu --- drivers/serial/Kconfig | 7 ++ drivers/serial/Makefile | 1 + drivers/serial/serial_npcm.c | 151 +++ 3 files changed, 159 insertions(+) create mode 100644 drivers/serial

[PATCH v2 1/1] serial: npcm: Add support for Nuvoton NPCM SoCs

2022-01-23 Thread Stanley Chu
Add Nuvoton BMC NPCM7xx/NPCM8xx uart driver Signed-off-by: Stanley Chu --- Changes in v2: Drop unnecessary outer brackets. Return -EAGAIN if not ready for tx/rx. Add comments. --- drivers/serial/Kconfig | 9 +++ drivers/serial/Makefile | 1 + drivers/serial/serial_npcm.c

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

2022-02-06 Thread Stanley Chu
This driver enables a periodic timer on NPCM SoCs and implements the get_count timer ops. Signed-off-by: Stanley Chu --- drivers/timer/Kconfig | 6 ++ drivers/timer/Makefile | 1 + drivers/timer/npcm-timer.c | 111 + 3 files changed, 118

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

2022-02-07 Thread Stanley Chu
This driver enables a periodic timer on NPCM SoCs and implements the get_count timer ops. Signed-off-by: Stanley Chu --- Changes in v2: calculate the prescale value, not hardcode. --- drivers/timer/Kconfig | 6 ++ drivers/timer/Makefile | 1 + drivers/timer/npcm-timer.c | 110

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

2022-02-14 Thread Stanley Chu
Enable a periodic timer on NPCM SoCs and implement the get_count timer ops. Signed-off-by: Stanley Chu --- v3: - use driver data for clock setting on different chips - remove unnecessary code of zeroing priv variables - more help description in Kconfig v2: - calculate the prescale value

[PATCH v1 1/1] clk: nuvoton: Add support for NPCM845

2022-02-22 Thread Stanley Chu
Add clock controller driver for NPCM845 Signed-off-by: Stanley Chu --- drivers/clk/Makefile | 1 + drivers/clk/nuvoton/Makefile | 1 + drivers/clk/nuvoton/clk_npcm8xx.c | 470 ++ .../dt-bindings/clock/nuvoton,npcm8xx

[PATCH v1 1/1] gpio: npcm: Add support for Nuvoton NPCM SoCs

2022-02-24 Thread Stanley Chu
Add Nuvoton BMC NPCM7xx/NPCM8xx gpio driver Signed-off-by: Stanley Chu --- drivers/gpio/Kconfig | 7 +++ drivers/gpio/Makefile| 1 + drivers/gpio/npcm_gpio.c | 123 +++ 3 files changed, 131 insertions(+) create mode 100644 drivers/gpio

[PATCH v2] clk: nuvoton: Add support for NPCM845

2022-02-25 Thread Stanley Chu
Add clock controller driver for NPCM845 Signed-off-by: Stanley Chu Reviewed-by: Sean Anderson --- v2: - simplify function arguments as comment by Sean Anderson --- drivers/clk/Makefile | 1 + drivers/clk/nuvoton/Makefile | 1 + drivers/clk

[PATCH v1 0/9] Add Nuvoton NPCM845 support

2021-12-14 Thread Stanley Chu
The patch series add basic supoorts for NPCM845, which is Nuvoton's 4th-generation BMC (Baseboard Management Controller). Add drivers to support Clock,Timer,Uart,GPIO, Pinctrl, SPI Flash Access for NPCM8xx SoC. Stanley Chu (9): arm: nuvoton: Add support for Nuvoton NPCM845 BMC clk: nu

[PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2021-12-14 Thread Stanley Chu
Add basic support for the Nuvoton NPCM845 BMC. Signed-off-by: Stanley Chu --- arch/arm/Kconfig | 9 + arch/arm/Makefile | 1 + arch/arm/include/asm/arch-npcm8xx/clock.h | 164 arch/arm/include/asm/arch-npcm8xx/espi.h | 23

[PATCH v1 2/9] clk: nuvoton: Add support for NPCM845

2021-12-14 Thread Stanley Chu
Add clock controller driver for NPCM845 Signed-off-by: Stanley Chu --- drivers/clk/Makefile | 1 + drivers/clk/nuvoton/Makefile | 1 + drivers/clk/nuvoton/clk_npcm8xx.c | 213 ++ include/dt-bindings/clock/npcm845-clock.h | 17

[PATCH v1 3/9] timer: npcm: Add NPCM timer support

2021-12-14 Thread Stanley Chu
Add Nuvoton BMC NPCM7xx/NPCM8xx timer driver. Signed-off-by: Stanley Chu --- drivers/timer/Kconfig | 7 drivers/timer/Makefile | 1 + drivers/timer/npcm_timer.c | 82 ++ 3 files changed, 90 insertions(+) create mode 100644 drivers/timer

[PATCH v1 4/9] serial: npcm: Add support for Nuvoton NPCM SoCs

2021-12-14 Thread Stanley Chu
Add Nuvoton BMC NPCM7xx/NPCM8xx uart driver Signed-off-by: Stanley Chu --- arch/arm/include/asm/arch-npcm8xx/uart.h | 82 ++ drivers/serial/Kconfig | 7 ++ drivers/serial/Makefile | 1 + drivers/serial/serial_npcm.c | 137

[PATCH v1 5/9] gpio: npcm: Add support for Nuvoton NPCM SoCs

2021-12-14 Thread Stanley Chu
Add Nuvoton BMC NPCM7xx/NPCM8xx gpio driver Signed-off-by: Stanley Chu --- drivers/gpio/Kconfig | 7 +++ drivers/gpio/Makefile| 1 + drivers/gpio/npcm_gpio.c | 133 +++ 3 files changed, 141 insertions(+) create mode 100644 drivers/gpio

[PATCH v1 7/9] spi: npcm-fiu: add NPCM8xx FIU controller driver

2021-12-14 Thread Stanley Chu
-off-by: Stanley Chu --- arch/arm/include/asm/arch-npcm8xx/fiu.h | 61 + drivers/spi/Kconfig | 6 + drivers/spi/Makefile| 1 + drivers/spi/npcm_fiu_spi.c | 311 4 files changed, 379 insertions(+) create mode

[PATCH v1 6/9] pinctrl: nuvoton: Add NPCM8xx pinctrl driver

2021-12-14 Thread Stanley Chu
Add Nuvoton BMC NPCM845 Pinmux and Pinconf support. Signed-off-by: Stanley Chu --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/nuvoton/Kconfig |6 + drivers/pinctrl/nuvoton/Makefile |1

[PATCH v1 9/9] ARM: configs: Add defconfig for Nuvoton NPCM845

2021-12-14 Thread Stanley Chu
Add defconfig for NPCM845 EVB (Arbel). Signed-off-by: Stanley Chu --- board/nuvoton/arbel/MAINTAINERS | 7 +++ configs/arbel_evb_defconfig | 77 + 2 files changed, 84 insertions(+) create mode 100644 board/nuvoton/arbel/MAINTAINERS create mode 100644

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

2021-12-14 Thread Stanley Chu
Add a common device tree for all Nuvoton NPCM8xx BMCs and a board specific device tree for the NPCM845(Arbel) evaluation board. Signed-off-by: Stanley Chu --- arch/arm/dts/Makefile |2 + arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 598 ++ arch/arm/dts/nuvoton

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
wrote: > > > > > > On 12/15/21 13:32, Sean Anderson wrote: > >> On 12/14/21 9:57 PM, Stanley Chu wrote: > >>> Add basic support for the Nuvoton NPCM845 BMC. > >>> > >>> Signed-off-by: Stanley Chu > >>> --- >

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
21 03:57, Stanley Chu wrote: > > Add basic support for the Nuvoton NPCM845 BMC. > > > > Signed-off-by: Stanley Chu > > --- > > arch/arm/Kconfig | 9 + > > arch/arm/Makefile | 1 + > > arch/arm/include

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
32 AM Sean Anderson wrote: > > On 12/14/21 9:57 PM, Stanley Chu wrote: > > Add basic support for the Nuvoton NPCM845 BMC. > > > > Signed-off-by: Stanley Chu > > --- > > arch/arm/Kconfig | 9 + > > arch/arm/Makefile

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
Hi Jesse, Thanks for the comment, this will be addressed in the next patches. -- Stanley On Thu, Dec 16, 2021 at 6:16 AM Jesse Taube wrote: > > > > On 12/15/21 13:32, Sean Anderson wrote: > > On 12/14/21 9:57 PM, Stanley Chu wrote: > >> Add basic support

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
. -- Stanley On Fri, Mar 11, 2022 at 2:49 AM Tom Rini wrote: > > On Wed, Dec 15, 2021 at 10:57:52AM +0800, Stanley Chu wrote: > > > Add basic support for the Nuvoton NPCM845 BMC. > > > > Signed-off-by: Stanley Chu > > I see there's a number of outstanding ques

Re: [PATCH v1 1/9] arm: nuvoton: Add support for Nuvoton NPCM845 BMC

2022-03-10 Thread Stanley Chu
On Fri, Mar 11, 2022 at 10:53 AM Giulio Benetti wrote: > > Hi Stanley, > > > Il giorno 11 mar 2022, alle ore 03:13, Stanley Chu > > ha scritto: > > > > Hi Tom, > > We need time to prepare linux dts, can I send the rest of the drivers > > first or

[PATCH v1] pinctrl: nuvoton: Add NPCM8xx pinctrl driver

2022-03-17 Thread Stanley Chu
Add Nuvoton BMC NPCM845 Pinmux and Pinconf support. Signed-off-by: Stanley Chu --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/nuvoton/Kconfig |6 + drivers/pinctrl/nuvoton/Makefile |1

[PATCH v2] pinctrl: nuvoton: Add NPCM8xx pinctrl driver

2022-03-17 Thread Stanley Chu
Add Nuvoton BMC NPCM845 Pinmux and Pinconf support. Signed-off-by: Stanley Chu --- v2: - drop the WDnRCRB/CORSTCB register access, it is not for GPIO modules reset control --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/Makefile |1 + drivers

[PATCH v3] pinctrl: nuvoton: Add NPCM8xx pinctrl driver

2022-03-22 Thread Stanley Chu
Add Nuvoton BMC NPCM845 Pinmux and Pinconf support. Signed-off-by: Stanley Chu --- v3: - separate group names and function names in different tables to allow for adding additional functions v2: - drop the WDnRCRB/CORSTCB register access, it is not for GPIO modules reset control

[PATCH v4] pinctrl: nuvoton: Add NPCM8xx pinctrl driver

2022-03-23 Thread Stanley Chu
Add Nuvoton BMC NPCM845 Pinmux and Pinconf support. Signed-off-by: Stanley Chu --- v4: - correct the pin flags, add slew rate control suuport for rgmii pins v3: - separate group names and function names in different tables to allow for adding additional functions v2: - drop the WDnRCRB