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: 165720 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp5559125ili; Tue, 4 Jun 2019 01:55:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqykraRvYCdVtkedaPojYIZsWnzAyqsIrLk9LiTR2HywJ6g7E/LGKVhbu+7W5BsM9CeYiLyr X-Received: by 2002:a17:90a:cd03:: with SMTP id d3mr34142730pju.127.1559638546488; Tue, 04 Jun 2019 01:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559638546; cv=none; d=google.com; s=arc-20160816; b=DnMiqP678fkaqPbdzqBiXATIXsw6l7OD9oVQhRSHRhoRNtqX7YknU/bU8HGnY6xf5M ApgFLC0qDsCX9y9w6GnA96os9Xs9isvWJTrGbqaDyf37WkmxeUINBJWodXrrAuzmMT9Q KfK41xE5FM/btB2wPks1kwvNH3dzT3qDGGcsdUXps8jCAZ9uQDAADiXdypXHRdWfOnQy QxX0iEwq+t9YiFowTj6zxU734vCjlM2uRpg8m314MmkNcaSRAGPOr8ejsiwlm/70m+Xa 3z2MnlPKMIDOJ3dyOE9m30/9MB/u4oOBep5DUM6mjK7oglKiMtPeihCOIV8x1WggiRT8 ziPw== 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=aeRZHet8+3ng2HzHWI6D57uf7dMIn0WG1kjDInB0Y8s=; b=dGGiDlXexD+m+gLO9S9iDwZpfAHKxF9cwp44lYiOWP+omd20rQsXGtJFMpvA59Z4GQ CeWCZvQnAl4gRcPs36dxo69dMkXO1FtFONBAFmJXMSX4thtXm1ohWtZu+EQOEg2fYC79 YJMadG/X9QQpX7YxXRDboGZJswxsBWy3j3hR5YoJ3pCT0eq2n5vZNxH1pfFStcwP9QTb 6rAe/YttVcpOoHqqL/U7O+Z239VYp/PNtaGZVQPCmXQMdEARiwhgrlY5k6TK6kIrsFQC J3DTZZy3GkkEb8cKHB7MNyXy5++iXQtiuT+FcGPAI+ZxTQybVLDPNbGKO/ur7stgjFf7 246g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=wiKlCJWM; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 j14si22983671pfh.232.2019.06.04.01.55.46; Tue, 04 Jun 2019 01:55:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=wiKlCJWM; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726918AbfFDIzq (ORCPT + 1 other); Tue, 4 Jun 2019 04:55:46 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:52684 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726708AbfFDIzp (ORCPT ); Tue, 4 Jun 2019 04:55:45 -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 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" CC: , , , , , Erwan Le Ray , "Fabrice Gasnier" 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 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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