From nobody Wed Dec 25 14:35:06 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1510323874212963.6379462716527; Fri, 10 Nov 2017 06:24:34 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 1443C203555F4; Fri, 10 Nov 2017 06:19:11 -0800 (PST) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3F44A21C913BF for ; Fri, 10 Nov 2017 06:19:10 -0800 (PST) Received: by mail-wm0-x241.google.com with SMTP id z3so3084937wme.5 for ; Fri, 10 Nov 2017 06:23:13 -0800 (PST) Received: from localhost.localdomain ([160.167.170.128]) by smtp.gmail.com with ESMTPSA id e131sm1036477wmg.15.2017.11.10.06.23.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Nov 2017 06:23:10 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::241; helo=mail-wm0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NxxVmO3SpEVEBOoJpHdUhtAdYI4ZpKTp4/SmvO5j2+Y=; b=T7KStdbr0NVm0Sgut+LgP/MGY2bCphqc6ucrUfRNgycS6LtHk8OgqPCo1lqy7ZS0nk dKn5XGj6uIT61WvOltnkbtwQ2T82Bs0wh5sneyeBhYX5stNtyw4IvmC9ojIbt0sLLjTo +R/48FKCFWi1ahmbMAL7NjMpao/kG3pnwkOk4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NxxVmO3SpEVEBOoJpHdUhtAdYI4ZpKTp4/SmvO5j2+Y=; b=Nk37Unh2o+YhwCNsjHZGtu0D3yELGlskhXLCyB4njkKEDg8S0XWKGA7Gfs8qB7Pze0 t3a011nScnyqG8qgPDDj6OnswiSkRFPTEyTOtllVw8DWW1D90xdztV4GmpCKJGhNb1nC ByAaJpQQISRuxNFxvme9f3xUxgxFKFyqz5uqJw9C5pEMi2cJlz/h7JRLHy5zcxBbgkMV 9BsJAKfhjgrC0pm9HZ5S89NKLWi+BKxggtX9/maCxx5rrDJZkq0wgzldCinM+04ZtJq3 sqItevMjSG/w0TuJlA8+i3YFRpop6R5W82oL1K0Vz9GHJ/R3rMmAq1RFip4w745FgKhW H6uA== X-Gm-Message-State: AJaThX4sD0zEZaMwfs/sZHNbluelcDnhci0UddbSpoYb3rcvF/H0hFRi YAkkiwoGz1AxTfViCcnSobYlAv0NBLQ= X-Google-Smtp-Source: AGs4zMajgBmNwVZCFGEuy/mI9KXAKe48geaSWou94yplwY86HFlKjtj6LCeFn15+t4LAsqAK49qhaQ== X-Received: by 10.28.185.196 with SMTP id j187mr350169wmf.97.1510323791655; Fri, 10 Nov 2017 06:23:11 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, daniel.thompson@linaro.org Date: Fri, 10 Nov 2017 14:21:26 +0000 Message-Id: <20171110142127.12018-34-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171110142127.12018-1-ard.biesheuvel@linaro.org> References: <20171110142127.12018-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms v4 33/34] Platform/DeveloperBox: add description of power button to DT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: masahisa.kojima@linaro.org, masami.hiramatsu@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Add the power button as a gpio-keys KEY_POWER button, and mark it as a wakeup source so it can be used under the OS both as a 'sleep' and as a 'wake' button. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts b/Sili= con/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts index 6ae7d5f300b6..d2cd7ef90e6f 100644 --- a/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts +++ b/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts @@ -15,9 +15,23 @@ =20 #include "SynQuacer.dtsi" =20 +#define KEY_POWER 116 + / { model =3D "Socionext Developer Box"; compatible =3D "socionext,developer-box", "socionext,synquacer"; + + gpio-keys { + compatible =3D "gpio-keys"; + interrupt-parent =3D <&exiu>; + + power { + label =3D "Power Button"; + linux,code =3D ; + interrupts =3D ; + wakeup-source; + }; + }; }; =20 &gpio { --=20 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel