From patchwork Wed Jan 17 09:40:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 124798 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp1320168lje; Wed, 17 Jan 2018 01:40:28 -0800 (PST) X-Google-Smtp-Source: ACJfBotWLlguHBaXWI/yUOC5UE5I3fq9AuNY5/NYKnpCXR0fUZEu8rg0OivrDIuDYzGBRX/4UPU6 X-Received: by 10.98.238.18 with SMTP id e18mr37531544pfi.23.1516182028814; Wed, 17 Jan 2018 01:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516182028; cv=none; d=google.com; s=arc-20160816; b=UMjzy0ACqXU/y8x62kqT5H0Tj2qrTTl6HkYIBIm1g+bGC0+U5Ak9E4BtaDL9/6EL7b wo0wj8Uvw65Umem77R6ai8B2BmEUnpa8Z/asXn19hjc0qdW6JLYV8Fh+wbg9QhLQzInM PdSNJs1ZqwHk21AvEC8L3y4yZ8hOyy/Boxm4O1KpIxA2FHC932xj1KtEcjis8dkjY7LG 9CGlA6DAk2i2JMCsDq9uQYE2e/jhBgBHjlK53m282GisLwfGRandb+DIAPv04M2rG5lI Xepm0C+rzqrZxEzizx2cXydZteVs+/GLs+mR8gidJQ+oJG5j1usgAgdhM/WE+gedR26v Cbfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=qGbbEitYiy/3H9KDRuDVPU5gsv+dplGDLPJp38P8Ft8=; b=j1wm9poZOQqtfwTGrn0SVo9xLVqT1JysgJp2j2yCqFFtlpjfr1LO109gPiAud9eC9q GB5Yteb0lrxYqwucVcP9K2DfwzlPja/p8csO1FSfVSexGMcNljxKusq5dRcEJ8b4d6g1 ofQByljS59L8lVmM+8IW3or8FpfDAZPJaL2Y+2AgX5tzV1FKUY1xUPEfgg/o65lUdyit qkYdIy+zUxl/aHaB4haorRU4NKgavkmJMJALLPTNXjwqWklrRIO+bO2dDeNnfsPbHNJe cRBiBT5vOETDx5V3BVUzn4DJxxDuETgZUL2/JcY6Jm3LD6fwPz6+4EEeFaNB2DU6otAU Pndw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HCypM1c3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si3494396pgp.577.2018.01.17.01.40.28; Wed, 17 Jan 2018 01:40:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HCypM1c3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752625AbeAQJk0 (ORCPT + 28 others); Wed, 17 Jan 2018 04:40:26 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:45940 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752251AbeAQJkV (ORCPT ); Wed, 17 Jan 2018 04:40:21 -0500 Received: by mail-wr0-f196.google.com with SMTP id 16so18149566wry.12 for ; Wed, 17 Jan 2018 01:40:21 -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=qGbbEitYiy/3H9KDRuDVPU5gsv+dplGDLPJp38P8Ft8=; b=HCypM1c3hpeYN84nIf1u+idZZqgBUnwtSpOWnPHdRd4bA5US70sWYdQXrN5fhI270M fwzi6e2z8mr3Ak2RvBqJao9dAnw3GN60esFOxmkdVU14VPhb6L3vFR5Ma4D/yyDIKX1A cYbjpfR2edAibEyW79gN9U0HUN5jIXQM8XPCs= 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=qGbbEitYiy/3H9KDRuDVPU5gsv+dplGDLPJp38P8Ft8=; b=WgVSrmg9VysTsP9/YpJOmp6U9b+Y9KHrgRJuhjb6+oNu/BqJdrZAoRvsJluMt5ux3u lEsh1FxkEe0J8qeYRa0AvtOgwWh6NddMyebGGu4kz0DoFQO2swHS5uIQlxD5yThilIAX ctzae/qtqZSiyUEHM/+dvKjwDKANdkgSJD8cxQuMLQjFWQE0vV76khz677lMamGiQ+my e+X1W08E+cK49kowC7rjThnTjsOTNYg9FSO5AH58Epf9oawehRA0E2Lj9DbgxYn+Cy7x cQwGkvhF25N8vXKJrA/dbyxOK1t0vfWwcfTJAKDjyiWFEglY1HSSncMsiGiwmtITOyaG 8j3Q== X-Gm-Message-State: AKwxytcGsJ5WMo5bOYzb0MusRuC0fJHAR5RB2iXHf3kxp/Jhx+j3WPOO kAIsBhbyKOauFcF8dReeRfDHBA== X-Received: by 10.223.166.41 with SMTP id k38mr1875583wrc.242.1516182020417; Wed, 17 Jan 2018 01:40:20 -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.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Jan 2018 01:40:19 -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 Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH] ARM: dts: stm32: Add push button to stm32f469 Discovery board Date: Wed, 17 Jan 2018 10:40:04 +0100 Message-Id: <20180117094005.20728-3-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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add node for user push button. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f469-disco.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.15.0 diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts index 5e9994840a24..c93d83d53bc8 100644 --- a/arch/arm/boot/dts/stm32f469-disco.dts +++ b/arch/arm/boot/dts/stm32f469-disco.dts @@ -86,6 +86,18 @@ gpios = <&gpiok 3 1>; }; + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + button@0 { + label = "User"; + linux,code = ; + gpios = <&gpioa 0 0>; + }; + }; + /* This turns on vbus for otg for host mode (dwc2) */ vcc5v_otg: vcc5v-otg-regulator { compatible = "regulator-fixed";