From patchwork Wed May 4 13:06:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Caron X-Patchwork-Id: 12837897 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 3B6F0C433EF for ; Wed, 4 May 2022 13:11:00 +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=PZwha/IqXIP7sCgfnuTawJJlA0bu6pbntQno0XUswnU=; b=phV5JtiosS4WYr bvR4CVzaAb/qwkll1xXcNCln/OI/S63by7eL4dF3TxmycdI5KoqbRWOjMvomAAvdEaYKCXYi2NMk9 BQZVWJ5zVfPdsKPNiJYZVCi7YfYtF9mVS9as2DPyKd737yZBnzezqoouLbq43yiyc6H4DPziWR5x2 0M4f8Gc/0VBQcd5YNESnuHQHkeo/tLK731sSbXEwcJHvKcIfTMOLeVm4i3EFt/NUh53VfaFARdh+F XfcptWl96Iaihf+GO6PiHlV4gbWvU83qoe5kzYhn0vdNs7GMOlUHY3LUp2eTp7TIoHmRMDND1N6AA uwJ6qYrl5tV0yF4hrNMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmElL-00Awh6-MW; Wed, 04 May 2022 13:09:52 +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 1nmEiL-00Aujs-R4 for linux-arm-kernel@lists.infradead.org; Wed, 04 May 2022 13:06:49 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 244AJIiR016142; Wed, 4 May 2022 15:06:39 +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=uvyvFJ3edAMWCwWEufzm4/XCnqWS5WHxol0Tj09jLdk=; b=1NWlkMbxab/QmiwAzlsr/PAPq+tX+NwPb7jUb5HGpXCyh9it5AAC0PNhBWp5dYE3/4P9 kQ+Zon5d+Jpp4KVlOBXRmy/VNmMWUaL3BrT0PHJkSZ7vnkY6w2RKdWffNXKWLGk14DWS 1UPcR2Plhaqfn9DCak5X0eVLUQX2EzmvoXz/o3ZuDCT1ScQsJkGbsS1DzitZs07b82oJ RLLQZ48gzzCTJxK2/8I1Gv1COogUtVYOoTk5YmgdAVi9a1tGQC5Hoz1s6UsRITCz3qBm bAcb6DZYUuy2RXrIvQxnqsc7eS/xrugG7TQz+o5DuD5lNYopRkbQJBNU4bXUiw0jrgPe Zg== 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 3frvf0m59y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 May 2022 15:06:39 +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 3448D100034; Wed, 4 May 2022 15:06:39 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 2D41D21FEAA; Wed, 4 May 2022 15:06:39 +0200 (CEST) Received: from localhost (10.75.127.44) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Wed, 4 May 2022 15:06:38 +0200 From: Valentin Caron To: Alessandro Zummo , Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Alexandre Torgue CC: Gabriel Fernandez , Amelie Delaunay , Valentin Caron , , , , , Subject: [PATCH 5/6] ARM: dts: stm32: add RTC LSCO support on stm32mp157c-dk2 Date: Wed, 4 May 2022 15:06:16 +0200 Message-ID: <20220504130617.331290-4-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220504130233.330983-1-valentin.caron@foss.st.com> References: <20220504130233.330983-1-valentin.caron@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.44] 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.486,FMLib:17.11.64.514 definitions=2022-05-04_04,2022-05-04_01,2022-02-23_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220504_060646_233724_CAB6ACD5 X-CRM114-Status: GOOD ( 17.12 ) 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 From: Gabriel Fernandez Add LSCO support on stm32mp157c-dk2 board. LSCO output is mapped on RTC_OUT2_RMP (PI8), directly routed on LPO_IN pin of Wifi/Bluetooth module. Signed-off-by: Gabriel Fernandez Signed-off-by: Valentin Caron --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 6 ++++++ arch/arm/boot/dts/stm32mp157c-dk2.dts | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi index 6052243ad81c..c65d1ea8b614 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -1244,6 +1244,12 @@ pins { }; }; + rtc_out2_rmp_pins_a: rtc-out2-rmp-pins-0 { + pins { + pinmux = ; /* RTC_OUT2_RMP */ + }; + }; + sai2a_pins_a: sai2a-0 { pins { pinmux = , /* SAI2_SCK_A */ diff --git a/arch/arm/boot/dts/stm32mp157c-dk2.dts b/arch/arm/boot/dts/stm32mp157c-dk2.dts index 2bc92ef3aeb9..a1eda91bc2e3 100644 --- a/arch/arm/boot/dts/stm32mp157c-dk2.dts +++ b/arch/arm/boot/dts/stm32mp157c-dk2.dts @@ -11,6 +11,7 @@ #include "stm32mp15-pinctrl.dtsi" #include "stm32mp15xxac-pinctrl.dtsi" #include "stm32mp15xx-dkx.dtsi" +#include / { model = "STMicroelectronics STM32MP157C-DK2 Discovery Board"; @@ -92,6 +93,12 @@ ltdc_ep1_out: endpoint@1 { }; }; +&rtc { + st,lsco = ; + pinctrl-0 = <&rtc_out2_rmp_pins_a>; + pinctrl-names = "default"; +}; + &usart2 { pinctrl-names = "default", "sleep", "idle"; pinctrl-0 = <&usart2_pins_c>;