Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2955477lqt; Tue, 23 Apr 2024 06:49:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVjj8nW+yGEsh3uW31JbRW2LKbGxDI+grjkoH+4R/ziDtnh1E+Dq36Y3c2Fh4u6+3cztxhO4IsbKI/c12X0EosWCzCunolN2WymcbvXA== X-Google-Smtp-Source: AGHT+IHA4n8pzAV4/F2qjuIOokrg1RldAcLdV6RcUZvcaEm+RO9e3aq1PRY3+0Yf8ypVryiN2efV X-Received: by 2002:a05:6a21:999d:b0:1a9:5a2a:7e37 with SMTP id ve29-20020a056a21999d00b001a95a2a7e37mr17256675pzb.56.1713880174544; Tue, 23 Apr 2024 06:49:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713880174; cv=pass; d=google.com; s=arc-20160816; b=DjPX4p4ciiT1+7xl049Z3SQHIHkWChysY7L5f48yankQlML5WZA/3kknIIwEFAXuNh CHJKrFepiBLfJCg894/XsGs2kirvdxdkvFWC5q+IAn4yUMkQ1moZQ/Hl+2JebGCXpLaV sHadtUMd/+2xys4XcEaK1l510c+vzZf721+ZW2eqf3zIsJEXrcIt+Fu76bWBuyUUIzoZ 6/TACbv1/WAAf0WFRxBA8DATe/dO4NAJo3P21N+Ctk98B4XSVYw46VT5YnMk1CzVXA1K Q0sm67rQ/rlb8rgt49oKC62KO3Dfd4fWFR/hGxzmbwI3mkhGjALA18RIriObqVdx72Ad m+Kg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nHVuEp7g3GD/4hbybAZ8jWMEsxmipIRps+9dO+Bk2+I=; fh=bFmJ5/oIy8E5HkfoDCSOHVGr+moop3nf54MNfAlF4bs=; b=Z8GurFacjFcBbCGXZyx9DInbltVULro0qITly2NC7crGvvdZvxT4FgAiRmfo7pBWib S3wo0LT1tmdObgWR80vqIK3hH6sHrOeTAUc+JW1QQCAwwObAjuPNZw9DH5pEYW3YUe6z Rnoau1/EquUHc9W3bGfOruQ5bT155cdGw4egTGoVVc0rVyhoxBeFyeI+y+Jy+dHUtmuW XXMEMx1tQmQNKa3Uea5suJsY12UxfsjFpChqEQN4sYlBhT/1FbDnZh0YIMGlQi/YtBm9 1S4hTyefL55R2VZHiUVqC6n880DfLe6i0mC/xzWmaAZmb0ZXQnznJ7DtE9To/S/jumt9 HLEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KgH/8sDd"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155299-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l27-20020a635b5b000000b005f0bc72594esi7627194pgm.468.2024.04.23.06.49.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 06:49:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155299-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KgH/8sDd"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155299-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 69A5E283B55 for ; Tue, 23 Apr 2024 13:47:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 833CA139D02; Tue, 23 Apr 2024 13:46:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KgH/8sDd" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77FD0136983; Tue, 23 Apr 2024 13:46:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713880012; cv=none; b=j/07sEKk1+yPvRuqE/4SUcHG1ePk2i6E3aZwNbgVccEk3KvXKjVS8rsSGDEDEv0R18DwbVcBxNP6WUUpEeN4HiotF3q/SzQD0/fBsMxhUKPpzRBB2Du2FfcQKXmWZ4luwzYQw9Z2lb2oZjsB3DxFPpKTkJdPeCsY48n11D1H38U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713880012; c=relaxed/simple; bh=1fUfoe4zZBmvWWiSJkd0f4oR3lZr2TQcJzLpPSJYlVE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OYc3EYFIu0Is0qtgAjkuv7vdkMu3i5Rs8dUy6SBxYSCEUur0/o10oggCXaCb9d1dHgrmfo3AgeIpKEH2fF5spM6dUebtb2SWF0eFstosLvV8FR4POlcDzSiQYeScYzns+e+KiE9CRu+m3RZkF6mOaMHAikwZft3SNJupWB7K4SY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KgH/8sDd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02DA4C32782; Tue, 23 Apr 2024 13:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713880012; bh=1fUfoe4zZBmvWWiSJkd0f4oR3lZr2TQcJzLpPSJYlVE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KgH/8sDdwhaeLtvbmI78nqoTtpQStgP8MFrzaAJUUNeNS4PleoYJG/4u7obcPN340 gt2Jt3zS6KF/aDEIg6nlV0vQ7vccKGmF6N3misp9r3GHxODtW9TO58d9S5Jnb6W3tf YeUF0tY+zkOnBVXF2/xxwRgx3BALMnS8bfJVsh45i32IVUvQ7RDFHVoaNjroGa1AHU +eNjm0GNMPUheLb0xqR/WK1fpsk8nGSb2KjXuClhVjL7qaZ+cModmPM9mdTsT41krG 6hKE6N8v78E36wky6D0qs/MsPs07Gmhw3/j5yabiFJmonuhSXF4LtZOcmZFJ+JrXz1 Oya8pd6Tdg5UA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rzGTy-000000008Kg-0QDi; Tue, 23 Apr 2024 15:46:50 +0200 From: Johan Hovold To: Jiri Kosina , Benjamin Tissoires Cc: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Douglas Anderson , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Zhengqiao Xia Subject: [PATCH 1/6] dt-bindings: HID: i2c-hid: add dedicated Ilitek ILI2901 schema Date: Tue, 23 Apr 2024 15:46:06 +0200 Message-ID: <20240423134611.31979-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240423134611.31979-1-johan+linaro@kernel.org> References: <20240423134611.31979-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Ilitek ILI2901 touch screen controller was apparently incorrectly added to the Elan eKTH6915 schema simply because it also has a reset gpio and is currently managed by the Elan driver in Linux. The two controllers are not related even if an unfortunate wording in the commit message adding the Ilitek compatible made it sound like they were. Add a dedicated schema for the ILI2901 which does not specify the I2C address (which is likely 0x41 rather than 0x10 as for other Ilitek touch controllers) to avoid cluttering the Elan schema with unrelated devices and to make it easier to find the correct schema when adding further Ilitek controllers. Fixes: d74ac6f60a7e ("dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901") Cc: Zhengqiao Xia Signed-off-by: Johan Hovold --- .../bindings/input/elan,ekth6915.yaml | 5 +- .../bindings/input/ilitek,ili2901.yaml | 66 +++++++++++++++++++ 2 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/ilitek,ili2901.yaml diff --git a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml index dc4ac41f2441..3e2d216c6432 100644 --- a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml +++ b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml @@ -18,9 +18,8 @@ allOf: properties: compatible: - enum: - - elan,ekth6915 - - ilitek,ili2901 + items: + - const: elan,ekth6915 reg: const: 0x10 diff --git a/Documentation/devicetree/bindings/input/ilitek,ili2901.yaml b/Documentation/devicetree/bindings/input/ilitek,ili2901.yaml new file mode 100644 index 000000000000..1abeec768d79 --- /dev/null +++ b/Documentation/devicetree/bindings/input/ilitek,ili2901.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/ilitek,ili2901.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ilitek ILI2901 touchscreen controller + +maintainers: + - Jiri Kosina + +description: + Supports the Ilitek ILI2901 touchscreen controller. + This touchscreen controller uses the i2c-hid protocol with a reset GPIO. + +allOf: + - $ref: /schemas/input/touchscreen/touchscreen.yaml# + +properties: + compatible: + enum: + - ilitek,ili2901 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + panel: true + + reset-gpios: + maxItems: 1 + + vcc33-supply: true + + vccio-supply: true + +required: + - compatible + - reg + - interrupts + - vcc33-supply + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@41 { + compatible = "ilitek,ili2901"; + reg = <0x41>; + + interrupt-parent = <&tlmm>; + interrupts = <9 IRQ_TYPE_LEVEL_LOW>; + + reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; + vcc33-supply = <&pp3300_ts>; + }; + }; -- 2.43.2