From patchwork Sat Oct 29 10:06:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 13024588 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2ABC1C38A02 for ; Sat, 29 Oct 2022 10:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nohq1nugWMUkIGioLb86eNvyvp9FGKBayULm638Eaak=; b=qG4xjIJ97jgH2M XrVCMIj/X+3KG9/MSWMpkLIHlyiQiQtoxcIFrYhDP9KskmZqQ9gXRJRpnjB5g26ZYVeCC/Tt4ZsAK ENDPG8RRvaq7etTO5pDlvWnY+6jbGn4NsDYVnc9tWDqzsUkIJRad8mnX5RD8i8fGw2xhKj4ogaBbL jTzvE3ZiFsObM65DBf0EjJVPahdCkl24W7Vm6WWP2lDyrQLup/ZEGho0YqhmWQbU8yoHXsVyz2r5S czvR2oxdM6tbNu+29ClbnoCpq52MLzXQ3CvU8iRBBPAYkvs20ontapb1rHS2+ILlggeGYfo4dY5Ym QI1esZ2LZ0y9FC73HqWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooikZ-005mbx-Ny; Sat, 29 Oct 2022 10:07:35 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooikT-005mas-Nf for linux-arm-kernel@lists.infradead.org; Sat, 29 Oct 2022 10:07:31 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1E4675C0144; Sat, 29 Oct 2022 06:07:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 29 Oct 2022 06:07:29 -0400 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; t=1667038049; x= 1667124449; bh=ii5FrCn9Wh+rrZgHgZM99N/eK/RiQhzg3xDbaGnZMmg=; b=V 5X78iF7R8sq4FWmo7Ew6GGWW3oGpVOmY3K04uBh5nhyySETslK7WXhZ+eBCC6Hfc 6gzDyNjf09UqxPx7bH/JDuJfz2mmJYopjtTDLEvcbnEFm2X5aDhykot1337BnFdK KoEbxVvfjZyP2QjdA6bMdp3xX9+FwAM+zt/fCiYhRGVIb9anwKXGlujTbHXqogaX Oj7A6tSI2gq7Z6YKzUZpZhLnqjcG6RMGYKhS7lPJsorfEyrD1zytBgUgxrMkMGNZ rKwOVBJvafPRAOv54ghjHL2q7RheLzSlltv/1ruAbD2Jy84QedwsTRDAfTzea6eb QBLYCcsEcypHP9U7m9/9w== 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=fm3; t=1667038049; x=1667124449; bh=ii5FrCn9Wh+rr ZgHgZM99N/eK/RiQhzg3xDbaGnZMmg=; b=JPAL25Hg9skLnFrvLVDV2Vw1B2Uvh twDXPKL9dxC5qpm5bXKbwbLBF8SInt8t7MtAGOF9IzDa8bhy5twdFloJ9oB4NQ1H AMT9mUIzRZvUrlx26vPlO69YSFk6a9Qk5gQpwbq/vY+0tVEjJKVloJsukbYLEb+A e1VvO+36TxDq1gPTEnHa+xHDlkLBqdjbEFapJt4ks0DKRNIh5gEW7dK+a+ZkyEVA 6y1JtbGO9fXCfjWLgiplMNR++GkYmo6eNNcqVpZHGxXAwujQ/6xCtr7g9XGueimQ PjLkSG6gJF5uy4JJMQ6dZhqdzkfHHo2h0fvmntECAWXB40ROZ/EYZpqhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtdekgddvgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeitdefkeetle dvleevveeuueejffeugfeuvdetkeevjeejueetudeftefhgfehheenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 29 Oct 2022 06:07:18 -0400 (EDT) From: Alistair Francis To: lgirdwood@gmail.com, robh+dt@kernel.org, broonie@kernel.org, kernel@pengutronix.de, lee.jones@linaro.org Cc: linux-arm-kernel@lists.infradead.org, alistair23@gmail.com, linux-imx@nxp.com, alistair@alistair23.me, amitk@kernel.org, s.hauer@pengutronix.de, linux@roeck-us.net, rui.zhang@intel.com, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-hwmon@vger.kernel.org, shawnguo@kernel.org, andreas@kemnade.info, linux-kernel@vger.kernel.org, geert@linux-m68k.org Subject: [PATCH v23 2/2] ARM: dts: imx7d-remarkable2: Enable silergy,sy7636a Date: Sat, 29 Oct 2022 20:06:46 +1000 Message-Id: <20221029100646.294583-3-alistair@alistair23.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221029100646.294583-1-alistair@alistair23.me> References: <20221029100646.294583-1-alistair@alistair23.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221029_030729_858583_B99E4738 X-CRM114-Status: UNSURE ( 8.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the silergy,sy7636a and silergy,sy7636a-regulator on the reMarkable2. Signed-off-by: Alistair Francis --- arch/arm/boot/dts/imx7d-remarkable2.dts | 63 +++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts index a2a91bfdd98e..58581295b9a0 100644 --- a/arch/arm/boot/dts/imx7d-remarkable2.dts +++ b/arch/arm/boot/dts/imx7d-remarkable2.dts @@ -22,6 +22,28 @@ memory@80000000 { reg = <0x80000000 0x40000000>; }; + thermal-zones { + epd-thermal { + thermal-sensors = <&epd_pmic>; + polling-delay-passive = <30000>; + polling-delay = <30000>; + + trips { + trip0 { + temperature = <49000>; + hysteresis = <2000>; + type = "passive"; + }; + + trip1 { + temperature = <50000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; + reg_brcm: regulator-brcm { compatible = "regulator-fixed"; regulator-name = "brcm_reg"; @@ -84,6 +106,33 @@ wacom_digitizer: digitizer@9 { }; }; +&i2c4 { + clock-frequency = <100000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_i2c4>; + pinctrl-1 = <&pinctrl_i2c4>; + status = "okay"; + + sy7636a: pmic@62 { + compatible = "silergy,sy7636a"; + reg = <0x62>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_epdpmic>; + #address-cells = <1>; + #size-cells = <0>; + #thermal-sensor-cells = <0>; + epd-pwr-good-gpios = <&gpio6 21 GPIO_ACTIVE_HIGH>; + status = "okay"; + + regulators { + reg_epdpmic: vcom { + regulator-name = "vcom"; + regulator-boot-on; + }; + }; + }; +}; + &snvs_pwrkey { status = "okay"; }; @@ -177,6 +226,13 @@ MX7D_PAD_SAI1_TX_BCLK__GPIO6_IO13 0x14 >; }; + pinctrl_epdpmic: epdpmicgrp { + fsl,pins = < + MX7D_PAD_SAI2_RX_DATA__GPIO6_IO21 0x00000074 + MX7D_PAD_ENET1_RGMII_TXC__GPIO7_IO11 0x00000014 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007f @@ -184,6 +240,13 @@ MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f >; }; + pinctrl_i2c4: i2c4grp { + fsl,pins = < + MX7D_PAD_I2C4_SDA__I2C4_SDA 0x4000007f + MX7D_PAD_I2C4_SCL__I2C4_SCL 0x4000007f + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79