[PATCH v2 1/3] gpio: xgene: add support to configure GPIO line as input, output or external IRQ pin

2015-10-25 Thread Y Vo
Add support to configure GPIO line as input, output or external IRQ pin. Signed-off-by: Y Vo --- drivers/gpio/gpio-xgene-sb.c | 234 +++-- 1 files changed, 199 insertions(+), 35 deletions(-) diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio

[PATCH v2 0/3] gpio: xgene: add support to configure GPIO line as input, output or external IRQ pin

2015-10-25 Thread Y Vo
V2 Changes: - support X-Gene standby GPIO as an interrupt controller. Y Vo (3): gpio: xgene: add support to configure GPIO line as input, output or external IRQ pin Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding arm64: dts

[PATCH v2 2/3] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding

2015-10-25 Thread Y Vo
Update description for X-Gene standby GPIO controller DTS binding to support GPIO line configuration as input, output or external IRQ pin. Signed-off-by: Y Vo --- .../devicetree/bindings/gpio/gpio-xgene-sb.txt | 23 +--- 1 files changed, 15 insertions(+), 8 deletions

[PATCH v2 3/3] arm64: dts: Update APM X-Gene standby GPIO controller DTS entries

2015-10-25 Thread Y Vo
Update APM X-Gene standby GPIO controller DTS entries to support GPIO line configuration as input, output or external IRQ pin. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot

Re: [PATCH 1/2] gpio: xgene: add support to configure GPIO line as input, output or external IRQ pin

2015-10-02 Thread Y Vo
On Fri, Oct 2, 2015 at 4:51 PM, Linus Walleij wrote: > On Fri, Sep 11, 2015 at 2:22 AM, Y Vo wrote: > >> Add support to configure GPIO line as input, output or external IRQ pin. >> >> Signed-off-by: Y Vo > > Mostly OK but... > >> #define XGENE_

Re: [PATCH 2/2] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding

2015-09-15 Thread Y Vo
On Mon, Sep 14, 2015 at 10:23 PM, Marc Zyngier wrote: > On 14/09/15 16:06, Y Vo wrote: >> On Mon, Sep 14, 2015 at 9:47 PM, Arnd Bergmann wrote: >>> On Monday 14 September 2015 16:39:43 Y Vo wrote: >>>> On Mon, Sep 14, 2015 at 4:11 PM, Arnd Bergmann wrote: >>

Re: [PATCH 2/2] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding

2015-09-14 Thread Y Vo
On Mon, Sep 14, 2015 at 9:47 PM, Arnd Bergmann wrote: > On Monday 14 September 2015 16:39:43 Y Vo wrote: >> On Mon, Sep 14, 2015 at 4:11 PM, Arnd Bergmann wrote: >> > On Saturday 12 September 2015 12:55:55 Y Vo wrote: >> >> On Fri, Sep 11, 2015 at 11:45 PM, Ar

Re: [PATCH 2/2] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding

2015-09-14 Thread Y Vo
On Mon, Sep 14, 2015 at 4:11 PM, Arnd Bergmann wrote: > On Saturday 12 September 2015 12:55:55 Y Vo wrote: >> On Fri, Sep 11, 2015 at 11:45 PM, Arnd Bergmann wrote: >> > On Friday 11 September 2015 22:06:58 Y Vo wrote: >> >> On Fri, Sep 11, 2015 at 9:47 PM, Ar

Re: [PATCH 2/2] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding

2015-09-11 Thread Y Vo
On Fri, Sep 11, 2015 at 11:45 PM, Arnd Bergmann wrote: > On Friday 11 September 2015 22:06:58 Y Vo wrote: >> On Fri, Sep 11, 2015 at 9:47 PM, Arnd Bergmann wrote: >> > On Friday 11 September 2015 21:23:31 Y Vo wrote: >> >> Is that possible if we change to this appr

Re: [PATCH 2/2] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding

2015-09-11 Thread Y Vo
On Fri, Sep 11, 2015 at 9:47 PM, Arnd Bergmann wrote: > On Friday 11 September 2015 21:23:31 Y Vo wrote: >> >> /* Board-specific: exclude GPIO_DS8 to leave it as GPIO */ >> >> &sbgpio { >> >>interrupts =<0x0 0x29 0x1>, /* GPIO_

Re: [PATCH 2/2] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding

2015-09-11 Thread Y Vo
On Fri, Sep 11, 2015 at 7:46 PM, Arnd Bergmann wrote: > On Friday 11 September 2015 18:24:47 Y Vo wrote: >> On Fri, Sep 11, 2015 at 4:35 PM, Arnd Bergmann wrote: >> > On Friday 11 September 2015 16:22:12 Y Vo wrote: >> >> There are 20 GPIO pins from 0..21. Ther

Re: [PATCH 2/2] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding

2015-09-11 Thread Y Vo
On Fri, Sep 11, 2015 at 4:35 PM, Arnd Bergmann wrote: > On Friday 11 September 2015 16:22:12 Y Vo wrote: >> There are 20 GPIO pins from 0..21. There is no GPIO_DS14 or GPIO_DS15, >> -only GPIO_DS8..GPIO_DS13 support interrupts. The IRQ mapping >> +only GPIO_DS8..GPIO_

[PATCH 0/2] gpio: xgene: add support to configure GPIO line as input, output or external IRQ pin

2015-09-11 Thread Y Vo
This patch supports to configure GPIO line as input, output or external IRQ pin. Y Vo (2): gpio: xgene: add support to configure GPIO line as input, output or external IRQ pin Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding .../devicetree

[PATCH 2/2] Documentation: gpio: Update description for X-Gene standby GPIO controller DTS binding

2015-09-11 Thread Y Vo
Signed-off-by: Y Vo --- .../devicetree/bindings/gpio/gpio-xgene-sb.txt | 26 ++- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt b/Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt index

[PATCH 1/2] gpio: xgene: add support to configure GPIO line as input, output or external IRQ pin

2015-09-11 Thread Y Vo
Add support to configure GPIO line as input, output or external IRQ pin. Signed-off-by: Y Vo --- drivers/gpio/gpio-xgene-sb.c | 33 ++--- 1 files changed, 26 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene-sb.c

[PATCH v1] arm64: dts: Add poweroff button device node for APM X-Gene platform

2015-06-26 Thread Y Vo
This patch adds poweroff button device node to support poweroff feature on APM X-Gene Mustang platform. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm/apm-mustang.dts | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-mustang.dts b

[PATCH v1] arm64: dts: Add poweroff button device node for APM X-Gene platform

2015-06-26 Thread Y Vo
This patch adds poweroff button device node to support poweroff feature on APM X-Gene Mustang platform. V1 change: - Remove unused property. Y Vo (1): arm64: dts: Add poweroff button device node for APM X-Gene platform arch/arm64/boot/dts/apm/apm-mustang.dts | 10 ++ 1

[PATCH v0] arm64: dts: Add poweroff button device node for APM X-Gene platform

2015-06-16 Thread Y Vo
This patch adds poweroff button device node to support poweroff feature on APM X-Gene Mustang platform. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm/apm-mustang.dts | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-mustang.dts b

[PATCH RESEND v0] arm64: dts: Add APM X-Gene standby GPIO controller DTS entries

2015-06-16 Thread Y Vo
Add standby domain gpio controller for APM X-Gene SoC platform. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi

Re: [PATCH v0] gpio_keys: fix gpio key driver to proper support GIC interrupt

2015-06-07 Thread Y Vo
On Fri, Jun 5, 2015 at 7:50 PM, Arnd Bergmann wrote: > On Thursday 04 June 2015 14:25:12 Y Vo wrote: >> GIC is designed to support two of trigger mechanisms - active level >> high or edge rising. But in the gpio_keys driver, it tries to use both >> edge rising and edge fallin

[PATCH v0] gpio_keys: fix gpio key driver to proper support GIC interrupt

2015-06-04 Thread Y Vo
. Signed-off-by: Y Vo --- drivers/input/keyboard/gpio_keys.c | 20 +--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index ddf4045..7c3da2c 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b

[PATCH v0] arm64: dts: Add APM X-Gene standby GPIO controller DTS entries

2015-06-04 Thread Y Vo
Add standby domain gpio controller for APM X-Gene SoC platform. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi

[PATCH v1] gpio: xgene: add ACPI support for APM X-Gene GPIO standby driver

2015-05-29 Thread Y Vo
Add ACPI support for APM X-Gene GPIO standby driver. Signed-off-by: Y Vo --- drivers/gpio/gpio-xgene-sb.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene-sb.c index b6a15c3..df5a04f 100644 --- a

[PATCH v1] gpio: add ACPI support for APM X-Gene GPIO standby driver

2015-05-29 Thread Y Vo
This patch adds ACPI support for APM X-Gene GPIO standby driver. V1 change: - Remove check CONFIG_ACPI when call acpi_gpiochip_request_interrupts() function. - Add acpi_gpiochip_free_interrupts() function to unregister the interrupt. Y Vo (1): gpio: xgene: add ACPI support

Re: [PATCH v0] gpio: xgene: add ACPI support for APM X-Gene GPIO standby driver

2015-05-29 Thread Y Vo
On Fri, May 29, 2015 at 4:25 PM, Mika Westerberg wrote: > On Thu, May 28, 2015 at 01:46:28PM +0700, Y Vo wrote: >> +#ifdef CONFIG_ACPI >> + if (priv->nirq > 0) { >> + /* Register interrupt handlers for gpio signaled acpi events */ >> +

[PATCH v0] gpio: xgene: add ACPI support for APM X-Gene GPIO standby driver

2015-05-27 Thread Y Vo
Add ACPI support for APM X-Gene GPIO standby driver. Signed-off-by: Y Vo --- drivers/gpio/gpio-xgene-sb.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene-sb.c index b6a15c3..50aaae5 100644 --- a

[PATCH v3 3/3] arm64: dts: Add APM X-Gene standby GPIO controller DTS entries

2015-01-20 Thread Y Vo
Add standby domain gpio controller for APM X-Gene SoC platform. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi

[PATCH v3 0/3] gpio: Add APM X-Gene standy platform GPIO driver

2015-01-15 Thread Y Vo
This patch add the GPIO standby controller in the APM X-Gene platform. v3 Change: 1. Using GPIO_GENERIC. v2 Change: 1. Do not access GIC register from driver. 2. Duplicate gpio probe funtion. 3. Function gpiochip_remove doesn't return value. Y Vo (3): gpio

[PATCH v3 1/3] gpio: Add APM X-Gene standby GPIO controller driver

2015-01-15 Thread Y Vo
Driver for standby GPIO controller of APM X-Gene SoCs on arm64. Signed-off-by: Y Vo --- drivers/gpio/Kconfig |8 ++ drivers/gpio/Makefile|1 + drivers/gpio/gpio-xgene-sb.c | 162 ++ 3 files changed, 171 insertions(+), 0 deletions

[PATCH v3 3/3] arm64: dts: Add APM X-Gene standby GPIO controller DTS entries

2015-01-15 Thread Y Vo
Add standby domain gpio controller for APM X-Gene SoC platform. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm/apm-storm.dtsi | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi

[PATCH v3 2/3] Documentation: gpio: Add APM X-Gene standby GPIO controller DTS binding

2015-01-15 Thread Y Vo
Documentation for APM X-Gene standby GPIO controller DTS binding. Signed-off-by: Y Vo --- .../devicetree/bindings/gpio/gpio-xgene-sb.txt | 31 1 files changed, 31 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-xgene

Re: [PATCH v2 RESEND 1/3] gpio: Add APM X-Gene standby GPIO controller driver

2015-01-14 Thread Y Vo
On Tue, Jan 13, 2015 at 4:40 PM, Linus Walleij wrote: > On Wed, Dec 17, 2014 at 6:10 AM, Y Vo wrote: > >> Add APM X-Gene standby GPIO controller driver. > > Write something about what platform an arch this is and so > on, this is too terse commit message for a new driver.

Re: [PATCH v2 RESEND 2/3] Documentation: gpio: Add APM X-Gene standby GPIO controller DTS binding

2015-01-13 Thread Y Vo
Yes, exactly 6 interrupts. As I describe before: - There are 22 GPIO_DSs. - Only 6 GPIO_DSs from 0x08..0xD which supports interrupts Regards, Y On Tue, Jan 13, 2015 at 4:25 PM, Linus Walleij wrote: > On Wed, Dec 17, 2014 at 6:10 AM, Y Vo wrote: >> Documentation for APM X-Gene sta

[PATCH v2 RESEND 2/3] Documentation: gpio: Add APM X-Gene standby GPIO controller DTS binding

2014-12-16 Thread Y Vo
Documentation for APM X-Gene standby GPIO controller DTS binding. Signed-off-by: Y Vo --- .../devicetree/bindings/gpio/gpio-xgene-sb.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt diff --git a

[PATCH v2 RESEND 0/3] gpio: Add APM X-Gene standy platform GPIO driver

2014-12-16 Thread Y Vo
This patch add the GPIO standby controller in the APM X-Gene platform. v1 Change: 1. Do not access GIC register from driver. 2. Duplicate gpio probe funtion. 3. Function gpiochip_remove doesn't return value. Y Vo (3): gpio: Add APM X-Gene standby GPIO controller d

[PATCH v2 RESEND 3/3] arm64:dts: Add APM X-Gene standby GPIO controller DTS entries

2014-12-16 Thread Y Vo
Add standby domain gpio controller for APM X-Gene SoC platform. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm-storm.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index 295c72d..e2454a2 100644

[PATCH v2 RESEND 1/3] gpio: Add APM X-Gene standby GPIO controller driver

2014-12-16 Thread Y Vo
Add APM X-Gene standby GPIO controller driver. Signed-off-by: Y Vo --- drivers/gpio/Kconfig | 7 ++ drivers/gpio/Makefile| 1 + drivers/gpio/gpio-xgene-sb.c | 217 +++ 3 files changed, 225 insertions(+) create mode 100644 drivers/gpio

[PATCH v2 1/3] gpio: Add APM X-Gene standby GPIO controller driver

2014-12-16 Thread Y Vo
Add APM X-Gene standby GPIO controller driver. Signed-off-by: Y Vo --- drivers/gpio/Kconfig | 7 ++ drivers/gpio/Makefile| 1 + drivers/gpio/gpio-xgene-sb.c | 228 +++ 3 files changed, 236 insertions(+) create mode 100644 drivers/gpio

[PATCH v2 0/3] gpio: Add APM X-Gene standy platform GPIO driver

2014-12-16 Thread Y Vo
This patch add the GPIO standby controller in the APM X-Gene platform. v1 Change: 1. Do not access GIC register from driver. 2. Duplicate gpio probe funtion. 3. Function gpiochip_remove doesn't return value. Y Vo (3): gpio: Add APM X-Gene standby GPIO controller d

[PATCH v2 3/3] arm64:dts: Add APM X-Gene standby GPIO controller DTS entries

2014-12-16 Thread Y Vo
Add standby domain gpio controller for APM X-Gene SoC platform. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm-storm.dtsi | 13 + drivers/gpio/gpio-xgene-sb.c | 18 +++--- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/arch/arm64/boot/dts/apm

[PATCH v2 2/3] Documentation: gpio: Add APM X-Gene standby GPIO controller DTS binding

2014-12-16 Thread Y Vo
Documentation for APM X-Gene standby GPIO controller DTS binding. Signed-off-by: Y Vo --- .../devicetree/bindings/gpio/gpio-xgene-sb.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt diff --git a

Re: [PATCH v1 1/3] gpio: Add APM X-Gene standby GPIO controller driver

2014-12-16 Thread Y Vo
On Wed, Oct 29, 2014 at 10:16 PM, Arnd Bergmann wrote: > On Wednesday 29 October 2014 22:09:00 Y Vo wrote: >> Hi Arnd, >> >> Per Linus, shall we hold this driver until the GIC submission complete >> ? Or we will send the version without access GIC to read status in >

Re: [PATCH v1 1/3] gpio: Add APM X-Gene standby GPIO controller driver

2014-10-29 Thread Y Vo
Hi Arnd, Per Linus, shall we hold this driver until the GIC submission complete ? Or we will send the version without access GIC to read status in case the GPIO is configured IRQ ? +static int xgene_gpio_sb_get(struct gpio_chip *gc, u32 gpio) +{ + struct of_mm_gpio_chip *mm_gc = to_of_mm_gp

Re: [PATCH v1 1/3] gpio: Add APM X-Gene standby GPIO controller driver

2014-10-09 Thread Y Vo
Dear Arnd, Pls see my answer below: On Thu, Oct 9, 2014 at 7:13 PM, Arnd Bergmann wrote: > On Thursday 09 October 2014 16:31:18 Y Vo wrote: >> Dear Arnd, >> >> Thanks a lot for your review. Pls see my answer on blue text below. > > Please do not send html-encoded em

[PATCH v1 2/3] Documentation: gpio: Add APM X-Gene standby GPIO controller DTS binding

2014-10-08 Thread Y Vo
Documentation for APM X-Gene standby GPIO controller DTS binding. Signed-off-by: Y Vo --- .../devicetree/bindings/gpio/gpio-xgene-sb.txt | 31 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-xgene-sb.txt diff --git a

[PATCH v1 0/3] gpio: Add APM X-Gene standy platform GPIO driver

2014-10-08 Thread Y Vo
This patch add the GPIO standby controller in the APM X-Gene platform. Y Vo (3): gpio: Add APM X-Gene standby GPIO controller driver Documentation: gpio: Add APM X-Gene standby GPIO controller DTS binding arm64:dts: Add APM X-Gene standby GPIO controller DTS entries .../devicetree

[PATCH v1 1/3] gpio: Add APM X-Gene standby GPIO controller driver

2014-10-08 Thread Y Vo
Add APM X-Gene standby GPIO controller driver. Signed-off-by: Y Vo --- drivers/gpio/Kconfig |7 ++ drivers/gpio/Makefile|1 + drivers/gpio/gpio-xgene-sb.c | 232 ++ 3 files changed, 240 insertions(+) create mode 100755 drivers

[PATCH v1 3/3] arm64:dts: Add APM X-Gene standby GPIO controller DTS entries

2014-10-08 Thread Y Vo
Add standby domain gpio controller for APM X-Gene SoC platform. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm-storm.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index c0aceef..1d1da4c 100644