Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp128591pxb; Mon, 2 Nov 2020 16:15:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNo1BlBrFqpZNwdVI80WZNlTj3QK+q3ORo5aCLYzWNRgdBwFuR0oPLsySYNNyOMCqDSKz1 X-Received: by 2002:a17:906:c18c:: with SMTP id g12mr3884560ejz.334.1604362532425; Mon, 02 Nov 2020 16:15:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604362532; cv=none; d=google.com; s=arc-20160816; b=lKKiAE6DSrRWyapv6sHE7/Hru4BbEg4dCb9bXtBtiWXSaFd53Jy8fhIMk1lbSA6PPB 9CnoqonHqC9e2nPw62kqP1qSYkqa1OQqekeXCpMPyw2ICgk4hcRJcpuBpNlgN9KVBViZ oyr8dv0e9uz2VUN5SOfQj1ASB4Zqmz5g10X+e1g4/5cF3i47j4Ks+87IlgBjqKC4/zCY 5D/CfmSCNDuYKhTYLsRxx3GKmgngpnPJ+21G0f+/Tly3SlzhdRvjJDl9s5EDnu4yPcGU 1zkHy7PG9RvUxIDseROI26N5wwH9mSTquMw40+I4CvHh2THVuj4QZ4WY0d9SjFSTkRIa RNbw== 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:dkim-signature; bh=Ul60m8IIifIpsjtzly1RX3b0Mhagmr0FW1v0DBlxPWM=; b=xg29YGDIcdbTq1ueTOcvgAzRhpyCw9acl2eZ6BrlrmcpgFZypy0zVA9U7VscvJWl08 z11i8lsRzFjyCJuh8EC8GkLZpjn8u8Tas2D3uPjsghflA4iAUvf4PvxrntvdAT08A/GZ DZ4+prPREFw6zcmoDjuV92kbYnEnigpJylYinYimHcE6nxkLE+gaH438XVlsBLClg2tX O+EjtQ+FiQ1va315FatvjAjEJWplvHpi0QWJ1Kfgy9Lhg6V3Bfhm2mypyjbXvPrEtsOX NBAg8y1+nt3VZ1rzQ8bg2ORWs5BFyWtPGwXyrKX2HrjJLC+y1QxqG+AR2FI35FC++1rW 1xUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jY5Q8Jcl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si11826485eda.416.2020.11.02.16.15.10; Mon, 02 Nov 2020 16:15:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jY5Q8Jcl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726685AbgKCANG (ORCPT + 99 others); Mon, 2 Nov 2020 19:13:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbgKCANG (ORCPT ); Mon, 2 Nov 2020 19:13:06 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F025C0617A6 for ; Mon, 2 Nov 2020 16:13:06 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id c20so12635030pfr.8 for ; Mon, 02 Nov 2020 16:13:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ul60m8IIifIpsjtzly1RX3b0Mhagmr0FW1v0DBlxPWM=; b=jY5Q8JclUFiAoBChIhkGBbS90jE7o3/dAeA4p/e4qn6P8SsrmXG0w4skVppW/BQhvv khKSjL5cxTk2wXIFMFwT8yUv1FGUiFUx/Q+4ju+c0Lo+4AtlPvaABFgeW7ad3CMb6zue 1jtGTjxHgxkCEG1rPtWPqErqxD9TbxvNGbA9g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ul60m8IIifIpsjtzly1RX3b0Mhagmr0FW1v0DBlxPWM=; b=BUtPTyIYIJoPnz9H9Aq8y67Bv2lwQwMJxzanbPiG0luu1g0J0ZsTld+2PIGyvE/uTK 4oOOxNQoPfBD/4r0L2J2JF+mhOV0WAx8enwKgyqy3iN1XyWLG6O9jOLeaJ3Vo3HUzQex Kwgwem2eOw7PP7klB+CBKsaaFWWlCACqOKFa+rGnfH0qJyzuGtOZ0x4z/XQTmZ9Gz/d4 +BcdCtYnt8GRXV8LBQ5bak1U0z3t/LzNonDC99IRf0oARJVp0j4BTaLGiawbNKsa60HY gnCv4HHmhBuAndIpqJwOCOVP7RJ2H9MjmFZsGXfpWP1lMH+iU07bV9tWvkW+OEW1/qkW 7eYg== X-Gm-Message-State: AOAM533KumCyaeW+BLqWTlGWVIwIC4SwxiqWvSH1yuqMs8NMlPZnrv5j NhaSgMiH6RwlGWVXAwaLBphElw== X-Received: by 2002:a63:4707:: with SMTP id u7mr14396862pga.358.1604362385897; Mon, 02 Nov 2020 16:13:05 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:42b0:34ff:fe3d:58e6]) by smtp.gmail.com with ESMTPSA id v16sm13244295pgk.26.2020.11.02.16.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 16:13:05 -0800 (PST) From: Douglas Anderson To: jkosina@suse.cz, benjamin.tissoires@redhat.com, gregkh@linuxfoundation.org, Dmitry Torokhov Cc: linux-input@vger.kernel.org, hdegoede@redhat.com, swboyd@chromium.org, kai.heng.feng@canonical.com, robh+dt@kernel.org, andrea@borgia.bo.it, Douglas Anderson , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P Date: Mon, 2 Nov 2020 16:12:39 -0800 Message-Id: <20201102161210.v3.1.Ibb28033c81d87fcc13a6ba28c6ea7ac154d65f93@changeid> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds new bindings for the Goodix GT7375P touchscreen. While this touchscreen's communications are based on the generic "i2c-over-hid" protocol, it needs special power sequencing and thus gets its own compatible and bindings. Signed-off-by: Douglas Anderson --- Changes in v3: - Removed Benjamin as a maintainer. - Fixed compatible in example. - Updated description. Changes in v2: - ("dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P") new in v2. .../bindings/input/goodix,gt7375p.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/goodix,gt7375p.yaml diff --git a/Documentation/devicetree/bindings/input/goodix,gt7375p.yaml b/Documentation/devicetree/bindings/input/goodix,gt7375p.yaml new file mode 100644 index 000000000000..15a38516e594 --- /dev/null +++ b/Documentation/devicetree/bindings/input/goodix,gt7375p.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/goodix,gt7375p.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Goodix GT7375P touchscreen + +maintainers: + - Douglas Anderson + +description: + Supports the Goodix GT7375P touchscreen. + +properties: + compatible: + items: + - const: goodix,gt7375p + + reg: + enum: + - 0x5d + - 0x14 + + interrupts: + maxItems: 1 + + reset-gpios: + true + + vdd-supply: + description: The 3.3V supply to the touchscreen. + +required: + - compatible + - reg + - interrupts + - reset-gpios + - vdd-supply + +additionalProperties: false + +examples: + - | + #include + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + ap_ts: touchscreen@5d { + compatible = "goodix,gt7375p"; + reg = <0x5d>; + + interrupt-parent = <&tlmm>; + interrupts = <9 IRQ_TYPE_LEVEL_LOW>; + + reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; + vdd-supply = <&pp3300_ts>; + }; + }; -- 2.29.1.341.ge80a0c044ae-goog