From nobody Sun May 19 01:26:36 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC2DEC761AF for ; Tue, 28 Mar 2023 15:49:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232868AbjC1Pti (ORCPT ); Tue, 28 Mar 2023 11:49:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbjC1Ptg (ORCPT ); Tue, 28 Mar 2023 11:49:36 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DC6C198; Tue, 28 Mar 2023 08:49:34 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32SE1gFw005941; Tue, 28 Mar 2023 17:37:37 +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=SzvK1cLP3OVVX9Q34SB1SXBdU4+s87izaRnygm8nHqQ=; b=ytVCVY5OzwIsP6XlIJ0AzjLidchlClt6yZb1wCyS/CoIm48pv2nyVbDpCCPBkz9KlWAv btCZMQv4SbwlGOWU52edtJUgO/YQF2rzMiKcmu+mpn/cHru6uO1pCu5aJAtrBVveDy+V OsCaKWnvEZzv0bwvfIcBhrLETzPKubW59lL2aZ0TelgaE6WPEBVY1L25ZAd+n/pRmLBN cNMqkw0tM/M+ZHdlFMWpw+vCKo9/SOuBYIyf1Tbb+BrrA4HdzcFCFZnDlvv0CB0mqV6j Rr0Pcu+sWCjRb7rGCZkRIbE7ojJojSUQfmus5quS1IqxkSYuMjsAdnzCbT9sB4mX6vFX GA== 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 3pk5xkjtk4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 17:37:37 +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 D56E2100034; Tue, 28 Mar 2023 17:37:36 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id CFAFA2171C4; Tue, 28 Mar 2023 17:37:36 +0200 (CEST) Received: from localhost (10.201.20.168) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 28 Mar 2023 17:37:36 +0200 From: Valentin Caron To: Alexandre Torgue CC: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Valentin Caron , , , , Subject: [PATCH v2 1/6] ARM: dts: stm32: fix slew-rate of USART2 on stm32mp15xx-dkx Date: Tue, 28 Mar 2023 17:37:18 +0200 Message-ID: <20230328153723.498672-2-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230328153723.498672-1-valentin.caron@foss.st.com> References: <20230328153723.498672-1-valentin.caron@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.201.20.168] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-28_02,2023-02-09_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On stm32mp15xx-dkx boards: - Fix slew-rate of USART 2 to 0 like other USARTs, because frequency of USART pins doesn't exceed 10Mhz. Signed-off-by: Valentin Caron --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/s= tm32mp15-pinctrl.dtsi index e15a3b2a9b39..e86d989dd351 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -2178,7 +2178,7 @@ pins1 { ; /* USART2_RTS */ bias-disable; drive-push-pull; - slew-rate =3D <3>; + slew-rate =3D <0>; }; pins2 { pinmux =3D , /* USART2_RX */ @@ -2196,7 +2196,7 @@ pins2 { pinmux =3D ; /* USART2_RTS */ bias-disable; drive-push-pull; - slew-rate =3D <3>; + slew-rate =3D <0>; }; pins3 { pinmux =3D ; /* USART2_RX */ --=20 2.25.1 From nobody Sun May 19 01:26:36 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34819C761AF for ; Tue, 28 Mar 2023 15:40:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233603AbjC1PkL (ORCPT ); Tue, 28 Mar 2023 11:40:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231463AbjC1Pjv (ORCPT ); Tue, 28 Mar 2023 11:39:51 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B057FEC76; Tue, 28 Mar 2023 08:38:25 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32SE37H0016277; Tue, 28 Mar 2023 17:37:38 +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=+2s3HinxEFYlnrVOOc1wZG7xm3r63KTSzXlu+4OWoMY=; b=xOrIHT/yJ3WS5CO8Jip6a0ikT5GTWdQlmJUO+ykXn13kh6+Nl8vBnGc84vopsTxep3AM Qs/QnNOy7vuOY+hOTtW9Bcr/PlLUB3/FGTUM043Rapt/S1GC28DrbcqzWBCVbUF8k/e3 V0Mu/NMg7mWI2rxf8npzPL813ObFi7mX6Xs39wMw2CxGGlLzRJcxx7iQU0RUiv4h7agd zuiaf1GaguKpyunLhYV5xBNhXV5Wwye8UQAf6MdcPfTlZXLsxqYCm6CfvfF3SZOY8pFb H5uO91+n8nPq7way3Mfj3iraOC//wIdlPOqkmAIFezFrHr0mK2jGCilnhs4DWoLKbOZ/ YQ== 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 3pkwvsaamx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 17:37:38 +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 DDDF410002A; Tue, 28 Mar 2023 17:37:37 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D65462194F9; Tue, 28 Mar 2023 17:37:37 +0200 (CEST) Received: from localhost (10.201.20.168) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 28 Mar 2023 17:37:37 +0200 From: Valentin Caron To: Alexandre Torgue CC: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Valentin Caron , , , , Subject: [PATCH v2 2/6] ARM: dts: stm32: clean uart aliases on stm32mp15xx-dkx boards Date: Tue, 28 Mar 2023 17:37:19 +0200 Message-ID: <20230328153723.498672-3-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230328153723.498672-1-valentin.caron@foss.st.com> References: <20230328153723.498672-1-valentin.caron@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.201.20.168] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-28_02,2023-02-09_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Remove duplicates and clean uart aliases. Uart aliases and uart pins should be declared and associated to uart instance at the same time. Signed-off-by: Valentin Caron --- arch/arm/boot/dts/stm32mp157a-dk1.dts | 3 --- arch/arm/boot/dts/stm32mp157c-dk2.dts | 3 --- arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 6 ++++++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp157a-dk1.dts b/arch/arm/boot/dts/stm3= 2mp157a-dk1.dts index 4c8be9c8eb20..0da3667ab1e0 100644 --- a/arch/arm/boot/dts/stm32mp157a-dk1.dts +++ b/arch/arm/boot/dts/stm32mp157a-dk1.dts @@ -17,9 +17,6 @@ / { =20 aliases { ethernet0 =3D ðernet0; - serial0 =3D &uart4; - serial1 =3D &usart3; - serial2 =3D &uart7; }; =20 chosen { diff --git a/arch/arm/boot/dts/stm32mp157c-dk2.dts b/arch/arm/boot/dts/stm3= 2mp157c-dk2.dts index 2bc92ef3aeb9..ab13e340f4ef 100644 --- a/arch/arm/boot/dts/stm32mp157c-dk2.dts +++ b/arch/arm/boot/dts/stm32mp157c-dk2.dts @@ -18,9 +18,6 @@ / { =20 aliases { ethernet0 =3D ðernet0; - serial0 =3D &uart4; - serial1 =3D &usart3; - serial2 =3D &uart7; serial3 =3D &usart2; }; =20 diff --git a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi b/arch/arm/boot/dts/stm= 32mp15xx-dkx.dtsi index 11370ae0d868..ded5ab9a4798 100644 --- a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi +++ b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi @@ -8,6 +8,12 @@ #include =20 / { + aliases { + serial0 =3D &uart4; + serial1 =3D &usart3; + serial2 =3D &uart7; + }; + memory@c0000000 { device_type =3D "memory"; reg =3D <0xc0000000 0x20000000>; --=20 2.25.1 From nobody Sun May 19 01:26:36 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF686C76196 for ; Tue, 28 Mar 2023 15:40:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234095AbjC1PkN (ORCPT ); Tue, 28 Mar 2023 11:40:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233461AbjC1Pj4 (ORCPT ); Tue, 28 Mar 2023 11:39:56 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A0F411EA1; Tue, 28 Mar 2023 08:38:30 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32SE1oum016476; Tue, 28 Mar 2023 17:37: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=FKaGslI7jPasSK/fcfNSrjsxE74p6Mh867fEXA6JvJs=; b=AdWQXBLTWZSdXDXIAG9Ib96Yh7EelNZbeFOAb43REPs3YuGEVaxl5mPlF2lkxmq1yP5+ VgcvWtDdNS9ghtS0b1lA9hgRdkis3SvgAR4esk7wEW4KNB/0eBd5ayZnev5j3KambqCn RWgA4QNXZY3HoTGQ63rnYrQJBmxksO9KDwluh/8Lfeg+wLIQ+Oye3LERQT7RdqUjFRL8 5x8nVxpc4CnATQWs58CBDCnGC5k1wO8chV+fbEKNTd/v3+HV6xyjhaLFu2IUFjueNt8s VB+shaWu+4TBkte7dM9AHi1aZUC7RdGHSfObMfYcTlI9T4QOD2vDo+3zwcHuyMD5DpX+ CA== 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 3pkwvsaamy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 17:37:38 +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 7FBAF100034; Tue, 28 Mar 2023 17:37:38 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 79DBE2194F9; Tue, 28 Mar 2023 17:37:38 +0200 (CEST) Received: from localhost (10.201.20.168) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 28 Mar 2023 17:37:38 +0200 From: Valentin Caron To: Alexandre Torgue CC: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Valentin Caron , , , , Subject: [PATCH v2 3/6] ARM: dts: stm32: clean uart aliases on stm32mp15xx-exx boards Date: Tue, 28 Mar 2023 17:37:20 +0200 Message-ID: <20230328153723.498672-4-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230328153723.498672-1-valentin.caron@foss.st.com> References: <20230328153723.498672-1-valentin.caron@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.201.20.168] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-28_02,2023-02-09_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Remove duplicates and clean uart aliases. Uart aliases and uart pins should be declared and associated to uart instance at the same time. Put also aliases node above chosen node as same as stm32mp157c-dk2.dts. Signed-off-by: Valentin Caron --- arch/arm/boot/dts/stm32mp157c-ed1.dts | 8 ++++---- arch/arm/boot/dts/stm32mp157c-ev1.dts | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm3= 2mp157c-ed1.dts index b1eb688a278a..2dfde6292668 100644 --- a/arch/arm/boot/dts/stm32mp157c-ed1.dts +++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts @@ -16,6 +16,10 @@ / { model =3D "STMicroelectronics STM32MP157C eval daughter"; compatible =3D "st,stm32mp157c-ed1", "st,stm32mp157"; =20 + aliases { + serial0 =3D &uart4; + }; + chosen { stdout-path =3D "serial0:115200n8"; }; @@ -72,10 +76,6 @@ gpu_reserved: gpu@e8000000 { }; }; =20 - aliases { - serial0 =3D &uart4; - }; - sd_switch: regulator-sd_switch { compatible =3D "regulator-gpio"; regulator-name =3D "sd_switch"; diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm3= 2mp157c-ev1.dts index 542226cfcfdf..ba8e9d9a42fa 100644 --- a/arch/arm/boot/dts/stm32mp157c-ev1.dts +++ b/arch/arm/boot/dts/stm32mp157c-ev1.dts @@ -14,16 +14,15 @@ / { model =3D "STMicroelectronics STM32MP157C eval daughter on eval mother"; compatible =3D "st,stm32mp157c-ev1", "st,stm32mp157c-ed1", "st,stm32mp157= "; =20 - chosen { - stdout-path =3D "serial0:115200n8"; - }; - aliases { - serial0 =3D &uart4; serial1 =3D &usart3; ethernet0 =3D ðernet0; }; =20 + chosen { + stdout-path =3D "serial0:115200n8"; + }; + clocks { clk_ext_camera: clk-ext-camera { #clock-cells =3D <0>; --=20 2.25.1 From nobody Sun May 19 01:26:36 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81A94C6FD18 for ; Tue, 28 Mar 2023 15:40:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234107AbjC1PkQ (ORCPT ); Tue, 28 Mar 2023 11:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233473AbjC1Pj5 (ORCPT ); Tue, 28 Mar 2023 11:39:57 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C4F711EA7; Tue, 28 Mar 2023 08:38:30 -0700 (PDT) Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32SDwn90013765; Tue, 28 Mar 2023 17:37: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=WPEjXayWT+uWOiON+cXyIPwk9fPuwbN+4snzQyUm7ac=; b=TB/i2lBCP1h5is8mzTZh+EtEjoHbJQkf2BzEJ+GFpAiI6QnWcwagrRbk7S1dBnOjispA C+AG1mV0DlHPjVBfZoxP1LgMTw7VcLHX4rA6cR6cy4X01lCFprQ+w4M5+ZWbmMG/JPKh 2Bkg2SqcGH3kJetSJvt8dwtuxgCQhwTVO5BSSSD3CIsXCT2VvgbydEx+mfpJuzwgS36R ivQEe/6iNMsxN+cIQFwXDKJB3LH9ULoY/Np+jo2+uGS+vAti/jeolCdRM8fLxkh/yrEn TmIZi9shn+siWwWF85j/1kZhxcD+8zwMqbBUADuO8mjf+txTl6c3rqOqaamu1XcrTfBz Bw== 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 3phsqwk6jq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 17:37: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 298FE10002A; Tue, 28 Mar 2023 17:37:39 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 231532194FA; Tue, 28 Mar 2023 17:37:39 +0200 (CEST) Received: from localhost (10.201.20.168) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 28 Mar 2023 17:37:38 +0200 From: Valentin Caron To: Alexandre Torgue CC: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Valentin Caron , , , , Subject: [PATCH v2 4/6] ARM: dts: stm32: add uart nodes on stm32mp13 Date: Tue, 28 Mar 2023 17:37:21 +0200 Message-ID: <20230328153723.498672-5-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230328153723.498672-1-valentin.caron@foss.st.com> References: <20230328153723.498672-1-valentin.caron@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.201.20.168] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-28_02,2023-02-09_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Update device-tree stm32mp131.dtsi to add some uart features. On uart 1, 2, 3, 5, 6, 7, 8 nodes, add compabible, exti interrupts, clock, reset properties, dma config. On uart 4 node, only add dma configuration and use exti interrupt. Signed-off-by: Valentin Caron --- arch/arm/boot/dts/stm32mp131.dtsi | 97 ++++++++++++++++++++++++++++++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp1= 31.dtsi index 5949473cbbfd..9ea61687f023 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -397,12 +397,42 @@ spdifrx: audio-controller@4000d000 { status =3D "disabled"; }; =20 + usart3: serial@4000f000 { + compatible =3D "st,stm32h7-uart"; + reg =3D <0x4000f000 0x400>; + interrupts-extended =3D <&exti 28 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&rcc USART3_K>; + resets =3D <&rcc USART3_R>; + wakeup-source; + dmas =3D <&dmamux1 45 0x400 0x5>, + <&dmamux1 46 0x400 0x1>; + dma-names =3D "rx", "tx"; + status =3D "disabled"; + }; + uart4: serial@40010000 { compatible =3D "st,stm32h7-uart"; reg =3D <0x40010000 0x400>; - interrupts =3D ; + interrupts-extended =3D <&exti 30 IRQ_TYPE_LEVEL_HIGH>; clocks =3D <&rcc UART4_K>; resets =3D <&rcc UART4_R>; + wakeup-source; + dmas =3D <&dmamux1 63 0x400 0x5>, + <&dmamux1 64 0x400 0x1>; + dma-names =3D "rx", "tx"; + status =3D "disabled"; + }; + + uart5: serial@40011000 { + compatible =3D "st,stm32h7-uart"; + reg =3D <0x40011000 0x400>; + interrupts-extended =3D <&exti 31 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&rcc UART5_K>; + resets =3D <&rcc UART5_R>; + wakeup-source; + dmas =3D <&dmamux1 65 0x400 0x5>, + <&dmamux1 66 0x400 0x1>; + dma-names =3D "rx", "tx"; status =3D "disabled"; }; =20 @@ -442,6 +472,32 @@ i2c2: i2c@40013000 { status =3D "disabled"; }; =20 + uart7: serial@40018000 { + compatible =3D "st,stm32h7-uart"; + reg =3D <0x40018000 0x400>; + interrupts-extended =3D <&exti 32 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&rcc UART7_K>; + resets =3D <&rcc UART7_R>; + wakeup-source; + dmas =3D <&dmamux1 79 0x400 0x5>, + <&dmamux1 80 0x400 0x1>; + dma-names =3D "rx", "tx"; + status =3D "disabled"; + }; + + uart8: serial@40019000 { + compatible =3D "st,stm32h7-uart"; + reg =3D <0x40019000 0x400>; + interrupts-extended =3D <&exti 33 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&rcc UART8_K>; + resets =3D <&rcc UART8_R>; + wakeup-source; + dmas =3D <&dmamux1 81 0x400 0x5>, + <&dmamux1 82 0x400 0x1>; + dma-names =3D "rx", "tx"; + status =3D "disabled"; + }; + timers1: timer@44000000 { #address-cells =3D <1>; #size-cells =3D <0>; @@ -524,6 +580,19 @@ counter { }; }; =20 + usart6: serial@44003000 { + compatible =3D "st,stm32h7-uart"; + reg =3D <0x44003000 0x400>; + interrupts-extended =3D <&exti 29 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&rcc USART6_K>; + resets =3D <&rcc USART6_R>; + wakeup-source; + dmas =3D <&dmamux1 71 0x400 0x5>, + <&dmamux1 72 0x400 0x1>; + dma-names =3D "rx", "tx"; + status =3D "disabled"; + }; + i2s1: audio-controller@44004000 { compatible =3D "st,stm32h7-i2s"; reg =3D <0x44004000 0x400>; @@ -748,6 +817,32 @@ usbotg_hs: usb@49000000 { status =3D "disabled"; }; =20 + usart1: serial@4c000000 { + compatible =3D "st,stm32h7-uart"; + reg =3D <0x4c000000 0x400>; + interrupts-extended =3D <&exti 26 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&rcc USART1_K>; + resets =3D <&rcc USART1_R>; + wakeup-source; + dmas =3D <&dmamux1 41 0x400 0x5>, + <&dmamux1 42 0x400 0x1>; + dma-names =3D "rx", "tx"; + status =3D "disabled"; + }; + + usart2: serial@4c001000 { + compatible =3D "st,stm32h7-uart"; + reg =3D <0x4c001000 0x400>; + interrupts-extended =3D <&exti 27 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&rcc USART2_K>; + resets =3D <&rcc USART2_R>; + wakeup-source; + dmas =3D <&dmamux1 43 0x400 0x5>, + <&dmamux1 44 0x400 0x1>; + dma-names =3D "rx", "tx"; + status =3D "disabled"; + }; + i2s4: audio-controller@4c002000 { compatible =3D "st,stm32h7-i2s"; reg =3D <0x4c002000 0x400>; --=20 2.25.1 From nobody Sun May 19 01:26:36 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 833B6C761AF for ; Tue, 28 Mar 2023 15:41:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233979AbjC1PlD (ORCPT ); Tue, 28 Mar 2023 11:41:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233824AbjC1Pko (ORCPT ); Tue, 28 Mar 2023 11:40:44 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B4A986AC; Tue, 28 Mar 2023 08:39:37 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32SE1LA6016212; Tue, 28 Mar 2023 17:38:40 +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=eQMMwdgtbCFYg6RdDX7MRzsB4HskdJ9yFYqsMjdrGSM=; b=Lpb68G+T712ZWpf2lQ9iX6airbyfNaUsX5TDEinSF0mafdRw1gGz5ipFKdmPDCiZzZRx pwWlbxJiMq+XdDRIqBUSZX/nt0NemkHHKC/kKR65OEui038BPjtNT+g1ca0hoCRWWXGg HFHYaTtYoXCzKKC6iv51/CtaTR9ZoNbDOoddBbrzhZXzYzstM8NKm+9uGb3b1n9tWiyW MN/wLEQusQkaTyeeZFxwYBOPPcl0oOAfbFh66XrJvm7BfUNxBSbWeKlebmhfsbMwr+Gv rRmcNKc1c2i9nUKrYI+y6sQViWUCu7e+vEcLSJN1k6zcInJKtMi/292S0AhGn9e2JbZ2 bQ== 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 3pkwvsaate-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 17:38:40 +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 32A6610002A; Tue, 28 Mar 2023 17:38:40 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 2BD542194F6; Tue, 28 Mar 2023 17:38:40 +0200 (CEST) Received: from localhost (10.201.20.168) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 28 Mar 2023 17:38:39 +0200 From: Valentin Caron To: Alexandre Torgue CC: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Valentin Caron , , , , Subject: [PATCH v2 5/6] ARM: dts: stm32: add pins for usart2/1/4/8 in stm32mp13-pinctrl Date: Tue, 28 Mar 2023 17:37:22 +0200 Message-ID: <20230328153723.498672-6-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230328153723.498672-1-valentin.caron@foss.st.com> References: <20230328153723.498672-1-valentin.caron@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.201.20.168] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-28_02,2023-02-09_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add pins for uart4, uart8, usart1 and usart2 in stm32mp13-pinctrl.dtsi Theses pins have three states: default, sleep and idle. Signed-off-by: Valentin Caron --- arch/arm/boot/dts/stm32mp13-pinctrl.dtsi | 129 +++++++++++++++++++++++ 1 file changed, 129 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi b/arch/arm/boot/dts/s= tm32mp13-pinctrl.dtsi index b2dce3a29f39..27e0c3826789 100644 --- a/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi @@ -258,4 +258,133 @@ pins2 { bias-disable; }; }; + + uart4_idle_pins_a: uart4-idle-0 { + pins1 { + pinmux =3D ; /* UART4_TX */ + }; + pins2 { + pinmux =3D ; /* UART4_RX */ + bias-disable; + }; + }; + + uart4_sleep_pins_a: uart4-sleep-0 { + pins { + pinmux =3D , /* UART4_TX */ + ; /* UART4_RX */ + }; + }; + + uart8_pins_a: uart8-0 { + pins1 { + pinmux =3D ; /* UART8_TX */ + bias-disable; + drive-push-pull; + slew-rate =3D <0>; + }; + pins2 { + pinmux =3D ; /* UART8_RX */ + bias-pull-up; + }; + }; + + uart8_idle_pins_a: uart8-idle-0 { + pins1 { + pinmux =3D ; /* UART8_TX */ + }; + pins2 { + pinmux =3D ; /* UART8_RX */ + bias-pull-up; + }; + }; + + uart8_sleep_pins_a: uart8-sleep-0 { + pins { + pinmux =3D , /* UART8_TX */ + ; /* UART8_RX */ + }; + }; + + usart1_pins_a: usart1-0 { + pins1 { + pinmux =3D , /* USART1_TX */ + ; /* USART1_RTS */ + bias-disable; + drive-push-pull; + slew-rate =3D <0>; + }; + pins2 { + pinmux =3D , /* USART1_RX */ + ; /* USART1_CTS_NSS */ + bias-pull-up; + }; + }; + + usart1_idle_pins_a: usart1-idle-0 { + pins1 { + pinmux =3D , /* USART1_TX */ + ; /* USART1_CTS_NSS */ + }; + pins2 { + pinmux =3D ; /* USART1_RTS */ + bias-disable; + drive-push-pull; + slew-rate =3D <0>; + }; + pins3 { + pinmux =3D ; /* USART1_RX */ + bias-pull-up; + }; + }; + + usart1_sleep_pins_a: usart1-sleep-0 { + pins { + pinmux =3D , /* USART1_TX */ + , /* USART1_RTS */ + , /* USART1_CTS_NSS */ + ; /* USART1_RX */ + }; + }; + + usart2_pins_a: usart2-0 { + pins1 { + pinmux =3D , /* USART2_TX */ + ; /* USART2_RTS */ + bias-disable; + drive-push-pull; + slew-rate =3D <0>; + }; + pins2 { + pinmux =3D , /* USART2_RX */ + ; /* USART2_CTS_NSS */ + bias-disable; + }; + }; + + usart2_idle_pins_a: usart2-idle-0 { + pins1 { + pinmux =3D , /* USART2_TX */ + ; /* USART2_CTS_NSS */ + }; + pins2 { + pinmux =3D ; /* USART2_RTS */ + bias-disable; + drive-push-pull; + slew-rate =3D <0>; + }; + pins3 { + pinmux =3D ; /* USART2_RX */ + bias-disable; + }; + }; + + usart2_sleep_pins_a: usart2-sleep-0 { + pins { + pinmux =3D , /* USART2_TX */ + , /* USART2_RTS */ + , /* USART2_RX */ + ; /* USART2_CTS_NSS */ + }; + }; }; --=20 2.25.1 From nobody Sun May 19 01:26:36 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D012AC6FD18 for ; Tue, 28 Mar 2023 15:58:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232970AbjC1P6s (ORCPT ); Tue, 28 Mar 2023 11:58:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232748AbjC1P6p (ORCPT ); Tue, 28 Mar 2023 11:58:45 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 680A4187; Tue, 28 Mar 2023 08:58:40 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32SE96Ek005933; Tue, 28 Mar 2023 17:38:42 +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=Z8sv+Rag3/oEhkaOzrRfMKQspA/vczhoJ6FwxnVe9qk=; b=ZWy2EYNzZACZcuNIXftc9K7FqR7+xxzyopAbLS/mUN0OsQv1BJdXEKbKsc70iX1mLciU eGnG7iTT3yHwOy7xeVBjXe0aHVLIAGf7VjNhSziXEUIXk4uG+YDhKo/fANa0SlpVkXuV ZflZ+cRhhzlvunvsnrYWgnxzvo/Yx9lnBhaYZF/Eby5vXnMFADK74hyMi9zd5vX0SKBH um9TgNPGHx8RbtuZdSBOXnyNYv+qB573QztYZOwuBbYWvPkqpFupRXV5bRwp78tQ2e1t hG3qExtnNyKWy+tC63IYssVNCvfqMB0D34zZeh1klqlcUgqYfuBsUDg+Lp/sSU0TCsZz NA== 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 3pk5xkjts3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 17:38:42 +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 83F5B10002A; Tue, 28 Mar 2023 17:38:41 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7D33A2194F6; Tue, 28 Mar 2023 17:38:41 +0200 (CEST) Received: from localhost (10.201.20.168) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 28 Mar 2023 17:38:41 +0200 From: Valentin Caron To: Alexandre Torgue CC: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Valentin Caron , , , , Subject: [PATCH v2 6/6] ARM: dts: stm32: add uart nodes and uart aliases on stm32mp135f-dk Date: Tue, 28 Mar 2023 17:37:23 +0200 Message-ID: <20230328153723.498672-7-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230328153723.498672-1-valentin.caron@foss.st.com> References: <20230328153723.498672-1-valentin.caron@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.201.20.168] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-28_02,2023-02-09_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Update device-tree stm32mp135f-dk.dts to add usart1, uart8, usart2 and uart aliases. - Usart2 is used to interface a BT device, enable it by default. - Usart1 and uart8 are available on expansion connector. They are kept disabled. So, the pins are kept in analog state to lower power consumption by default or can be used as GPIO. - Uart4 is used for console. Signed-off-by: Valentin Caron --- arch/arm/boot/dts/stm32mp135f-dk.dts | 42 +++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32= mp135f-dk.dts index c40686cb2b9a..f0900ca672b5 100644 --- a/arch/arm/boot/dts/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts @@ -19,6 +19,13 @@ / { =20 aliases { serial0 =3D &uart4; + serial1 =3D &usart1; + serial2 =3D &uart8; + serial3 =3D &usart2; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; }; =20 memory@c0000000 { @@ -267,8 +274,41 @@ timer@13 { }; =20 &uart4 { - pinctrl-names =3D "default"; + pinctrl-names =3D "default", "sleep", "idle"; pinctrl-0 =3D <&uart4_pins_a>; + pinctrl-1 =3D <&uart4_sleep_pins_a>; + pinctrl-2 =3D <&uart4_idle_pins_a>; + /delete-property/dmas; + /delete-property/dma-names; + status =3D "okay"; +}; + +&uart8 { + pinctrl-names =3D "default", "sleep", "idle"; + pinctrl-0 =3D <&uart8_pins_a>; + pinctrl-1 =3D <&uart8_sleep_pins_a>; + pinctrl-2 =3D <&uart8_idle_pins_a>; + /delete-property/dmas; + /delete-property/dma-names; + status =3D "disabled"; +}; + +&usart1 { + pinctrl-names =3D "default", "sleep", "idle"; + pinctrl-0 =3D <&usart1_pins_a>; + pinctrl-1 =3D <&usart1_sleep_pins_a>; + pinctrl-2 =3D <&usart1_idle_pins_a>; + uart-has-rtscts; + status =3D "disabled"; +}; + +/* Bluetooth */ +&usart2 { + pinctrl-names =3D "default", "sleep", "idle"; + pinctrl-0 =3D <&usart2_pins_a>; + pinctrl-1 =3D <&usart2_sleep_pins_a>; + pinctrl-2 =3D <&usart2_idle_pins_a>; + uart-has-rtscts; status =3D "okay"; }; =20 --=20 2.25.1