Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3278823pxb; Thu, 10 Feb 2022 17:14:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxoV39i3gyvzcIknRyMol17xb32FsJ1I+ei27NyhlL5ce1t3KxFw/lK6F2VFYttLCTMrxG X-Received: by 2002:a17:902:d3ca:: with SMTP id w10mr10310223plb.33.1644542089144; Thu, 10 Feb 2022 17:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644542089; cv=none; d=google.com; s=arc-20160816; b=hK191FUC66i439yPvTu/RNmeCt3oWycVN5etd8F9KzNQfQpkzo19BCM/HbPd7cnGzj IOl+/VlxsQotqrJTBrbuNg/DHVX2u/kqcPz41IOVQREPT1OVHG7I8AOsyoZ53qT9Souj 0TVRI6Iq3CMsm6bk0UQk3Z/FwniYxyS+gndePlHDSzmmDH53+Id/is7+zV2QkttTShlh w3mdiBVm52FotyoGqzfDiUVfJ7Q0eSfDGBYck0QQM1Enu3nXLtK6/5YVnXFhVE1TiTk1 DiDlxp7q9GLYpy+Ycu4pBGoUcp/yWXgDmTg/IKLeWWm1xrLLUZdwZ4MPTP2nKX1IsAE6 qfPg== 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=wr/mpMW4EpnCv7MPs1ONfoxatkkD3wtSd5+LnFAC/ls=; b=jkXgPFuth0PbOS5k4Zys/daA8gIWj6TBZvI8K6DHs78Gcn712A5jnlyZUiNE4MmXCE WxuNLptTtwZ0YXV43sLgW/rtoP/GnZR5cBUN3c1CnwlrHRDWQSFmIPReuNyU2DFY+bgQ 0aLmvWHpEjLAjsdqfU8YiqmuSAShjDLXuHyCbZdzVUJQpkI9MbJ98EvjpYrCiMeIaTG0 diCewdB//XfVuJU1Dq1Hg5Li2Zr9zm0qs7U07Eq8cPF+NRFSAQFHVDFcTqGnVU5GkR6E DbEauwyWUePNda7YRdaraekKJEVmxw/3/hRn3SCIVq2jQg3vSGufnc6CXFPH/+/VZaas eAYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UIbIDKYK; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16si20260456pfl.22.2022.02.10.17.14.37; Thu, 10 Feb 2022 17:14:49 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UIbIDKYK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243877AbiBJP7d (ORCPT + 99 others); Thu, 10 Feb 2022 10:59:33 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242713AbiBJP7a (ORCPT ); Thu, 10 Feb 2022 10:59:30 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEB74E8F; Thu, 10 Feb 2022 07:59:30 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id e3so10490088wra.0; Thu, 10 Feb 2022 07:59:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wr/mpMW4EpnCv7MPs1ONfoxatkkD3wtSd5+LnFAC/ls=; b=UIbIDKYK9d0dFhT0rL5+4CTrr/VkRLJK7VAa7v/4+ct1O+qD9dhabrcLpReudCPMsq 4VrmhDM6h4BHctvod8HrFj43WLRjV7tUsoyqwKtE8h3h4bJr3p5hfcDJ7Jk9FI4g4ZRA tzSFvK/2Y3zZOJZZthaeIkyvb9xt21NROHmAXA34wyzmN0WxWx3jdg1GVMd9U+GmN+F1 ebDvcPplYw6nrefHlRnbWfx6nuzX7Zka+Du+H4AZq++yRLvSfB7VZJs1tVoj5392aeBL DVarCu2j57aqDxpXNhXdqf8ojdazmRee7l2cqd/su65Zo7A0F1wU9uboWtvyF5a4W+wd jtBA== 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=wr/mpMW4EpnCv7MPs1ONfoxatkkD3wtSd5+LnFAC/ls=; b=sxnEK1sbant136EW+CoId1nwq5HZOCdZ1RP3Xe5MNA34rq/0Lfd5WE53zxu9VwPWfP MdMksYGoPa2bxhxQSCoDbQ0IgSz86gKFapTt7Nww0RAMstHhr8mLx13cO6Mjd4snbVC/ tWzq4kSCyeo/KrRZttFVHibQ3PzJd92h8BeuDmS5Be/gFYbhJtL9MNdOF+lSbC6v4zW7 7TwCqUz49NkCkYDX7DAM7xjPFyudACwGAq8uCl8f3n0b1joEhuFZUaEsVKvRtWJMQCWv sZR9UWc8T5JjWXpvPAMS+eVGhpBqkMBJ7Nt4fQlwkFIt0xFyJ6BLfWSkvSpmTO4xCArN UzTQ== X-Gm-Message-State: AOAM532cBHeo/eGVuztPQJvcJlt4MEttUvR+1GQ4gWArB0cAWI35XIMk gN6B1P7CWWFiY1JiMITYUlYlQ/3uJG5l5A== X-Received: by 2002:a05:6000:170e:: with SMTP id n14mr6927719wrc.595.1644508769206; Thu, 10 Feb 2022 07:59:29 -0800 (PST) Received: from nergzd-desktop.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id p2sm12990551wrt.101.2022.02.10.07.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 07:59:28 -0800 (PST) From: Markuss Broks To: linux-kernel@vger.kernel.org Cc: phone-devel@vger.kernel.org, Markuss Broks , Dmitry Torokhov , Rob Herring , Henrik Rydberg , Krzysztof Kozlowski , Shawn Guo , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Sam Ravnborg , Oleksij Rempel , Alistair Francis , Linus Walleij , Hao Fang , Colin Ian King , Vincent Knecht , Jeff LaBundy , Joe Hung , Jonathan Albrieux , Giulio Benetti , linux-input@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: input/touchscreen: bindings for Imagis Date: Thu, 10 Feb 2022 17:58:30 +0200 Message-Id: <20220210155835.154421-2-markuss.broks@gmail.com> X-Mailer: git-send-email 2.35.0 In-Reply-To: <20220210155835.154421-1-markuss.broks@gmail.com> References: <20220210155835.154421-1-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 This patch adds device-tree bindings for the Imagis IST3038C touch screen IC. Signed-off-by: Markuss Broks --- .../input/touchscreen/imagis,ist3038c.yaml | 78 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + 2 files changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml diff --git a/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml b/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml new file mode 100644 index 000000000000..da1630eb957b --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/imagis,ist3038c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Imagis IST30XXC family touchscreen controller bindings + +maintainers: + - Markuss Broks + +allOf: + - $ref: touchscreen.yaml# + +properties: + $nodename: + pattern: "^touchscreen(@.*)?$" + + compatible: + items: + - enum: + - imagis,ist3038c + + reg: + description: I2C address + + interrupts: + maxItems: 1 + + vdd-supply: + description: Power supply regulator for the chip + + vddio-supply: + description: Power supply regulator for the I2C bus + + touchscreen-size-x: true + touchscreen-size-y: true + touchscreen-fuzz-x: true + touchscreen-fuzz-y: true + touchscreen-fuzz-pressure: true + touchscreen-inverted-x: true + touchscreen-inverted-y: true + touchscreen-swapped-x-y: true + touchscreen-max-pressure: true + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + touchscreen@48 { + compatible = "imagis,ist3038c"; + reg = <0x50>; + interrupt-parent = <&gpio>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + vdd-supply = <&ldo1_reg>; + vddio-supply = <&ldo2_reg>; + touchscreen-size-x = <720>; + touchscreen-size-y = <1280>; + touchscreen-fuzz-x = <10>; + touchscreen-fuzz-y = <10>; + touchscreen-fuzz-pressure = <10>; + touchscreen-inverted-x; + touchscreen-inverted-y; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index a867f7102c35..bf44bb71c0b4 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -523,6 +523,8 @@ patternProperties: description: Ingenieurburo Fur Ic-Technologie (I/F/I) "^ilitek,.*": description: ILI Technology Corporation (ILITEK) + "^imagis,.*": + description: Imagis Technologies Co., Ltd. "^img,.*": description: Imagination Technologies Ltd. "^imi,.*": -- 2.35.0