Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4007488ioo; Wed, 25 May 2022 12:42:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV4cUTSGEBH1ZL08Gu9lciwk96/HvyO636khuAl4jnStJPzmaMQdH5kbtzUF4RsLItiDG6 X-Received: by 2002:a05:6402:323:b0:42b:c75f:16ca with SMTP id q3-20020a056402032300b0042bc75f16camr5289668edw.305.1653507723230; Wed, 25 May 2022 12:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653507723; cv=none; d=google.com; s=arc-20160816; b=Xfy05cgs0wsPjMMgxkR1TaxfWGIrrOG+XhxiOhsApai6KO85cVGYRCEpAlFeQyKHa3 uNXfMoTi+bqMIRCC9DHkQK+vVdqyJzQR3wuFKWbzYNeZvWVo5WDVSMfkIaJf+cDulsOE XJWcNy9mAcFn+867hVVJA5jIMPwFH5cx4fQKNBVQLgcGkdkd6UTJLo+Qy3fdTprNbAjg EoT9na8z7zvhAdr4ujlxuQgWDit07+4L6eqAP16n+2WAy+AK7pctk681Wz9y3R2bpUSp 5nohiwxYfZ0I4wH0xhbQHRoNYRfPbIMHPCkZN9FdtfJH5nyJc/sU8NHbU89NQ8tkeh4u ydFg== 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=oMGSZjzbX1LP2PGoFYsSrfaJh355mkj0HkJRK8r9QFM=; b=oNHbeHbRug5fk6GrwKcas+JDKy5t0C5QoCZpe/UmIefsIWn7bRqqV/NROwuedG4E0e IRUTwU2uGTIq0gXit5q1gP01AtMcRk722cUO1C4DjSocKZVnPyQIAnKE+k68KO2V/o9/ oniDcTWPuswdO2+eC+CWbIdPSx2MWHvcAyev7A+BweAYnuvCoE99Aaws+ECGsPpVTXJx uy18kvi6bjcfiNNIlOubLnAY9GKuPaobT+3P0Qe/A33g779JHhAFcwvwZU7CcGranAFn NG4N/3Rb6ENbrxTI0VWY44Dm8E1XQC+ItPmkNjCr4xjgHpv1ywwC49elawlCrngzPg85 lHuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm1 header.b=N3WMk9NF; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=OjTUUhSc; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x22-20020a170906299600b006ec0acfe30esi17393195eje.877.2022.05.25.12.41.18; Wed, 25 May 2022 12:42:03 -0700 (PDT) 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=fm1 header.b=N3WMk9NF; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=OjTUUhSc; 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 S239258AbiEYL42 (ORCPT + 99 others); Wed, 25 May 2022 07:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242087AbiEYL4Y (ORCPT ); Wed, 25 May 2022 07:56:24 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D070EE75; Wed, 25 May 2022 04:56:22 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3F7475C0281; Wed, 25 May 2022 07:56:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 25 May 2022 07:56:22 -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=fm1; t=1653479782; x= 1653566182; bh=oMGSZjzbX1LP2PGoFYsSrfaJh355mkj0HkJRK8r9QFM=; b=N 3WMk9NFVaV5ZIIkh1jGR23Sfq8PKuuM+zCveuDI2tlN9krySo9gxFxiJZcfVDdyV OKuBDK3WVSk5kloS+P6A04Fh3tkt5HDQTajmaIHU9ggyWN229Nvc7v0FVhLYK5nm Tnv1MyhBpKbddhOJiwh1uYNOKOhuKJ9XsYZAA8rrVFIXEdHzO00RMe91oPFgQlYb TUTd7QcIPymScizc7HFVAxxoQXuF7ovp10GhcLsmoF55LPQ6aABZLm0OL8qmaBU8 B2nJKGJ58d6qoJYgYBekhpnLP3EIlU3Wt/StBTgsDBrrZY/bYqU7SUx3NN8o5X5u qJG7DiTdj0bsqC0I1nvqA== 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=fm1; t=1653479782; x=1653566182; bh=oMGSZjzbX1LP2 PGoFYsSrfaJh355mkj0HkJRK8r9QFM=; b=OjTUUhScHh0SKedijEow7d6jYh+dT h1KDmakCqK4D+Au9kI7JYjiA7TIhAAHGx1Sas61XifkziQ5YC9C8WuTruUknNGkK HlkpG4NjTgAIDlUdduPunCZvJteqTcuuUTXcsdmr0hpq6nUuYrrHf+qsFnVXNtau aEXUNhSudtGXP6wXynAVOaiMhDCeRfDhkgJV8XHKf0ojsHbiPSGGe4L396x578Q3 BoNdAxTOnzoHUPKY5Bdpi3uUwi6SwZ0CWhhJxQPyWhXnYX7gOumJNpJhMANjwhlM O3Rhj3gDN3Zy5LzazK0Ky+Nk3AzRdVG/YQZb6heDe+3eZiUvo9E/XilXA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeehgdeghecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeitdefkeetle dvleevveeuueejffeugfeuvdetkeevjeejueetudeftefhgfehheenucevlhhushhtvghr ufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 May 2022 07:56:16 -0400 (EDT) From: Alistair Francis To: lgirdwood@gmail.com, lee.jones@linaro.org, broonie@kernel.org, robh+dt@kernel.org, kernel@pengutronix.de Cc: s.hauer@pengutronix.de, alistair23@gmail.com, linux-arm-kernel@lists.infradead.org, andreas@kemnade.info, amitk@kernel.org, shawnguo@kernel.org, linux-kernel@vger.kernel.org, geert@linux-m68k.org, linux-hwmon@vger.kernel.org, linux-imx@nxp.com, linux@roeck-us.net, rui.zhang@intel.com, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Alistair Francis Subject: [PATCH v21 3/4] ARM: dts: imx7d-remarkable2: Enable silergy,sy7636a Date: Wed, 25 May 2022 21:55:53 +1000 Message-Id: <20220525115554.430971-4-alistair@alistair23.me> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220525115554.430971-1-alistair@alistair23.me> References: <20220525115554.430971-1-alistair@alistair23.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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 a2a91bfdd98e..99ac0d242936 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"; @@ -84,6 +105,33 @@ wacom_digitizer: digitizer@9 { }; }; +&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"; }; @@ -177,6 +225,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 +239,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 -- 2.35.3