From: Stephan Gerhold <stephan@gerhold.net>
To: Nick Reitemeyer <nick.reitemeyer@web.de>
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
Linus Walleij <linus.walleij@linaro.org>,
Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCH 2/2] ARM: dts: ux500: samsung-golden: Add touchkey
Date: Mon, 22 Jun 2020 11:09:05 +0200 [thread overview]
Message-ID: <20200622090905.GA170221@gerhold.net> (raw)
In-Reply-To: <20200621193822.133683-2-nick.reitemeyer@web.de>
On Sun, Jun 21, 2020 at 09:38:23PM +0200, Nick Reitemeyer wrote:
> Adds support for the back and menu keys on golden.
>
> Signed-off-by: Nick Reitemeyer <nick.reitemeyer@web.de>
Thanks for sending this!
Reviewed-by: Stephan Gerhold <stephan@gerhold.net>
Tested-by: Stephan Gerhold <stephan@gerhold.net>
> ---
> .../arm/boot/dts/ste-ux500-samsung-golden.dts | 45 +++++++++++++++++++
> 1 file changed, 45 insertions(+)
>
> diff --git a/arch/arm/boot/dts/ste-ux500-samsung-golden.dts b/arch/arm/boot/dts/ste-ux500-samsung-golden.dts
> index 5b499c0b2745..1e26b711d43d 100644
> --- a/arch/arm/boot/dts/ste-ux500-samsung-golden.dts
> +++ b/arch/arm/boot/dts/ste-ux500-samsung-golden.dts
> @@ -24,6 +24,32 @@ chosen {
> stdout-path = &serial2;
> };
>
> + i2c-gpio-0 {
> + compatible = "i2c-gpio";
> + sda-gpios = <&gpio2 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
> + scl-gpios = <&gpio2 13 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c_gpio_0_default>;
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + touchkey@20 {
> + compatible = "coreriver,tc360-touchkey";
> + reg = <0x20>;
> + vdd-supply = <&ab8500_ldo_aux4_reg>;
> + vcc-supply = <&ab8500_ldo_aux6_reg>;
> +
> + interrupt-parent = <&gpio2>;
> + interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&touchkey_default>;
> + linux,keycodes = <KEY_MENU KEY_BACK>;
> + };
> + };
> +
> i2c-gpio-1 {
> compatible = "i2c-gpio";
> sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
> @@ -403,6 +429,16 @@ golden_cfg1 {
> };
> };
>
> + i2c-gpio-0 {
> + i2c_gpio_0_default: i2c_gpio_0 {
> + golden_cfg1 {
> + pins = "GPIO77", /* TOUCHKEY_SCL */
> + "GPIO78"; /* TOUCHKEY_SDA */
> + ste,config = <&gpio_in_nopull>;
> + };
> + };
> + };
> +
> i2c-gpio-1 {
> i2c_gpio_1_default: i2c_gpio_1 {
> golden_cfg1 {
> @@ -413,6 +449,15 @@ golden_cfg1 {
> };
> };
>
> + touchkey {
> + touchkey_default: touchkey_default {
> + golden_cfg1 {
> + pins = "GPIO79"; /* TOUCHKEY_INT */
> + ste,config = <&gpio_in_nopull>;
> + };
> + };
> + };
> +
> sdi0 {
> sd_level_translator_default: sd_level_translator_default {
> golden_cfg1 {
> --
> 2.27.0
>
next prev parent reply other threads:[~2020-06-22 9:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-21 19:38 [PATCH 1/2] ARM: defconfig: u8500: Enable CONFIG_KEYBOARD_TM2_TOUCHKEY Nick Reitemeyer
2020-06-21 19:38 ` [PATCH 2/2] ARM: dts: ux500: samsung-golden: Add touchkey Nick Reitemeyer
2020-06-22 9:09 ` Stephan Gerhold [this message]
2020-07-07 12:14 ` Linus Walleij
2020-07-07 12:14 ` Linus Walleij
2020-07-07 12:09 ` [PATCH 1/2] ARM: defconfig: u8500: Enable CONFIG_KEYBOARD_TM2_TOUCHKEY Linus Walleij
2020-07-07 12:09 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200622090905.GA170221@gerhold.net \
--to=stephan@gerhold.net \
--cc=devicetree@vger.kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=nick.reitemeyer@web.de \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.