devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lubomir Rintel <lkundrak@v3.sk>
To: Arnd Bergmann <arnd@arndb.de>, Olof Johansson <olof@lixom.net>
Cc: Rob Herring <robh+dt@kernel.org>, SoC Team <soc@kernel.org>,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, Lubomir Rintel <lkundrak@v3.sk>
Subject: [PATCH 10/12] ARM: dts: mmp3-dell-ariel: Add the power button node
Date: Thu, 21 Jan 2021 04:41:28 +0100	[thread overview]
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


  parent reply	other threads:[~2021-01-21  4:40 UTC|newest]

Thread overview: 15+ 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
     [not found] ` <CAK8P3a2DYX3c-AMX9URSyrcQckY2UaRRTmnOwe=4q3P4cJ-t5A@mail.gmail.com>
2021-01-29 22:12   ` ARM: dts: mmp devicetree updates Lubomir Rintel
     [not found]   ` <CAK8P3a2Ub0w3v_H_0F84MPdQZ28vUgxdYNii7eVY0o9a_sg7DQ@mail.gmail.com>
     [not found]     ` <CAK8P3a0h8r+K3cKKRJD6-rZ9H=F8ciKgkN6+XEF61scLbEqGOw@mail.gmail.com>
2021-02-02 19:01       ` Lubomir Rintel

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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).