Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1633533pxu; Sat, 12 Dec 2020 21:19:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRPz1+sWt1yqB81J+01t14qkarTdqk+adxcZh/qSeATcJcQqhdtdCJn8zErVSxijTxS0Cr X-Received: by 2002:a17:907:1047:: with SMTP id oy7mr4140872ejb.134.1607836748611; Sat, 12 Dec 2020 21:19:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607836748; cv=none; d=google.com; s=arc-20160816; b=Tb4NMFDYVkwKa+4XKyPU5TVlnsxjvg29ZIEYHexYwpVSjxWjgnymPDQO9I/JcF/ykc WBE2D7io5w5zPlCV3q7DcJN8EB86ewXFMRiunnTzTHZNL25wGmE6Q+t6TPnoVfOgUqNN DNBEqhhiXnprdvKMrrumE67kCT6bU8qAdqhS3i9PplYiZPHQUi2SwDA8yIvF+7FbTvhI EBDvdIV4453WoAYbxWjyK/Vabk6Ms88DT6gLCMHojK4i/d/zeJ/MZf0y2HPJ/+0GLMn8 ej6+DLKgI8GqRqejeBQ0q8TkjqIPH2I9Qq8/33uLF72KxSMu5nIZb15SCIPUpMMGrgOS IfZQ== 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 :dkim-signature; bh=mcajmBZLh3V7JZmymLtTRNiBfRuCQpoxfH0au10GVAI=; b=AcmVaVl40PV3jvjpzVksBKDPLAhfoQjmBj6vKpsegXNCGQm6Zp/3oOQxuCrXiSDBOh CKGJLcJs/XpD7voIjudOvRmXI4JLSu3omBfvsPZSjFd9KOeF+rV3Y4bhLmfZQ8tgQJ9/ uPbv513RArNJYsrG3XQnDQowZZBnLQ01rXi2W9/1icZs7+deIt10iKDTZiFp4zXvehbi qSELnvq/uX4z4nEcil1XRvA0o6IuoB44FO0S3gNfqEpJW8AS48Ro2d44+rSFwTgAS0lr GrEAWoF4sYHr7EVnuts7AHWbHkVjGvPbIs1a9tQqdK7T8R1B2hM81zm7v2wELKzocpFa 91AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="SU/lSqaI"; 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 g18si7969446edp.56.2020.12.12.21.18.45; Sat, 12 Dec 2020 21:19:08 -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="SU/lSqaI"; 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 S2406882AbgLKWZ4 (ORCPT + 99 others); Fri, 11 Dec 2020 17:25:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406875AbgLKWZd (ORCPT ); Fri, 11 Dec 2020 17:25:33 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DFDBC061257 for ; Fri, 11 Dec 2020 14:25:03 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id w16so8091304pga.9 for ; Fri, 11 Dec 2020 14:25:03 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=mcajmBZLh3V7JZmymLtTRNiBfRuCQpoxfH0au10GVAI=; b=SU/lSqaIt5K4RN06MHhvnXO6K+niJKl5UPJx30rPi1B6kPlzaqDyEvz/TjAFtj1JVB aUfHcMfzVusuPMi2vzBMmv4gxOPDz+xBOG8uqDatscYjegNI+NelAJTFKoH/9F0Sksey NYPExgcaCs69UklOZAAamx+pPGu1zCBKj/fJ0= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=mcajmBZLh3V7JZmymLtTRNiBfRuCQpoxfH0au10GVAI=; b=Z5shmDV1CsWMjMwlsBVoSYQMNGQoq7HOp5JrKmYsTb6dDTv0oKbJo+byxq31OdATYY NiTrNfkoBXVOBtEZCg0wJJpcFm3De0p6dcOj0iRx/aOQ4M6mapGZOSCD8TzmgY26tBWd d5UotDQR/LSyKeKNFbGDvOZb4J62Su+exPsdUAiwQZxf0Px40qerar5YdfafxISs+znz lmDf9paZpaIGYA91UdIt86Y6rZyyk4Jvs99hCyTEor4PLVz6meVjvIqXjt0NtNXolO/J le6f9uitvFrOaJ3p7xHc+bArwHv2evScIGNWOrA/hiCitOoCTUcGMsBIWYtexOp858Nz G3fw== X-Gm-Message-State: AOAM532bNcpZ7tPGyWWWhCuyryrCFiCNzOjH1Bmex4r4nBU6Av2GYca8 Y91fvtwdeL0VJ1J3I3krZn2V3Q== X-Received: by 2002:a62:38cf:0:b029:19e:41ac:526b with SMTP id f198-20020a6238cf0000b029019e41ac526bmr13999162pfa.0.1607725502291; Fri, 11 Dec 2020 14:25:02 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:42b0:34ff:fe3d:58e6]) by smtp.gmail.com with ESMTPSA id w70sm11669969pfd.65.2020.12.11.14.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Dec 2020 14:25:01 -0800 (PST) From: Douglas Anderson To: jkosina@suse.cz, benjamin.tissoires@redhat.com, gregkh@linuxfoundation.org, Dmitry Torokhov Cc: hdegoede@redhat.com, linux-input@vger.kernel.org, kai.heng.feng@canonical.com, robh+dt@kernel.org, swboyd@chromium.org, andrea@borgia.bo.it, Douglas Anderson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 3/4] dt-bindings: input: HID: i2c-hid: Introduce bindings for the Goodix GT7375P Date: Fri, 11 Dec 2020 14:24:47 -0800 Message-Id: <20201211142412.v8.3.Ibb28033c81d87fcc13a6ba28c6ea7ac154d65f93@changeid> X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog In-Reply-To: <20201211222448.2115188-1-dianders@chromium.org> References: <20201211222448.2115188-1-dianders@chromium.org> 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 Reviewed-by: Rob Herring --- (no changes since v5) Changes in v5: - Added mention of i2c-hid in the yaml itself as per Rob. - Adjusted subject as per Rob. Changes in v3: - Fixed compatible in example. - Removed Benjamin as a maintainer. - Updated description. Changes in v2: - ("dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P") new in v2. .../bindings/input/goodix,gt7375p.yaml | 65 +++++++++++++++++++ 1 file changed, 65 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..fe1c5016f7f3 --- /dev/null +++ b/Documentation/devicetree/bindings/input/goodix,gt7375p.yaml @@ -0,0 +1,65 @@ +# 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. + This touchscreen uses the i2c-hid protocol but has some non-standard + power sequencing required. + +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.2.576.ga3fc446d84-goog