Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1562083rwb; Thu, 10 Nov 2022 18:59:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4UJ/RS2ZFUVxY8TaNkFYOmtYcgxiF1Yto7QHPbgUiCK1c+9FJSF3mwui3+x3fYQfVtg5iP X-Received: by 2002:a17:902:eac6:b0:187:3932:6422 with SMTP id p6-20020a170902eac600b0018739326422mr456295pld.135.1668135575299; Thu, 10 Nov 2022 18:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668135575; cv=none; d=google.com; s=arc-20160816; b=ajtVsJOE37Zzm9sXmGXba3cU2eLpW/YX4zIYKVoP61MP1JGLOWD+0OAMrwCtxYr++j ClbpqgsYuLpQob0Cva4PynXLL6urqpPGX3cGL0IOUK1KeoEXao8NrMMAwkbnVIEpg6Aj +ueGHmoPInQ2w5OeLi1XB8bOhzLc9Ipw78oVJzxiEBbPqTlXOUMofHrbFSEUFAfmclsR tRuQYWq67VIggj0QP6Tp0xwL30QRLBJ0SwDkYlJ8eE+gtHp5mqn2etsrI8LgB+oo+ceV gqjXO8sMrR6JiM1rKvVvQxB6LdubcornKVRp0BjOrdK5VQdE/nxryDtD/vsb1geOxM+0 YFpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/rsg13SIQ8/vYCD9qx06pD1xDOj0ylZO28xWcF4dkkM=; b=EUw0LSyNjQwxbi3LScNfo0qhkTtt1Ji7+7hXzH4Rfv3oVrm6yFcQoCFu98Gz8+xyWx yoevJIlpYaXCzpr+tEHrs30P3Iff2u8NGzyEx9i01BvB5Ls9GilhOU78eV1YTnD/ED4s z53de0Pki3eLJBSFMk5Ai70ZHIB01X/1stMVpgf0G87uk5teKBCIQz3m/xC9Uh0RIJIv VP8qQI18BMsYGhScaY1RV9qbwRkJNaQpPu9BCxCErIN1nskE82cWUq2lhg5jpR2CE0cs P7Ig94dgJxOQwjZI0b9KOvxkzU083FIRFkG9jVHIP3gdZnl0DJmdPL7BgcHrfgBiv2Pw gY4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mtUqLF5M; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a170902e8c500b0017bdf43925dsi1067480plg.580.2022.11.10.18.59.23; Thu, 10 Nov 2022 18:59:35 -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=@kernel.org header.s=k20201202 header.b=mtUqLF5M; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232060AbiKKC30 (ORCPT + 92 others); Thu, 10 Nov 2022 21:29:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231235AbiKKC3V (ORCPT ); Thu, 10 Nov 2022 21:29:21 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07599101CF; Thu, 10 Nov 2022 18:29:21 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9215D61E64; Fri, 11 Nov 2022 02:29:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F344C433C1; Fri, 11 Nov 2022 02:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668133760; bh=vYIHNd0LLF5q0Hnjxkc0hp3WrnEuBycva2XaWrIrDuE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mtUqLF5MXRsJx3lyExUx21dXbRa/UTWY5oHU9Q3f1tCxAsmFiullpVaA3Ram5nt0L S8ishdYkKhTgnqEjF7bJXafOZRFhA13Gu0vLGBAyrja/DY3xNA7spo1zxKhYEPM1Ko 7uvivvZE9QtKfCU+MX8hCYOZoKtlxXvwamSECEEg/b9FP6qCloIkMK/ixlTyLEsD4P nQZ8vQ7Un+RplU87AxxIH2U3S1Yz67n+3YY6tdDWVezoziucMZhO8UK2USWuIdD6qz 0JIiWqPFBLPttvV1rbUv0Hn4x/bjXrik4ylcWMGCYZAGNIsQRpQrxLQbuX9TsJPaLS WhR965MHIEKHw== Date: Fri, 11 Nov 2022 10:29:08 +0800 From: Shawn Guo To: Alistair Francis Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, robh+dt@kernel.org, dmitry.torokhov@gmail.com, rydberg@bitmath.org, alistair23@gmail.com, s.hauer@pengutronix.de, andreas@kemnade.info Subject: Re: [PATCH v10 4/4] ARM: dts: imx7d-remarkable2: Enable the cyttsp5 Message-ID: <20221111022908.GE125525@dragon> References: <20221026114908.191472-1-alistair@alistair23.me> <20221026114908.191472-5-alistair@alistair23.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221026114908.191472-5-alistair@alistair23.me> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Wed, Oct 26, 2022 at 09:49:08PM +1000, Alistair Francis wrote: > Add support for the cyttsp5 touchscreen controller for the reMarkable 2. > > Signed-off-by: Alistair Francis > --- > arch/arm/boot/dts/imx7d-remarkable2.dts | 100 ++++++++++++++++++++++++ > 1 file changed, 100 insertions(+) > > diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts > index a2a91bfdd98e..fea480af8e48 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,70 @@ wacom_digitizer: digitizer@9 { > }; > }; > > +&i2c3 { > + clock-frequency = <100000>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2c3>; > + status = "okay"; > + > + tsc@24 { `touchscreen` for node name? > + #address-cells = <1>; > + #size-cells = <0>; > + Unnecessary newline. > + compatible = "cypress,tt21000"; We idiomatically begin property list with compatible. > + reg = <0x24>; > + Unnecessary newline. Shawn > + 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 +254,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 +270,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.37.3 >