Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1400004iol; Fri, 10 Jun 2022 06:49:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza1ESjbhv6zO/U8LX0z93gC7mJOS7r/hNEi6LYkZwDYVpBMZkz83zg2/hi9hOzwRbCdjg0 X-Received: by 2002:a17:907:8a01:b0:6ff:3eab:9dfa with SMTP id sc1-20020a1709078a0100b006ff3eab9dfamr41891403ejc.467.1654868975667; Fri, 10 Jun 2022 06:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654868975; cv=none; d=google.com; s=arc-20160816; b=Yw+KAsYp6GLCWOQKJDAAS5H6fhl+Hjelh9UXaOLNGiVQC6AFSlaodnLDawOS+bhhxk DBxZH/K1pW9rGTT5rF88dh4Ci9NCd8GXCbFD2yCyHKTQNctPQHDLrK12CnZDyvHaNkip 588lPXdzIM7LeF+HnH6gslM5rFiag+9XPKzJy/pyyCn8a1LDbycUAfYxd2qwa0la2VvJ mwF7kUMV4QhsbbR7x3reKAcHeqg4xOK9bckvLLD7wA4bBFpSUhh3Oy3keUGdpXvoVp3z fPA1cKKeLv+WMwM3c4LPmEYNr+C4gt+rftJuW7hMz3OlTaGGsJlbh3hEqw6IS/e1xcoT mSiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Zk41DWxqcCrUcOmNAlHBuuam8bwwgCEDw3C2FONqZ6o=; b=PJlPJyYVMr6NJbFQHCEq0RDSk3a71jFWXmRtR2xPtaJSDCz/0wj9+uz8I8LYbnNudj PW0YZ5VEAsP1azw2WMAGuhqTGwD4aKGZwQKHQ4H7QnlRLHg5cuI75EFPAy2goe+gyUWc v0roua7f2OeJucnJcB8dwVpQ5pGY7ljjyI8IVJgeVKOU6C5XiKEl3Gl7A1y/wP5tfoQN g+dQ7S5JDNmvXFXZgTvk46PqRECemltESQhk/SQEH6wiML+l2Pvpkvd/BmMGWa7MlmTh UfjA7fyRYVv2WgylnpxDEb5JC8XKvxpMicm3iw9gimn6v+p5o67ByWKt2fcRWLcPwU2p e5Sg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he36-20020a1709073da400b0071097667454si1831948ejc.800.2022.06.10.06.49.09; Fri, 10 Jun 2022 06:49:35 -0700 (PDT) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345871AbiFJNXT (ORCPT + 99 others); Fri, 10 Jun 2022 09:23:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241258AbiFJNXO (ORCPT ); Fri, 10 Jun 2022 09:23:14 -0400 Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A560B655F; Fri, 10 Jun 2022 06:23:11 -0700 (PDT) Received: by mail-io1-f50.google.com with SMTP id s23so25255949iog.13; Fri, 10 Jun 2022 06:23:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Zk41DWxqcCrUcOmNAlHBuuam8bwwgCEDw3C2FONqZ6o=; b=Setkl3N9Xjl/AfanTZ4CFVjmjKeRuD/NMTNf2/GrppJvt/a4lTAszm9xmmec42bCr6 KLW483pIKkG/gjJUCuMnSMgg7fApHs3MjBG972vk1eoB33atZ23ac/tATRE2KhPSrf2t iabLeEYQDHn9eR1FKeLb7Uc+VkTgBCjoPzMfTYUkXpdpg+MpDY2R00l3LDsw/WrEet1B PbZHvIarykTU06FydWqOZHTRS+zFXB3BcUnzmUT87+U/qWqZu6Ar3ZOvaqdS48TzXRd4 /lavJbMsFCoPMXiIAcIQKyeeidp5xhA2U7DfSr+ib0wrh9U0iGlrV9nVqVePYZilgCKJ fnPg== X-Gm-Message-State: AOAM530ghHfLEKoavNIJIxSnsbLEzd/a5uH7rBJJG1S3Ju0j7AwVYk0K E19SfadCGKcFd/F/eBo0Kw== X-Received: by 2002:a05:6638:348d:b0:331:d8f0:fd9d with SMTP id t13-20020a056638348d00b00331d8f0fd9dmr8577668jal.165.1654867390891; Fri, 10 Jun 2022 06:23:10 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id x13-20020a92300d000000b002d3a3f4685dsm11733602ile.21.2022.06.10.06.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 06:23:10 -0700 (PDT) Received: (nullmailer pid 1543585 invoked by uid 1000); Fri, 10 Jun 2022 13:23:08 -0000 Date: Fri, 10 Jun 2022 07:23:08 -0600 From: Rob Herring To: Heinrich Schuchardt Cc: Dmitry Torokhov , Krzysztof Kozlowski , Alexandre Belloni , Hans de Goede , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Bartosz Golaszewski , Artur Rojek , Maxime Ripard , Jeff LaBundy , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/5] dt-bindings: input: Increase maximum keycode value to 0x2ff Message-ID: <20220610132308.GA1530409-robh@kernel.org> References: <20220608211207.2058487-1-robh@kernel.org> <20220608211207.2058487-2-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 09, 2022 at 07:46:51AM +0200, Heinrich Schuchardt wrote: > On 6/8/22 23:12, Rob Herring wrote: > > The maximum keycode value for Linux is 0x2ff, not 0xff. There's already > > users and examples with values greater than 0xff, but the schema is not > > yet applied in those cases. > > > > Signed-off-by: Rob Herring > > --- > > Documentation/devicetree/bindings/input/input.yaml | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/input/input.yaml b/Documentation/devicetree/bindings/input/input.yaml > > index d41d8743aad4..43d2f299c332 100644 > > --- a/Documentation/devicetree/bindings/input/input.yaml > > +++ b/Documentation/devicetree/bindings/input/input.yaml > > @@ -21,7 +21,7 @@ properties: > > $ref: /schemas/types.yaml#/definitions/uint32-array > > items: > > minimum: 0 > > - maximum: 0xff > > + maximum: 0x2ff > > Can this value of 0x2ff be make exportable such that we can use it as a > reference in devicetree/bindings/input/adc-keys.yaml. E.g. define a type > that only take values in the 0-0x2ff range? There's no need. The $ref to input.yaml in does that effectively already. That's why 'linux,code' doesn't need any schema constraints unless it has additional constraints. max77650-onkey.yaml in patch 2 has an example of that. If you wanted to add a new, custom property with those constraints, then we could do something like this: $defs: input-codes: minimum: 0 maximum: 0x2ff ... And then have: $ref: input.yaml#/$defs/input-codes Rob