Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1975430pxm; Sun, 27 Feb 2022 07:58:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxC1Adl9/qoC6AE0Bq2uvgV8Ci165eOGGW1Inu3SrQ5iJ0y7HciHCnsvD2R1G7LsX2SgDD+ X-Received: by 2002:a17:906:4cc7:b0:6d0:7efb:49f with SMTP id q7-20020a1709064cc700b006d07efb049fmr12402189ejt.639.1645977497104; Sun, 27 Feb 2022 07:58:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645977497; cv=none; d=google.com; s=arc-20160816; b=rxeWYSjE70KMoDLetqz1nGn/6weW5/P1q4zptfgovNi3/puFrQcw2cUub63pf8F212 4lhO8sHW7hSxCm59whB5PrOquF0pkItHpxV1ll3XOapwsj9EnK7yWuY5xMdeOPltgkgr ZxP9DKdnpOt1JiWq3pl8a94tVI1epBs0FM2ZpOl9wdxOi84WFh5A3xm8AY5ZMXihvhR9 URt9mAFoG4aCcJKkUJ7qKq++RS8badvwFk8wFQAtLnE3QTWxXm2mG6/ubbKKjeesOuT3 hzB5ItBTIVqZKA3WaZbEgLpb7IUV3tlXwUFn8NLLAPEzJFAn/gxqFuoHGuIxTDGjRBcK iiAQ== 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:dkim-signature; bh=Og9BxYB3S6s2eW9bem199hyPU+nZaWl1s2wrCXUxwp0=; b=nOLL40oGrwlylXr4ovSpodGCF2mAUK8KKoPCsU+CvUnKRvFuHQkx5MbQ8WEbwboige k7HMRy1dCtmmUuhcFMNHfxshUFaJvQY8RoXEHzfxNbFO/fWPHqAi2Ro3S4J0DyG/B6eZ 46rltGHSxaKA8Jd3JiozCaLP6jVlOyfH8je32LVW/kjsziI5NdAq7KERA4NoUPxmaP2k myFpNLWtn6B0ZX/WY5cgTb1BOQCHame7QWlTEaMp7S81LVr/9Q2sGQLHW6RoI3+Ul0sz RylbZ0GTSHJmO7/VgUcfZQ2YCqjac4Nc3dE+9ZTC2iOa9rk+te8nbkfH3ghWG17tmga2 3wgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=G5mMzYi3; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=BDHT3zB9; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a1709066b0400b006d20d00ef3bsi4667466ejr.394.2022.02.27.07.57.54; Sun, 27 Feb 2022 07:58:17 -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=@alistair23.me header.s=fm3 header.b=G5mMzYi3; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=BDHT3zB9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230251AbiB0Mlo (ORCPT + 99 others); Sun, 27 Feb 2022 07:41:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230186AbiB0Mlg (ORCPT ); Sun, 27 Feb 2022 07:41:36 -0500 Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B6026D1BE; Sun, 27 Feb 2022 04:40:58 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id EDEBC580227; Sun, 27 Feb 2022 07:33:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 27 Feb 2022 07:33:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; bh=Og9BxYB3S6s2eW 9bem199hyPU+nZaWl1s2wrCXUxwp0=; b=G5mMzYi3Zqa8sX3Ad06ij1OH/1TQtn cDs2P7z1JwC52M3yQ/xa7tpMJPCRb0/M9iwtQ9cb7n2Y3Jcztezs9G/2YU6XZtfs kH8lCD0a1dAxCPkf/VB0xaSz3eaw0Gvtjb+Hga9ytTWZRGhifcmkD8unA14XrvrT 1NppcPu5+0oGmm2CWfmY3fry/0yy+pkpmfuh6isTayPr5kTQ5bUbPjFCuFI2qaCw JLjouH+sCPYbfm7xovMuM79Wn+0K2i7JdcoyDau9BPOK98GGkwt2dVSy2Ewqico1 IJTIgcj23IxyMwoFTKaXWwKkUAO/4klVg6Q+YqMbT/M2gvSiDNVZwCfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Og9BxY B3S6s2eW9bem199hyPU+nZaWl1s2wrCXUxwp0=; b=BDHT3zB9Hn9ioXF9I2l83G kZIYTD96pcYeBuER7wiQBB3hMIhCoKKUFWuWbziviSFvDhlpd0sj6NhFW+Hm61tj q3rBl3+8QXLRUapj85KNTWbE4K0qNQuUlglfKRrJQfdCO6p48qXftnyBHai+YH/i FzY8jhwf8ty6mM76MLfGhOSoyd31xwIFOTQq9zVBx7gwd8I77tqzOSC/+enAJYGQ a2XvEjI6i43KfFEQFXUi/KYO8bamescmcYsHa2PQo52P3XCt1owAEKpnPsCh86CZ zMSCB4iqrgw6iZ5H5tmAXtFlbwJm1c9hz0i0N2Mzgl143SMItg3jeGxwVDRwt2/A == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrleekgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishhtrghi rhesrghlihhsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepgeegtdetjeekge eguefgheeuvedugedvteejveeiudegvddtkeffkeehtdetudfhnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlihhsthgrihhrsegrlhhish htrghirhdvfedrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 27 Feb 2022 07:33:40 -0500 (EST) From: Alistair Francis To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org Cc: robh+dt@kernel.org, linus.walleij@linaro.org, rydberg@bitmath.org, dmitry.torokhov@gmail.com, andreas@kemnade.info, alistair23@gmail.com, Alistair Francis Subject: [PATCH v6 4/4] ARM: dts: imx7d-remarkable2: Enable the cyttsp5 Date: Sun, 27 Feb 2022 22:33:18 +1000 Message-Id: <20220227123318.313009-5-alistair@alistair23.me> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220227123318.313009-1-alistair@alistair23.me> References: <20220227123318.313009-1-alistair@alistair23.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 Add support for the cyttsp5 touchscreen controller for the reMarkable 2. Signed-off-by: Alistair Francis --- arch/arm/boot/dts/imx7d-remarkable2.dts | 97 +++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts index a2a91bfdd98e..ca18ccc03197 100644 --- a/arch/arm/boot/dts/imx7d-remarkable2.dts +++ b/arch/arm/boot/dts/imx7d-remarkable2.dts @@ -8,6 +8,7 @@ /dts-v1/; #include "imx7d.dtsi" +#include / { model = "reMarkable 2.0"; @@ -47,6 +48,18 @@ reg_digitizer: regulator-digitizer { startup-delay-us = <100000>; /* 100 ms */ }; + reg_touch: regulator-touch { + compatible = "regulator-fixed"; + regulator-name = "VDD_3V3_TOUCH"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_touch_reg>; + pinctrl-1 = <&pinctrl_touch_reg>; + gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-simple"; pinctrl-names = "default"; @@ -84,6 +97,67 @@ wacom_digitizer: digitizer@9 { }; }; +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + tsc@24 { + compatible = "cypress,tt21000"; + reg = <0x24>; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_touch>; + interrupt-parent = <&gpio1>; + interrupts = <14 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; + vdd-supply = <®_touch>; + touchscreen-size-x = <880>; + touchscreen-size-y = <1280>; + + button@0 { + reg = <0>; + linux,keycodes = ; + }; + + button@1 { + reg = <1>; + linux,keycodes = ; + }; + + button@2 { + reg = <2>; + linux,keycodes = ; + }; + + button@3 { + reg = <3>; + linux,keycodes = ; + }; + + button@4 { + reg = <4>; + linux,keycodes = ; + }; + + button@5 { + reg = <5>; + linux,keycodes = ; + }; + + button@6 { + reg = <6>; + linux,keycodes = ; + }; + + button@7 { + reg = <7>; + linux,keycodes = ; + }; + }; +}; + &snvs_pwrkey { status = "okay"; }; @@ -177,6 +251,15 @@ MX7D_PAD_SAI1_TX_BCLK__GPIO6_IO13 0x14 >; }; + pinctrl_touch: touchgrp { + fsl,pins = < + /* CYTTSP interrupt */ + MX7D_PAD_GPIO1_IO14__GPIO1_IO14 0x54 + /* CYTTSP reset */ + MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x04 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007f @@ -184,6 +267,20 @@ MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f >; }; + pinctrl_i2c3: i2c3grp { + fsl,pins = < + MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f + MX7D_PAD_I2C3_SCL__I2C3_SCL 0x4000007f + >; + }; + + pinctrl_touch_reg: touchreggrp { + fsl,pins = < + /* TOUCH_PWR_EN */ + MX7D_PAD_GPIO1_IO11__GPIO1_IO11 0x14 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79 -- 2.34.1