Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp407324pxb; Thu, 21 Jan 2021 09:50:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyT9DNVDyBNARLF1t9pK/Wj0v3Bdnra6ut0tV6+2BD/Q0yccdE8zmnO/3fvZIEDf0FPSvrZ X-Received: by 2002:a05:6402:1701:: with SMTP id y1mr210774edu.251.1611251441983; Thu, 21 Jan 2021 09:50:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611251441; cv=none; d=google.com; s=arc-20160816; b=nx1Jje/uuZZJhD0gOCw7QYwZJBY5AR2VsIQ14LouaHIbrJ8MgzVx85RWHL5Bp/5DOD tiVZr6E/LcyyY0Zhl+hwSgmk88oIDosjIXpv8SI8kaKtrxmXhv2cqM9AtSuGJC3LTMCF 83IadG2RrsMGy+hkRzd7frmjwALZRxhzzhW0/0h7S/yogw3SxRu7jBKf9bP1arLaSkW1 GlNamSH+uVHxT4Vs4tiFX8RwyU9/rdAygAGCOmJCGX5Bwrns/hftZemwZHmi8BpD+P7b V+Ob8PdnjPGbgQAy5dPz9EjL4b5qlAKeBRkkjR0mDDeZVPLX0ZFcTKCI7GLRohdQD9A5 e8hA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=wpgrjQ0tU/F33zNwHuOk6TzmcY4LIjNMDSFkVcyLwfw=; b=fgwjw9BeJP4O8Asmka0OS0OdlvwtE2o5b/ON1lRblRUiP77Exojpe8fSfhZEs2IGy3 86VJShFIl6ojpYZJfVTz16JbOMeA3o9oJE2gc90XXT+BBVqft2FBgWigYP/LMXDBNMnX kh/47tk42SrGcG9ZBx3dZVAbg+JTCXffnenLAZo99+dBYAEVDs9MKIgfiRZ4sPPteloX UDKqxRBqwD2f9jMWx68a+88m924x5BoedFa9nBiZ8KQ6QgBnLpcx7Vwv7HygqjzzZ+hB RbyaKWo40utmNHwV3TepmwhW+/1gsab8jv5itlxfsU6qCNLElvCX0VRzUphIkIi8jkQW 6b6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailoo.org header.s=mailo header.b=bNnntQ2O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailoo.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si2145861eji.498.2021.01.21.09.50.16; Thu, 21 Jan 2021 09:50:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mailoo.org header.s=mailo header.b=bNnntQ2O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389088AbhAURrR (ORCPT + 99 others); Thu, 21 Jan 2021 12:47:17 -0500 Received: from msg-2.mailo.com ([213.182.54.12]:49144 "EHLO msg-2.mailo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388987AbhAURps (ORCPT ); Thu, 21 Jan 2021 12:45:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo; t=1611251056; bh=yDRRZw5pkRK++DBQV9BF8M/0EOWbSJfi9/2x6S2Gfqo=; h=X-EA-Auth:From:To:Cc:Subject:Date:Message-Id:X-Mailer: MIME-Version:Content-Transfer-Encoding; b=bNnntQ2OEwj+eMYrLUf4wNUEOtoAGH5+/JQdJGMeunLwOYAmmT+etU2JbV2wrju2c /QSGXenFyKshNRcXIWDx/VfAmvUOAk6q3QIiFQ6jZz/d+Ysnt4kK9T6ITTr1EDLBrc t4YLk5Hob83RI1vd8rmTTAGzfuYk1Ji3np6+fWjE= Received: by b-3.in.mailobj.net [192.168.90.13] with ESMTP via proxy.mailoo.org [213.182.55.207] Thu, 21 Jan 2021 18:44:16 +0100 (CET) X-EA-Auth: yvnxX2YCMXfd8+j5vum/rlMzFImFoka0+8XUJVCOReMxMR5Cci/wevHfDaVtigmpJxionMsX21uMIXROVD/F7cehNkoysxV80Su6uSka/Lw= From: Vincent Knecht To: Dmitry Torokhov , Rob Herring , Henrik Rydberg , Vincent Knecht , Michael Srba , Linus Walleij , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v3 1/2] dt-bindings: input/touchscreen: add bindings for msg26xx Date: Thu, 21 Jan 2021 18:43:47 +0100 Message-Id: <20210121174359.1455393-1-vincent.knecht@mailoo.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds dts bindings for the mstar msg26xx touchscreen. Signed-off-by: Vincent Knecht --- Changed in v3: - added `touchscreen-size-x: true` and `touchscreen-size-y: true` properties Changed in v2: - changed M-Star to MStar in title line - changed reset gpio to active-low in example section --- .../input/touchscreen/mstar,msg26xx.yaml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/mstar,msg26xx.yaml diff --git a/Documentation/devicetree/bindings/input/touchscreen/mstar,msg26xx.yaml b/Documentation/devicetree/bindings/input/touchscreen/mstar,msg26xx.yaml new file mode 100644 index 000000000000..5d26a1008bf1 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/mstar,msg26xx.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/mstar,msg26xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MStar msg26xx touchscreen controller Bindings + +maintainers: + - Vincent Knecht + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + const: mstar,msg26xx + + reg: + const: 0x26 + + interrupts: + maxItems: 1 + + reset-gpios: + 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 + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - reset-gpios + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + touchscreen@26 { + compatible = "mstar,msg26xx"; + reg = <0x26>; + interrupt-parent = <&msmgpio>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&ts_int_active>; + vdd-supply = <&pm8916_l17>; + vddio-supply = <&pm8916_l5>; + touchscreen-size-x = <720>; + touchscreen-size-y = <1280>; + }; + }; + +... -- 2.29.2