From patchwork Fri Nov 10 14:21:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 118567 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2260495edl; Fri, 10 Nov 2017 06:24:33 -0800 (PST) X-Google-Smtp-Source: AGs4zMY22Hjq6hIQEbzmi1GWJTyi/ye1HjCvuLHqi1+7+fKOqzOzy8s4MfLNps+20WfKjGrjJ8HQ X-Received: by 10.98.110.73 with SMTP id j70mr566662pfc.146.1510323873128; Fri, 10 Nov 2017 06:24:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510323873; cv=none; d=google.com; s=arc-20160816; b=uFQcmyXZDBfKBzRTBmmi0DQsBDlhYryuD5AF5hmi66P68wCVmmrVR8vnBOW+cmEYhh JBRyplGbRL6JcWpPedtMLfvUmHuCTPcaCXoRjzG8ncDVDsgMJbF4itx7+zCwgEkdqrpX 9MdM/apfKw+14AgCTE/kshSvOm6/weDxLFQFIW34yil9Rys5CRG/18VMVgzG70L45KXi SN1Tt6pOLB1vIHmNRcNsQD1QKmAdvfD9CP+dLGi79tRIr/RH13s68nAuuOicn4JlJLWR CXxWiad3HUFLlN2YnLHZF1PnUVXF/G6rn7wO+r9CsvrOh524Jhr9V2j5g+kECzwCRy/W XX8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=7vovIjxNRRqYG8dQ4ctEyQbb7/zylKqJW/QPM+clPjo=; b=MmE2eTGGVYw6I3wDTWExgcVBjbuDxxdMAzF6OOCMMLNSqeaSYeQNIuJHivQbkFeJ0Y s5Ds9P3MKdz1dL6+FkvJLSOnpMWLAyhuR1S5heFjAR3MJGemg+57prgo+Ocye03N4xpZ zs2WWLBYgY262YlnucWd3SSuV0wxyqwykJldRpxZEjayNissUmM+VU6ovD3w4QKVdAiD X06ukMqKc1SViE/75v8aQa0Gp7khAvhwQ/5mUJdUHtIKAeaYlJ8mHxrgkGR8wFouteK7 9YMkVG/x2MXx7x3kNiOj7S42bFvrkYCoMciJQVodarBi8d65wupcjTqVtyUQmOxqHA+0 iFlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=T7KStdbr; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id p73si9628038pfi.83.2017.11.10.06.24.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Nov 2017 06:24:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=T7KStdbr; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.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 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-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 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 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm 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 {