Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp608456pxb; Tue, 15 Feb 2022 23:38:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTru3zaUkfcC/AvW2xdu1DoZ+KgDrF63rk+/NwtmBBzLkJB5XRZx1dtBoosxnt/HvRegIt X-Received: by 2002:a17:90b:4f42:b0:1b9:5a43:2278 with SMTP id pj2-20020a17090b4f4200b001b95a432278mr332631pjb.158.1644997135173; Tue, 15 Feb 2022 23:38:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644997135; cv=none; d=google.com; s=arc-20160816; b=UJmSwYK1DJtiUinNkHsnvZojedtz2fFJmcYUaBDLmyFIIWs9l0Y+NRk3CF/xbZlHx9 KQjgZtDD+v8ljefvP8tGjnxCCTVgIkLAzutYY9iP+j0ZOJ2sIORH5UrfifwB5VFhwWHE HYBbGLnb1/5MKAXKm/N5L4tX9376U1X65lJKnJWmTHBee6w9ApAC/CeKnbrWkxcXEKQd uv8FPwxsYOC93vtbBXRGJBHeMW9e+KRbSaGxerCjSqqAqJbTmQ+OGEBzKiUQJuZWos2D oQ8UyGAGkmM6ZQ9NLC+WJjZSmMLUiYByw1A7aDCLG85pIaE++nZf88/XhJECsulZTHCn aUVQ== 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=o7bMGM2CViaQZCCdppiGP+G8NcZfPb54iKlO3oLEklg=; b=DJItR2hs6kI/w4jSv9v+2UN/czM3ngdpZfrt3Jgx7aMGfzJtWklXsqQFfCmEf+seJZ cF8wDAQDzEBzbLcpbmtdbvLIDtcKhaqKJh+xYl2r/JO2ii76PdLEIhGd34izcHy6hVKu /OeDo1e5ixR2OoGgBR2BDXONLnV4Gee62t+tCDlO2ilzF8de+NnJkcWCpSp2qTgDpDxx Te4hAigJv9tbdwLfSF8Y/vLzyJJgmsag2wE4bpkQaHpMJ/xz00bjb0jyMg5YMvGff3kr UdIFrD2FINusdcL0Pxh8hrA2BWKTuHocPMbwwJYP76yLMVjtk5gFfELsLgDolS2o55Q3 o2Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Lc3YSjGC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e25si5068091pge.704.2022.02.15.23.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 23:38:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Lc3YSjGC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CAF1F2BCA9D; Tue, 15 Feb 2022 23:03:47 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244202AbiBOUww (ORCPT + 99 others); Tue, 15 Feb 2022 15:52:52 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244190AbiBOUwu (ORCPT ); Tue, 15 Feb 2022 15:52:50 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABC661C922; Tue, 15 Feb 2022 12:52:39 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id o2so39296722lfd.1; Tue, 15 Feb 2022 12:52:39 -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=o7bMGM2CViaQZCCdppiGP+G8NcZfPb54iKlO3oLEklg=; b=Lc3YSjGC/o4VJjzRx1pYaoRC87fkYzne0z+pvEHnf6Iz6xO0VbFk2gFGr9uK6Imq2D 8+I3a2Kv1OgPZxHxdVrEY7iobDv/N2+cIsxLdhNoIp4uv0T+1m4hLvH0fH4T1OL5Bsa4 sAaxcowk94AczQOtNzSctq+lexvb4XyyTqQweH78Y5DkgYkZbYXyVy+u9NQEBYGDlyae 5hgj1TDLhQLRiXmlBmqMbtxH8O8uvziVynLnWs8rzrNOc+PzblJ6ZCY179RoGBphef8E MDzcTpdhYSRMY4p3pqwi9sMqxbYn3XbqLFye9/WXGlU/DWns4v8S0CYnEBPcUBi3aPjT EBdg== 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=o7bMGM2CViaQZCCdppiGP+G8NcZfPb54iKlO3oLEklg=; b=kaF/V59Cmwq84jEt8h9tuNPkjXgVOze9hwRvH71Mx+GkuBnpqg8oEL4PPzue8E4vEl i32O2xDbi/zOr5sO9QaOHDKSOoe6OF3iZL9tu+lemVtyBDoiMNG5D5eQ5SkDNId7iRQw Nwm53TgiCU01kQn8i7W+Kt+qZ9AdVN8oBDcZms3JXlGItE7LnkdSlbNAydXbLetVraS5 rzDg9Wu3PIZK1sK7qgjEzHdMhZenDWFfahMXtm+21JZbCEADH1rniUWj8DMhaO2lHGO/ 53uCUBVfYkLWzvKmXUXzmPHiinkNXs73nmFLVvJBIVjXnE6fOBwZ9CSJ1kAYVdB4wNx3 vwOw== X-Gm-Message-State: AOAM532iv5kKfKEjrlCugLp74Ix/AAQeHzwUWAhK0R7sk4YrK70CdUCb 7TM7kzvlD2PAkj5KV7dDbHHqllJSEnSkc6eB X-Received: by 2002:a05:6512:3f94:: with SMTP id x20mr667024lfa.583.1644958357797; Tue, 15 Feb 2022 12:52:37 -0800 (PST) Received: from nergzd-desktop.localdomain ([62.122.67.26]) by smtp.gmail.com with ESMTPSA id 18sm1129337ljw.71.2022.02.15.12.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 12:52:37 -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 v4 1/2] dt-bindings: input/touchscreen: bindings for Imagis Date: Tue, 15 Feb 2022 22:51:51 +0200 Message-Id: <20220215205153.57966-2-markuss.broks@gmail.com> X-Mailer: git-send-email 2.35.0 In-Reply-To: <20220215205153.57966-1-markuss.broks@gmail.com> References: <20220215205153.57966-1-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 | 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..f98e5dfa2bc4 --- /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,.*": -- 2.35.0