From patchwork Thu Jun 13 13:49:50 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: 166674 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp797928oca; Thu, 13 Jun 2019 08:12:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmbhw8LdXL+6yVOSgc4XCkkIFp4BsPJLc32JpuKcz4G3XDMwISJCZMlUD3RffMfUvclGKZ X-Received: by 2002:a63:d354:: with SMTP id u20mr30326563pgi.129.1560438731562; Thu, 13 Jun 2019 08:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438731; cv=none; d=google.com; s=arc-20160816; b=GoJDQCckbq07Bgt4ipAj6VIgvw7UV87giam5bljLhIlghuAQYyWjh5dQmn6MN7h0fD ExQBb81ihHYTc8ljbLMva4tJrZ2IKz7/nTQ54d6Z1lQkdbW78wiYEb2k+YJ7NNsvgdOD wl9FoiqkMmiLxdznyQaR4KvdXOHLWITZempS41F/WwflmjME6Ir2DsRTK0gR738WLR0a Ly+PsHR4eW9otIuSxN6oQYYp7p8hfXuDi6VbueIEWUn+/BVxyM5hxHAnBMw7LxHhdUpH hi8KOUW84qe+rdQ27jUoIPqNPagLGcyzMn2v1+q8VXD2roh7h2mfjh8OrdBdCtb3oW6C oylQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=5gqbigQzuPm78gX6OwWptVfTPVoyB0SK+37QgGiOQ8o=; b=YClA8RyUwX77GUze7eSzlqpecbgL1RgeTZ5X6tPj+adKrcqnDjsiRqG9vXLvnVa/0t tnrvm1tbA1OvyH4HKoJQWKAjjzwlVf0OgazZ6hjGbB3zI8nKEllpfku3YRjEPp8gT4Zt y7rjWAfrK8k5XglOo20EeWzyRDcBmsPr04FZ3QvApcB3l6WxnKCPgb2OaRksESyob5Y8 ALLkvInIBBB8ltf0j4BBnM9/044UeEgkT/a4ti2Fz89bpI/aMj53jx8ZRjDKqhlkIwRN aG8E44Zp47byZ4eh69JGIOmtImWPkreHOdsBCJVJVDQ5IMztxlmR1pY2m9GMvRz3Tn9c h5yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=Ue87XHvD; 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 b9si8175pjo.95.2019.06.13.08.12.11; Thu, 13 Jun 2019 08:12:11 -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=Ue87XHvD; 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 S2388117AbfFMPMK (ORCPT + 25 others); Thu, 13 Jun 2019 11:12:10 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:12784 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732289AbfFMNuW (ORCPT ); Thu, 13 Jun 2019 09:50:22 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5DDkNs6010989; Thu, 13 Jun 2019 15:50:06 +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=5gqbigQzuPm78gX6OwWptVfTPVoyB0SK+37QgGiOQ8o=; b=Ue87XHvD5ZKIXu6PdZuN239KmgTduC8gejRAYkFkvfwojL9J57hHlgZBKo5PsLmrW3j0 pcORKZuIIkSE0HQeNcsaAH2k0JakIIGhef2Xb8qblyKU+Qor45JuCUMdhp/Unv0NsPKI xZKYTst+hHzM5S/TIMAbAS+QDqLVpG7nQ8zZsyPI4Bi/mOM7XmyBoz9EzDiySOBJVoO/ XWGY/IGjQ4hJaaibCL6PDrWS8B+Qp6yyRNN/qWG8dw6VKQN6EdbodfP14L7oWk27gsAT aNOVid0gtvqUN7ppYoRfS22IvyFBF/GdZY+1CLzDnrgrbGAWlHgj956WjWKY3yPVMnmP dQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2t2f8ecgqn-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 13 Jun 2019 15:50:06 +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 B91BE34; Thu, 13 Jun 2019 13:50:05 +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 94B2F2BC0; Thu, 13 Jun 2019 13:50:05 +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; Thu, 13 Jun 2019 15:50:05 +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; Thu, 13 Jun 2019 15:50:04 +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 v3 00/10] STM32 usart power improvements Date: Thu, 13 Jun 2019 15:49:50 +0200 Message-ID: <1560433800-12255-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-13_08:, , 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. Changes in v3: Move pinctrl/consumer.h include from "add support for no_console_suspend" patch to "select pinctrl state" patch in order to solve a compilation issue. Bich Hemon (3): dt-bindings: serial: add optional pinctrl states ARM: dts: stm32: Update pin states for uart4 on stm32mp157c-ed1 ARM: dts: stm32: Update UART4 pin states on stm32mp157a-dk1 Erwan Le Ray (7): dt-bindings: serial: stm32: add wakeup option serial: stm32: select pinctrl state in each suspend/resume function 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