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=leif.lindholm@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 6B9AA2035BB1D for ; Fri, 17 Nov 2017 09:02:21 -0800 (PST) Received: by mail-wm0-x241.google.com with SMTP id 9so7755875wme.4 for ; Fri, 17 Nov 2017 09:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0roNpDzFnyBi5s7yrEPmH9rBAyDSOou0wh5Sxn/+gbY=; b=guo+yiP1q3nxk54bTCAym7XIPCB8u1X4mxeBfAHNjj+m0c++WBS1tw9kkhyzn3ziUq gfuZ8cqYH1/tpi7DgsCWSP4WBVocBqGyy5UhgLL2Nuy+NpQj736qL1fTaFh1HOrvdhFm /B697xdTL3tV/GK/1B4RNJ57B2JxG+7RiO+J4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0roNpDzFnyBi5s7yrEPmH9rBAyDSOou0wh5Sxn/+gbY=; b=tkr7Ccz/A5hw++OWRML7klOve0jmHIllOUG8x9XdlUFRUM/2KCy+mPVifQyroUkJbc xyJxRpkDDZxn2UdmjG76O+EYLj1I4CKZIqK0YHcWfyXMqZL/hqKRFJd+UuqxRvAejawj oJ9bTW8AT1YduEYgeOqGR0e8uaYJ7DlxdI/QkOMdkSANeH1XBmSPXPKdh04m4bY2e1my roWIqUyb577gZGptSZO5g2WPcvHHIWBUeqgiG2co9H+QJZPalw3a6Luc6rm7tV/XrHGt 4mIJ8z5O5gfuQSPFJHdZAvK7zW3TnAhja6HQVrlELjZsjTWBLNfKBzz+bAFokzZKpuK3 a5gw== X-Gm-Message-State: AJaThX59bg34PwEWjQJ/eyf/ca7uAlFUefrKb4h8yYcvuRYAY9QwOO6f KXEhGchnVdgrAvL8VDrMpej/Fg== X-Google-Smtp-Source: AGs4zMb6iCbbVKihBpxidR7GToAGYLUWJHyHy/T7BQ8e+FGYZaHbKInXDS18EjsswNe4b7DDCiJKdg== X-Received: by 10.28.96.195 with SMTP id u186mr1463832wmb.121.1510938390995; Fri, 17 Nov 2017 09:06:30 -0800 (PST) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id s187sm2528087wmf.16.2017.11.17.09.06.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Nov 2017 09:06:29 -0800 (PST) Date: Fri, 17 Nov 2017 17:06:28 +0000 From: Leif Lindholm To: Ard Biesheuvel Cc: edk2-devel@lists.01.org, daniel.thompson@linaro.org, masami.hiramatsu@linaro.org, methavanitpong.pipat@socionext.com, masahisa.kojima@linaro.org Message-ID: <20171117170628.je4xtvjslg2pe3a5@bivouac.eciton.net> References: <20171110142127.12018-1-ard.biesheuvel@linaro.org> <20171110142127.12018-34-ard.biesheuvel@linaro.org> MIME-Version: 1.0 In-Reply-To: <20171110142127.12018-34-ard.biesheuvel@linaro.org> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [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, 17 Nov 2017 17:02:21 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Nov 10, 2017 at 02:21:26PM +0000, Ard Biesheuvel wrote: > 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 Reviewed-by: Leif Lindholm > --- > 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 >