From patchwork Tue Jun 4 08:55:09 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: 10974429 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8BF7417D2 for ; Tue, 4 Jun 2019 08:55:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76CF3286B4 for ; Tue, 4 Jun 2019 08:55:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 670432873A; Tue, 4 Jun 2019 08:55:46 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 CD1FF286B4 for ; Tue, 4 Jun 2019 08:55:45 +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: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:In-Reply-To:References: List-Owner; bh=UzAfsvpjC9CiH4T+9FxVCj3OlSd6hZpenORhsoDzwC4=; b=sqDmVcPg4Y9Rq/ FE+7hMBj2rxng+PqM2avSwuiGYHsSeT63tc525dnBEuwDdtitG+4I2ZC8C5lkWUkz2yJrh9dov0ZQ EVdJK+V2W+AJBm+CukiyKoAWVihV4R5/8qSubpXfQIlCycoJoxi+v4rUE4MnKLhXMHG7NSO27Cll/ MAfuUYw/WAzldIdnUUy95gyKthgd/9FNn4p6dtgfh//+x1z8oEsvEqDB+W2YUx+DvF5lPqgkgiBHi W0c6cjuzz+5x3p/Lz2rb7uagH0ytXNguCg96U8fBUDVG9XFv11zL1Fsq3kEEoPubbI+xArIpmEo/M itj+/c/0RPAhxb/asWHw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hY5EL-00054n-32; Tue, 04 Jun 2019 08:55:41 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hY5EH-00053P-Ni for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2019 08:55:39 +0000 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 x548tKLL021280; Tue, 4 Jun 2019 10:55:28 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=aeRZHet8+3ng2HzHWI6D57uf7dMIn0WG1kjDInB0Y8s=; b=wiKlCJWMv8lNPSmBz84bvLgrRRzwH7Tdnn57y/e+lH3rwW6YNBFk715p8vQlrG0EeHAj P9hJBWBssMTTmBjE7FS8g58EUH4icp+Z5fzOZD3IU4CMNjqInVPxOxp8tWA9P/IpoLyT 1yxYYI211XVh1IvWTEAhfAOv2ofLBPYfw+S0h03B/93sDS0ecOW0KAWl9hu9pnddQ/1Y fUcuMqIe7LitRBXZ836EwKcWGUnoVesQm0SPZPn9rJRV+SJVWiHu75dcERTR6Vfh/v3z g6NshufKOarSyR0AszxMPlGgJNcZeChWbEZUQK4xXxQIXmQYtsAzRnwaDcueef4o9Cn5 yA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2sundryngq-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 04 Jun 2019 10:55:28 +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 34DFA163; Tue, 4 Jun 2019 08:55:24 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 066B92507; Tue, 4 Jun 2019 08:55:24 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 4 Jun 2019 10:55:23 +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:23 +0200 From: Erwan Le Ray To: Greg Kroah-Hartman , Jiri Slaby , Maxime Coquelin , "Alexandre Torgue" , Rob Herring , "Mark Rutland" Subject: [PATCH 00/10] STM32 usart power improvements Date: Tue, 4 Jun 2019 10:55:09 +0200 Message-ID: <1559638519-6128-1-git-send-email-erwan.leray@st.com> X-Mailer: git-send-email 1.9.1 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190604_015538_209248_7E590590 X-CRM114-Status: GOOD ( 11.79 ) 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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Erwan Le Ray , linux-serial@vger.kernel.org, Fabrice Gasnier , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org 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 This series delivers power improvements for stm32-usart driver. Bich Hemon (4): dt-bindings: serial: add optional pinctrl states serial: stm32: select pinctrl state in each suspend/resume function ARM: dts: stm32: Update pin states for uart4 on stm32mp157c-ed1 ARM: dts: stm32: Update UART4 pin states on stm32mp157a-dk1 Erwan Le Ray (6): dt-bindings: serial: stm32: add wakeup option serial: stm32: add pm_runtime support serial: stm32: Use __maybe_unused instead of #if CONFIG_PM_SLEEP serial: stm32: add support for no_console_suspend ARM: dts: stm32: update uart4 pin configurations for low power ARM: dts: stm32: add wakeup capability on each usart/uart on stm32mp157c .../devicetree/bindings/serial/st,stm32-usart.txt | 19 ++++- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 17 +++++ arch/arm/boot/dts/stm32mp157a-dk1.dts | 5 +- arch/arm/boot/dts/stm32mp157c-ed1.dts | 5 +- arch/arm/boot/dts/stm32mp157c.dtsi | 40 ++++++++-- drivers/tty/serial/stm32-usart.c | 88 ++++++++++++++++++++-- drivers/tty/serial/stm32-usart.h | 1 + 7 files changed, 155 insertions(+), 20 deletions(-)