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: 1571609 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-rtc-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4JJFmB1zynz9t4b for ; Tue, 21 Dec 2021 23:15:54 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237461AbhLUMPw (ORCPT ); Tue, 21 Dec 2021 07:15:52 -0500 Received: from inva021.nxp.com ([92.121.34.21]:51134 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbhLUMPw (ORCPT ); Tue, 21 Dec 2021 07:15:52 -0500 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 Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.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: 1571611 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-rtc-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4JJFmC0ZNhz9sCD for ; Tue, 21 Dec 2021 23:15:55 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237469AbhLUMPx (ORCPT ); Tue, 21 Dec 2021 07:15:53 -0500 Received: from inva020.nxp.com ([92.121.34.13]:59614 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237451AbhLUMPw (ORCPT ); Tue, 21 Dec 2021 07:15:52 -0500 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 Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.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: 1571612 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-rtc-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4JJFmF1DM3z9s1l for ; Tue, 21 Dec 2021 23:15:57 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229436AbhLUMPx (ORCPT ); Tue, 21 Dec 2021 07:15:53 -0500 Received: from inva020.nxp.com ([92.121.34.13]:59678 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237460AbhLUMPx (ORCPT ); Tue, 21 Dec 2021 07:15:53 -0500 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 Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.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 */