From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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) 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) 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) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, daniel.thompson@linaro.org Cc: masami.hiramatsu@linaro.org, methavanitpong.pipat@socionext.com, masahisa.kojima@linaro.org, Ard Biesheuvel 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: [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: , X-List-Received-Date: Fri, 10 Nov 2017 14:19:10 -0000 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/Silicon/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 @@ #include "SynQuacer.dtsi" +#define KEY_POWER 116 + / { model = "Socionext Developer Box"; compatible = "socionext,developer-box", "socionext,synquacer"; + + gpio-keys { + compatible = "gpio-keys"; + interrupt-parent = <&exiu>; + + power { + label = "Power Button"; + linux,code = ; + interrupts = ; + wakeup-source; + }; + }; }; &gpio { -- 2.11.0