From patchwork Wed Jan 17 09:40:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 10168871 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0D522603ED for ; Wed, 17 Jan 2018 09:41:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1CD127FAC for ; Wed, 17 Jan 2018 09:41:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E635928451; Wed, 17 Jan 2018 09:41:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6CF8F27FAC for ; Wed, 17 Jan 2018 09:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=KwC9ffWGUPOT0ExGFcWi1ebeSoJBBfk6rjCeDTZVSWg=; b=f861aUwBqrLxsqGpj/GGQChRbJ HkYixOdqVIVefHscTHcpHx0Wss3+WuTybB/5lJa2b3hHJ5vZrwLULRhr6LQoD9ky/6kzNNOSjCXae JU5zh8rdWjrEN1N+a8m+0oIWKDhRRWr7IDw24H6eJilkjiqCn4zSMY3xufqMbOwqfGpIn5d1U2pjU VYdwBTGI6VVoTb1nthIJsI1BIklgkMnU3TE7MxPFQIhAv7mVL8qraQZSFRu2GxFnDwdxa0E/JF/PE 4U90H+HJ+QEmThHwatLmsUVkjWJe+k27pqkEgvY4iioUrluFrfNcD28+4NvG8GCcIwcB39oogjSvG ZoNoM9cQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ebkDm-0000A4-Lh; Wed, 17 Jan 2018 09:41:26 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ebkCw-0007eU-Kk for linux-arm-kernel@lists.infradead.org; Wed, 17 Jan 2018 09:40:36 +0000 Received: by mail-wr0-x243.google.com with SMTP id x1so13988362wrb.5 for ; Wed, 17 Jan 2018 01:40:23 -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=gOv0dExFIulzT0LITi4aavIftaAXttuEHw1gyHCdFA0=; b=BGPOtU2dIr8Nt5/UNmu9zzRbjQUiwlEFRqXllGn7Be+/Vez8taAO9OjJSt+24alqAV GGpWQWHlUH7+ZwgInX+S9pAIxXxMzpAXYIgsDWhF4sBBqgznrAWbFrK1VTbqHCzXA66Y anz19YEHHOPZEpXCz4pZcz5cp+O6t3St8QTsg= 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=gOv0dExFIulzT0LITi4aavIftaAXttuEHw1gyHCdFA0=; b=KnNGSr/hBDqM+bS9WgxLGJDS8RE69Fj8hFSc/4y3F36vBK2z8Lfi5VsDUYVtYBWuzz O2oHWtxuKpEDo6AANb/s1hWxRPk+CSgZe0JzvnWJi1Z9NDc00FowX09JsM02oJ42I8nB tQJZXkXHY5BTpJ78ifPIoyje49x4r2Xk337Q0EvZOqYBQTDd35l0wD/2UkZZHL+iauQp GlSRaBFkyQ8bOk5oMz2fg742Tw79HDYk2LjtNlYoeSb0MiYnJtJJ9RYiJoOSO+yni5hX Y7eH2UGn5C9nIriWCxSG8aFOZvwtL1yGksIXv7vIubLJnASKS5JSrF2L8rynEZy7Tn5s dNDw== X-Gm-Message-State: AKwxytfjNzLrKyQjSuOILpl4fgAzusrrRilLYm3c2VeIEOL+ckH6Em/F HpzjI7nnriJMsvhXbgLJwlExFOJVZQ4= X-Google-Smtp-Source: ACJfBoubXTAbfqd31I+giddXPjXmjngZQNiLHVVLieLADacbo9jRfdlRFbDWrLLPTy0RnRB068vshw== X-Received: by 10.223.198.198 with SMTP id c6mr489298wrh.159.1516182022365; Wed, 17 Jan 2018 01:40:22 -0800 (PST) Received: from lmecxl0911.lme.st.com ([80.215.196.6]) by smtp.gmail.com with ESMTPSA id p32sm7076124wrc.9.2018.01.17.01.40.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Jan 2018 01:40:21 -0800 (PST) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Subject: [PATCH] ARM: dts: stm32: Add push button to stm32f769 Discovery board Date: Wed, 17 Jan 2018 10:40:05 +0100 Message-Id: <20180117094005.20728-4-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20180117094005.20728-1-benjamin.gaignard@st.com> References: <20180117094005.20728-1-benjamin.gaignard@st.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Benjamin Gaignard MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add node for user push button. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f769-disco.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts index 25a4b71f0317..8b3e1b518570 100644 --- a/arch/arm/boot/dts/stm32f769-disco.dts +++ b/arch/arm/boot/dts/stm32f769-disco.dts @@ -71,6 +71,18 @@ gpios = <&gpioj 13 0>; }; }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + button@0 { + label = "User"; + linux,code = ; + gpios = <&gpioa 0 0>; + }; + }; }; &cec {