From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B832FC43218 for ; Tue, 11 Jun 2019 12:25:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 76E7D20673 for ; Tue, 11 Jun 2019 12:25:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=st.com header.i=@st.com header.b="Dan+flqM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389502AbfFKMZx (ORCPT ); Tue, 11 Jun 2019 08:25:53 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:49127 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389224AbfFKMZx (ORCPT ); Tue, 11 Jun 2019 08:25:53 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5BCLjBT023743; Tue, 11 Jun 2019 14:25:37 +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=Dan+flqMxX70RsesdizcgHNaFzn53siputM3LcwuJMGREEPNc33Qbupvt9zzys+yAbks IsLYb3iNLbekknEGjEvsLZMzkVXW3AMJw09EKIijjzwvj2C0p/3X4E0PX8CDh9RMFhqe RjJz+H8BAk7y3W86/DzalEzdOlVgPnl5WSq0j+XqAh4VdK8oYli7FrmLuJu5eAzvgyL2 P/al3qI5DklO4+UlVhug9bXpvf5CMHhRAzwVgMAIBOP9n4Bec61ST0kts2uiZSTy0DVm DiBwj1FME+tNcvJocB/BxInTPhPrGoBYygO62qWNYwrm1nHFplRSeZfYxI/Hr7oF7rPQ lQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2t26rm9vav-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 11 Jun 2019 14:25:37 +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 ADD7034; Tue, 11 Jun 2019 12:25:36 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5C86A2A29; Tue, 11 Jun 2019 12:25:36 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 11 Jun 2019 14:25:36 +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, 11 Jun 2019 14:25:33 +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" Subject: [PATCH v2 00/10] STM32 usart power improvements Date: Tue, 11 Jun 2019 14:25:20 +0200 Message-ID: <1560255930-22554-1-git-send-email-erwan.leray@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.31] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-11_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 1.9.1