From patchwork Thu Dec 15 11:56:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 33582 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp306000wrn; Thu, 15 Dec 2022 04:01:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4S4RS4l2Fu9y2AKFWicqMDD8RIbwWDpfJ9P07A8MKXWjNhpHNYDTX41pJvVmhTC2GO/HBO X-Received: by 2002:a05:6402:3641:b0:462:6d7d:ab09 with SMTP id em1-20020a056402364100b004626d7dab09mr25478473edb.38.1671105668261; Thu, 15 Dec 2022 04:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671105668; cv=none; d=google.com; s=arc-20160816; b=ZnYpF7HikAnFud4nl48idiTih/syIBxYUbS5OSHtVEVBxVfd4Um/RSHqgoGHuHFErI fSKoLGOWctEVmo9bh252ZHJO+gAflH3aMLc4Jj1tUSYCJ6Evda3oRAHrsGCjNA5U9S48 z/fyscQxFfFZgaj+KigeevPnyUUrSJXtMVA/hBZsr5FsP3k6mnc/xj0DvXmXi9ZdYHDi L+Di2tnYws7UCQVSUKUdd5SVvMyIT9EmyBS2F8HpzNQwwda2R7c3VXVJSkC0p+K7wt1Y gdHIFo/iFfY2wfsVPmQB8nYsz+dbkhvt/X6U4l7OzD1+33eXNrqbBh/FoIY6i0/dmNB6 eG/g== 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 :feedback-id:dkim-signature:dkim-signature; bh=p8sZMSIiDzeWkDbA4eVexgLSYWpIws7O7dxtkYfuzb0=; b=EP2shtFyooV6nBCcEA2ECAqHhinifil2BR6Ps1yT6SGoMqjB0U3lty00YxB+HQXK0m Zzl4dNc6lgOxtn8PRqfiphl4wxfqpq0m+xrzlfkoRBlbv7aF9oZC7CRaTcWqFMc3drAI ktTdLcAFTaoli1c9UfV/7aWikR5RrPPl5puzQiLtw3Epz4+TXVByoGNSAWKKSeTwCkPV IOyORBhR/9wQbDal2hM3r7iIrrnFJbw/jTdYQikLjIAst/HcpMx3yDEbyHw1dLJBZozN cXPR4zk3PTdjvO8pHkHbETwt7ImFzO9et22DbnZXeb85Yf7JtKRgFaBuTQExnYm7FM7u t50Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=X4N63Hrf; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=BcZZbyl6; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020a05640251cc00b004615937b174si17335188edd.480.2022.12.15.04.00.45; Thu, 15 Dec 2022 04:01:08 -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=fm2 header.b=X4N63Hrf; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=BcZZbyl6; 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 S229905AbiLOL5O (ORCPT + 99 others); Thu, 15 Dec 2022 06:57:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiLOL5K (ORCPT ); Thu, 15 Dec 2022 06:57:10 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCA1927FD8; Thu, 15 Dec 2022 03:57:09 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 423B0320092B; Thu, 15 Dec 2022 06:57:08 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 15 Dec 2022 06:57:09 -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=fm2; t=1671105427; x= 1671191827; bh=p8sZMSIiDzeWkDbA4eVexgLSYWpIws7O7dxtkYfuzb0=; b=X 4N63HrfQR0KUBTQEM4UZvR1bTTQsObTTIUNSTAT+brvdgdGnzlQh8Loqwy9A+Pdo G3UqSRHYC6mwNH1djkxqbfXJsi+bL41aY33sQ70qH0OiYVtyfN8gw3662CWb7yJl FEYoOS0wYiCEb+OKOTRyc9tWhh3EsYUAiJy+rS2vQ9PGETIhng+wkHZWFEHCetJw eg1WGZn7mbkVLb4guaTp42xCUgsg5oX2tu65pmNuSqSbcsKbY4bPVHutnTbsnB29 VKDw18NvNWI+dLCLu5KID5Lol1i44YUON9KYGxgB/EvhWMzonUxces69OM++Wvo0 v6BPb11ExAU1GnTMwGcBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id: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; t=1671105427; x=1671191827; bh=p8sZMSIiDzeWk DbA4eVexgLSYWpIws7O7dxtkYfuzb0=; b=BcZZbyl6mmdpFiLYTNFCmKltNMu6b C4i3XWf7cZVJSzdGmcd/cAGa50/TnwCCJJbwCdBLX3FuHmLeIcxwzZRpxNhnl+tn XlX5KfBN3jj6xPdBgjlzJztkdxG9fG9SZ4fQXgzkLitHP2H3AQ484MKI1TUDOp/v lyWcb9MMx4fIZKMDZ+Dn5mmavSVJ0js9Hh8z7pJTgLr5RbglWSZSTWCI5NUdMvLM Xk2zJxa6A1FzKg0hGf3OGvMgLN0RCdsTMXym13iOi+q7jRdYCZzlRVNMoCFbnhno fOlyMeG7dexXp45TDqNAeqlHd+3rmrcjdvEDUqb3aLisED9yZCrSc28JA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeitdefkeetle dvleevveeuueejffeugfeuvdetkeevjeejueetudeftefhgfehheenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Dec 2022 06:57:00 -0500 (EST) From: Alistair Francis To: krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, s.hauer@pengutronix.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: jernej.skrabec@gmail.com, alistair23@gmail.com, festevam@gmail.com, kernel@pengutronix.de, linux@armlinux.org.uk, arnd@arndb.de, Alistair Francis Subject: [PATCH 1/3] ARM: dts: imx7d-remarkable2: Enable the cyttsp5 Date: Thu, 15 Dec 2022 21:56:42 +1000 Message-Id: <20221215115644.208486-2-alistair@alistair23.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221215115644.208486-1-alistair@alistair23.me> References: <20221215115644.208486-1-alistair@alistair23.me> MIME-Version: 1.0 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_H2,SPF_HELO_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752281297223722015?= X-GMAIL-MSGID: =?utf-8?q?1752281297223722015?= Add support for the cyttsp5 touchscreen controller for the reMarkable 2. Signed-off-by: Alistair Francis --- arch/arm/boot/dts/imx7d-remarkable2.dts | 98 +++++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts index 8b2f11e85e05..a138b292ec6a 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"; @@ -69,6 +70,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"; @@ -106,6 +119,68 @@ wacom_digitizer: digitizer@9 { }; }; +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + touchscreen@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>; + #address-cells = <1>; + #size-cells = <0>; + + 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 = ; + }; + }; +}; + &i2c4 { clock-frequency = <100000>; pinctrl-names = "default", "sleep"; @@ -232,6 +307,15 @@ MX7D_PAD_ENET1_RGMII_TXC__GPIO7_IO11 0x00000014 >; }; + 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 @@ -239,6 +323,13 @@ 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_i2c4: i2c4grp { fsl,pins = < MX7D_PAD_I2C4_SDA__I2C4_SDA 0x4000007f @@ -246,6 +337,13 @@ MX7D_PAD_I2C4_SCL__I2C4_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 From patchwork Thu Dec 15 11:56:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 33583 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp306022wrn; Thu, 15 Dec 2022 04:01:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6PkIZKt45+XC5zDHbWQwiySw+PWohd7sN28afEhYplTabc7kHnDB7IA53NzoOgWgj1vE6h X-Received: by 2002:aa7:c6c9:0:b0:46b:a28a:8783 with SMTP id b9-20020aa7c6c9000000b0046ba28a8783mr23226606eds.38.1671105669923; Thu, 15 Dec 2022 04:01:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671105669; cv=none; d=google.com; s=arc-20160816; b=Pzj653X9Fi1tlG1CElsY0WinHscU2Hq5NmbMYIsGr6YTOO4MoMgILa+3Oo7kTg5kPq Jw8olFC/Y16Lyn4OolwpcJwZrfF9upSBfuaTPJA/WN/QvX6vymPtTNk0XYHMAiwMn0TL NbOu6K3E2yR7ecLMqwyo7iQOAiesnb2Hb+JHRr43p6WxafVdNBzz/1Hh50wv6EpIks3z pJsR5BaM9qrCX12DzLYbwIAl4f4mZTU3WntnJ/c4CV9AaEdRF4Mko/4PyAsKptsD+IW1 jrg3UlDrRixKYAspGDD8FMXbtmZa82nTP6TIfxwa+jzsnXcNkVMBy23BAOc2J7ygd4ta aFYw== 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 :feedback-id:dkim-signature:dkim-signature; bh=CxmYatH53iIqu90D51inx/cW66N9xb9CG/Cv8i8UAz8=; b=oUFXJwlDqkogkXfdfpilvOnHoUTTlyD5tKb0MkAnvkuXASHc6j3AJ7O2yq0SgXM0oz G0VwPHdif7nPvG7KI8vG/EwHBkpxgcnmsGX1CrDj7Y07TA4QIDDxfl7CS/A7A20HBjDt /vp//rkINuhFADdQjzrSlgYcCXoz9y89EdHvGSllwZETBoMeFW+Sxy8OgHPo9tqTE6X3 pTzYuyTyuJitiN0gduKRQrUHYy+DLgJaw5/93tT4WeFhezWv/5dw9qsg0/1wZ/uo6cS8 WmHVnIX5NMnHJb5prrvwLvM2/KgwwJIWqPC2e5tCRHh09lYVda5q6Ui3OE7+KGIuj8RH qOnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=cktBC1wK; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=QNLvNkLa; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n16-20020a056402515000b0046277d2cb0csi12948920edd.470.2022.12.15.04.00.46; Thu, 15 Dec 2022 04:01:09 -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=fm2 header.b=cktBC1wK; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=QNLvNkLa; 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 S229895AbiLOL5f (ORCPT + 99 others); Thu, 15 Dec 2022 06:57:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbiLOL50 (ORCPT ); Thu, 15 Dec 2022 06:57:26 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D01F2E689; Thu, 15 Dec 2022 03:57:20 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 5280532002D8; Thu, 15 Dec 2022 06:57:18 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 15 Dec 2022 06:57:19 -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=fm2; t=1671105437; x= 1671191837; bh=CxmYatH53iIqu90D51inx/cW66N9xb9CG/Cv8i8UAz8=; b=c ktBC1wKfu5qY6UQ7p7qQJhwRf0aJ+UhNVm1I57T85F4PSS9umIE0wlvGsJ20kbQ9 LhMoqBz172CFsKnia7eDWa4YVtcdMKGCOIBcBhCcO2YXOmyfJftnKIIVAEDYUQsx gm8Ts2Sb+lBmQ/4rbs/H7JvEVrpULLJn5yjOYgnez0k32JwdCavyOMtmzSN+Dax9 mlOl4O6VGxTRl4R5DHLnRb/8EVJMPA+cnl7DYTcTF8FfRtdygIYlweMRFAZUmBAo aNL+cHgYrbv6MrGZ8TwEma6xF8YNM3wuXzz3183+mi2sJ/UnX8egCovMKh3kd4qe pHxoBxM/WniSIOck9kJYg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id: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; t=1671105437; x=1671191837; bh=CxmYatH53iIqu 90D51inx/cW66N9xb9CG/Cv8i8UAz8=; b=QNLvNkLaZVc8/fLinGwmMXOT0m/Lz 3OIZ+rcxkcwFfbxIUJ5h17lKNTQzkFhgytuMbLYaYtC3GcEA4LQizqGEEFdfzHyv lVy6o2BneUjcNepYFBkXg8jReVkB/OuTsg296ofcCXh3TWlVsGnXaKwYybWz/Oa8 D/Y2k9Xzn56R6hmY5ExYydJvWO8tDOiQ/D3CuhRLh1jv+5j5xtVA3Yyq/lFLI5hi MhwqmUHHLIyldmJWTnCBYjf6RsgedUgaTflBIOt+yM+QR4osi05F05jYI5mgftkv s6ubmGthM2593qNPsv+QthfV5hH+CrE6Mix0TJSh8WzC1Fzf3DidxKMkQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeitdefkeetle dvleevveeuueejffeugfeuvdetkeevjeejueetudeftefhgfehheenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Dec 2022 06:57:09 -0500 (EST) From: Alistair Francis To: krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, s.hauer@pengutronix.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: jernej.skrabec@gmail.com, alistair23@gmail.com, festevam@gmail.com, kernel@pengutronix.de, linux@armlinux.org.uk, arnd@arndb.de, Alistair Francis Subject: [PATCH 2/3] ARM: imx_v6_v7_defconfig: Enable rohm,bd71815 Date: Thu, 15 Dec 2022 21:56:43 +1000 Message-Id: <20221215115644.208486-3-alistair@alistair23.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221215115644.208486-1-alistair@alistair23.me> References: <20221215115644.208486-1-alistair@alistair23.me> MIME-Version: 1.0 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_H2,SPF_HELO_PASS,SPF_PASS,UPPERCASE_50_75 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752281299107336184?= X-GMAIL-MSGID: =?utf-8?q?1752281299107336184?= The reMarkable 2 uses the rohm,bd71815 power controller, so enable it in the defconfig. Signed-off-by: Alistair Francis --- arch/arm/configs/imx_v6_v7_defconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 025eb333dcaa..2b29599193a2 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs/imx_v6_v7_defconfig @@ -213,6 +213,7 @@ CONFIG_GPIO_SIOX=m CONFIG_GPIO_MAX732X=y CONFIG_GPIO_PCA953X=y CONFIG_GPIO_PCF857X=y +CONFIG_GPIO_BD71815=y CONFIG_GPIO_STMPE=y CONFIG_GPIO_74X164=y CONFIG_POWER_RESET=y @@ -242,8 +243,10 @@ CONFIG_MFD_MC13XXX_I2C=y CONFIG_MFD_SY7636A=y CONFIG_MFD_RN5T618=y CONFIG_MFD_STMPE=y +CONFIG_MFD_ROHM_BD71828=y CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_ANATOP=y +CONFIG_REGULATOR_BD71815=y CONFIG_REGULATOR_DA9052=y CONFIG_REGULATOR_DA9062=y CONFIG_REGULATOR_DA9063=y @@ -380,6 +383,7 @@ CONFIG_RTC_DRV_ISL1208=y CONFIG_RTC_DRV_PCF8523=y CONFIG_RTC_DRV_PCF8563=y CONFIG_RTC_DRV_M41T80=y +CONFIG_RTC_DRV_BD70528=y CONFIG_RTC_DRV_RC5T619=y CONFIG_RTC_DRV_RV3029C2=y CONFIG_RTC_DRV_DA9063=y @@ -396,6 +400,7 @@ CONFIG_STAGING=y CONFIG_STAGING_MEDIA=y CONFIG_VIDEO_IMX_MEDIA=y CONFIG_COMMON_CLK_PWM=y +CONFIG_COMMON_CLK_BD718XX=y CONFIG_CLK_IMX8MM=y CONFIG_CLK_IMX8MN=y CONFIG_CLK_IMX8MP=y From patchwork Thu Dec 15 11:56:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 33584 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp306101wrn; Thu, 15 Dec 2022 04:01:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf49qgMtPiGRs21qmgR0z9oN0lvK+uF/9BdygU8Iqw25zil8zBNAVQ5sNlG83C0/TVaqYVNL X-Received: by 2002:a05:6402:5303:b0:462:7b87:c6d with SMTP id eo3-20020a056402530300b004627b870c6dmr23848580edb.2.1671105676622; Thu, 15 Dec 2022 04:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671105676; cv=none; d=google.com; s=arc-20160816; b=nThuZZb4q1rnF+M0Hf4hcn9tZeppClPqmURQt8BCHwaUo8Q/gXOGpRPus2l1x56adn RIJHx0gcFyxx+AZH1PZk0zI8O20Jr5+vQcBGJzMSfAbnGLFYaOURbVJYMqfIJYw21Z0k LmCwdtav//iPBw5FNxA4SpzBtOYeqmbIOGoHL46oSu5b8JmQZFiM9rV8cfC5R+e+1ARd 33dzUNTj/TzJE+HPN43qrYhrrglLqtxkG7nGEHoi7vZse6mq3W5zfV2/3pT/RsUklcxM 7ZdB7/ih/QutQAEgZb6sm+wokFbDCu5bY/ApTHTAh8JtEl62Wsp4XpPzId08eBEO2+Jc s8RQ== 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 :feedback-id:dkim-signature:dkim-signature; bh=xs+I3mt0XyFW9Uq6BJw0KPPKa2WXad4KJwYkN13Dk4I=; b=ScqUjkx2oX7M17vHTkxNRqWGOjcVjerWT52fQ+RxVVIv34Wpp3oZ1VmmiPYYSy/q/e Xb9Tf+0FNs0oVsu+Eto2C4rXVYxWzhSrUuOfyfZTapQF1YNrqR+T4kxGuK4gRD9aBeY4 ONImp9YrLQCngrZChaYz9laKtX2W4EZmEck/OqPQlIKMDZ9mwIi2IGYwCjCaaF7P7FfE toktExTmI6ZROen8SK7EUAZzhfb4H4/nxEaKR6We/taNuqUssrfvL9SJe9DCUShZcLjm /s+fVSGHGkg1vo1GWAj9T1Hhb4E+ZUF5PWE8reiWRZDndhlw/H+h7kgDW1GHo4PYKKZB cPfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=JbxjOoV5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EWTjsaSu; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a05640242c500b0046aeb9d6223si18535526edc.158.2022.12.15.04.00.52; Thu, 15 Dec 2022 04:01:16 -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=fm2 header.b=JbxjOoV5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EWTjsaSu; 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 S229994AbiLOL54 (ORCPT + 99 others); Thu, 15 Dec 2022 06:57:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbiLOL5d (ORCPT ); Thu, 15 Dec 2022 06:57:33 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 411E22A726; Thu, 15 Dec 2022 03:57:29 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A96B93200929; Thu, 15 Dec 2022 06:57:27 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 15 Dec 2022 06:57:28 -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=fm2; t=1671105447; x= 1671191847; bh=xs+I3mt0XyFW9Uq6BJw0KPPKa2WXad4KJwYkN13Dk4I=; b=J bxjOoV5ArcqEER6o0FOUBPEUANkgHnVthnqoxTq3hBXOUqKdCmgRlTxfs/ao/XEt G6bXrW3N1OkUmoSIwCwugv5rxv9GTxdjPjgobdHytAWaucQ85LQI0ojzbXLXLtus cMWerHc+8kDafRh7OI8CC1HFY7MnTzo94OSJ3t+R4KdDXZCUES3V659qVzK26NKF TeOi2M8ygRnRouUuRnZQ3BfKkpgBjU4uiOnzJMCfTnG/w2XthD4lckf5LfsbtcLZ CEqZby217y7EUc/jWINvI3Z1TFgFvXf7cvqwdJEV8o1IGq5RWP5wVDqYvQ9VBJhQ EcaWuZ299RO25btHdDzeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id: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; t=1671105447; x=1671191847; bh=xs+I3mt0XyFW9 Uq6BJw0KPPKa2WXad4KJwYkN13Dk4I=; b=EWTjsaSujELYbXhUnw1yCrEQIiy9B kY9hP5IlVWysolg4LIwHfbOwo28QvH53hDWMoQFZ5huUdJsTjMnwIw3YU856U0QD riOPi1CTIWS4ExN0MvKHgr6ARuYc4X5Bh/GGKcxWb+SjvE1yNt+5FqHmECxu2pDX 3MA+/ohAskhs0nAzuGQzLctbNgmYWNjlkaT7ew9s2y67jzowfs57qEuvDsMuEuHY UfW2Jpuugt6iZsQJrkIUCF6D+ySwhOEjed2hsRNfPS5m+cRJvZmY+7jnHPIxAV0M k4rJCnJx86STfwnfDD95j7QSrPhfCB4CVeatCgxRnXLbdM7bHv+4SWkfg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehgdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeitdefkeetle dvleevveeuueejffeugfeuvdetkeevjeejueetudeftefhgfehheenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Dec 2022 06:57:20 -0500 (EST) From: Alistair Francis To: krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, s.hauer@pengutronix.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: jernej.skrabec@gmail.com, alistair23@gmail.com, festevam@gmail.com, kernel@pengutronix.de, linux@armlinux.org.uk, arnd@arndb.de, Alistair Francis Subject: [PATCH 3/3] ARM: dts: imx7d-remarkable2: Enable the rohm,bd71815 Date: Thu, 15 Dec 2022 21:56:44 +1000 Message-Id: <20221215115644.208486-4-alistair@alistair23.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221215115644.208486-1-alistair@alistair23.me> References: <20221215115644.208486-1-alistair@alistair23.me> MIME-Version: 1.0 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_H2,SPF_HELO_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752281305898666035?= X-GMAIL-MSGID: =?utf-8?q?1752281305898666035?= Add support for the rohm,bd71815 power controller controller for the reMarkable 2. Signed-off-by: Alistair Francis --- arch/arm/boot/dts/imx7d-remarkable2.dts | 158 ++++++++++++++++++++++++ 1 file changed, 158 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts index a138b292ec6a..e61ef3bd2eb9 100644 --- a/arch/arm/boot/dts/imx7d-remarkable2.dts +++ b/arch/arm/boot/dts/imx7d-remarkable2.dts @@ -92,6 +92,10 @@ wifi_pwrseq: wifi_pwrseq { }; }; +&cpu0 { + cpu-supply = <&buck1_reg>; +}; + &clks { assigned-clocks = <&clks IMX7D_CLKO2_ROOT_SRC>, <&clks IMX7D_CLKO2_ROOT_DIV>; @@ -119,6 +123,147 @@ wacom_digitizer: digitizer@9 { }; }; +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_i2c2>; + pinctrl-1 = <&pinctrl_i2c2>; + status = "okay"; + + bd71815: pmic@4b { + #clock-cells = <0>; + + compatible = "rohm,bd71815"; + reg = <0x4b>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_bd71815>; + interrupt-parent = <&gpio6>; /* PMIC_INT_B GPIO6_IO16 */ + interrupts = <16 IRQ_TYPE_LEVEL_LOW>; + clocks = <&clks IMX7D_CLKO2_ROOT_SRC>; + clock-output-names = "bd71815-32k-out"; + + regulators { + #address-cells = <1>; + #size-cells = <0>; + + buck1_reg: regulator@0 { + reg = <0>; + regulator-compatible = "buck1"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <2000000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <1250>; + }; + + buck2_reg: regulator@1 { + reg = <1>; + regulator-compatible = "buck2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <2000000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <1250>; + }; + + buck3_reg: regulator@2 { + reg = <2>; + regulator-compatible = "buck3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <2700000>; + regulator-boot-on; + regulator-always-on; + }; + + buck4_reg: regulator@3 { + reg = <3>; + regulator-compatible = "buck4"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1850000>; + regulator-boot-on; + regulator-always-on; + }; + + buck5_reg: regulator@4 { + reg = <4>; + regulator-compatible = "buck5"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1_reg: regulator@5 { + reg = <5>; + regulator-compatible = "ldo1"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo2_reg: regulator@6 { + reg = <6>; + regulator-compatible = "ldo2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3_reg: regulator@7 { + reg = <7>; + regulator-compatible = "ldo3"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4_reg: regulator@8 { + reg = <8>; + regulator-compatible = "ldo4"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo5_reg: regulator@9 { + reg = <9>; + regulator-compatible = "ldo5"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + dvref_reg: regulator@10 { + reg = <10>; + regulator-compatible = "dvref"; + regulator-boot-on; + regulator-always-on; + }; + + lpsr_reg: regulator@11 { + reg = <11>; + regulator-compatible = "lpsr"; + regulator-boot-on; + regulator-always-on; + }; + + wled_reg: regulator@12 { + reg = <12>; + regulator-compatible = "wled"; + regulator-min-microamp = <10>; + regulator-max-microamp = <25000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; +}; + &i2c3 { clock-frequency = <100000>; pinctrl-names = "default"; @@ -293,6 +438,12 @@ MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x00000034 /* WACOM INT */ }; &iomuxc { + pinctrl_bd71815: bd71815grp { + fsl,pins = < + MX7D_PAD_SAI1_RX_SYNC__GPIO6_IO16 0x59 + >; + }; + pinctrl_brcm_reg: brcmreggrp { fsl,pins = < /* WIFI_PWR_EN */ @@ -323,6 +474,13 @@ MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f >; }; + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f + MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f + >; + }; + pinctrl_i2c3: i2c3grp { fsl,pins = < MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f