From patchwork Tue Jun 4 08:55:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erwan Le Ray X-Patchwork-Id: 165721 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp5559185ili; Tue, 4 Jun 2019 01:55:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbtj9oMUT0WTrJBwcnYQGIjLFIMk2zsBcZC6/7t84Ytfa2lny0A78yzMyPr0fwgU4sQmb9 X-Received: by 2002:a17:902:20e2:: with SMTP id v31mr34981329plg.138.1559638550094; Tue, 04 Jun 2019 01:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559638550; cv=none; d=google.com; s=arc-20160816; b=xdxDpG3bY9lQJTc1SkirfM8W5Fxv1Lpz6m+TXIuWGWJ1vLmJjJdNMqOepIzitv00Aq gNarFplnS3KivVGxMOfLdrv9VXWnD4MWfKcPXSIyWWs5/p8WXeawywKelsLq35vDsgO2 7A+VZ35EjH6/zF3jzDfD7ukPzrpEOHwjMgFdWN96KdQbXbDso0894EKzgX1i3H9TYkg7 DLZ2AcpitN970KY7ftxPZ+uGE9eMRv9Ln/ue+ZTXxDQt/y2P7zSXZtQ3II+LOGy0LUaK fLly20T6lOJYc3IxUWWD3Jw6gAqhufcgEJld5f2ZOj9EVopG5sbD0egy0kBshdb4OWdI WxoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Psif9qopZgVPe8dWo9XocFzMybtKO3gMouXdNYlMSBI=; b=cvq6uGFIzxo91laLDXDv2EjjwJu7TK4u6bSmJh0xFhmDhUfU/cmX3bED7j+ybWWi7S 2FkT5nFU4S+l0xHU2ll/ySVrjpngkt0G1gmEqnVhojBwvHSNsQA4UgfjQ8buj0vA+5P4 1wJFA5OOddSVI2ZheM/dD15qEnjeOJ8ovvymUnMnrty8r/SIrpRoxUTTPAlp4fXMbGfr mSmPr7LUOg7qr71V2xRVFCGTJ26x7YDLWY73lPh+LiD5TBQNrVYtYhksGlzyTVWRsNY4 K4yZjowwYdMm66NZ7u9m0uoCauYjYybIx0VCuMc5rQUGtUZnu2DpGN3HGWBhw0+Z0CPW rnlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=wbdxU1Rh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g64si20584828pgc.555.2019.06.04.01.55.49; Tue, 04 Jun 2019 01:55:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=wbdxU1Rh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727063AbfFDIzs (ORCPT + 30 others); Tue, 4 Jun 2019 04:55:48 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:52690 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726883AbfFDIzr (ORCPT ); Tue, 4 Jun 2019 04:55:47 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x548tJOm021222; Tue, 4 Jun 2019 10:55:33 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=Psif9qopZgVPe8dWo9XocFzMybtKO3gMouXdNYlMSBI=; b=wbdxU1RhcrRqVd8GvtqUF6E7gD45eJui7EOW9VT0NrZAAAamgNDp17bfkn2af+pcbb6x clO1KwCb1DpWZwmc06+ExO2LBRKXzSLOXGRGSacVPY29fY5kAa2BP/z7nHjHPAWWleus 8+EqGjTp1KPoJ6tNdNsy/IFNZvMvdfP9CwP0ulmAuJ+FMOwappLa90LWWZf5bfbCv2af UyzaYF0piRFO/Co6KSYpRCuhuwwjDSqf02ljJBJzKtB2aZuhYQCvGM8tvzRYQDQV5kxY cvo1eQEbpiSLoWGig77MQ+JqPpfgh7oSeqBzimn3K0ZfNqILvTUlwzPcuLMfnY+HdXmb qA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2sundrynh0-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 04 Jun 2019 10:55:33 +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 42A9315E; Tue, 4 Jun 2019 08:55:28 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1974F2503; Tue, 4 Jun 2019 08:55:28 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 4 Jun 2019 10:55:28 +0200 Received: from localhost (10.201.23.31) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 4 Jun 2019 10:55:26 +0200 From: Erwan Le Ray To: Greg Kroah-Hartman , Jiri Slaby , Maxime Coquelin , "Alexandre Torgue" , Rob Herring , "Mark Rutland" CC: , , , , , Erwan Le Ray , "Fabrice Gasnier" , Bich Hemon Subject: [PATCH 02/10] dt-bindings: serial: add optional pinctrl states Date: Tue, 4 Jun 2019 10:55:11 +0200 Message-ID: <1559638519-6128-3-git-send-email-erwan.leray@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1559638519-6128-1-git-send-email-erwan.leray@st.com> References: <1559638519-6128-1-git-send-email-erwan.leray@st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.23.31] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-04_07:, , signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bich Hemon Add options for pinctrl states: - "sleep" for low power - "idle" for low power and wakeup capabilities enabled - "no_console_suspend" for enabling console messages in low power Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray -- 1.9.1 diff --git a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt b/Documentation/devicetree/bindings/serial/st,stm32-usart.txt index 5ec80c1..64a5ea9 100644 --- a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt +++ b/Documentation/devicetree/bindings/serial/st,stm32-usart.txt @@ -13,7 +13,14 @@ Required properties: - clocks: The input clock of the USART instance Optional properties: -- pinctrl: The reference on the pins configuration +- pinctrl-names: Set to "default". An additional "sleep" state can be defined + to set pins in sleep state when in low power. In case the device is used as + a wakeup source, "idle" state is defined in order to keep RX pin active. + For a console device, an optional state "no_console_suspend" can be defined + to enable console messages during suspend. Typically, "no_console_suspend" and + "default" states can refer to the same pin configuration. +- pinctrl-n: Phandle(s) pointing to pin configuration nodes. + For Pinctrl properties see ../pinctrl/pinctrl-bindings.txt - st,hw-flow-ctrl: bool flag to enable hardware flow control. - rs485-rts-delay, rs485-rx-during-tx, rs485-rts-active-low, linux,rs485-enabled-at-boot-time: see rs485.txt. @@ -31,8 +38,11 @@ usart4: serial@40004c00 { reg = <0x40004c00 0x400>; interrupts = <52>; clocks = <&clk_pclk1>; - pinctrl-names = "default"; + pinctrl-names = "default", "sleep", "idle", "no_console_suspend"; pinctrl-0 = <&pinctrl_usart4>; + pinctrl-1 = <&pinctrl_usart4_sleep>; + pinctrl-2 = <&pinctrl_usart4_idle>; + pinctrl-3 = <&pinctrl_usart4>; }; usart2: serial@40004400 {