Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3065090rwl; Mon, 27 Mar 2023 08:47:35 -0700 (PDT) X-Google-Smtp-Source: AKy350Z7JWyBMtesQWDqaZ2C3/Bvfrc4a/H49N3dHDRIcvMklutX/5hMl6jsUTFfM57ku37G9dnt X-Received: by 2002:a17:907:8c83:b0:8b1:7ae9:647 with SMTP id td3-20020a1709078c8300b008b17ae90647mr13181998ejc.76.1679932055005; Mon, 27 Mar 2023 08:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679932054; cv=none; d=google.com; s=arc-20160816; b=X/hBdBvS0QtdYYcj6mnT40PblhED7yZFpG1Q183PR5Qfb+xKi5UYgWtu2S1jfS8H5f W7wP9bLhw6ICHTOpNbAcfF220YIJU91bUWvL40/nB3EP5qjYajtyuZ3BCL9bsZ6RMMw+ YPjNqPrMUmuLafHEsBYyKf3ogF31uEEcatHwA5DOAPWJdj0x4vGk/SVfcKbe1ihzAOUF iHCEDEteRFzK4nDxUZYOVbxDMVOJc/8NkHjaIYDEy0DhfO3fS++pYLm0+4JP8PrhxbAv DIM7i8FkL2rTzQJ7sDPAzwinoqa+vZS8Q3gSf/WCTobGXxluN32Jdt7bX6YwcZawsZBD m8Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Z8sv+Rag3/oEhkaOzrRfMKQspA/vczhoJ6FwxnVe9qk=; b=geZs25xzchDlW1p5UapHfStz5KyJAoO4PtMSozw4gH2xUlvPS01KHsxx7tE0Kbswjy c0bljeJxJOJ9Cewvo5r+NxTSZdUAoXnOB1N7efRkxSezImcmbO1ylXqmh9JV2CxcwMUk nJXGAINZ6JL/ayd+C7mnzK+X+vK2oqnbCGSqycYiethfG5RpXN2Re7fIw4T0fEppBgu6 wKANsXyEKwjsz9z10TStgzidswY6Tj4a++0Ey5VC6E7zIGH8glnCvdUu0+wBlSo3PJfv LkPfJx2O/fQJVcRvUUv7HOY/LVXUz6tdhNXL57svmNn644D0upnan/GBvMJfizDhwv9S Y8ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=hgwZHNZN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020a170906148100b00926b7e35cf0si27146085ejc.165.2023.03.27.08.47.01; Mon, 27 Mar 2023 08:47:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=hgwZHNZN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231956AbjC0PnT (ORCPT + 99 others); Mon, 27 Mar 2023 11:43:19 -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: 8bit Content-Type: text/plain 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 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/stm32mp135f-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 @@ / { aliases { serial0 = &uart4; + serial1 = &usart1; + serial2 = &uart8; + serial3 = &usart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; }; memory@c0000000 { @@ -267,8 +274,41 @@ timer@13 { }; &uart4 { - pinctrl-names = "default"; + pinctrl-names = "default", "sleep", "idle"; pinctrl-0 = <&uart4_pins_a>; + pinctrl-1 = <&uart4_sleep_pins_a>; + pinctrl-2 = <&uart4_idle_pins_a>; + /delete-property/dmas; + /delete-property/dma-names; + status = "okay"; +}; + +&uart8 { + pinctrl-names = "default", "sleep", "idle"; + pinctrl-0 = <&uart8_pins_a>; + pinctrl-1 = <&uart8_sleep_pins_a>; + pinctrl-2 = <&uart8_idle_pins_a>; + /delete-property/dmas; + /delete-property/dma-names; + status = "disabled"; +}; + +&usart1 { + pinctrl-names = "default", "sleep", "idle"; + pinctrl-0 = <&usart1_pins_a>; + pinctrl-1 = <&usart1_sleep_pins_a>; + pinctrl-2 = <&usart1_idle_pins_a>; + uart-has-rtscts; + status = "disabled"; +}; + +/* Bluetooth */ +&usart2 { + pinctrl-names = "default", "sleep", "idle"; + pinctrl-0 = <&usart2_pins_a>; + pinctrl-1 = <&usart2_sleep_pins_a>; + pinctrl-2 = <&usart2_idle_pins_a>; + uart-has-rtscts; status = "okay"; }; -- 2.25.1