Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2941970pxb; Thu, 10 Feb 2022 08:47:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaWxCmMJSoC8OUTuAKZWFl6gN8o9WoXm93uEpqgl6SGsZgKeke4BxXs7k2yMOajCGaxp0R X-Received: by 2002:a17:906:43c8:: with SMTP id j8mr7268537ejn.293.1644511668073; Thu, 10 Feb 2022 08:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644511668; cv=none; d=google.com; s=arc-20160816; b=cGIVxku8CIjnrb8KdklXGL+2hXO3DSvIV7nAvWxPEUWoYRZEh0dcmmWECUVKAf4w9f m4kvfglN2B8vuwwV/uWgAO6dtM+odFpLZHWcesJwhBM8lWvii9mw/9bg8XgoGW2x/jIi FUrAnd2XEKRlGMmlLlOdt4RFIS/FHfV4T/F3w8hX56LBqTQrX4qhD3+7zwlvalF/Ygng pPnbOyBZHYBA7AuU4SFNoLtoJyRyI02uI3wTZdGxLp6fZ0uVoDLq5POzRHDgmAqJi+/j I55vxTZ5C4cUxkZIQJGe0BlvBjnQDxBe95pS8a2MI9L9rFI9O4FyCUvkVHarawevi2La wUDg== 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=6f8MT+XMOS9CpQCm1NGb0hlMLGq8J8pk7v7AiFAEiK8=; b=b/MUAFwryH50Bm1PbloAFMPUgkZrbK0V1hAOdXQqstuvEXZ9LMLSAQl1C5zRo+Lz4N Ap6J8hcuOuzYpnD3P/O13MaZquhf2Ps7BqdFU3FhS+uFk06BBczThAmb2hfDwU+mTm89 6SYU9ZAIjWioKV8l0wQspi3TmoiJulbmp733jYgMUwsNaRN8k+kB2Om9bXX+Jn0Dzluh H0KEfJNQtD4rogWcHjDRoPc8hUajgEKbiKasR/zUfGO1NZQF1u3SohGPDZJq8jjxXRSq 2154UP63KaVLqBynk+Zl90bci7H36CxS98e/j3iHKEn/H2RfaKShGV+4B6wUrTlpdkSK SbvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DFcXkWHZ; 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 y19si6854104edw.559.2022.02.10.08.47.22; Thu, 10 Feb 2022 08:47:48 -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=DFcXkWHZ; 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 S244353AbiBJQh4 (ORCPT + 99 others); Thu, 10 Feb 2022 11:37:56 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244288AbiBJQhx (ORCPT ); Thu, 10 Feb 2022 11:37:53 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45164E94; Thu, 10 Feb 2022 08:37:42 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id k18so10562373wrg.11; Thu, 10 Feb 2022 08:37:42 -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=6f8MT+XMOS9CpQCm1NGb0hlMLGq8J8pk7v7AiFAEiK8=; b=DFcXkWHZuWS14U+1Q+QhCLis7vOyWjMJu6hS1+XRTHPRc430SdifI+V1RCbX8fjrKm eKSnA662eyxGe+vDUNku/ZVeVXgRX3ItXcB5H76NHOfVdy2ShCvR56A66DH2afwOix1B sQe1GbSPFJJArj7omH2UJuvKqWlhVsEnEugZrNhlWcAzcKm3sUogU2nmuDXWwjFYvgu3 +BOH5oRNaBt4UGeQC8zmx8kM/HNUYTn3YfviBRlv9TqrvhM1rC0wMuDqdvBWPkBkL/qW Vt7fTtIghTY/TgVTngRJsrRb6CLR8thlAhQfwIm/g6UGUgVI2Ms2ccJZlTuHdNOWfvLv F1GA== 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=6f8MT+XMOS9CpQCm1NGb0hlMLGq8J8pk7v7AiFAEiK8=; b=iE8cTPvIufWjxQLYrzNzFEUGc3yixq1k2QIUvLbL551Tjfj6i7cGGH03uxheGJXGRX SYasz5833Qfw3Cu53s8yjghc6+uE/R3VNYZbrqk1gOUqWDUhbv+/9IYi8YAlktrkc9xt orzpTUuh3PxaGSI2NW4QC/z28B9Fxp9C8cu3eIEbSNY7JHKJxqkN7WNYRBFsh2dgCCfn KbOnlKglp5nIvWfhVTleHrYPEA0FVaZMX1hFP4mULT6HvMhXSEFjHVDASkncXH6hpWls 7mUGnO+FNo7jCvDQY4HZ+8SINmFwgkcP835jgkkNZ7/7LkWG6UNpyuXKxliD8/kyJDe4 nd7w== X-Gm-Message-State: AOAM531MPeA31Onhz7/QtGaEVJdRZyZLkDzOsnTJPa1fq7qP9530MRfK P6qNkIZlEh8NmcahtOKQTb4p349pQvfcAQ== X-Received: by 2002:a05:6000:1c0d:: with SMTP id ba13mr5813536wrb.423.1644511060752; Thu, 10 Feb 2022 08:37:40 -0800 (PST) Received: from nergzd-desktop.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id k5sm5871795wrw.117.2022.02.10.08.37.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 08:37:40 -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 v2 1/2] dt-bindings: input/touchscreen: bindings for Imagis Date: Thu, 10 Feb 2022 18:37:06 +0200 Message-Id: <20220210163708.162866-2-markuss.broks@gmail.com> X-Mailer: git-send-email 2.35.0 In-Reply-To: <20220210163708.162866-1-markuss.broks@gmail.com> References: <20220210163708.162866-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 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,.*": -- 2.35.0