[PATCH v1] dt-binding: spi: Update NPCM PSPI controller documentation

2018-12-04 Thread Tomer Maimon
Update the PSPI NPCM binding document of the spi aliases use to define the spi ID number. Signed-off-by: Tomer Maimon --- Documentation/devicetree/bindings/spi/nuvoton,npcm-pspi.txt | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/nuvoton,npcm

[PATCH v1] spi: npcm: Modify pspi send function

2018-12-04 Thread Tomer Maimon
Align pspi send function code with the recieve function code, Also simplify the code a bit with early return. Signed-off-by: Tomer Maimon --- drivers/spi/spi-npcm-pspi.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-npcm-pspi.c b

[PATCH v1 1/2] dt-binding: mtd: add NPCM FIU controller

2018-12-03 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM Flash Interface Unit(FIU) SPI-NOR controller. Signed-off-by: Tomer Maimon --- Documentation/devicetree/bindings/mtd/npcm-fiu.txt | 64 ++ 1 file changed, 64 insertions(+) create mode 100644 Documentation

[PATCH v1 2/2] mtd: spi-nor: add NPCM FIU controller driver

2018-12-03 Thread Tomer Maimon
mode: maps the flash memory into the core address space. - SPI-X mode: used for an expansion bus to an ASIC or CPLD. Signed-off-by: Tomer Maimon --- drivers/mtd/spi-nor/Kconfig| 8 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/npcm-fiu.c | 930

[PATCH v1 0/2] SPI-NOR add NPCM FIU controller driver

2018-12-03 Thread Tomer Maimon
select. - FIUX supports two chip select. The NPCM FIU driver tested on NPCM750 evaluation board. Tomer Maimon (2): dt-binding: mtd: add NPCM FIU controller mtd: spi-nor: add NPCM FIU controller driver Documentation/devicetree/bindings/mtd/npcm-fiu.txt | 64 ++ drivers/mtd/spi-nor/Kconfig

[PATCH v1 1/1] spi: npcm: fix uninitialized 'val' warning in receive function

2018-11-18 Thread Tomer Maimon
Fix uninitialized 'val' warning receive function, send function has been modify to be aligned with the receive function. Signed-off-by: Tomer Maimon --- drivers/spi/spi-npcm-pspi.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-npcm-pspi.c b

[PATCH v1 0/1] npcm: fix uninitialized 'val' warning in receive function

2018-11-18 Thread Tomer Maimon
tested on NPCM750 evaluation board. Tomer Maimon (1): spi: npcm: fix uninitialized 'val' warning in receive function drivers/spi/spi-npcm-pspi.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.14.1

[PATCH v1 2/2] spi: npcm: add NPCM PSPI controller driver

2018-11-12 Thread Tomer Maimon
Add Nuvoton NPCM BMC Peripheral SPI controller driver. Signed-off-by: Tomer Maimon --- drivers/spi/Kconfig | 7 + drivers/spi/Makefile| 1 + drivers/spi/spi-npcm-pspi.c | 480 3 files changed, 488 insertions(+) create mode 100644

[PATCH v1 0/2] spi: npcm: add NPCM Peripheral SPI driver

2018-11-12 Thread Tomer Maimon
This patch set adds Peripheral SPI (PSPI) support for the Nuvoton NPCM Baseboard Management Controller (BMC). The NPCM PSPI operates in master mode. The NPCM750/730/715/710 supports up to two PSPI devices. The NPCM PSPI driver tested on NPCM750 evaluation board. Tomer Maimon (2): dt-binding

[PATCH v1 1/2] dt-binding: spi: add NPCM PSPI controller documentation

2018-11-12 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM Peripheral SPI controller. Signed-off-by: Tomer Maimon --- .../devicetree/bindings/spi/nuvoton,npcm-pspi.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi

[PATCH v1 0/1] pinctrl: nuvoton: modify NPCM7xx pin configuration

2018-11-07 Thread Tomer Maimon
This patch Modify GPIO direction setting in pin configuration function. please refer patch: Kun Yi https://patchwork.ozlabs.org/patch/985540/ Tomer Maimon (1): pinctrl: nuvoton: modify NPCM7xx pin configuration function drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 13 +++-- 1 file

[PATCH v1 1/1] pinctrl: nuvoton: modify NPCM7xx pin configuration function

2018-11-07 Thread Tomer Maimon
Modify GPIO direction setting in pin configuration function by using generic GPIO functions to set the GPIO direction instead of direct access to the GPIO direction register. Signed-off-by: Tomer Maimon --- drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 13 +++-- 1 file changed, 3

[PATCH v1] watchdog: npcm: Modify npcm watchdog kconfig arch parameter

2018-11-05 Thread Tomer Maimon
Modify Nuvoton watchdog Kconfig default supported architecture name to ARCH_NPCM7XX because ARCH_NPCM750 architecture name is not supported. Signed-off-by: Tomer Maimon --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b

[PATCH v6 2/2] pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver

2018-08-08 Thread Tomer Maimon
Add Nuvoton BMC NPCM750/730/715/705 Pinmux and GPIO controller driver. Signed-off-by: Tomer Maimon --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/nuvoton/Kconfig | 12 + drivers/pinctrl/nuvoton/Makefile

[PATCH v6 1/2] dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation

2018-08-08 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM750/730/715/705 pinmux and GPIO controller. Signed-off-by: Tomer Maimon Reviewed-by: Rob Herring --- .../bindings/pinctrl/nuvoton,npcm7xx-pinctrl.txt | 216 + 1 file changed, 216 insertions(+) create mode 100644

[PATCH v6 0/2] pinctrl: nuvoton: add driver for NPCM7xx

2018-08-08 Thread Tomer Maimon
function. - dt-binding documentation haven't changed. Changes since version 1: - Remove Kconfig MFD_SYSCON dependency. - Modify setfunc function. - Modify dt-binding documentation according Rob comments. Tomer Maimon (2): dt-binding: pinctrl: Add NPCM7xx pinctrl

[PATCH v5 1/2] dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation

2018-08-06 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM750/730/715/705 pinmux and GPIO controller. Signed-off-by: Tomer Maimon --- .../bindings/pinctrl/nuvoton,npcm7xx-pinctrl.txt | 216 + 1 file changed, 216 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v5 2/2] pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver

2018-08-06 Thread Tomer Maimon
Add Nuvoton BMC NPCM750/730/715/705 Pinmux and GPIO controller driver. Signed-off-by: Tomer Maimon --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/nuvoton/Kconfig | 12 + drivers/pinctrl/nuvoton/Makefile

[PATCH v5 0/2] pinctrl: nuvoton: add driver for NPCM7xx

2018-08-06 Thread Tomer Maimon
code from the direction output function. - dt-binding documentation haven't changed. Changes since version 1: - Remove Kconfig MFD_SYSCON dependency. - Modify setfunc function. - Modify dt-binding documentation according Rob comments. Tomer Maimon (2): dt

[PATCH v4 2/2] pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver

2018-07-30 Thread Tomer Maimon
Add Nuvoton BMC NPCM750/730/715/705 Pinmux and GPIO controller driver. Signed-off-by: Tomer Maimon --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/nuvoton/Kconfig | 12 + drivers/pinctrl/nuvoton/Makefile

[PATCH v4 1/2] dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation

2018-07-30 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM750/730/715/705 pinmux and GPIO controller. Signed-off-by: Tomer Maimon --- .../bindings/pinctrl/nuvoton,npcm7xx-pinctrl.txt | 216 + 1 file changed, 216 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v4 0/2] pinctrl: nuvoton: add driver for NPCM7xx

2018-07-30 Thread Tomer Maimon
. - Remove unnecessary code from the direction output function. - dt-binding documentation haven't changed. Changes since version 1: - Remove Kconfig MFD_SYSCON dependency. - Modify setfunc function. - Modify dt-binding documentation according Rob comments. Tomer

[PATCH v1 0/1] gpio: mmio: add get_set inverted direction io support

2018-07-30 Thread Tomer Maimon
is output. the functions will linked to the I/O get functions if the user set BGPIOF_INVERTED_REG_DIR flag in the bgpio initialization. Tomer Maimon (1): gpio: mmio: add inverted direction get_set io support drivers/gpio/gpio-mmio.c| 48 ++--- include/linux

[PATCH v1 1/1] gpio: mmio: add inverted direction get_set io support

2018-07-30 Thread Tomer Maimon
-off-by: Tomer Maimon --- drivers/gpio/gpio-mmio.c| 48 ++--- include/linux/gpio/driver.h | 1 + 2 files changed, 46 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-mmio.c b/drivers/gpio/gpio-mmio.c index 7b14d6280e44..46f664459853 100644

Re: [PATCH v2 2/2] pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver

2018-07-29 Thread Tomer Maimon
Hi Linus, On 30 July 2018 at 00:59, Linus Walleij wrote: > On Thu, Jul 26, 2018 at 2:01 AM Tomer Maimon wrote: > > > I initialize bgpio as follow: > > > > ret = bgpio_init(>gpio_bank[id].gc, > >

[PATCH v3 2/2] pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver

2018-07-26 Thread Tomer Maimon
Add Nuvoton BMC NPCM750/730/715/705 Pinmux and GPIO controller driver. Signed-off-by: Tomer Maimon --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/nuvoton/Kconfig | 13 + drivers/pinctrl/nuvoton/Makefile

[PATCH v3 1/2] dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation

2018-07-26 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM750/730/715/705 pinmux and GPIO controller. Signed-off-by: Tomer Maimon --- .../bindings/pinctrl/nuvoton,npcm7xx-pinctrl.txt | 216 + 1 file changed, 216 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v3 0/2] pinctrl: nuvoton: add driver for NPCM7xx

2018-07-26 Thread Tomer Maimon
MFD_SYSCON dependency. - Modify setfunc function. - Modify dt-binding documentation according Rob comments. Tomer Maimon (2): dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver .../bindings/pinctrl/nuvoton,npcm7xx-pinctrl.txt

Re: [PATCH v2 2/2] pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver

2018-07-25 Thread Tomer Maimon
ij wrote: > On Thu, Jul 12, 2018 at 11:42 PM Tomer Maimon wrote: > > > Add Nuvoton BMC NPCM750/730/715/705 Pinmux and > > GPIO controller driver. > > > > Signed-off-by: Tomer Maimon > > (...) > > +++ b/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c > >

[PATCH v2 2/2] pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver

2018-07-12 Thread Tomer Maimon
Add Nuvoton BMC NPCM750/730/715/705 Pinmux and GPIO controller driver. Signed-off-by: Tomer Maimon --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/nuvoton/Kconfig | 12 + drivers/pinctrl/nuvoton/Makefile

[PATCH v2 1/2] dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation

2018-07-12 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM750/730/715/705 pinmux and GPIO controller. Signed-off-by: Tomer Maimon --- .../bindings/pinctrl/nuvoton,npcm7xx-pinctrl.txt | 216 + 1 file changed, 216 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v2 0/2] pinctrl: nuvoton: add driver for NPCM7xx

2018-07-12 Thread Tomer Maimon
/msg2853083.html Changes since version 1: - Remove Kconfig MFD_SYSCON dependency. - Modify setfunc function. - Modify dt-binding documentation according Rob comments. Tomer Maimon (2): dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation pinctrl

[PATCH v1 0/2] pinctrl: nuvoton: add driver for NPCM7xx

2018-07-10 Thread Tomer Maimon
/715/705 has eight identical GPIO modules, each module has 32 GPIO ports. Most of the GPIO ports are multiplexed with other system functions. The NPCM7xx pinctrl and GPIO driver tested on NPCM750 evaluation board. Tomer Maimon (2): dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation

[PATCH v1 2/2] pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver

2018-07-10 Thread Tomer Maimon
Add Nuvoton BMC NPCM750/730/715/705 Pinmux and GPIO controller driver. Signed-off-by: Tomer Maimon --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/nuvoton/Kconfig | 13 + drivers/pinctrl/nuvoton/Makefile

[PATCH v1 1/2] dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation

2018-07-10 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM750/730/715/705 pinmux and GPIO controller. Signed-off-by: Tomer Maimon --- .../bindings/pinctrl/nuvoton,npcm7xx-pinctrl.txt | 216 + 1 file changed, 216 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v1 0/1] arm: npcm: enable L2 cache in NPCM7xx architecture

2018-04-08 Thread Tomer Maimon
/msg613212.html After checking again the L2 cache use in the NPCM7xx, the only L2 cache flag we need to set is L2C_AUX_CTRL_SHARED_OVERRIDE and it is done in the device tree: https://patchwork.kernel.org/patch/10063497/ L2 cache flag mask allowed all the flag option. Tomer Maimon (1): arm: npcm

[PATCH v1 1/1] arm: npcm: enable L2 cache in NPCM7xx architecture

2018-04-08 Thread Tomer Maimon
Enable ARM L2 cache module in Nuvoton NPCM7xx BMC by adding L2 cache parameters into NPCM7xx DT machine start structure. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- arch/arm/mach-npcm/npcm7xx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-npcm/npcm7xx.c

[PATCH v1 0/6] arm: dts: modify Nuvoton NPCM750 device tree

2018-04-04 Thread Tomer Maimon
device tree. Thanks a lot, Tomer Tomer Maimon (6): arm: dts: add watchdog device to NPCM750 device tree arm: dts: modify UART compatible name in NPCM750 device tree arm: dts: modify timer register size in NPCM750 device tree arm: dts: modify clock binding in NPCM750 device tree arm: dts

[PATCH v1 6/6] arm: dts: modify Nuvoton NPCM7xx device tree structure

2018-04-04 Thread Tomer Maimon
Modify Nuvoton NPCM7xx device tree structure by adding nuvoton common nNPCM7xx device tree structure that include all common modules. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 187 ++ arch/arm/boot/dts/n

[PATCH v1 5/6] arm: dts: modify Makefile NPCM750 configuration name

2018-04-04 Thread Tomer Maimon
Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- arch/arm/boot/dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 8164c1294226..7e2424957809 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/ar

[PATCH v1 1/6] arm: dts: add watchdog device to NPCM750 device tree

2018-04-04 Thread Tomer Maimon
Add watchdog device node to a common device tree for all Nuvoton NPCM750 BMCs and a board specific device tree for the NPCM750 (Poleg) evaluation board. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- arch/arm/boot/dts/nuvoton-npcm750-evb.dts | 4 arch/arm/boot/dts/nuvoton-n

[PATCH v1 2/6] arm: dts: modify UART compatible name in NPCM750 device tree

2018-04-04 Thread Tomer Maimon
Modify UART compatible name in a common device tree for all Nuvoton NPCM750 BMCs. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- arch/arm/boot/dts/nuvoton-npcm750.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/nuvoton-npcm750.d

[PATCH v1 4/6] arm: dts: modify clock binding in NPCM750 device tree

2018-04-04 Thread Tomer Maimon
Modify clock binding in a common device tree for all Nuvoton NPCM750 BMCs. Modify NPCM750 modules clock numbers accourding the new clock driver. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- arch/arm/boot/dts/nuvoton-npcm750.dtsi | 58 ++ 1 file c

[PATCH v1 3/6] arm: dts: modify timer register size in NPCM750 device tree

2018-04-04 Thread Tomer Maimon
Modify timer register size in a common device tree for all Nuvoton NPCM750 BMCs. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- arch/arm/boot/dts/nuvoton-npcm750.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/nuvoton-npcm750.dtsi b/ar

[PATCH v1 0/1] arm: dts: modify Nuvoton NPCM750 device tree

2018-03-26 Thread Tomer Maimon
Makefile NPCM7XX configuration name Sorry if it cause more work after pushing NPCM750 device tree. Thanks a lot, Tomer Tomer Maimon (1): arm: dts: modify Nuvoton NPCM750 device tree arch/arm/boot/dts/Makefile| 2 +- arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 187

[PATCH v1 1/1] arm: dts: modify Nuvoton NPCM750 device tree

2018-03-26 Thread Tomer Maimon
Add a common device tree for all Nuvoton NPCM7xx BMCs and include it in NPCM750 (Poleg) device tree. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- arch/arm/boot/dts/Makefile| 2 +- arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 187 ++

[PATCH v1 0/1] arm: dts: add Nuvoton NPCM750 device tree

2018-03-21 Thread Tomer Maimon
to replace the device tree that pushed to arm-soc.git with this patch set. Please review it, sorry if it cause more work after pushing NPCM750 device tree. Thanks a lot, Tomer Tomer Maimon (1): arm: dts: add Nuvoton NPCM750 device tree arch/arm/boot/dts/Makefile| 2 + arch

[PATCH v1 1/1] arm: dts: add Nuvoton NPCM750 device tree

2018-03-21 Thread Tomer Maimon
Add a common device tree for all Nuvoton NPCM7xx BMCs and a board specific device tree for the NPCM750 (Poleg) evaluation board. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- arch/arm/boot/dts/Makefile| 2 + arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi

[PATCH v1 1/2] arm: npcm: modify configuration for the NPCM7xx BMC.

2018-03-15 Thread Tomer Maimon
Modify configuration and MakeFile for the Nuvoton NPCM and NPCM7xx BMC. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- arch/arm/mach-npcm/Kconfig | 40 +++- arch/arm/mach-npcm/Makefile | 4 +++- 2 files changed, 14 insertions(+), 30 deletions(-)

[PATCH v1 2/2] arm: npcm: Enable L2 Cache in NPCM7xx

2018-03-15 Thread Tomer Maimon
Enable L2 Cache in Nuvoton NPCM7xx BMC. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- arch/arm/mach-npcm/npcm7xx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-npcm/npcm7xx.c b/arch/arm/mach-npcm/npcm7xx.c index 5f7cd88103ef..c5f77d854c4f 100644 --- a/arch/ar

[PATCH v1 0/2] arm: npcm: Modify NPCM7XX machine code

2018-03-15 Thread Tomer Maimon
. Tomer Maimon (2): arm: npcm: modify configuration for the NPCM7xx BMC. arm: npcm: Enable L2 Cache in NPCM7xx arch/arm/mach-npcm/Kconfig | 40 +++- arch/arm/mach-npcm/Makefile | 4 +++- arch/arm/mach-npcm/npcm7xx.c | 2 ++ 3 files changed, 16 insertions

Re: [PATCH 1/2] ARM: npcm: add CONFIG_ARCH_MULTI_V7 dependency

2018-03-13 Thread Tomer Maimon
Hi Arnd, I sent now Full patch for the NPCM BMC's V12, Is it O.K.? or do you want me to send the same patch to ARM: npcm: drop extraneous 'select' statements as well? Thanks Tomer On 12 March 2018 at 17:15, Tomer Maimon <tmaimo...@gmail.com> wrote: > Hi Arnd, > > I will se

[PATCH v12 0/3] arm: npcm: add basic support for Nuvoton BMCs

2018-03-13 Thread Tomer Maimon
the L2 Cache. All changes tested on Nuvoton NPCM750 EVB. Tomer Maimon (3): arm: npcm: add basic support for Nuvoton BMCs arm: dts: add Nuvoton NPCM750 device tree MAINTAINERS: Add entry for the Nuvoton NPCM architecture .../arm/cpu-enable-method/nuvoton,npcm750-smp | 42

[PATCH v12 3/3] MAINTAINERS: Add entry for the Nuvoton NPCM architecture

2018-03-13 Thread Tomer Maimon
Add maintainers and reviewers for the Nuvoton NPCM architecture. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> Reviewed-by: Avi Fishman <avifishma...@gmail.com> --- MAINTAINERS | 14 ++ 1 file changed, 14 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH v12 2/3] arm: dts: add Nuvoton NPCM750 device tree

2018-03-13 Thread Tomer Maimon
Add a common device tree for all Nuvoton NPCM750 BMCs and a board specific device tree for the NPCM750 (Poleg) evaluation board. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> Reviewed-by: Avi Fishman <avifishma...@gmail.com> Reviewed-by: Joel Stanley <j...@jms.id.au> Review

[PATCH v12 1/3] arm: npcm: add basic support for Nuvoton BMCs

2018-03-13 Thread Tomer Maimon
Adds basic support for the Nuvoton NPCM750 BMC. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> Reviewed-by: Avi Fishman <avifishma...@gmail.com> Tested-by: Avi Fishman <avifishma...@gmail.com> --- arch/arm/Kconfig | 2 ++ arch/arm/Makefile| 1 +

Re: [PATCH v11 2/3] arm: dts: add Nuvoton NPCM750 device tree

2018-03-12 Thread Tomer Maimon
gt; > Reviewed-by: Tomer Maimon <tmaimo...@gmail.com> > Reviewed-by: Avi Fishman <avifishma...@gmail.com> > Reviewed-by: Joel Stanley <j...@jms.id.au> > Reviewed-by: Rob Herring <r...@kernel.org> > Tested-by: Tomer Maimon <tmaimo...@gmail.com> > Test

Re: [PATCH 1/2] ARM: npcm: add CONFIG_ARCH_MULTI_V7 dependency

2018-03-12 Thread Tomer Maimon
Hi Arnd, I will send tomorrow new version with some modification we need to do once we use NPCM7XX and not NPCM750. Brendan, Is it O.K.? On 12 March 2018 at 15:37, Arnd Bergmann <a...@arndb.de> wrote: > On Mon, Mar 12, 2018 at 2:28 PM, Tomer Maimon <tmaimo...@gmail.com> wrote

Re: [PATCH 1/2] ARM: npcm: add CONFIG_ARCH_MULTI_V7 dependency

2018-03-12 Thread Tomer Maimon
Hi Brendan, According to the last mail I have with Arnd can you modify the Kconfig as follow: +menuconfig ARCH_NPCM + bool "Nuvoton NPCM Architecture" + depends on ARCH_MULTI_V7 + select PINCTRL + +if ARCH_NPCM + +config ARCH_NPCM7XX + bool "Support for NPCM7xx BMC

Re: [PATCH 2/2] ARM: npcm: drop extraneous 'select' statements

2018-03-12 Thread Tomer Maimon
npcm730_defconfig. Which approach should be adopt ? We will appreciate your advise. Thanks a lot, Tomer On 12 March 2018 at 12:16, Tomer Maimon <tmaimo...@gmail.com> wrote: > Hi Amd, > > Sorry for the delayed reply, > > the NPCM7xx is a family of BMC's that include NPC

Re: [PATCH 2/2] ARM: npcm: drop extraneous 'select' statements

2018-03-12 Thread Tomer Maimon
Hi Amd, Sorry for the delayed reply, the NPCM7xx is a family of BMC's that include NPCM750, NPCM730 and more All of the NPCM7xx BMC's have the same basic modules like Cortex-A9, WDT, timers and more can we reflacte the NPCM7xx as follow in the Kconfig: menuconfig ARCH_NPCM bool

Re: [PATCH v5 2/2] clocksource/drivers/npcm: Add NPCM7xx timer driver

2018-03-08 Thread Tomer Maimon
On 8 March 2018 at 17:33, Daniel Lezcano <daniel.lezc...@linaro.org> wrote: > On 08/03/2018 16:24, Tomer Maimon wrote: >> Add Nuvoton BMC NPCM7xx timer driver. >> >> The clocksource Enable 24-bit TIMER0 and TIMER1 counters, >> while TIMER0 serve as clockeven

[PATCH v5 2/2] clocksource/drivers/npcm: Add NPCM7xx timer driver

2018-03-08 Thread Tomer Maimon
Add Nuvoton BMC NPCM7xx timer driver. The clocksource Enable 24-bit TIMER0 and TIMER1 counters, while TIMER0 serve as clockevent and TIMER1 serve as clocksource. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> Reviewed-by: Brendan Higgins <brendanhiggins@xx> --- drivers

[PATCH v5 0/2] clocksource/drivers/npcm: Add NPCM7xx timer driver

2018-03-08 Thread Tomer Maimon
in configuration - Adding prefix to the macros - No changes to dt-binding documentation since v1 Modified driver have been tested on the NPCM750 evaluation board. Tomer Maimon (2): dt-binding: timer: document NPCM7xx timer DT bindings clocksource/drivers/npcm: Add NPCM7xx timer driver

[PATCH v5 1/2] dt-binding: timer: document NPCM7xx timer DT bindings

2018-03-08 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton NPCM7xx timer. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> Reviewed-by: Brendan Higgins <brendanhigg...@google.com> --- .../bindings/timer/nuvoton,npcm7xx-tim

Re: [PATCH v2 1/2] dt-bindings: watchdog: Add Nuvoton NPCM description

2018-03-07 Thread Tomer Maimon
On 5 March 2018 at 13:45, Joel Stanley wrote: > These bindings describe the watchdog IP as used by the Nuvoton NPCM750 > (Poleg) BMC SoC. > > Signed-off-by: Joel Stanley > --- > V2: Add optional timeout property > --- > .../bindings/watchdog/nuvoton,npcm-wdt.txt

Re: [PATCH v4 1/2] dt-binding: timer: document NPCM7xx timer DT bindings

2018-03-07 Thread Tomer Maimon
Sorry for the late response On 2 March 2018 at 03:51, Joel Stanley <j...@jms.id.au> wrote: > Hi Tomer, > > On Tue, Feb 27, 2018 at 1:06 AM, Tomer Maimon <tmaimo...@gmail.com> wrote: >> Added device tree binding documentation for Nuvoton NPCM7xx timer. >> >&

[PATCH v4 2/2] clocksource: npcm: add NPCM7xx timer driver

2018-02-26 Thread Tomer Maimon
Add Nuvoton BMC NPCM7xx timer driver. the clocksource Enable 24-bit TIMER0 and TIMER1 counters, while TIMER0 serve as clockevent and TIMER1 serve as clocksource. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> Reviewed-by: Brendan Higgins <brendanhiggins@xx> --- drivers

[PATCH v4 0/2] clocksource: npcm: add NPCM7xx timer driver

2018-02-26 Thread Tomer Maimon
- No changes to dt-binding documentation since v1 Modified driver have been tested on the NPCM750 evaluation board. Tomer Maimon (2): dt-binding: timer: document NPCM7xx timer DT bindings clocksource: npcm: add NPCM7xx timer driver .../bindings/timer/nuvoton,npcm7xx-timer.txt | 25

[PATCH v4 1/2] dt-binding: timer: document NPCM7xx timer DT bindings

2018-02-26 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton NPCM7xx timer. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> Reviewed-by: Brendan Higgins <brendanhigg...@google.com> --- .../bindings/timer/nuvoton,npcm7xx-ti

[PATCH v1 2/2] clk: npcm: add NPCM7xx clock driver

2018-02-05 Thread Tomer Maimon
Add Nuvoton BMC NPCM7xx clock driver. Nuvoton BMC NPCM7xx contain integrated clock controller which generates and supplies clock to all modules within the NPCM7xx BMC. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- drivers/clk/Makefile | 1 + drivers/clk/clk-npcm7xx.c

[PATCH v1 1/2] dt-binding: clock: document NPCM7xx clock DT bindings

2018-02-05 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton NPCM7xx clocks. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- .../bindings/clock/nuvoton,npcm7xx-clk.txt | 84 ++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v1 0/2] clk: npcm: add NPCM7xx clock driver

2018-02-05 Thread Tomer Maimon
from either PLL or the external clock input. Several clock signals have a configurable divide from the clock source Tomer Maimon (2): dt-binding: clock: document NPCM7xx clock DT bindings clk: npcm: add NPCM7xx clock driver .../bindings/clock/nuvoton,npcm7xx-clk.txt | 84 +++ drivers

[PATCH v3 1/2] clocksource: npcm: add NPCM7xx timer driver

2017-11-06 Thread Tomer Maimon
Add Nuvoton BMC NPCM7xx timer driver. the clocksource Enable 24-bit TIMER0 and TIMER1 counters, while TIMER0 serves as clockevent and TIMER1 serves as clocksource. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Ma

[PATCH v3 2/2] dt-binding: timer: document NPCM7xx timer DT bindings

2017-11-06 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton NPCM7xx timer. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- .../bindings/timer/nuvoton,npcm7xx-timer.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v3 0/2] clocksource: npcm: add NPCM7xx timer driver

2017-11-06 Thread Tomer Maimon
/lkml/2017/11/6/335 Changes have been tested on the NPCM750 evaluation board. Tomer Maimon (2): clocksource: npcm: add NPCM7xx timer driver dt-binding: timer: document NPCM7xx timer DT bindings .../bindings/timer/nuvoton,npcm7xx-timer.txt | 25 +++ drivers/clocksource/Kconfig

Re: [PATCH v7 1/3] arm: npcm: add basic support for Nuvoton BMCs

2017-11-06 Thread Tomer Maimon
On 4 November 2017 at 02:49, Brendan Higgins <brendanhigg...@google.com> wrote: > On Thu, Oct 26, 2017 at 4:45 AM, Tomer Maimon <tmaimo...@gmail.com> wrote: >> Hi Brendan, >> >> Sorry for the delay, >> >> On 21 October 2017 at 00:08, Russell King

Re: [PATCH v2 1/2] clocksource: npcm: add NPCM7xx timer driver

2017-11-06 Thread Tomer Maimon
> > On Wed, Nov 1, 2017 at 5:16 AM, Tomer Maimon <tmaimo...@gmail.com> wrote: >> Add Nuvoton BMC NPCM7xx timer driver. >> >> the clocksource Enable 24-bit TIMER0 and TIMER1 counters, >> while TIMER0 serves as clockevent and TIMER1 serves as clocksource.

Re: [PATCH v2 0/2] clocksource: npcm: add NPCM7xx timer driver

2017-11-06 Thread Tomer Maimon
On 4 November 2017 at 02:28, Brendan Higgins <brendanhigg...@google.com> wrote: > On Wed, Nov 1, 2017 at 5:16 AM, Tomer Maimon <tmaimo...@gmail.com> wrote: >> Addressed comments from: >> - Daniel Lezcano: https://www.spinics.net/lists/devicetree/msg196683.html &g

[PATCH v2 0/2] clocksource: npcm: add NPCM7xx timer driver

2017-11-01 Thread Tomer Maimon
to modify NPCM7xx device tree for support NPCM7xx timer driver https://www.spinics.net/lists/arm-kernel/msg614424.html Changes have been tested on the NPCM750 evaluation board. Tomer Maimon (2): clocksource: npcm: add NPCM7xx timer driver dt-binding: timer: document NPCM7xx timer DT bindings

[PATCH v2 1/2] clocksource: npcm: add NPCM7xx timer driver

2017-11-01 Thread Tomer Maimon
Add Nuvoton BMC NPCM7xx timer driver. the clocksource Enable 24-bit TIMER0 and TIMER1 counters, while TIMER0 serves as clockevent and TIMER1 serves as clocksource. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- drivers/clocksource/Kconfig | 8 ++ drivers/clocksource/Ma

[PATCH v2 2/2] dt-binding: timer: document NPCM7xx timer DT bindings

2017-11-01 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton NPCM7xx timer. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- .../bindings/timer/nuvoton,npcm7xx-timer.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings

Re: [PATCH v1 2/2] dt-binding: timer: document NPCM7xx timer DT bindings

2017-10-29 Thread Tomer Maimon
Sorry for the delay, On 10 October 2017 at 17:57, Rob Herring <r...@kernel.org> wrote: > On Sun, Oct 01, 2017 at 12:11:38PM +0300, Tomer Maimon wrote: >> Added device tree binding documentation for Nuvoton NPCM7xx timer. >> >> Signed-off-by: Tomer

Re: [PATCH v6 2/3] arm: dts: add Nuvoton NPCM750 device tree

2017-10-29 Thread Tomer Maimon
gt; > Reviewed-by: Tomer Maimon <tmaimo...@gmail.com> > Reviewed-by: Avi Fishman <avifishma...@gmail.com> > Reviewed-by: Joel Stanley <j...@jms.id.au> > Tested-by: Tomer Maimon <tmaimo...@gmail.com> > Tested-by: Avi Fishman <avifishma...@gmail.com&

Re: [PATCH v7 1/3] arm: npcm: add basic support for Nuvoton BMCs

2017-10-26 Thread Tomer Maimon
gt; wrote: >> > On Thu, Oct 19, 2017 at 03:50:48PM -0700, Brendan Higgins wrote: >> >> Adds basic support for the Nuvoton NPCM750 BMC. >> >> >> >> Signed-off-by: Brendan Higgins <brendanhigg...@google.com> >> >> Reviewed-by:

[PATCH v1 0/2] clocksource: npcm: add NPCM7xx timer driver

2017-10-01 Thread Tomer Maimon
of basic support for Nuvoton BMCs and Nuvoton NPCM750 device tree patches. https://patchwork.kernel.org/bundle/brendanhiggins/arm:%20npcm:%20add%20basic%20support%20for%20Nuvoton%20BMCs/ Tomer Maimon (2): clocksource: npcm: add NPCM7xx timer driver dt-binding: timer: document NPCM7xx timer DT bindings

[PATCH v1 2/2] dt-binding: timer: document NPCM7xx timer DT bindings

2017-10-01 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton NPCM7xx timer. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- .../bindings/timer/nuvoton,npcm7xx-timer.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v1 1/2] clocksource: npcm: add NPCM7xx timer driver

2017-10-01 Thread Tomer Maimon
Add Nuvoton BMC NPCM7xx timer driver. Signed-off-by: Tomer Maimon <tmaimo...@gmail.com> --- drivers/clocksource/Kconfig | 9 ++ drivers/clocksource/Makefile| 1 + drivers/clocksource/npcm7xx_timer.c | 205 3 files changed, 215 inse

Re: [PATCH v5 1/3] arm: npcm: add basic support for Nuvoton BMCs

2017-09-10 Thread Tomer Maimon
sure write buffer is drained */ > + mb(); > + > + iounmap(gcr_base); > +out: > + return ret; > +} > + > +static void __init npcm7xx_smp_prepare_cpus(unsigned int max_cpus) > +{ > + struct device_node *scu_np; > + void __iomem *scu_base;

Re: [PATCH v4 1/3] arm: npcm: add basic support for Nuvoton BMCs

2017-09-07 Thread Tomer Maimon
all observers. */ > + smp_wmb(); > + dsb_sev(); > + /* make sure write buffer is drained */ > + mb(); > + > +out: > + iounmap(gcr_base); > + return ret; > +} > + > +static void __init npcm7xx_smp_prepare_cpus(unsigned int max_cpus) >

Re: [PATCH v2 3/3] MAINTAINERS: Add entry for the Nuvoton NPCM architecture

2017-09-04 Thread Tomer Maimon
it://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git > > +ARM/NUVOTON NPCM ARCHITECTURE > +M: Avi Fishman <avifishma...@gmail.com> > +M: Tomer Maimon <tmaimo...@gmail.com> > +R: Brendan Higgins <brendanhigg...@google.com> > +R: Rick Al

Re: [PATCH v2 2/3] arm: dts: add Nuvoton NPCM750 device tree

2017-09-04 Thread Tomer Maimon
rms Device Tree Bindings > +------- > +NPCM750 SoC > +Required root node properties: > + - compatible = "nuvoton,npcm750"; > + > diff --git a/arch/arm/boot/dts/nuvoton-npcm750-evb.dts > b/arch/arm/boot/dts/nuvoton-npcm750-evb.

Re: [PATCH v2 1/3] arm: npcm: add basic support for Nuvoton BMCs

2017-09-04 Thread Tomer Maimon
s(npcm7xx_secondary_startup), gcr_base + > + NPCM7XX_SCRPAD_REG); > + /* make sure npcm7xx_secondary_startup is seen by all observers. */ > + smp_wmb(); > + dsb_sev(); > + > + /* make sure write buffer is drained */ > + mb(); > +} > + > +stat