From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B0DCC433EF for ; Tue, 24 May 2022 11:29:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236634AbiEXL3h (ORCPT ); Tue, 24 May 2022 07:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236637AbiEXL3g (ORCPT ); Tue, 24 May 2022 07:29:36 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CABF38723D for ; Tue, 24 May 2022 04:29:34 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id j10so6834377lfe.12 for ; Tue, 24 May 2022 04:29:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=3emZod9jR3q6gCFyPwhXNHJRJq7F+FIV2jGAwBzwi58=; b=PnUGqZ1pyposeXIbHLumD+wEv3S0Cs1Wpjjwnkxvb7fzp2T735cLUxZ+diQBX72rOj mC+thfNM/6t90Vvel23DzqlzhPsVg3meCoI7/MhhGAOJiAlr+oUDgEtRBOnzNnivmbmr zy8xa8X+cAtOOo/0gEqv1UpSdxgqPfs+zN7mZPfS2rJNbJ3tijxU5Z2yHMIzTaIAAn9t VjTNPFK0t6Hsx3jj7T7eqNhW7lDK0pcFFzOe+dr0KGLpS02wjGhTkdvBS0gtl25dKQ17 zR4lAbnSbNtBAc2r00xrsEWHMGw6j+ZSjrbwMoWY0cJX5/Qjz4L6CCuSe0yjcjaZBt/p lvMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=3emZod9jR3q6gCFyPwhXNHJRJq7F+FIV2jGAwBzwi58=; b=NmpG0nT6NnM3I3ftHdsdhfVEH7ARRwkPMO1uVj+YEP+OW20SpH2OyJbztvL20hY/Hi 43YU5bIeeA2+zevoTPp2/XOCmfGfPaX8T4rDm9h8clVINRJzdex3U5uvQyw5F5PNqCNk xCWipZDZbH/2gSHRZ4Jq94byllCa73/bc6Ar4ESxx76MWRgrw7w7LhGNGpln7BG85cFO QJmKR5m2JgcSTrUUEe31tK0Ehj/XqIJJX+fomcKDs4pdU888DnkdITyHtpjqOEwGzwOm 3dSgkFGY0m9aEhfD8XI7yo51oOf55dHnflfrSjc+RKUtapLqra4w9ws+WbIml9ynv/sd z7PQ== X-Gm-Message-State: AOAM5331r3BNk2d3QK/PsWJoWN2swKPa/CN2fFBV96+4SkWuR74rjUEN PMzphMiM0PvJ8V2Oh/N3nwLfEw== X-Google-Smtp-Source: ABdhPJxOJolQvOT14QtdpEQ2d2/n0h6xMUoAUUyC7pPRF3QAELSY8PwJkQeSwOq0216GCHYbyanDHg== X-Received: by 2002:ac2:550f:0:b0:477:bc6e:9bcc with SMTP id j15-20020ac2550f000000b00477bc6e9bccmr19354559lfk.279.1653391773176; Tue, 24 May 2022 04:29:33 -0700 (PDT) Received: from [172.20.68.48] ([91.221.145.6]) by smtp.gmail.com with ESMTPSA id b4-20020a056512218400b0047255d21177sm2486692lft.166.2022.05.24.04.29.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 May 2022 04:29:32 -0700 (PDT) Message-ID: <2f49aa26-23f7-833c-b01d-9dfb2603603c@linaro.org> Date: Tue, 24 May 2022 13:28:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] dt-bindings: input: use generic node names Content-Language: en-US To: Andreas Kemnade Cc: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Jeff LaBundy , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220524093136.7980-1-krzysztof.kozlowski@linaro.org> <20220524131152.3d749a9d@aktux> From: Krzysztof Kozlowski In-Reply-To: <20220524131152.3d749a9d@aktux> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org On 24/05/2022 13:11, Andreas Kemnade wrote: > Hi, > > On Tue, 24 May 2022 11:31:36 +0200 > Krzysztof Kozlowski wrote: > >> diff --git a/Documentation/devicetree/bindings/input/gpio-keys.yaml b/Documentation/devicetree/bindings/input/gpio-keys.yaml >> index 7fe1966ea28a..93f601c58984 100644 >> --- a/Documentation/devicetree/bindings/input/gpio-keys.yaml >> +++ b/Documentation/devicetree/bindings/input/gpio-keys.yaml >> @@ -127,13 +127,13 @@ examples: >> compatible = "gpio-keys"; >> autorepeat; >> >> - up { >> + key-up { >> label = "GPIO Key UP"; >> linux,code = <103>; >> gpios = <&gpio1 0 1>; >> }; >> >> - down { >> + key-down { >> label = "GPIO Key DOWN"; >> linux,code = <108>; >> interrupts = <1 IRQ_TYPE_EDGE_FALLING>; > hmm, what about changing > patternProperties: > ".*": > > to enforce this format instead of allowing anything? It will cause a lot, a lot of warnings, so first these would need to be fixed in every DTS. That's also doable, might help if these gpio-keys bindings need any other object like property. Best regards, Krzysztof