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
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
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
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
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_
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:
>>
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
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
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
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_
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
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_
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
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
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
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
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
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
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
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
.
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
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
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
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
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 */
>> +
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
48 matches
Mail list logo