Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / Atom feed
From: Lubomir Rintel <lkundrak@v3.sk>
To: Arnd Bergmann <arnd@arndb.de>, Olof Johansson <olof@lixom.net>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Lubomir Rintel <lkundrak@v3.sk>, SoC Team <soc@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 10/12] ARM: dts: mmp3-dell-ariel: Add the power button node
Date: Thu, 21 Jan 2021 04:41:28 +0100
Message-ID: <20210121034130.1381872-11-lkundrak@v3.sk> (raw)
In-Reply-To: <20210121034130.1381872-1-lkundrak@v3.sk>

This adds support for the power button attached to the Embedded Controller
on a Dell Wyse 3020 "Ariel" board.

However, while the EC itself is controlled via I2C, the input capability
for the power button acts as a separate device attached to the SPI, hence
it has a separate device node.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
 arch/arm/boot/dts/mmp3-dell-ariel.dts | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/mmp3-dell-ariel.dts b/arch/arm/boot/dts/mmp3-dell-ariel.dts
index 565cd0fadf3d3..c4a6bd876d849 100644
--- a/arch/arm/boot/dts/mmp3-dell-ariel.dts
+++ b/arch/arm/boot/dts/mmp3-dell-ariel.dts
@@ -119,8 +119,16 @@ firmware-flash@0 {
 };
 
 &ssp2 {
-	cs-gpios = <&gpio 56 GPIO_ACTIVE_LOW>;
 	status = "okay";
+	cs-gpios = <&gpio 56 GPIO_ACTIVE_LOW>;
+
+	power-button@0 {
+		reg = <0>;
+		interrupt-parent = <&gpio>;
+		interrupts = <60 IRQ_TYPE_EDGE_RISING>;
+		compatible = "dell,wyse-ariel-ec-input", "ene,kb3930-input";
+		spi-max-frequency = <33000000>;
+	};
 };
 
 &gpu_2d {
-- 
2.29.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply index

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-21  3:41 ARM: dts: mmp devicetree updates Lubomir Rintel
2021-01-21  3:41 ` [PATCH 01/12] dt-bindings: gpio: mrvl-gpio: Fix the gpio-ranges property Lubomir Rintel
2021-01-21  3:41 ` [PATCH 02/12] media: dt-bindings: marvell, mmp2-ccic: Allow power-domains property Lubomir Rintel
2021-01-21  3:41 ` [PATCH 03/12] ARM: dts: mmp2-olpc-xo-1-75: Fix memory node name Lubomir Rintel
2021-01-21  3:41 ` [PATCH 04/12] ARM: dts: mmp2-olpc-xo-1-75: Drop linux, usable-memory from /memory Lubomir Rintel
2021-01-21  3:41 ` [PATCH 05/12] ARM: dts: mmp3-dell-ariel: " Lubomir Rintel
2021-01-21  3:41 ` [PATCH 06/12] ARM: dts: mmp3: Extend the MPMU reg range Lubomir Rintel
2021-01-21  3:41 ` [PATCH 07/12] ARM: dts: mmp2: Use symbolic names for audio clocks Lubomir Rintel
2021-01-21  3:41 ` [PATCH 08/12] ARM: dts: mmp2-olpc-xo-1-75: " Lubomir Rintel
2021-01-21  3:41 ` [PATCH 09/12] ARM: dts: mmp3-dell-ariel: Add the embedded controller Lubomir Rintel
2021-01-21  3:41 ` Lubomir Rintel [this message]
2021-01-21  3:41 ` [PATCH 11/12] ARM: dts: mmp3-dell-ariel: Replace SSP2 with spi-gpio Lubomir Rintel
2021-01-21  3:41 ` [PATCH 12/12] ARM: dts: mmp3: Fix the CCIC interrupts Lubomir Rintel
2021-01-22 14:09 ` ARM: dts: mmp devicetree updates Arnd Bergmann
2021-01-29 22:12   ` Lubomir Rintel
2021-02-02 16:41   ` Arnd Bergmann
2021-02-02 17:13     ` Arnd Bergmann
2021-02-02 19:01       ` Lubomir Rintel
2021-02-02 19:26         ` Arnd Bergmann

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=20210121034130.1381872-11-lkundrak@v3.sk \
    --to=lkundrak@v3.sk \
    --cc=arnd@arndb.de \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olof@lixom.net \
    --cc=robh+dt@kernel.org \
    --cc=soc@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

Linux-ARM-Kernel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/0 linux-arm-kernel/git/0.git
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/1 linux-arm-kernel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-arm-kernel linux-arm-kernel/ https://lore.kernel.org/linux-arm-kernel \
		linux-arm-kernel@lists.infradead.org
	public-inbox-index linux-arm-kernel

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-arm-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git