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: 12683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1275299wru; Sat, 29 Oct 2022 03:08:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5j71PISJmNY5DCM0TsFkASO+6/OgYgQrM1DaQ5u0pDQFwIByPHJ7Y7WnubsLVwMHDJQbBQ X-Received: by 2002:a17:906:8475:b0:7ad:c04:d3cf with SMTP id hx21-20020a170906847500b007ad0c04d3cfmr3115273ejc.463.1667038131428; Sat, 29 Oct 2022 03:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667038131; cv=none; d=google.com; s=arc-20160816; b=l4g9Z7JR1D3NFZ+2rGa9F6/jJ3mnArPitPdoaJT6KqClxz7qg2Fmgj83x7PSCqWHbp fz++ln6kwUrpY8JNPrHb3YS2Z8ue6x2oGkS+Y+NGDdLr0K7qEjdT76vH2u3IQZJ1CKOM +eAllBuNIH+JDRkaPQmdYRQwEMDjhdmMCGwwyxN4vkkadLv0bqXTkooxDQm+Q9ISIi/K zej47JiU2M+HLBrqQ8oX7o0oMpNLbAxE4mHBsCYjm0KMy0kB1ADQzik5P9PQXjC3k/68 fYlUmRxJbkuOLrV7yGzHDvcddUcyeA3zOR6AK+Vqm96F5Wnrl29nEB+hN1b5B4cix2tf EFnw== 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=ii5FrCn9Wh+rrZgHgZM99N/eK/RiQhzg3xDbaGnZMmg=; b=QaHIYJtQ6rkEqHpkuCNPeCRXK2/8+hF8a/A53RyK55U1uvZGSa+9oLWdDX2szp0lSz AXfSpOpCdy5HUTP4XrdgADYy8ZSX1QcFdx06be7q8H8qEnVFQtVBg0h9GUgfb8UaDGed iJujlAqMdyGTO+0n4FKxNSKCFynck6TIi3wp2Xsw25yPh9fadcQ0mQGCyj0E/YkKNgAJ rbnb7ZmrxKjdSX/QPbl0PKjD52SVaYg+xiKy7SRUNZ0b7uuy3o88AgEZnWERiivs+/qX WM/yL0afnMvQC/hkJG5GAagsukEGJV1uiUEDprZyjShSnhjsPfYINOntY9madycrkDEj Ik0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=V5X78iF7; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=JPAL25Hg; 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 dm21-20020a170907949500b0078797f6668fsi1189626ejc.364.2022.10.29.03.08.27; Sat, 29 Oct 2022 03:08:51 -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=fm3 header.b=V5X78iF7; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=JPAL25Hg; 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 S229826AbiJ2KHf (ORCPT + 99 others); Sat, 29 Oct 2022 06:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbiJ2KHa (ORCPT ); Sat, 29 Oct 2022 06:07:30 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A69D715B122; Sat, 29 Oct 2022 03:07:29 -0700 (PDT) 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-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 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?1748016175760626009?= X-GMAIL-MSGID: =?utf-8?q?1748016175760626009?= 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