From patchwork Thu Apr 7 16:20:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Caron X-Patchwork-Id: 12805492 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 250BBC433EF for ; Thu, 7 Apr 2022 16:36:26 +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=r+IapxtNnGWxFIMSU5eWAaxC7ZtM5J70IAeuhSmAxK8=; b=GtySnj1Sbxeyhj DDFGp4p5alQsfO9lgXT0GHAh15iidkAFhmFjDVY0mu29dqHwXEC+09ngAAVFHoS/BcLAADR0VQ+l+ C5TSg6U4fukmtHdopwTa++W+CsNUSjDOkGNB1X+lvCZA+R4ScExYvI1dHMyjXJePzv5pE7H8WJhfb EJ1vMFHTQ6BtTIih9uoRwd5+zcHZsGt2GtiXe2MBhJJlW1Vn6H0W0IsYUHssa1+WjjmhDvYLhdPqE rAxa1svRgEG4oEygwjazPzKfAEvNZD33pp9loZ4iiPjEXSYc/jonAkWPUyOJzoCcyBOkTgAq2zGdL 2vnp1twHkYIm/MxJKSiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncV62-00D6Xa-DC; Thu, 07 Apr 2022 16:34:58 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncUsl-00D1Rc-1r for linux-arm-kernel@lists.infradead.org; Thu, 07 Apr 2022 16:21:17 +0000 Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 237Aq1HB000624; Thu, 7 Apr 2022 18:21:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=UVkF1Bcf9hpHGFk32BlULgFhoGv/Na+BE/LaIs1dpXY=; b=JM7qiOt4ZeweUv+HHbWQ0CbzixBwWZ05Sgx2tn1XTyL0tCTJiFYJ6dWg3xpEZxS4lHck IrSNHK0OasclWU5tk50kv1LXA2eVEr3BLm6oV03QkShtrZnFz6o0A7IHJvKklAUXS1ne fdrTXJ2chKSZYvnnf04hK5NJQZT/kAkxx4zjv+0R0qGl8fMSYVQ9+f3UI3NKBp56/H/l RdGW5uxV/Fe7A23MH/XE5mil1h7A39slraKfo0enZ3M0vS0MuBn/7iIBUjqbW8zTnTd6 UUpNVQbugrF8KlG/waBSNp3MRct5jurrbdQ8+aoY/WsKb6fsQZXJlc1/PaCL8UmXMuXv fA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3f9wr7jaqq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Apr 2022 18:21:04 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 91AAA100034; Thu, 7 Apr 2022 18:21:03 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8A22D220FBF; Thu, 7 Apr 2022 18:21:03 +0200 (CEST) Received: from localhost (10.75.127.46) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Thu, 7 Apr 2022 18:21:03 +0200 From: Valentin Caron To: Alexandre Torgue CC: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Erwan Le Ray , , , , Subject: [PATCH 1/2] ARM: dts: stm32: add RTC node on stm32mp131 Date: Thu, 7 Apr 2022 18:20:41 +0200 Message-ID: <20220407162042.361956-2-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220407162042.361956-1-valentin.caron@foss.st.com> References: <20220407162042.361956-1-valentin.caron@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-04-07_03,2022-04-07_01,2022-02-23_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220407_092115_462409_1E1A4C73 X-CRM114-Status: GOOD ( 14.92 ) 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 Add RTC node with compatible, clock, and interrupt properties on stm32mp131. Add clk_rtc_k fixed clock for RTC. Signed-off-by: Gabriel Fernandez Signed-off-by: Valentin Caron --- arch/arm/boot/dts/stm32mp131.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index 1708c79b5254..9b1c87edd613 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -75,6 +75,12 @@ clk_pll4_r: clk-pll4_r { compatible = "fixed-clock"; clock-frequency = <99000000>; }; + + clk_rtc_k: clk-rtc-k { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <32768>; + }; }; intc: interrupt-controller@a0021000 { @@ -218,6 +224,15 @@ iwdg2: watchdog@5a002000 { status = "disabled"; }; + rtc: rtc@5c004000 { + compatible = "st,stm32mp1-rtc"; + reg = <0x5c004000 0x400>; + interrupts-extended = <&exti 19 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk_pclk4>, <&clk_rtc_k>; + clock-names = "pclk", "rtc_ck"; + status = "disabled"; + }; + bsec: efuse@5c005000 { compatible = "st,stm32mp15-bsec"; reg = <0x5c005000 0x400>; From patchwork Thu Apr 7 16:20:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Caron X-Patchwork-Id: 12805491 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 3E23DC433EF for ; Thu, 7 Apr 2022 16:35:56 +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=R4ay2EkcEmUCsacogKPGpHR4PrsQK8tzFp7uQ4F6XXU=; b=ldACNPZrCW+Rru OW/HyZc5XoiyK4Wc4CHuSo185zF1NMBguc9JG8Lco+s9j16oduAvOYTYzt5w4wS9NfAMENCZmUUT9 RHI265JVzPOWFzPoKkHXowD/AyAhyxGBSjFdbNx7n5DuuD/BsmbLmI+3S8O27KDEeKgbESCybFuNr DVjnNDhrOHor5NAp4RF9rVpM/uiEHhw2/HcMm1QWkW4E1p8jMFSVkmW9kUklmXJtFFXUtCs5U9aTh 6+DHk/pHhxOh0sNrz5Vvdhl/oO8SplU1lX+JC4LbFgFBxhurzGJgu33MJVW5zo7fVnwYCbnezWx7h KSWIzNAbFg9loS5KBmLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncV5R-00D6KC-VY; Thu, 07 Apr 2022 16:34:22 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncUsk-00D1Rp-9w for linux-arm-kernel@lists.infradead.org; Thu, 07 Apr 2022 16:21:17 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 237Aq0QP009479; Thu, 7 Apr 2022 18:21:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=XfltJw1CYRYQY5rCNwXXEbxEqZsDdxoba5evrOSDgng=; b=0+LUmftTpQGAl7M0uoJXEosql9RxYaH86Hg0f1f+WspDQX2TKsUhcMnfrJm1GH5Unps2 FfPxT+q2/8fWfp82pe4phplkEVvqMI3OBRSt/wzLXuBSMcNo6PCEkg0nDsieqtlwUcTo FSjH2l7RKmLs6JdtFr4VUrZRMf2MEwt0bymp0hK/pI5g16Tf5fA4ufWz1twqotIcuZId IqV6CZdMV+gp0tW3xFHjesKpMCZtwh+EqeRhhshm6HwrKolXDIO6o2KSUdy8rN1+8q5Z OXxRvO7UFLE/Mu20FLYdYyHfOo8siOsZemflCR8EM2C1/ZzehZY/LMrH2+zMAo1LLMx7 PQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3f8x4rne80-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Apr 2022 18:21:05 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8BD3B10002A; Thu, 7 Apr 2022 18:21:04 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 842CA220FBF; Thu, 7 Apr 2022 18:21:04 +0200 (CEST) Received: from localhost (10.75.127.45) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Thu, 7 Apr 2022 18:21:04 +0200 From: Valentin Caron To: Alexandre Torgue CC: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Erwan Le Ray , , , , Subject: [PATCH 2/2] ARM: dts: stm32: enable RTC support on stm32mp135f-dk Date: Thu, 7 Apr 2022 18:20:42 +0200 Message-ID: <20220407162042.361956-3-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220407162042.361956-1-valentin.caron@foss.st.com> References: <20220407162042.361956-1-valentin.caron@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-04-07_03,2022-04-07_01,2022-02-23_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220407_092115_259117_3053AF48 X-CRM114-Status: GOOD ( 14.78 ) 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 Enables the support of RTC on stm32mp135f-dk board. Signed-off-by: Gabriel Fernandez Signed-off-by: Valentin Caron --- arch/arm/boot/dts/stm32mp135f-dk.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts index ee100d108ea2..aefa25ee897d 100644 --- a/arch/arm/boot/dts/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts @@ -37,6 +37,10 @@ &iwdg2 { status = "okay"; }; +&rtc { + status = "okay"; +}; + &sdmmc1 { pinctrl-names = "default", "opendrain", "sleep"; pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>;