From patchwork Tue Dec 21 12:15:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 12696974 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 BA2B8C433F5 for ; Tue, 21 Dec 2021 12:17:20 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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=++VB73WNoQYeLZcW+jh4N9nenevDWAB/bMHmzV+wlfo=; b=UKMOhN9YhZ4Fj5 iuqaDc4Ou4lO2UsEUMrzBfx+O/vC3pMRZpmVDqiYEhmpz+jOBLwKsEjpPUhgOYSYsO3M6Q9WEusjR uBjU13Rz8S0ytzOBFUVsRZPb4zQZV/OQUgXfhPQRDiXnYSCIxc8+hG+ikYw2YvCte5KSNGpQZmmUm zoGd84ZN3yJsg5PfIfoAL5jFmhT9Ha1IZVRkUrpwEe3vKyhEBu0M5SbwaUdOb98pCnOVIpLvjkeHq WdA7D1Usn4G+S6ZfEXO4H5n997UK0MBPc2p7o3UhqfY4lLD86qD+GMjS9DRhTQ3g/eHcfhxwC6WmM lxhnbwjHkD1pZ7cboK/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mze3i-006j3o-Tc; Tue, 21 Dec 2021 12:15:59 +0000 Received: from inva021.nxp.com ([92.121.34.21]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mze3e-006iyV-Qz for linux-arm-kernel@lists.infradead.org; Tue, 21 Dec 2021 12:15:56 +0000 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 96A96201224; Tue, 21 Dec 2021 13:15:50 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 896F320121F; Tue, 21 Dec 2021 13:15:50 +0100 (CET) Received: from fsr-ub1664-175.ea.freescale.net (fsr-ub1664-175.ea.freescale.net [10.171.82.40]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 7CF2C203C3; Tue, 21 Dec 2021 13:15:49 +0100 (CET) From: Abel Vesa To: Rob Herring , Sascha Hauer , Shawn Guo , Fabio Estevam Cc: Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, Abel Vesa Subject: [PATCH 1/3] dt-bindings: fsl: scu: Add i.MX8QM rtc binding Date: Tue, 21 Dec 2021 14:15:46 +0200 Message-Id: <1640088948-3690-2-git-send-email-abel.vesa@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1640088948-3690-1-git-send-email-abel.vesa@nxp.com> References: <1640088948-3690-1-git-send-email-abel.vesa@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211221_041555_037298_674526C3 X-CRM114-Status: UNSURE ( 8.29 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add i.MX8QM rtc compatible to the SCU bindings documentation. Signed-off-by: Abel Vesa Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index f1470d562156..4633be2182dd 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -134,7 +134,9 @@ RTC bindings based on SCU Message Protocol ------------------------------------------------------------ Required properties: -- compatible: should be "fsl,imx8qxp-sc-rtc"; +- compatible: Should be one of: + "fsl,imx8qm-sc-rtc", + "fsl,imx8qxp-sc-rtc". OCOTP bindings based on SCU Message Protocol ------------------------------------------------------------ From patchwork Tue Dec 21 12:15:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 12696976 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 D80A8C433F5 for ; Tue, 21 Dec 2021 12:17:36 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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=3QZzx8oBSx2YKDlUB6s63CDOzYDeSHlqAJH0kDN02Uo=; b=rCrURf4Ow5PT1u jspqjkmvx6TmKGav+nzfYUHZ7RNxWU6TPxrWkOaSibTRH/OYA7WeJ2+yIoFIxxf5zIpUytl4uTQiY kEEFN51jJt7o5rIsoQ80a6IDWMdLbKke3D3oiDqnrrbt+VbxgL9/KWLj7+tvSbfk5ex7UJ34nr93v r38/eKaoTA0oLXJT65l5vPmCKw8HYiOeNljnunXKBzkqWTsyblwVAqiPIqa98sHShYMLW3Dh1mMCk i2pKdXWa8Sw3ZZ894do32IVP02P0g4RRQiR/GmlnkYjP10bP6BOQUrYlRsDqd8c9JGGAwX41JtRBX 9RTptUoUMkVwheqfVc+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mze4C-006jFh-UD; Tue, 21 Dec 2021 12:16:29 +0000 Received: from inva020.nxp.com ([92.121.34.13]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mze3g-006j0L-Hx for linux-arm-kernel@lists.infradead.org; Tue, 21 Dec 2021 12:15:57 +0000 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 23E661A1234; Tue, 21 Dec 2021 13:15:51 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 176ED1A050C; Tue, 21 Dec 2021 13:15:51 +0100 (CET) Received: from fsr-ub1664-175.ea.freescale.net (fsr-ub1664-175.ea.freescale.net [10.171.82.40]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 0CB7F203C3; Tue, 21 Dec 2021 13:15:50 +0100 (CET) From: Abel Vesa To: Rob Herring , Sascha Hauer , Shawn Guo , Fabio Estevam Cc: Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, Abel Vesa Subject: [PATCH 2/3] rtc: imx-sc: Add i.MX8QM RTC support Date: Tue, 21 Dec 2021 14:15:47 +0200 Message-Id: <1640088948-3690-3-git-send-email-abel.vesa@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1640088948-3690-1-git-send-email-abel.vesa@nxp.com> References: <1640088948-3690-1-git-send-email-abel.vesa@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211221_041556_777178_4814502C X-CRM114-Status: UNSURE ( 9.68 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add i.MX8QM RTC support. Signed-off-by: Abel Vesa --- drivers/rtc/rtc-imx-sc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-imx-sc.c b/drivers/rtc/rtc-imx-sc.c index 814d516645e2..6828f894e15e 100644 --- a/drivers/rtc/rtc-imx-sc.c +++ b/drivers/rtc/rtc-imx-sc.c @@ -166,6 +166,7 @@ static int imx_sc_rtc_probe(struct platform_device *pdev) static const struct of_device_id imx_sc_dt_ids[] = { { .compatible = "fsl,imx8qxp-sc-rtc", }, + { .compatible = "fsl,imx8qm-sc-rtc", }, {} }; MODULE_DEVICE_TABLE(of, imx_sc_dt_ids); From patchwork Tue Dec 21 12:15:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 12696975 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 9DAE0C433EF for ; Tue, 21 Dec 2021 12:17:30 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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=UyCa271/PM02kDM+2diU3I9zlPbqbun12vHfUb09lYw=; b=o+EkPbHLZ0Foz4 e6EsU2QwXIRaDRH3tiuLklErA3lBG69bK8Cv6dUU22qWA+CyLuVcb4Rv7m++2KUPufHtxVfFwoLDQ KyxF8Bm3oGZnXiXV0nVgGskBAemzP4QE7lAWImPYAr38decZHIpCERIpci2Vqa06bUMZzszNVjSGC a8Tik7LyQQ99htdrCvGjPAjIYCUKqQfmh+M38suEfh1RY1wbKIZoHpC5MXZ1l5CHMaVTKUKuqZjwg PwtPmOI2U1GM5zAOBRlDC6m5qBAQGFKwXz/rMqFuiycobitknaanONS+Si4hzQssFPGRArD75ywJd w9NenKB4fGM79EPArDpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mze3u-006j93-Fu; Tue, 21 Dec 2021 12:16:10 +0000 Received: from inva020.nxp.com ([92.121.34.13]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mze3f-006j0c-4Y for linux-arm-kernel@lists.infradead.org; Tue, 21 Dec 2021 12:15:56 +0000 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A914F1A1998; Tue, 21 Dec 2021 13:15:51 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9C0721A050C; Tue, 21 Dec 2021 13:15:51 +0100 (CET) Received: from fsr-ub1664-175.ea.freescale.net (fsr-ub1664-175.ea.freescale.net [10.171.82.40]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 90532203C3; Tue, 21 Dec 2021 13:15:50 +0100 (CET) From: Abel Vesa To: Rob Herring , Sascha Hauer , Shawn Guo , Fabio Estevam Cc: Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, Abel Vesa Subject: [PATCH 3/3] arm64: dts: imx8qm: Add SCU RTC node Date: Tue, 21 Dec 2021 14:15:48 +0200 Message-Id: <1640088948-3690-4-git-send-email-abel.vesa@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1640088948-3690-1-git-send-email-abel.vesa@nxp.com> References: <1640088948-3690-1-git-send-email-abel.vesa@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211221_041555_342584_B8093F0F X-CRM114-Status: UNSURE ( 8.98 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add SCU RTC node to support SC RTC driver. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/freescale/imx8qm.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index 4a7c017b5f31..9e5de26b01a0 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -201,6 +201,9 @@ iomuxc: pinctrl { compatible = "fsl,imx8qm-iomuxc"; }; + rtc: rtc { + compatible = "fsl,imx8qm-sc-rtc"; + }; }; /* sorted in register address */