From nobody Fri Dec 19 22:03:16 2025 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 BA636C6FD1D for ; Mon, 27 Mar 2023 15:43:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232207AbjC0PnU (ORCPT ); Mon, 27 Mar 2023 11:43:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjC0PnS (ORCPT ); Mon, 27 Mar 2023 11:43:18 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA3733C33; Mon, 27 Mar 2023 08:42:44 -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 32RCVtDu009220; Mon, 27 Mar 2023 17:42:25 +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=hgwZHNZNHc/RP8tmWSjQiDaf4TMQAEaxi0T8YFmh3gXg9eJcPApLTLi7pVspPPhZxOTP ZJ+6wX+sO7PWVFCNyANWP/Vv3kro5L6O+BgQWdjdS1DC4G6Ms2tMtCsLu+VrnZM4wpDL Fu20dxqStPUNwuvevr8Z5OzkxhZil9rXx/8vt4EevInRlqptcruv6PV/PBNwhUiuqkhz MNcyKrBJItDmOgK/PxQ/HgmeS0eUeBA9z5Rx8PgOTWUAHBxZz3wYGR3SPH4PbTOLEwYl Pz9U5ddEEsyudsoRoYjq2bAOF3yzZ1Tq+T6FdTQw5reOwIIhH/iUkOQ2Hw4SI38Qsn1X jg== 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 3pk5xkbp7j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 17:42:25 +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 2D030100034; Mon, 27 Mar 2023 17:42:24 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 81F2021A206; Mon, 27 Mar 2023 17:41:43 +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; Mon, 27 Mar 2023 17:41:43 +0200 From: Valentin Caron To: Alexandre Torgue CC: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , , , , Subject: [PATCH 7/7] ARM: dts: stm32: add uart nodes and uart aliases on stm32mp135f-dk Date: Mon, 27 Mar 2023 17:39:43 +0200 Message-ID: <20230327153943.275124-6-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230327152948.274743-1-valentin.caron@foss.st.com> References: <20230327152948.274743-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-27_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