From patchwork Sat Sep 24 17:46:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12987791 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 B0749C07E9D for ; Sat, 24 Sep 2022 17:47:23 +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: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:In-Reply-To:References: List-Owner; bh=CGZmx9byV+pgWvPihKSG27gSyX/aAxLSWGlCr7D8GCk=; b=cb5C2shQG7C2b6 q0eDZg7cAzO2O+8uNzyRbm/o/oTiS53OPjlSM8ZYgKHoQ2A6oGfQ69lvUzLiCC+w2OzDOiYnqh6s+ 4ybxZkAQNLwgx5KHzgINTJvF9I0jPci6txJoBr7kbMPkDKuUowqDIdj418yjs9CSL0jYIM+wlEUBx xHkvA9WenUuEVMGJsGnczlDcTnmeGD5SbZsYdQJ/B0GCqASCjdZOgP+yfNgus7b7Bv/IEdGwHgPwg IcNMSyYts3w/2X7HCklLQgKGYl+6f8fbeWWizYLMfO/JkjPuXM3L1og3BiLuLI1MFywpoAJvIpmcq iY+h5g33zBRfJghlQLCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oc9EH-008JtK-Cu; Sat, 24 Sep 2022 17:46:17 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oc9EE-008Jqd-1Y for linux-arm-kernel@lists.infradead.org; Sat, 24 Sep 2022 17:46:15 +0000 Received: from tr.lan (ip-86-49-12-201.bb.vodafone.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id A1C488495E; Sat, 24 Sep 2022 19:46:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1664041568; bh=Q5XAJ7Z59HLYOL+quvSWlAV7E0DRFL9X4f6rwrHIM4E=; h=From:To:Cc:Subject:Date:From; b=wmtZ7UaUjIKVXfBzcdADMm6aij0sFCZQpSLWlAGZpPKw89/ZUwSymx8POE0vQwXM+ HgfSdXacEmmBWWiXjpAa1umTbOrj0IjTS+aKap7lrnm0/3ztbIw22HBwyoqqN39tcf smssDoC/6i1NuqVabpxWmo1aFGmDln8j0yPQC5egYeqBmXYbLrTZA/SvUK6+yABekB +NBInN2zN25RrpIHTkHBIEj5X4nLZz9CvyeKaq0DsGyL3/LL7tqyFxp1o9E6nTQfP4 kJrPF8tBZRGYf6K8Y7pEL15cyQeePnqWbfPrEJSPpCp3y4O1l1asKe1LW4v1VUchvy WEeV3T/N04QEQ== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Fabio Estevam , NXP Linux Team , Peng Fan , Shawn Guo Subject: [PATCH] arm64: dts: imx8mm: Model PMIC to SNVS RTC clock path on Data Modul i.MX8M Mini eDM SBC Date: Sat, 24 Sep 2022 19:46:03 +0200 Message-Id: <20220924174603.458956-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220924_104614_275931_208ACC52 X-CRM114-Status: GOOD ( 11.01 ) 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 The PMIC is the 32 kHz clock source for the RTC_XTALI input of the SoC on this system. The RTC_XTALI input is used to supply 32 kHz clock to the SVNS RTC per "i.MX 8M Mini Applications Processor Reference Manual, Rev. 3, 11/2020" page 759 "The 32KHz XTAL module uses a different IP and it is used as the clock source for the RTC, located in the SNVS." The PMIC has its own dedicated 32 kHz XTAL on input. Model the connection in DT. Signed-off-by: Marek Vasut Reviewed-by: Peng Fan --- Cc: Fabio Estevam Cc: NXP Linux Team Cc: Peng Fan Cc: Shawn Guo To: linux-arm-kernel@lists.infradead.org --- .../dts/freescale/imx8mm-data-modul-edm-sbc.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-data-modul-edm-sbc.dts b/arch/arm64/boot/dts/freescale/imx8mm-data-modul-edm-sbc.dts index 6ff30cbb32fb2..575d5632296c5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-data-modul-edm-sbc.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-data-modul-edm-sbc.dts @@ -53,6 +53,12 @@ clk_xtal25: clk-xtal25 { clock-frequency = <25000000>; }; + clk_xtal32k: clk-xtal32k { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; + panel: panel { backlight = <&backlight>; power-supply = <®_panel_vcc>; @@ -276,6 +282,9 @@ &i2c1 { pmic: pmic@4b { compatible = "rohm,bd71847"; reg = <0x4b>; + #clock-cells = <0>; + clocks = <&clk_xtal32k 0>; + clock-output-names = "clk-32k-out"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pmic>; interrupt-parent = <&gpio1>; @@ -942,6 +951,10 @@ &sai5 { status = "disabled"; }; +&snvs_rtc { + clocks = <&pmic>; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>;