Message ID | 20230111100725.463136-1-amelie.delaunay@foss.st.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3235089wrt; Wed, 11 Jan 2023 02:13:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXuExbDpATq24F2qiUT+DZBShmHubIbz+faGUz0UMYFzEd2eOiRdUCryClpIWOkDaZwxq4eN X-Received: by 2002:a17:906:4e82:b0:855:dd40:e96a with SMTP id v2-20020a1709064e8200b00855dd40e96amr5475841eju.64.1673432008604; Wed, 11 Jan 2023 02:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673432008; cv=none; d=google.com; s=arc-20160816; b=T1YH54lIT/CXe62ug4nV/+sXRmYW9CuWNBOe+YdyzROEFFSLx2vt8P54KwPO8TDHX8 9wJJvonSkx5N237dot6v+YWIPwx0D1Ryjao4qJ0VrZ6db0UPV2wt13JfA2lO5hij+sFk 0PFM8lPbhL9vvQDCHkdQP/U/kMmpLc3c0j/ehIJ8hkoqsk5tE69L/RZLfanvLUQb/jGA Jr+UqmFcVqwFkN4VQVxEWLOH35G4ygFFYHFPqTdGqgllZx5JI0GosSRGJSOv5kKhBhRP 1+5zKryVBQ4HlrbFpA8OEBflzrZYYvGn+x+zy3LxGdHD0LCSOvKM9ZIRX1JhRhDNciaD 5q/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jo1cHBaQF7snkoZzn/q0uMWY3xh//s/Aq57kIL+l6J4=; b=EvfbI10y20UxSBWD0xDfoDbYE+bXchyXHeXQVbmX17KM1GCFcDj4b5w/Vif/mUbk4k u+9lJc+SZ4iQD3oZFrNENOc6B8uPS+nab5FWqcW5Au+JyhEg3/8CpNitCbe9isuBDSvr YfyfUFphhFj1DWLLz8Rvm/YM6pqLrvuJnlSpBrlGO0OOEqbDGRGnTrwBp9nnB+718iud RQAeBWSKFpgnVSuRVk4a7ezJTOAOYorT1TYtabxhKfmR9mEQuX63CIgnZkfNqGyE2jQo OobHK32Zonk2MdJsQj6F6pyFRWL1QoIMmUwRwz+Vyg1tBNXnpjJeKgBZpL0/ZuaP3Jee EFhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Y+Q1XuFL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ae9-20020a17090725c900b007c10d4bddccsi15135375ejc.822.2023.01.11.02.13.04; Wed, 11 Jan 2023 02:13:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Y+Q1XuFL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231549AbjAKKMK (ORCPT <rfc822;syz17693488234@gmail.com> + 99 others); Wed, 11 Jan 2023 05:12:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230407AbjAKKLC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 11 Jan 2023 05:11:02 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1C4E11C0B; Wed, 11 Jan 2023 02:07:45 -0800 (PST) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30B8DtMt019024; Wed, 11 Jan 2023 11:07:26 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=jo1cHBaQF7snkoZzn/q0uMWY3xh//s/Aq57kIL+l6J4=; b=Y+Q1XuFLJ7NZhxVMAS4w38zvpxyi1zcAcvOpYje6R+HL3MEVO56Zi1deoIPGEd0qY5uB pTHbkSuFgVoyL+5TVhaF22k+62OKGi24z0UGRClWsMiDegxxY4wPiNRooWZPhw89ICOT CT505wi2K/n069RydInyCeg0swAfUYUXYEeSGq89LmYo9TryO+w5T8M894wGVei7S/Cj 8RWa2XEdavuNVpdBzrFY62xNVpOth0uFcMPmXtvd8X49P0xAuxNBgoJRy9DAPKQ/RRpj edPz6/28q7p0/vf6HXxPtuqUZkQ+xrp5XnLHkX1VPk29sB3gbophHjHt1OWJxQ/Hr1Mr dw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3n1k5rtvq8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Jan 2023 11:07:26 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4E91310002A; Wed, 11 Jan 2023 11:07:26 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 48521214D2B; Wed, 11 Jan 2023 11:07:26 +0100 (CET) Received: from localhost (10.252.6.49) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.13; Wed, 11 Jan 2023 11:07:26 +0100 From: Amelie Delaunay <amelie.delaunay@foss.st.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Fabien Dessenne <fabien.dessenne@foss.st.com> CC: Amelie Delaunay <amelie.delaunay@foss.st.com>, <devicetree@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH] ARM: dts: Fix User button on stm32mp135f-dk Date: Wed, 11 Jan 2023 11:07:25 +0100 Message-ID: <20230111100725.463136-1-amelie.delaunay@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.252.6.49] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-11_04,2023-01-11_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754720641831556876?= X-GMAIL-MSGID: =?utf-8?q?1754720641831556876?= |
Series |
ARM: dts: Fix User button on stm32mp135f-dk
|
|
Commit Message
Amelie Delaunay
Jan. 11, 2023, 10:07 a.m. UTC
This patch fixes the following dtbs_check warning on stm32mp135f-dk:
arch/arm/boot/dts/stm32mp135f-dk.dtb: gpio-keys: 'user-pa13' does not match any of the regexes: '^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switch))$', 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/input/gpio-keys.yaml
It renames user-pa13 node into button-user so that it matches gpio-keys
bindings.
Fixes: 57012d79fefd ("ARM: dts: stm32: add UserPA13 button on stm32mp135f-dk")
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
---
arch/arm/boot/dts/stm32mp135f-dk.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 11/01/2023 11:07, Amelie Delaunay wrote: > This patch fixes the following dtbs_check warning on stm32mp135f-dk: > arch/arm/boot/dts/stm32mp135f-dk.dtb: gpio-keys: 'user-pa13' does not match any of the regexes: '^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switch))$', 'pinctrl-[0-9]+' > From schema: Documentation/devicetree/bindings/input/gpio-keys.yaml > > It renames user-pa13 node into button-user so that it matches gpio-keys > bindings. > > Fixes: 57012d79fefd ("ARM: dts: stm32: add UserPA13 button on stm32mp135f-dk") > No blank lines between the tags, but I would drop the Fixes anyway. This is not a bug, but convention and coding style. > Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com> > --- > arch/arm/boot/dts/stm32mp135f-dk.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts > index 9ff5a3eaf55b..931877d6ddb9 100644 > --- a/arch/arm/boot/dts/stm32mp135f-dk.dts > +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts > @@ -40,7 +40,7 @@ optee@dd000000 { > gpio-keys { > compatible = "gpio-keys"; > > - user-pa13 { > + button-user { Best regards, Krzysztof
On 1/11/23 11:38, Krzysztof Kozlowski wrote: > On 11/01/2023 11:07, Amelie Delaunay wrote: >> This patch fixes the following dtbs_check warning on stm32mp135f-dk: >> arch/arm/boot/dts/stm32mp135f-dk.dtb: gpio-keys: 'user-pa13' does not match any of the regexes: '^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switch))$', 'pinctrl-[0-9]+' >> From schema: Documentation/devicetree/bindings/input/gpio-keys.yaml >> >> It renames user-pa13 node into button-user so that it matches gpio-keys >> bindings. >> >> Fixes: 57012d79fefd ("ARM: dts: stm32: add UserPA13 button on stm32mp135f-dk") >> > > No blank lines between the tags, but I would drop the Fixes anyway. This > is not a bug, but convention and coding style. > Blank line + Fixes tag dropped in v2. Thanks >> Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com> >> --- >> arch/arm/boot/dts/stm32mp135f-dk.dts | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts >> index 9ff5a3eaf55b..931877d6ddb9 100644 >> --- a/arch/arm/boot/dts/stm32mp135f-dk.dts >> +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts >> @@ -40,7 +40,7 @@ optee@dd000000 { >> gpio-keys { >> compatible = "gpio-keys"; >> >> - user-pa13 { >> + button-user { > > Best regards, > Krzysztof > Regards, Amelie
diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts index 9ff5a3eaf55b..931877d6ddb9 100644 --- a/arch/arm/boot/dts/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts @@ -40,7 +40,7 @@ optee@dd000000 { gpio-keys { compatible = "gpio-keys"; - user-pa13 { + button-user { label = "User-PA13"; linux,code = <BTN_1>; gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;