From patchwork Thu Feb 10 15:58:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 541947 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A058C433F5 for ; Thu, 10 Feb 2022 15:59:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243913AbiBJP7b (ORCPT ); Thu, 10 Feb 2022 10:59:31 -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-Google-Smtp-Source: ABdhPJy+uvMG6WSh6EXji4GgYnku9sDMQAC5F67g4+xDxFtqd+V5EstFaCP0TmQwgokMxIzlg7QMvw== 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_Neusch=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 Precedence: bulk List-ID: X-Mailing-List: linux-input@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,.*":