Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp30108iof; Wed, 8 Jun 2022 14:27:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxClbMqfZweqKvALmI6VlsTXxsHI3f6qGms58DxsmCT5UK4W2Yu4TU2l4xQoAwVr8Mnm1EW X-Received: by 2002:a17:907:7d8a:b0:6fe:dccb:cf4c with SMTP id oz10-20020a1709077d8a00b006fedccbcf4cmr34108616ejc.714.1654723622728; Wed, 08 Jun 2022 14:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654723622; cv=none; d=google.com; s=arc-20160816; b=JKbp37F6N1GdnrwgQ9zuB9w5IPhkLLme6Sui3C9YoGMN0fU8gB0drOZXlw87TdGuUf t8rr7Lh89R9AXv/9GM8lP9F/L53F3FX7vVUYs6lTmgcKh69KQjRudg0DsiIcFCTMAOVq rhpiGhKyjd3uGmiXYD3oVQvccIveHF79YJnvA63YVefwOexBfT6Bt9y5eTJ2Vf5i1T0J Q3BjffL9WMdEGxsY8G8734Vng9BMOP1nely1xHTC9yh6cdCOS9n0ZkQELdkdn5Yf30wk iqXyxu5lk6HBg+kArSpykToq4jsRRtwqdJhKCiSfONKKbhZ4mSw56Mnr92+3FxqhDtRn Mv1A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=AMhNLgb7YvQzjxicdIWro1Pk5lisZYU78DetdhihqKs=; b=n7DAc+Tabv2b+b16NX6ZWPvEY7P6g/4tSzY+szOQ6cUbvv1pAp+0wfXCAOdhQxFiH4 co0wTirM2psRzcl1jeJT00tLY4ZhIhKwMDiTQiaX6qgPuhClK+KuOg5UZWQ8vMZR+LgT dxZYO8AU8tfXOrk3oRewR6BE/z51ROSdxgkVcTbP72/pfn32GnBivcEFF6BH65nMxPcT srC5o4PIs3ZMnz6fuapgLimO04AGkNV8SCbIDgCYgsiE7OC5N/m+ZvC6e6o+Ph0mPLfW d2nEQ7Ayb8EnHvT8mSd6UIwOmOEbJJ0U9w95XPRFcKJx02sgaDDzdyf0cPmwfq5RhnGD JwaQ== 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 i5-20020a05640242c500b0042dcfe24d06si20948180edc.506.2022.06.08.14.26.37; Wed, 08 Jun 2022 14:27:02 -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 S235782AbiFHVMh (ORCPT + 99 others); Wed, 8 Jun 2022 17:12:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235788AbiFHVMV (ORCPT ); Wed, 8 Jun 2022 17:12:21 -0400 Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D27363DFC73; Wed, 8 Jun 2022 14:12:20 -0700 (PDT) Received: by mail-io1-f47.google.com with SMTP id d123so1293941iof.10; Wed, 08 Jun 2022 14:12:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AMhNLgb7YvQzjxicdIWro1Pk5lisZYU78DetdhihqKs=; b=AU0j1Nghrs+l7CJNwmhfg1BRGbdZYg8D2LeHtB+c/I14F9MJzD7fL9I7zf19cGizL1 2dhEQjON1GL4ilUWUtCgburY0e33hJH2anu581y6tdyAMlYpBtaWQInqHoODFRROwt2t 77thnUQU9RgUyXSpor8d5U5zKMqZgcc8Kp9kYwWN0D2+rUoDMiBUshxlH1urUXU/Fad0 WEkkC5kRYQnA3Ad8R1QuuVR47yuybsHpTOMJGETyNQDZP4rYDpvy/XGMP15Oa0sQm3Qi 2wj0lwbq6XOzhb/BzQk50R1ULAdsHXZHKwRC+TTWTWMQP3QS77/P+XYuAjAVpOL5I29k bdzQ== X-Gm-Message-State: AOAM533Ge2kF0JyOlNu8CcxoKh5k4m/yQzwHCQZfC7Qxqi5cGrvsPPNZ SfWwCQRmjeuOpyDbYZw8tg== X-Received: by 2002:a05:6638:264e:b0:32e:bc45:bff0 with SMTP id n14-20020a056638264e00b0032ebc45bff0mr20016342jat.282.1654722740108; Wed, 08 Jun 2022 14:12:20 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.251]) by smtp.googlemail.com with ESMTPSA id v11-20020a02cbab000000b00331bd537addsm3295264jap.102.2022.06.08.14.12.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 14:12:19 -0700 (PDT) From: Rob Herring To: Dmitry Torokhov , Krzysztof Kozlowski , Alexandre Belloni Cc: Heinrich Schuchardt , 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: [PATCH v2 4/5] dt-bindings: input: Centralize 'linux,input-type' definition Date: Wed, 8 Jun 2022 15:12:06 -0600 Message-Id: <20220608211207.2058487-5-robh@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220608211207.2058487-1-robh@kernel.org> References: <20220608211207.2058487-1-robh@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Multiple bindings use 'linux,input-type', but there is not a central definition and type. Add 'linux,input-type' to input.yaml and update all the users to use it. Signed-off-by: Rob Herring --- .../devicetree/bindings/input/azoteq,iqs7222.yaml | 1 - .../devicetree/bindings/input/gpio-keys.yaml | 7 +------ Documentation/devicetree/bindings/input/input.yaml | 14 ++++++++++++++ .../devicetree/bindings/input/iqs626a.yaml | 4 ---- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml b/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml index 5ea10fe7ffe9..a13bd3e41dd3 100644 --- a/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml +++ b/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml @@ -471,7 +471,6 @@ patternProperties: linux,code: true linux,input-type: - $ref: /schemas/types.yaml#/definitions/uint32 enum: [1, 5] default: 1 description: diff --git a/Documentation/devicetree/bindings/input/gpio-keys.yaml b/Documentation/devicetree/bindings/input/gpio-keys.yaml index cd07107fd5ed..6b49b1afdd95 100644 --- a/Documentation/devicetree/bindings/input/gpio-keys.yaml +++ b/Documentation/devicetree/bindings/input/gpio-keys.yaml @@ -36,12 +36,7 @@ patternProperties: description: Key / Axis code to emit. linux,input-type: - description: - Specify event type this button/key generates. If not specified defaults to - <1> == EV_KEY. - $ref: /schemas/types.yaml#/definitions/uint32 - - default: 1 + default: 1 # EV_KEY linux,input-value: description: | diff --git a/Documentation/devicetree/bindings/input/input.yaml b/Documentation/devicetree/bindings/input/input.yaml index e3701a0bc500..17512f4347fd 100644 --- a/Documentation/devicetree/bindings/input/input.yaml +++ b/Documentation/devicetree/bindings/input/input.yaml @@ -31,6 +31,17 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 maximum: 0x2ff + linux,input-type: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: + - 1 # EV_KEY + - 2 # EV_REL + - 3 # EV_ABS + - 5 # EV_SW + description: + Specifies whether the event is to be interpreted as a key, relative, + absolute, or switch. + poll-interval: description: Poll interval time in milliseconds. $ref: /schemas/types.yaml#/definitions/uint32 @@ -47,4 +58,7 @@ properties: reset automatically. Device with key pressed reset feature can specify this property. +dependencies: + linux,input-type: [ "linux,code" ] + additionalProperties: true diff --git a/Documentation/devicetree/bindings/input/iqs626a.yaml b/Documentation/devicetree/bindings/input/iqs626a.yaml index 008959f2d425..4df27646c980 100644 --- a/Documentation/devicetree/bindings/input/iqs626a.yaml +++ b/Documentation/devicetree/bindings/input/iqs626a.yaml @@ -491,16 +491,12 @@ patternProperties: linux,code: true linux,input-type: - $ref: /schemas/types.yaml#/definitions/uint32 enum: [1, 5] description: Specifies whether the event is to be interpreted as a key (1) or a switch (5). By default, Hall-channel events are interpreted as switches and all others are interpreted as keys. - dependencies: - linux,input-type: ["linux,code"] - additionalProperties: false dependencies: -- 2.34.1