From patchwork Mon Jun 26 12:49:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bich HEMON X-Patchwork-Id: 9809559 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B065360329 for ; Mon, 26 Jun 2017 12:49:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B45C327F97 for ; Mon, 26 Jun 2017 12:49:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8A972851B; Mon, 26 Jun 2017 12:49:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EA5E62846A for ; Mon, 26 Jun 2017 12:49:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aWDOMMENFyFcCx3WUx6menvr0A2Bo54J/3/fgbtQshg=; b=i0SRrSrLmdLlum pfkjSV1hhPhLEb+45/YhpznCS9p/51kWlJ3/E2tWNTwLqZ9GHeZRegCAtvuUHXbwew1Y/EFxn6BCS 8xnv3PVSVT2660ggEilI5b4XNSffSZqnY+2z0GJPtqWC973ju+WExP/lyvEfqxKQyCHr/Gq/baFQV kYdR6s2e4HlR6Lbkb95sM8rDcGz12FB+0wgVw1J4YTwzgA5fsosOWVBwoKoGK+eE8TUoGYfWhJ8B/ e/h+HywpAVA9HqKY+c9iJeCxVsoT220bwRaSMSDqBAG7gA1biMML890sSMhjZIv1nEBumMsRHyKro uMttsN5HN8LGJk8fCJlw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dPTSZ-0001Uv-HP; Mon, 26 Jun 2017 12:49:43 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dPTSV-0001Fe-Tc for linux-arm-kernel@lists.infradead.org; Mon, 26 Jun 2017 12:49:41 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v5QChvnl003614; Mon, 26 Jun 2017 14:49:11 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-.pphosted.com with ESMTP id 2battut685-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 26 Jun 2017 14:49:11 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4D44831; Mon, 26 Jun 2017 12:49:10 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 21D0716AD; Mon, 26 Jun 2017 12:49:10 +0000 (GMT) Received: from SFHDAG3NODE1.st.com (10.75.127.7) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Mon, 26 Jun 2017 14:49:09 +0200 Received: from SFHDAG3NODE1.st.com ([fe80::1166:1abb:aad4:5f86]) by SFHDAG3NODE1.st.com ([fe80::1166:1abb:aad4:5f86%20]) with mapi id 15.00.1178.000; Mon, 26 Jun 2017 14:49:09 +0200 From: Bich HEMON To: Greg Kroah-Hartman , Rob Herring , Mark Rutland , Maxime Coquelin , Alexandre TORGUE , "Jiri Slaby" , "linux-serial@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH 02/20] dt-bindings: serial: each stm32 usart needs an alias Thread-Topic: [PATCH 02/20] dt-bindings: serial: each stm32 usart needs an alias Thread-Index: AQHS7nqamS3+WM+9q0+BTECsc6grLw== Date: Mon, 26 Jun 2017 12:49:09 +0000 Message-ID: <1498481318-1894-3-git-send-email-bich.hemon@st.com> References: <1498481318-1894-1-git-send-email-bich.hemon@st.com> In-Reply-To: <1498481318-1894-1-git-send-email-bich.hemon@st.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.50] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-06-26_09:, , signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170626_054940_266604_173ADA07 X-CRM114-Status: UNSURE ( 7.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bich HEMON Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bich Hemon Each usart controller should have an alias correctly numbered in "aliases" node. Signed-off-by: Gerald Baeza --- Documentation/devicetree/bindings/serial/st,stm32-usart.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt b/Documentation/devicetree/bindings/serial/st,stm32-usart.txt index 85ec5f2..a229b14 100644 --- a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt +++ b/Documentation/devicetree/bindings/serial/st,stm32-usart.txt @@ -15,14 +15,23 @@ Optional properties: - dmas: phandle(s) to DMA controller node(s). Refer to stm32-dma.txt - dma-names: "rx" and/or "tx" +Note: Each usart controller should have an alias correctly numbered +in "aliases" node. + Examples: -usart4: serial@40004c00 { +aliases { + serial0 = &usart1; + serial1 = &usart2; + serial3 = &uart4; +}; + +uart4: serial@40004c00 { compatible = "st,stm32-uart"; reg = <0x40004c00 0x400>; interrupts = <52>; clocks = <&clk_pclk1>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usart4>; + pinctrl-0 = <&pinctrl_uart4>; }; usart2: serial@40004400 {