From patchwork Mon Oct 24 10:58:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 13017093 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 5AB59ECAAA1 for ; Mon, 24 Oct 2022 11:00:41 +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=D3XsezmgJT1EzA73bItsfe8tmDq14/oG/gPmSqUrF1E=; b=E/ATtDn1WUUR7C VDVBdkWerFSnT2QUVrBBDg0LPId+C2gUDVlJn/pHhS+g0bNswy0/dehnE64dMQ96C28yqVRD4C41C ztSo5qeZYBJlzUTevidWbQBSCdzEnxaVY5h0qMTFcyHgiK1lUyldLHde76D/O93XC85ys78EKV7Bo PivJK9gU/VL7vn1qkk3NIzLeo7ZiGogdbo637lcGmECiMC2MAIneTV93hnFtrKrIoK2Qj83tf5/FI 759EVayQ+DlVWLBVShhs9/VitpwvONAw/nlZ2yTdoOvQA05rdNnn0kRtX67GdXNaMLpJOwEu7qHvb ca544fJmH9GGMo69SdRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1omvB6-000r59-GY; Mon, 24 Oct 2022 10:59:32 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1omvB2-000r4a-QK for linux-arm-kernel@lists.infradead.org; Mon, 24 Oct 2022 10:59:30 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id E0DFA320092A; Mon, 24 Oct 2022 06:59:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 24 Oct 2022 06:59:28 -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=1666609166; x= 1666695566; bh=HioUTKH/gMS5qyttlzjqQsvRU9RhAydG5MP0WHmr/Lg=; b=q Xu52qz8YzWkXlaYCrdfwwIBrXy8rLcyhJv5a5lJwf7ANsagTvthus4zEN2/tQPzU G0kts4Q/tUnyPWPMflt1SVhg361XQzMIgXzmWJFMX6GrWEVyM72UvKUk6e9LS3bp AUz5DN1aKqxzfmCuq/dcaxxu0TuGqMFg/b3zKGeJFtNe2ODvsmMzcpMDhQCjsQwy fMhYcBJNQftVDuuT1KZUWKGF51Xd4ObnuVy9GlZIoGq1ySEWtgWySLymybkdf0vx oZcFbayIpLSPMh2rZ2DHuZnwyRwhCpDCeUeVCYUeq2wwoW5q9Gd4qFat8q6dsxpo RPt46C1gR1BIVSKnZkaIg== 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=1666609166; x=1666695566; bh=HioUTKH/gMS5q yttlzjqQsvRU9RhAydG5MP0WHmr/Lg=; b=F0CtKzAqDaF9dgaaQiVHDHfJeCIM7 J9KtRv5IlaoMaGFsJxs9ueJNtJMmHtCeKjvMdtoZxe56rCLVzz9nZChY7PlG48RJ cQ+10tmx+PHmI5wwAvGHKT4ndLxURImvNWKOnAfeGGbUfFMnLqYiW26QyK24Li18 dlgOmraJGEjVakrhHSG4nxlWuqUp018PmZ1kCwrIhKqWx+GoD3wI141U+mOBZNMF XRG+2wDuPS9snkbYXuMPhEbPyJhX6gaOfdaxUF71B78oJr0qgClbn+OPueX2BgF2 4GTTmfw3XLobwIB9Zis1gwMHjPtkxxdIQk0Dtu8F94cPPB0QZANqJeLhA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgedtgedgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishht rghirhesrghlihhsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepiedtfeekte elvdelveevueeujeffuefguedvteekveejjeeutedufeethffgheehnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlihhsthgrihhrsegrlh hishhtrghirhdvfedrmhgv X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Oct 2022 06:59:15 -0400 (EDT) From: Alistair Francis To: kernel@pengutronix.de, robh+dt@kernel.org, lgirdwood@gmail.com, lee.jones@linaro.org, broonie@kernel.org Cc: linux-arm-kernel@lists.infradead.org, rui.zhang@intel.com, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, alistair@alistair23.me, geert@linux-m68k.org, linux-pm@vger.kernel.org, andreas@kemnade.info, amitk@kernel.org, linux-hwmon@vger.kernel.org, shawnguo@kernel.org, alistair23@gmail.com, devicetree@vger.kernel.org, linux@roeck-us.net, linux-imx@nxp.com Subject: [PATCH v22 1/2] ARM: imx_v6_v7_defconfig: Enable silergy,sy7636a Date: Mon, 24 Oct 2022 20:58:52 +1000 Message-Id: <20221024105853.42029-2-alistair@alistair23.me> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221024105853.42029-1-alistair@alistair23.me> References: <20221024105853.42029-1-alistair@alistair23.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221024_035928_898846_3880869E X-CRM114-Status: UNSURE ( 7.02 ) 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 for the reMarkable2. Signed-off-by: Alistair Francis --- arch/arm/configs/imx_v6_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 078d61b758a9..81b0c674977f 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs/imx_v6_v7_defconfig @@ -222,6 +222,7 @@ CONFIG_RN5T618_POWER=m CONFIG_SENSORS_MC13783_ADC=y CONFIG_SENSORS_GPIO_FAN=y CONFIG_SENSORS_IIO_HWMON=y +CONFIG_SENSORS_SY7636A=y CONFIG_THERMAL_STATISTICS=y CONFIG_THERMAL_WRITABLE_TRIPS=y CONFIG_CPU_THERMAL=y @@ -237,6 +238,7 @@ CONFIG_MFD_DA9062=y CONFIG_MFD_DA9063=y CONFIG_MFD_MC13XXX_SPI=y CONFIG_MFD_MC13XXX_I2C=y +CONFIG_MFD_SY7636A=y CONFIG_MFD_RN5T618=y CONFIG_MFD_STMPE=y CONFIG_REGULATOR_FIXED_VOLTAGE=y @@ -250,6 +252,7 @@ CONFIG_REGULATOR_MC13783=y CONFIG_REGULATOR_MC13892=y CONFIG_REGULATOR_PFUZE100=y CONFIG_REGULATOR_RN5T618=y +CONFIG_REGULATOR_SY7636A=y CONFIG_RC_CORE=y CONFIG_RC_DEVICES=y CONFIG_IR_GPIO_CIR=y From patchwork Mon Oct 24 10:58:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 13017094 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 78E3FFA373E for ; Mon, 24 Oct 2022 11:00:45 +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=Jzvt0Y7BEXjc7g7OMT8WC48f9XrSkxaq7Gy4SjHQykE=; b=nWl4I1ccjqWMN+ YCp6+BuP/Fv6WudhCgZv0QaoMhHYAZUD/GPN3Pul/tahMbcHQco7DPxNv1SqeDlM6C+PQo9dG4IpZ 1KSeQ6zp7+vbv62jbzbPF+JTMKFICq+lsUYfGDm2BFZDaF+TiOptAIX+eMWBTTtRE35DCwHSW7NL6 GW+FwTkD09NLCn1CaOTCUpkrTOWfdXXlmIZR4McFQX1+1k+67HWH97ejN2J7oCcJeA3YJeqJ7K//J flwQEKSKSKu8yDeVd6R8IN/mAgMfTSemeeRAlH0Izuo6/SMVBRGYQ9Tyxb8dYhf6bvSwyQgRMofc/ /GRrdq2UKXXpqcgF/S3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1omvBJ-000r6s-4t; Mon, 24 Oct 2022 10:59:45 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1omvBG-000r6A-RQ for linux-arm-kernel@lists.infradead.org; Mon, 24 Oct 2022 10:59:44 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id EB9C03200934; Mon, 24 Oct 2022 06:59:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 24 Oct 2022 06:59:42 -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=1666609180; x= 1666695580; bh=WtF7brqaST2GwwLvq7GRwjaSjzpeKdkIeOWWaUmlpn8=; b=I C9UtGz0VNgAKqxhoj2xaeT3tp62mEnE3pokLkFI2iO8fYlCFz7C0MrWv6hu9Nyzq 1Yf3Ks00ibzTXBPQxY1DcCMTtS02Sn9syFIWR0ow/r4n0s6Z7NCfiQf9tJyjicEF oxOcifClF9PUI4geihBKs32F+bVjSYLyd8hYvIejKH7eOHjp+ZUK8hJyW0RiszML SQeYPfx6zl4dBnvCJZFYlAKLaLFSBhVqgea1mafKss+0bd7Pv5vTxfx+bvGkTv3J 4GytCQEeEz0SXOeLDjoBeucdGThG4h7BskbgXtKgs/7MwN08PZwlung8/VslywzV KBCpabJ7PrKYGGoEypYjQ== 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=1666609180; x=1666695580; bh=WtF7brqaST2Gw wLvq7GRwjaSjzpeKdkIeOWWaUmlpn8=; b=WY+qrGSzipdwOEN0Dv5pU2DEfrDmz J+leogpHmknYRA40KMFr21D7WOuIPckczCVOzpmtC8dXMFwZAgvwjZZVEXQjyZyd 8TihtdS6wUfkb2LbYz0CmjI+AtDLniR2w2cLVqfgAbmt4B3nczlBtoVjoXL1HUCZ PASsW31IpKoVy8kK9CoIRO3thaGHY8yY4gD8d04m9mQkd/+RzR7PkYLigzAMTUN+ 7NXuFUNCWmbExAN8HuydkAw8JWZ3iF3Dx+6SH7fxqhrbH+8jQV6+GouolQotUcyf 9y/NEYaEXuwkDJzKs8QfUc+ocRVK1P5yGdhNtk6mEcPyQKV0IhotqEL9Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgedtgedgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishht rghirhesrghlihhsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepiedtfeekte elvdelveevueeujeffuefguedvteekveejjeeutedufeethffgheehnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlihhsthgrihhrsegrlh hishhtrghirhdvfedrmhgv X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Oct 2022 06:59:29 -0400 (EDT) From: Alistair Francis To: kernel@pengutronix.de, robh+dt@kernel.org, lgirdwood@gmail.com, lee.jones@linaro.org, broonie@kernel.org Cc: linux-arm-kernel@lists.infradead.org, rui.zhang@intel.com, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, alistair@alistair23.me, geert@linux-m68k.org, linux-pm@vger.kernel.org, andreas@kemnade.info, amitk@kernel.org, linux-hwmon@vger.kernel.org, shawnguo@kernel.org, alistair23@gmail.com, devicetree@vger.kernel.org, linux@roeck-us.net, linux-imx@nxp.com Subject: [PATCH v22 2/2] ARM: dts: imx7d-remarkable2: Enable silergy,sy7636a Date: Mon, 24 Oct 2022 20:58:53 +1000 Message-Id: <20221024105853.42029-3-alistair@alistair23.me> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221024105853.42029-1-alistair@alistair23.me> References: <20221024105853.42029-1-alistair@alistair23.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221024_035942_934806_6867FDE6 X-CRM114-Status: UNSURE ( 8.63 ) 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 | 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