From patchwork Wed Jan 25 22:14:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 48400 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp510447wrn; Wed, 25 Jan 2023 14:15:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXuAz3eZEitOJsVYB0cJw6RWvsrAac52R3r1Hg7iqi9fKJxcgWY8Zhuh8BHe+VEaA0I8C3W4 X-Received: by 2002:a05:6402:49:b0:49e:33ce:144d with SMTP id f9-20020a056402004900b0049e33ce144dmr75447801edu.37.1674684937289; Wed, 25 Jan 2023 14:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674684937; cv=none; d=google.com; s=arc-20160816; b=A80hGgkxwLCTNZemW87FjU0ZJw5Gx9ao9SZjfLcnfQ+VK1YvniMtxkaF1j0Xw2NXtQ /Mg60ZGo6OZcG321+5XHycezFDxkFeDu/nZ+2VvY73mORkKG8BX3F2sHvcocau9ONTRa Lmh8iBcNlqbfuWFcOS0I2Tl/6c47gReF9fYMuwKz5KVpc1UH6erFPhD8trfc+Is22/dU NK8H+F6JKb2R4vrn4k9Jj/bnAzTt1rHGqL4p2yM5duo0ZINfRRe72fIfNX5NSGEUC1Qx A+5iZC/Vy/1ZbIEqjRld4P4e3VGHUKTLpSSk5wBB1pC0lUxlpnZVlFP5W8Ck0vk3We9l qy2g== 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; bh=TRsSGAl2CGcYFcqgB1OeEgrNSIUIRdd1BXIPULvuyvI=; b=cuSEdZClr/r9eids3yrKtcnSh4548uiRFXRmLcs6zAR+aYcVcJCOAd/SB3LzHizx8H tdSzLPb3epM62vxRwJfZggM79sYvLPHq9Tgq2alegmPgRN36eQYwZUVZ9poIZH4O7Wdd OwfniVuhnWhiqiln7ixGdMhTDBop0y2THoTxbIoNmQ+jwuWRnCLjQUO+jssWi5bbewZt d902oNnu3mTnNAu88wG9KawiiDy1qD3BKag1ApohBAiVcNGNaUCDSudRfNla2Vjwi0uH N6VLbV90VhT9gQctAf279s0qlz2IUDJm7R7uAuulJgX6Fd9GC0PeM3aCcD2ifI3H8Oky /zvA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ez9-20020a056402450900b004a0bb6db95esi715933edb.595.2023.01.25.14.15.13; Wed, 25 Jan 2023 14:15:37 -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; 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 S235954AbjAYWOb (ORCPT + 99 others); Wed, 25 Jan 2023 17:14:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235895AbjAYWO3 (ORCPT ); Wed, 25 Jan 2023 17:14:29 -0500 Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 117255DC36; Wed, 25 Jan 2023 14:14:23 -0800 (PST) Received: by mail-oo1-f41.google.com with SMTP id d16-20020a4a5210000000b004f23d1aea58so38627oob.3; Wed, 25 Jan 2023 14:14:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TRsSGAl2CGcYFcqgB1OeEgrNSIUIRdd1BXIPULvuyvI=; b=D9DiXb9c4OqE/DjkRaBlswSX3xb9MJM5R+fK31hcYMsZbukcajAfxpkPeDGU83MPVi D7z9kUcVJ88pcMTUF2rbBZKxgvt6zW2JE1M2O21NA0ip4z5ksphEqc35HPrXydeGNxgx cZ4+wCwoOya6rDNWDFmL73yk9UwnosPTwpYO+/HQiXYag9Ls0or7QYMmsIyKCy3/VElB Tn2LxyuMoKUe+XG6dnHGZ0DbG6mVG1P0Txy930oK+HQcRkl9bH20Q42+4ZVexLE+uM0r Dxo1kPSirNeDn2izauo6L9MAR230rIQoptXahDKBxTzaeQ6ycPiI8oZWq9bN8kJalwYo kiPA== X-Gm-Message-State: AFqh2kqZiwNcy62m5r5Qz9mBIWUupSaZkKcFYLRHBlFYEdCxo2pl/EZe JbsM7t+ZDvfgMLlzgDhxUFep4o3R7g== X-Received: by 2002:a4a:c189:0:b0:4f3:6e99:e6c1 with SMTP id w9-20020a4ac189000000b004f36e99e6c1mr15181059oop.4.1674684862253; Wed, 25 Jan 2023 14:14:22 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id x1-20020a4aaa01000000b00499527def25sm2337009oom.47.2023.01.25.14.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 14:14:21 -0800 (PST) Received: (nullmailer pid 3058167 invoked by uid 1000); Wed, 25 Jan 2023 22:14:21 -0000 From: Rob Herring To: Dmitry Torokhov , Krzysztof Kozlowski , Jeff LaBundy Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: input: azoteq: Fix differing types Date: Wed, 25 Jan 2023 16:14:16 -0600 Message-Id: <20230125221416.3058051-1-robh@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.3 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_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756034432856618925?= X-GMAIL-MSGID: =?utf-8?q?1756034432856618925?= 'azoteq,ati-base' and 'azoteq,thresh' properties are defined in multiple bindings, but have differing types defined. Both 'uint32' and 'uint32-array' are used. Unify these to use 'uint32-array' everywhere. Signed-off-by: Rob Herring --- .../bindings/input/azoteq,iqs7222.yaml | 12 ++++--- .../devicetree/bindings/input/iqs269a.yaml | 34 +++++++++++-------- .../devicetree/bindings/input/iqs626a.yaml | 12 ++++--- 3 files changed, 33 insertions(+), 25 deletions(-) diff --git a/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml b/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml index 9ddba7f2e7aa..f2382a56884d 100644 --- a/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml +++ b/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml @@ -354,10 +354,11 @@ patternProperties: description: Specifies the channel's ATI target. azoteq,ati-base: - $ref: /schemas/types.yaml#/definitions/uint32 - multipleOf: 16 - minimum: 0 - maximum: 496 + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - multipleOf: 16 + minimum: 0 + maximum: 496 description: Specifies the channel's ATI base. azoteq,ati-mode: @@ -440,7 +441,8 @@ patternProperties: slider gesture). azoteq,thresh: - $ref: /schemas/types.yaml#/definitions/uint32 + $ref: /schemas/types.yaml#/definitions/uint32-array + maxItems: 1 description: Specifies the threshold for the event. Valid entries range from 0-127 and 0-255 for proximity and touch events, respectively. diff --git a/Documentation/devicetree/bindings/input/iqs269a.yaml b/Documentation/devicetree/bindings/input/iqs269a.yaml index 3c430d38594f..4fa20f0f6847 100644 --- a/Documentation/devicetree/bindings/input/iqs269a.yaml +++ b/Documentation/devicetree/bindings/input/iqs269a.yaml @@ -334,9 +334,10 @@ patternProperties: 3: Full azoteq,ati-base: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [75, 100, 150, 200] - default: 100 + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - enum: [75, 100, 150, 200] + default: 100 description: Specifies the channel's ATI base. azoteq,ati-target: @@ -391,10 +392,11 @@ patternProperties: properties: azoteq,thresh: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 255 - default: 10 + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - minimum: 0 + maximum: 255 + default: 10 description: Specifies the threshold for the event. linux,code: true @@ -408,10 +410,11 @@ patternProperties: properties: azoteq,thresh: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 255 - default: 8 + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - minimum: 0 + maximum: 255 + default: 8 description: Specifies the threshold for the event. azoteq,hyst: @@ -432,10 +435,11 @@ patternProperties: properties: azoteq,thresh: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 255 - default: 26 + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - minimum: 0 + maximum: 255 + default: 26 description: Specifies the threshold for the event. azoteq,hyst: diff --git a/Documentation/devicetree/bindings/input/iqs626a.yaml b/Documentation/devicetree/bindings/input/iqs626a.yaml index 7a27502095f3..dbd63d48605c 100644 --- a/Documentation/devicetree/bindings/input/iqs626a.yaml +++ b/Documentation/devicetree/bindings/input/iqs626a.yaml @@ -234,8 +234,9 @@ patternProperties: about the available RUI options. azoteq,ati-base: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [75, 100, 150, 200] + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - enum: [75, 100, 150, 200] description: Specifies the channel's ATI base. The default value is a function of the channel and the device's RUI. @@ -475,9 +476,10 @@ patternProperties: properties: azoteq,thresh: - $ref: /schemas/types.yaml#/definitions/uint32 - minimum: 0 - maximum: 255 + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - minimum: 0 + maximum: 255 description: Specifies the threshold for the event. azoteq,hyst: