Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp96583pxb; Mon, 25 Oct 2021 04:39:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxe5SErkwJ8+O0uxZ2oGj0n4JCmajCN6PIPd9TDA7WQkm5eShzgIOp2CNgx0EAXfE6y1Npk X-Received: by 2002:a50:e0cf:: with SMTP id j15mr26218348edl.23.1635161964738; Mon, 25 Oct 2021 04:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635161964; cv=none; d=google.com; s=arc-20160816; b=uexDzV+IJFAprDszQ4ORo6kJp9NZ+5wjh7UsyPq0hzG+srYJJVwh7xILnLNvNNmABk rijP90ONaXgIPvwkTV3el6pweOtUxCTW41pb3oj2ZrQa+Lhv43Xm+y7bIBR4LbL8xGlQ 8BY4cCXxYgBx2xg66kW5K1DjGvRn/QDpajBdmU2J14Xqfj+zPwPQqD6Hjs22imxVwkdl MGGI8z6I0gIDMlA9uQNPS/GbE/xVCeAUF9M4MOFyec6Ic0lXBGx89qTwC2wAn5QoCMqM 1Twx6zelV3/MaVdG5Bz8YZlAyVqAiViII5+C1NYJlmVlsBtH6aTr1XOGeeCvK5SX1CFG RLCQ== 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=716shbgGMma/VdWgBLnXtBaiv+CdVe32+vnXxmMr+Y0=; b=z7IR/a+rJf9+NYwC4oQ6J4RR3bX0frzzaMr5QKFJeo1XvfEP2iZMvXyK1QYC82lhID N1GhsU0J9REEHbLVVDh7Gg53Bq/4FXoVm2S3OqBWF9R1bBE/Ow/6Z6b7ueo0SMpOZ5Jl iPTVrWMGNuizChzWcRKe6J4BLG6MxM6zpkH1r39otJ7NkrxIM4CoGUSrjID2nCZddQLP Ej5WODqy+Imleh1WUvMVV2KdgrU5h7bKoSQC+2t8bjTyJwQ0fMKYVlpfFveFrihncmj+ 69Tk9C4HdJaMFYkFlmSwcCR6Vla04SRgqVe2MwJrCMwajKE3StWW3eaNhXp9X9m0dnp3 yQpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=B9RUgkzM; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=icaaKrvE; 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 f8si30750152edf.472.2021.10.25.04.38.41; Mon, 25 Oct 2021 04:39:24 -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=B9RUgkzM; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=icaaKrvE; 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 S232983AbhJYK4x (ORCPT + 99 others); Mon, 25 Oct 2021 06:56:53 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:58119 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232702AbhJYK4v (ORCPT ); Mon, 25 Oct 2021 06:56:51 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id EBC5B58052B; Mon, 25 Oct 2021 06:54:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 25 Oct 2021 06:54:28 -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=716shbgGMma/V dWgBLnXtBaiv+CdVe32+vnXxmMr+Y0=; b=B9RUgkzMkLn4rCLMAv+ZnQ7sIPOAE l9P3lw4VSJqlIwCaadlYLpKQYPtJ7TthgY30zoPu1QpEo5uxuqasIyvbbbucdpxE TqcROz8xTT6gxrPMJ88Ywb5uAXURlX46kb8lnyuWhgwFBaIMc626OssrlaHduZPz NJTpEhK7Xsr8LVFB7vV2i4FWEF6pyZoiBv4Z7Raq6bAP//XTOhPSjgYJLNFJBSmg O6O7FRufHGISlQiL2GSr3TqMsp9ysX1coF1cOFbBVl2R+iBuG8QqTUZau6vs9dmY WsId9O2k8x85Ez2B2EpLXErYviytaZ3aETQp0BG9Ecrcew30rquZBBvcg== 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=716shbgGMma/VdWgBLnXtBaiv+CdVe32+vnXxmMr+Y0=; b=icaaKrvE VIW4jlwvE+NTDaViHcESPEvwprQkLV7zFNakg3u7XxlWF3LYeNya2rB8AP2rOPKM /0JjGpfiFqIhSwBJE+afdv2PH7jetISLn9biarIZvxMxwpgSUzvRlAV+TTX2h+/k QU3BgDQyRESvEcGJoVh6TxrXYd1ZnA60+AbhL7ohdbxHN689eyQCxRZwQDn6dCV1 LLb9g8G0qxICOVabSu3BZLdthO3XqXu2fqS9oZAh2mQhsqmkPbCdbSnerpQX0tdc aQ9d4XkUbvjYahaWAtWQRxtt1SFHgTUst2j0EsTsP0F6lfEZYcpRuLiSVrUkP/W7 IhCuk5iVOBgLGA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefhedgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeggedtteejke eggeeugfehueevudegvdetjeeviedugedvtdekffekhedtteduhfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Oct 2021 06:54:20 -0400 (EDT) From: Alistair Francis To: robh+dt@kernel.org, kernel@pengutronix.de, lgirdwood@gmail.com, lee.jones@linaro.org, broonie@kernel.org Cc: s.hauer@pengutronix.de, rui.zhang@intel.com, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, amitk@kernel.org, shawnguo@kernel.org, alistair23@gmail.com, devicetree@vger.kernel.org, linux-imx@nxp.com, andreas@kemnade.info, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Alistair Francis Subject: [PATCH v14 7/8] ARM: dts: imx7d: remarkable2: Enable silergy,sy7636a Date: Mon, 25 Oct 2021 20:53:08 +1000 Message-Id: <20211025105309.37942-8-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211025105309.37942-1-alistair@alistair23.me> References: <20211025105309.37942-1-alistair@alistair23.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable the silergy,sy7636a and silergy,sy7636a-regulator on the reMarkable2. 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..b66d28b30d75 100644 --- a/arch/arm/boot/dts/imx7d-remarkable2.dts +++ b/arch/arm/boot/dts/imx7d-remarkable2.dts @@ -22,6 +22,27 @@ 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"; @@ -51,6 +72,33 @@ &clks { assigned-clock-rates = <0>, <32768>; }; +&i2c4 { + clock-frequency = <100000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_i2c4>; + pinctrl-1 = <&pinctrl_i2c4>; + status = "okay"; + + epd_pmic: sy7636a@62 { + compatible = "silergy,sy7636a"; + reg = <0x62>; + status = "okay"; + 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>; + regulators { + reg_epdpmic: vcom { + regulator-name = "vcom"; + regulator-boot-on; + }; + }; + }; +}; + &snvs_pwrkey { status = "okay"; }; @@ -125,6 +173,20 @@ 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_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 -- 2.31.1