From patchwork Wed Feb 16 13:43:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markuss Broks X-Patchwork-Id: 12748631 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 DC252C433FE for ; Wed, 16 Feb 2022 13:43:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234664AbiBPNng (ORCPT ); Wed, 16 Feb 2022 08:43:36 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234663AbiBPNnd (ORCPT ); Wed, 16 Feb 2022 08:43:33 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DDE21F6BB1; Wed, 16 Feb 2022 05:43:20 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id o6so3398502ljp.3; Wed, 16 Feb 2022 05:43:20 -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=KNEbYOXug2TkNtFKnR8leLqegu8S1mDW3Iy+I30evSA=; b=XlBUqn1mo/dVGe4KKT5MgCvSTLL9Sb/vmf9EqPafFriEjceFyODQSG8ztxvePBnVS5 bXOOg5Osx1GEwITfyJnvxQlcWDeukJGsObBOoHaOU99RHOfaSqoQlc2nxBTmdNi2MAjH 5IYWR9fNACMRkkDHzM+Fq7CMy5fz//EY4Lmoy8lsvAURFAjA48/U8o2exV6NFHDq389N OuLWp1dRTQEOZ4FnEbcfmVkYscybTikloMjoFZLo0EX6A36XdZnQVIYVKW93frN8heHu lGd1H/yt2um1RYa3LRgALxv9q029MyZZKA/fEP9PPXp7D3fXMfbfD0A6ugX6m5N/Zvxy G6cw== 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=KNEbYOXug2TkNtFKnR8leLqegu8S1mDW3Iy+I30evSA=; b=psK3HUlNniIaZS4lE3m4GjuLjlVtQbhZ+OpoxJNGTMhjQHyPCQ/IGlKgkFh+Um3zx5 8X/z6X+K9071WWSA0R5rkZiDoDJ3FMZ9fd9EZZ3lJH2wJS/NklrzeBvtlvFnf0hLpLU7 /V+ypfODSXd/5tRbMPZc1HWblzCIARfuVpXhWwRAiCpk3KBk80kIWRYxxY6L+vOuuQOg JXv4LNim5IlZhaj5Jpr+hTXeMdIFbcYcajZMck23u3kAYxpwvW9VS35HJrD9UDMypEgY 6U0ZZ+EIR8veYAwNbkHhE700FPByLsdpEd1N9Ov6g9hXPqJO51XR6vLg9D9gI/jT0bNL azUw== X-Gm-Message-State: AOAM531sITPcp08JVuHUYxkrC+FxyPiLT4up8aUIpUo7Gl/36t66CBsi CzRox3XixZdpoGtHbD3ZpmhKTZn7ew/LAz9b X-Google-Smtp-Source: ABdhPJyz9yVyXUG56FkHyVIA8XvKJAIv0kQTQ/rrS3g9c7TOlI7brFaaRhMoWR6erHHDUCCRRbL8LQ== X-Received: by 2002:a05:651c:200c:b0:23b:8267:9ed1 with SMTP id s12-20020a05651c200c00b0023b82679ed1mr2164387ljo.368.1645018998526; Wed, 16 Feb 2022 05:43:18 -0800 (PST) Received: from nergzd-desktop.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id a22sm1049934lfr.24.2022.02.16.05.43.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 05:43:18 -0800 (PST) From: Markuss Broks To: linux-kernel@vger.kernel.org Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Markuss Broks , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Henrik Rydberg , Stephen Rothwell , linux-input@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 1/2] dt-bindings: input/touchscreen: bindings for Imagis Date: Wed, 16 Feb 2022 15:43:00 +0200 Message-Id: <20220216134302.5153-2-markuss.broks@gmail.com> X-Mailer: git-send-email 2.35.0 In-Reply-To: <20220216134302.5153-1-markuss.broks@gmail.com> References: <20220216134302.5153-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 Reviewed-by: Krzysztof Kozlowski --- .../input/touchscreen/imagis,ist3038c.yaml | 74 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + 2 files changed, 76 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..e3a2b871e50c --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml @@ -0,0 +1,74 @@ +# 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@[0-9a-f]+$" + + compatible: + enum: + - imagis,ist3038c + + reg: + maxItems: 1 + + 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-inverted-x: true + touchscreen-inverted-y: true + touchscreen-swapped-x-y: true + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + touchscreen@50 { + 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-inverted-x; + touchscreen-inverted-y; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index cdc851e275f1..9357cdc5aef5 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -551,6 +551,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,.*":