* [PATCH 0/2] powerpc: wii.dts: GPIO interrupt and button support
@ 2019-01-12 16:21 Jonathan Neuschäfer
2019-01-12 16:21 ` [PATCH 1/2] powerpc: wii.dts: Add interrupt-related properties to GPIO node Jonathan Neuschäfer
2019-01-12 16:21 ` [PATCH 2/2] powerpc: wii.dts: Add GPIO keys Jonathan Neuschäfer
0 siblings, 2 replies; 5+ messages in thread
From: Jonathan Neuschäfer @ 2019-01-12 16:21 UTC (permalink / raw)
To: linuxppc-dev
Cc: Rob Herring, Mark Rutland, Benjamin Herrenschmidt,
Paul Mackerras, Michael Ellerman, devicetree, linux-kernel,
Jonathan Neuschäfer
This patchset adds the necessary bits to wii.dts to enable interrupt
support in the GPIO controller, and defines two GPIO-based buttons,
the POWER button and the EJECT button.
I will send another patchset which will implement interrupt support in
the GPIO driver (gpio-hlwd.c).
Jonathan Neuschäfer (2):
powerpc: wii.dts: Add interrupt-related properties to GPIO node
powerpc: wii.dts: Add GPIO keys
arch/powerpc/boot/dts/wii.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
--
2.20.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] powerpc: wii.dts: Add interrupt-related properties to GPIO node
2019-01-12 16:21 [PATCH 0/2] powerpc: wii.dts: GPIO interrupt and button support Jonathan Neuschäfer
@ 2019-01-12 16:21 ` Jonathan Neuschäfer
2019-01-24 3:40 ` [1/2] " Michael Ellerman
2019-01-24 3:40 ` Michael Ellerman
2019-01-12 16:21 ` [PATCH 2/2] powerpc: wii.dts: Add GPIO keys Jonathan Neuschäfer
1 sibling, 2 replies; 5+ messages in thread
From: Jonathan Neuschäfer @ 2019-01-12 16:21 UTC (permalink / raw)
To: linuxppc-dev
Cc: Rob Herring, Mark Rutland, Benjamin Herrenschmidt,
Paul Mackerras, Michael Ellerman, devicetree, linux-kernel,
Jonathan Neuschäfer
The Hollywood GPIO controller is connected to the Hollywood PIC (&PIC1)
at IRQs 10 and 11; IRQ 10 for GPIO lines that are configured for access
by the PPC, 11 for GPIO lines that are configured for access by the
ARM926.
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
arch/powerpc/boot/dts/wii.dts | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/powerpc/boot/dts/wii.dts b/arch/powerpc/boot/dts/wii.dts
index 40fe791ec9e6..864e5a17aa1d 100644
--- a/arch/powerpc/boot/dts/wii.dts
+++ b/arch/powerpc/boot/dts/wii.dts
@@ -187,6 +187,11 @@
"DEBUG0", "DEBUG1", "DEBUG2", "DEBUG3",
"DEBUG4", "DEBUG5", "DEBUG6", "DEBUG7";
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ interrupts = <10>;
+ interrupt-parent = <&PIC1>;
+
/*
* This is commented out while a standard binding
* for i2c over gpio is defined.
--
2.20.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] powerpc: wii.dts: Add GPIO keys
2019-01-12 16:21 [PATCH 0/2] powerpc: wii.dts: GPIO interrupt and button support Jonathan Neuschäfer
2019-01-12 16:21 ` [PATCH 1/2] powerpc: wii.dts: Add interrupt-related properties to GPIO node Jonathan Neuschäfer
@ 2019-01-12 16:21 ` Jonathan Neuschäfer
1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Neuschäfer @ 2019-01-12 16:21 UTC (permalink / raw)
To: linuxppc-dev
Cc: Rob Herring, Mark Rutland, Benjamin Herrenschmidt,
Paul Mackerras, Michael Ellerman, devicetree, linux-kernel,
Jonathan Neuschäfer
The Wii has POWER and EJECT buttons, which are connected through
normalization logic to the GPIO controller (the length of an assertion
of these signals is always the same, regardless of how long the user
pressed the buttons).
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
arch/powerpc/boot/dts/wii.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/powerpc/boot/dts/wii.dts b/arch/powerpc/boot/dts/wii.dts
index 864e5a17aa1d..64f886a6327f 100644
--- a/arch/powerpc/boot/dts/wii.dts
+++ b/arch/powerpc/boot/dts/wii.dts
@@ -14,6 +14,7 @@
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/*
* This is commented-out for now.
@@ -249,5 +250,21 @@
gpios = <&GPIO 8 GPIO_ACTIVE_HIGH>;
};
};
+
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ power {
+ label = "Power Button";
+ gpios = <&GPIO 0 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_POWER>;
+ };
+
+ eject {
+ label = "Eject Button";
+ gpios = <&GPIO 6 GPIO_ACTIVE_HIGH>;
+ linux,code = <KEY_EJECTCD>;
+ };
+ };
};
--
2.20.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [1/2] powerpc: wii.dts: Add interrupt-related properties to GPIO node
2019-01-12 16:21 ` [PATCH 1/2] powerpc: wii.dts: Add interrupt-related properties to GPIO node Jonathan Neuschäfer
@ 2019-01-24 3:40 ` Michael Ellerman
2019-01-24 3:40 ` Michael Ellerman
1 sibling, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2019-01-24 3:40 UTC (permalink / raw)
To: Jonathan Neuschäfer, linuxppc-dev
Cc: Mark Rutland, devicetree, linux-kernel, Jonathan Neuschäfer,
Rob Herring, Paul Mackerras
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 484 bytes --]
On Sat, 2019-01-12 at 16:21:23 UTC, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= wrote:
> The Hollywood GPIO controller is connected to the Hollywood PIC (&PIC1)
> at IRQs 10 and 11; IRQ 10 for GPIO lines that are configured for access
> by the PPC, 11 for GPIO lines that are configured for access by the
> ARM926.
>
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/8de7547e03059281fda075355c114694
cheers
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [1/2] powerpc: wii.dts: Add interrupt-related properties to GPIO node
2019-01-12 16:21 ` [PATCH 1/2] powerpc: wii.dts: Add interrupt-related properties to GPIO node Jonathan Neuschäfer
2019-01-24 3:40 ` [1/2] " Michael Ellerman
@ 2019-01-24 3:40 ` Michael Ellerman
1 sibling, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2019-01-24 3:40 UTC (permalink / raw)
To: Jonathan Neuschäfer, linuxppc-dev
Cc: Mark Rutland, devicetree, linux-kernel, Jonathan Neuschäfer,
Rob Herring, Paul Mackerras
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 484 bytes --]
On Sat, 2019-01-12 at 16:21:23 UTC, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= wrote:
> The Hollywood GPIO controller is connected to the Hollywood PIC (&PIC1)
> at IRQs 10 and 11; IRQ 10 for GPIO lines that are configured for access
> by the PPC, 11 for GPIO lines that are configured for access by the
> ARM926.
>
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/f4ddc19a711736eb54fb8259499faf5a
cheers
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-01-24 3:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-12 16:21 [PATCH 0/2] powerpc: wii.dts: GPIO interrupt and button support Jonathan Neuschäfer
2019-01-12 16:21 ` [PATCH 1/2] powerpc: wii.dts: Add interrupt-related properties to GPIO node Jonathan Neuschäfer
2019-01-24 3:40 ` [1/2] " Michael Ellerman
2019-01-24 3:40 ` Michael Ellerman
2019-01-12 16:21 ` [PATCH 2/2] powerpc: wii.dts: Add GPIO keys Jonathan Neuschäfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).