Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3205289pxb; Sat, 9 Oct 2021 04:45:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLqazEQ3Bi+Y6J5fQEOmx4JjgUM2mW6ED6RVgeloKOCjiOmERKkKjesFuSsrHQwMxYHjvv X-Received: by 2002:a17:90a:e010:: with SMTP id u16mr2004637pjy.217.1633779951465; Sat, 09 Oct 2021 04:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633779951; cv=none; d=google.com; s=arc-20160816; b=LCWt4JymK/Ql4Jiwqa1T+im+47j2HwVKzczI3YjR/umV84PssiVciu/L1xTtM5/h+J I15alMurCMTRVmJp08Tk5r+/PAwxH4OXjK9ltkYSy8BZdW8buOhKDBpbnoIDuPzCYnnx +DeU7SnX1joD+gcDus05sBpxtTtWygdG+XZLgGJy7ZBqmvNac0NzZgMiJDfmSDHYPZIO ZgcjbDTWNgTBHGBN2WyMG9ekMyNQRZeDJ4wDz8ce9HaC5gr2JeWlS60Fw6qx/sitMWdC fbH7yw/i9R9PxidmsNMxQ3/RWkDjzc09l7M6Vi6ttRixaDrnG5dEAZvDYkp4eg2DCqJO NGNQ== 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=N2p/XmNZUrQW2HDkxVdkDiS3njrfPhuY82V1/7CD1fU=; b=tyu6GQRX9pvXo7MKYjGd7djlj5sJM5l512+CbaTYwvc/X8Q004rz9Csd1c2CbdfFSK RDrJTaPPu8BHqCkX/L00CVLovhqhEc+OLBx0BJas0RJWKik3tpMctob1QfJj6PrX1s+Z bKy1QPbc0EY7O90geOaKr9W3CoPmYmgxdiR0AZBchHWieQ+1Cevpx8bt3KLZRcB8OqHl UTtLsJC/+GZqCeL6hHMs8TcR2kKSs60oUa7I0AY/3md4VeO58CKyaelReaTgb8Mpr4DY wNy+qriutW2VcfsjewxKR0zQxfxODGtJ9A5daKgPW72EkXQEX1F9kahO7IPN7oyPwfhH kEcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=brXUnVff; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=MGKkmlpm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si2470177pfg.15.2021.10.09.04.45.39; Sat, 09 Oct 2021 04:45:51 -0700 (PDT) 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=pass header.i=@alistair23.me header.s=fm2 header.b=brXUnVff; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=MGKkmlpm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244701AbhJILpn (ORCPT + 99 others); Sat, 9 Oct 2021 07:45:43 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:55419 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244718AbhJILpj (ORCPT ); Sat, 9 Oct 2021 07:45:39 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 2CD525808B0; Sat, 9 Oct 2021 07:43:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 09 Oct 2021 07:43:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=N2p/XmNZUrQW2 HDkxVdkDiS3njrfPhuY82V1/7CD1fU=; b=brXUnVffvQLw1ocSwR1y7L3TKXblo lcBhhFHqNfWZV6h7HByl8ugmaK4+Dd8Tf+5nTsjSf2+LT/eYQKL8+c0WPC8yRsqp cQ7cD3pZPSYA6phyJci4xyuHwUDczY3yfvUOBRJ9kCSG5BLxg7uH749EBa5r8prd AWRd+VFyJ57nXE8dvI8V3F9V79bRigXD3V0fO7PvCzg4Oew3OMATG6c++iPWjFQy EITi2ilLB3Ov+xJvqEUWjpmq6rjwP16Y5Oawa85vSMlTNejhAr33yOYQ+h2wKjJi wq48+6V9iCcu6gwdRxJ8Z8RrnGPA+wtysUIRS0r4H8d2frUrm9DHB4TfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=N2p/XmNZUrQW2HDkxVdkDiS3njrfPhuY82V1/7CD1fU=; b=MGKkmlpm Hbzdp4uCV7YDANHbas5N7Zfky7Cm7gD7ixx10G5ZwgGYB0pbcWvvr2NqdMDp8R0k /FakV3uP5+dIzLF0Q4aO4T1A5LlXcC0f2ojXy4gpBCiyIATH5ni2k3mdgHRLabBY RPCEjvxsOf92fIGAMqQBdHsBe9tdqVBxkA1pqSI4AIvQS8F7tIqX0NA37mGqlpLk Oo/AQXeG+QvZVv0EdR7CBw4p//+grCy/ZPmoMpTNtzsXjM7fMvyhuWucNZvIoq5P emWu5dWmAXQEmlU0+wYDrQmmp1tQSQj9Bt7wYqLTErCvxSJ+14vpMK3Yyj6eY1wI StOLPhylbF8/pQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtvddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeggedtteejke eggeeugfehueevudegvdetjeeviedugedvtdekffekhedtteduhfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 9 Oct 2021 07:43:38 -0400 (EDT) From: Alistair Francis To: dmitry.torokhov@gmail.com, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: linux-imx@nxp.com, jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alistair23@gmail.com, Alistair Francis Subject: [PATCH v11 4/4] ARM: dts: imx7d: remarkable2: add wacom digitizer device Date: Sat, 9 Oct 2021 21:43:13 +1000 Message-Id: <20211009114313.17967-4-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211009114313.17967-1-alistair@alistair23.me> References: <20211009114313.17967-1-alistair@alistair23.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Alistair Francis --- arch/arm/boot/dts/imx7d-remarkable2.dts | 62 +++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts index 89cbf13097a4..2099784d6515 100644 --- a/arch/arm/boot/dts/imx7d-remarkable2.dts +++ b/arch/arm/boot/dts/imx7d-remarkable2.dts @@ -34,6 +34,19 @@ reg_brcm: regulator-brcm { startup-delay-us = <150>; }; + reg_digitizer: regulator-digitizer { + compatible = "regulator-fixed"; + regulator-name = "VDD_3V3_DIGITIZER"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_digitizer_reg>; + pinctrl-1 = <&pinctrl_digitizer_reg>; + gpio = <&gpio1 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + startup-delay-us = <100000>; /* 100 ms */ + }; + wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-simple"; pinctrl-names = "default"; @@ -51,6 +64,29 @@ &clks { assigned-clock-rates = <0>, <32768>; }; +&i2c1 { + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + wacom_digitizer: digitizer@9 { + compatible = "hid-over-i2c"; + reg = <0x09>; + hid-descr-addr = <0x01>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wacom>; + interrupt-parent = <&gpio1>; + interrupts = <1 IRQ_TYPE_LEVEL_LOW>; + flip-tilt-x; + flip-tilt-y; + flip-pos-x; + flip-pos-y; + flip-distance; + vdd-supply = <®_digitizer>; + }; +}; + &snvs_pwrkey { status = "okay"; }; @@ -117,6 +153,25 @@ &wdog1 { fsl,ext-reset-output; }; +&iomuxc_lpsr { + pinctrl_digitizer_reg: digitizerreggrp { + fsl,pins = < + /* DIGITIZER_PWR_EN */ + MX7D_PAD_LPSR_GPIO1_IO06__GPIO1_IO6 0x14 + >; + }; + + pinctrl_wacom: wacomgrp { + fsl,pins = < + /*MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x00000014 /* FWE */ + MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x00000074 /* PDCTB */ + MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x00000034 /* WACOM INT */ + /*MX7D_PAD_LPSR_GPIO1_IO06__GPIO1_IO6 0x00000014 /* WACOM PWR ENABLE */ + /*MX7D_PAD_LPSR_GPIO1_IO00__GPIO1_IO0 0x00000074 /* WACOM RESET */ + >; + }; +}; + &iomuxc { pinctrl_brcm_reg: brcmreggrp { fsl,pins = < @@ -125,6 +180,13 @@ MX7D_PAD_SAI1_TX_BCLK__GPIO6_IO13 0x14 >; }; + pinctrl_i2c1: i2c1grp { + fsl,pins = < + MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007f + MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79 -- 2.31.1