From patchwork Thu Jun 13 13:49:51 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: 166683 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp885109ilk; Thu, 13 Jun 2019 08:14:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7xQ/1YrBplDQCbmz5QQqXe42tMBdl36s6iKCsdOwIbJk+B8gc9YJdkzcD5zq8GEKnOm8x X-Received: by 2002:a63:6f8d:: with SMTP id k135mr31454999pgc.118.1560438738101; Thu, 13 Jun 2019 08:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438738; cv=none; d=google.com; s=arc-20160816; b=Vg3PoqE8tQu7lyZ0Ve5GbcONAn4TmzLIxn6Jkehxn/INeSQ2lGB7Wy5iwwWhcXncAF gJ3cr0IgUeebGOr/WegGxKsV3Q4jrcDd5uDZUGA92eLJs3id/gJRUM7al+C4xULD2xZh oAMnoYNCbqBX38mJsH9+LiTbw0WLQLLjV+DvNjKof0eqenGRtQ3DHwJhY3Ms59WbXM2k PKATZjiznSmd/kxMWjtYGiuBF+efiJYElgZ6Wy1PQ3ktPxWHzRhSiAGxyZ0K5QEW/qne +YCQSto879R3Ld6oH7ybloCP3VZ4XGpyNoO+hpdAT7kCO/s85Hyu6TI21Xb0GJMw6u2F s0gA== 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=9gSGjqYoy+Fbf2xPESzbOyGUbO7HOvEvjLu/ZOx6/bE=; b=lgHK+aKkY29dXA4FfUwvtnhit1vabAPNndpuRY1uY7iZ0HdzjSnSRAqqTKb0HUOtgB PgYH7pxA2Lok02KkuLyE5tqgF62FDqiIu1Ij/dNwmSg4JdgUi+90q3fCYNr3/Be15YeG A/fm+yG6I5lD/v3Oe/xziRkVu19uly2J5DLOfpW7kyRZHe7kfS8LkjO2VgXj9hvIJJhE 5g358l7NBTFXyA22kxXggkKPNCj7qgCOiW+KffYGUwXM/2XAvrzTr4v2VonTF0Aw3mMY D3LHxbsUHwPxhXkWLr7vqznLf+3v9V78pT02lR5D64LK0owqjbxXcoAgt/atKJQ+Nh3W yvJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=pXcj6LtC; 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 w4si3323889plp.223.2019.06.13.08.12.17; Thu, 13 Jun 2019 08:12:18 -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=pXcj6LtC; 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 S1732367AbfFMPME (ORCPT + 25 others); Thu, 13 Jun 2019 11:12:04 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:48710 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732290AbfFMNu0 (ORCPT ); Thu, 13 Jun 2019 09:50:26 -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 x5DDkxMY019851; Thu, 13 Jun 2019 15:50:13 +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=9gSGjqYoy+Fbf2xPESzbOyGUbO7HOvEvjLu/ZOx6/bE=; b=pXcj6LtCHYL6EtxnPfIvZzHvGM5Llo4PJOqzFMBrLfpeFoOlmtSRwHQZY2mJkqt62gc2 mITKuIsEXlJ0GF4T3JEY2pjBip8FCJT71ajPI2O1+hdhPYU7UWWijvlZqpuYPb3NxU7l Y+eQDFs0QLffXLADWmLWMdO72CegM772nR1Vc9zsSN2H43O6MICZsZk8PYryOVdG56bK xblLjTth6FKZ3Us9TJUrlG4hD5ErT+PKyLNOyP5h7EkOVNXf7Fbr0Tq2TgDv3Rq6WUoH 5a6RcMto0xKudSbPp4UGhxnaW7+TXrL2eIC2l8cRAGkNpOKSnlQs8WDWbqrjPCsgeWeg 9w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2t2gxec010-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 13 Jun 2019 15:50:13 +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 2228631; Thu, 13 Jun 2019 13:50:13 +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 EA9782BC2; Thu, 13 Jun 2019 13:50:12 +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; Thu, 13 Jun 2019 15:50:12 +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:12 +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 v3 01/10] dt-bindings: serial: stm32: add wakeup option Date: Thu, 13 Jun 2019 15:49:51 +0200 Message-ID: <1560433800-12255-2-git-send-email-erwan.leray@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560433800-12255-1-git-send-email-erwan.leray@st.com> References: <1560433800-12255-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-13_08:, , signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a note for enabling wakeup capabilities of usart 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 9d3efed..5ec80c1 100644 --- a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt +++ b/Documentation/devicetree/bindings/serial/st,stm32-usart.txt @@ -19,6 +19,11 @@ Optional properties: linux,rs485-enabled-at-boot-time: see rs485.txt. - dmas: phandle(s) to DMA controller node(s). Refer to stm32-dma.txt - dma-names: "rx" and/or "tx" +- wakeup-source: bool flag to indicate this device has wakeup capabilities +- interrupt-names, if optional wake-up interrupt is used, should be: + - "event": the name for the interrupt line of the USART instance + - "wakeup" the name for the optional wake-up interrupt + Examples: usart4: serial@40004c00 { From patchwork Thu Jun 13 13:49:52 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: 166673 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp797829oca; Thu, 13 Jun 2019 08:12:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjr/zsdEDyMJEC1ji38d1i4H2IXlYuOHB1qkcgmzeWHbZsrkPYKEtgsSJL3qhdC5AmlsLC X-Received: by 2002:a65:63c3:: with SMTP id n3mr11033847pgv.139.1560438728414; Thu, 13 Jun 2019 08:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438728; cv=none; d=google.com; s=arc-20160816; b=oSAGKI8T4XBWBX0qqE+kGlHYqsU9mali785Ml3eaj8ckpM+6WP6+d4/b5fJNgZGr3Q 2e4LXjGaZ0TJh+ujW3X4X3Wkk2bXEk4wFGSe9+WBYwDFxdIaUFV+/oKaTrNUbOM0Zijn OPzWqe+8hgIJ+xBzpv06nSJgcg5fdD6ICyIqBCfA+2kQjqZHd9l01HiVUPQE3JzKMYux iII+7+enz0TunbZh/W9Fcy7ceKWDixaHk6AbNoB85KCxrYzd1QkqiEsk3xz39RPbN732 XIEKDdlYPt5wuBpvkomSszJfrApiObsgnYzqXMwhIOr9YSJh/GFGvw3axEr1ipDizsEI 5Scg== 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=G+rkCsZnH4kTJ2ZQeksedWm1TWXhpYSW4SYFdbHSnC3zVxT0GExCn5wAczcTiLhs5N KSC5lZjEG2ffjfPPfwEsk6JPZ9m+dgDJDl+3PuRc4yEhb/v+6/RyTLmEpqk8mqnqv0qS UgxYWdlGSSZV+wy+qKORZmL4uWyEAJu+pxgdXUn+xHZMugvtn1i6K1zQDDPeJySrRjem Hl89tPcHaCs5Emtl2STszi04zXezuPxWNjJ2XGs06pv1Y1lSI6JV8RFtFkaxg0nawUIs viUc8Nfdei56DuZVfvEuqUeesi+l5UB31VdCSTlEvEEvLa+qQHTfgXBFkZpiinmYbPmp gJDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=WIoDnfwT; 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.07; Thu, 13 Jun 2019 08:12:08 -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=WIoDnfwT; 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 S1732679AbfFMPMH (ORCPT + 25 others); Thu, 13 Jun 2019 11:12:07 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:21666 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732291AbfFMNub (ORCPT ); Thu, 13 Jun 2019 09:50:31 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5DDlO4w027701; Thu, 13 Jun 2019 15:50:15 +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=WIoDnfwT2Lvl5uka5QWoFdeeNPZ8oP5D+fSpCiLpQo+CZTFie4V1i/ds6flvxctfD3bt gjMy0/+VEx8OfkjzhrlUEeH7VPZ2zSKPs16TJ5gdyLu94+bZREimLhgEu8jaQEGlTaT+ NE9CKsRRaA0NW4qHeUZBO/fEDFxKHQW0BQ6OfzD0bBX66di2q88gu4Uh4VNXrL3OH+y5 XyQn8fv3w7fvZgm3Ji5Z7eu3f9elrRdc2uYKp10PQZD260O9VikoFhw4/2ZgMZTC5WOF /mR/IbyxnA51uD+v5+q7VE/qgS3neJQTQHSd8PEGphh7o1wUoJij1EyvMeAkM8Ba58xh SQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2t2f8c49a3-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 13 Jun 2019 15:50:15 +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 CE9F73D; Thu, 13 Jun 2019 13:50:14 +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 736032BC2; Thu, 13 Jun 2019 13:50:14 +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:14 +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:13 +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 v3 02/10] dt-bindings: serial: add optional pinctrl states Date: Thu, 13 Jun 2019 15:49:52 +0200 Message-ID: <1560433800-12255-3-git-send-email-erwan.leray@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560433800-12255-1-git-send-email-erwan.leray@st.com> References: <1560433800-12255-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-13_08:, , 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 { From patchwork Thu Jun 13 13:49:53 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: 166675 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp883664ilk; Thu, 13 Jun 2019 08:13:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOgwgfvY9gfGYgQrSGDIQYhUXS1sHGTHWo/YZtLRiEurZHgHYlXZ4FYi6sGO4zKHTz6dPb X-Received: by 2002:a63:b00e:: with SMTP id h14mr30948848pgf.321.1560438695490; Thu, 13 Jun 2019 08:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438695; cv=none; d=google.com; s=arc-20160816; b=KI/4tdIAJGW4+qGQzHA8N6lRFRigm6cgjtntb+Wyp3N4Ow2yRnWwcVkgSleut0mF6Y wfX1/3vnj23rYvGK1gv2VYXyba41UbsszpDco0xuvVRe6L4096l4IAyoVXsbMXUkUdo0 fTsnohlAsyA2BfcYPJy6luv5irOM6w+NKxAVovUVGnUYN5zP5zE2s9t/WELm142Ektz5 64W7AJRIRL5+eAzAyYGMdX5cfVQmQUUh0QJ1wEKGXEfhZZi1rvMGQ5Q6oCXWYhvh9cz6 r9MOt8lbAzRw5HAkDHqsh2qEkS+RzTqjMnxrNgvK/QUchSd0Uxwy/Qgyb/Peh+ucgZif PfiQ== 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=iT7+5JC9WPbhI5PaS7+Ewr2POFob/Asvvo5ll9SBvAI=; b=BbAyEf/eRxxfuhX9pwtRrvAl1jiOzYP3B4fQglut5IeMpfrF1Og51J2XK+s3Z8YClx XvWaexzg681oUbN3rGo6unw7lF7WLVcHM9NkbMyz3DEdFkmhdyNyj46hC3yHNTMA5FkD CPOhLm/jCuJ912a0yl6VQntzPK1dDHTsviVE3cb3Tr3ArEfWs0zUSnoN+cWPUg4Pj7+S z5adpztSl5h0oVM3k7Ui6si2UblBm/Ofd9W25xgw+M2cpRQ2iouOk0xAxJ+hhRKLa3X5 ezf6nz499YCyouMRdqZMLQugLbUzU4b3765894aJMmhr+Djf8YgdouVkOJvPykYn9fwz e34g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=tdHdQXVG; 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 61si3428590plr.368.2019.06.13.08.11.35; Thu, 13 Jun 2019 08:11:35 -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=tdHdQXVG; 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 S2387589AbfFMPLd (ORCPT + 25 others); Thu, 13 Jun 2019 11:11:33 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:61401 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732296AbfFMNug (ORCPT ); Thu, 13 Jun 2019 09:50:36 -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 x5DDkN4u026656; Thu, 13 Jun 2019 15:50:22 +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=iT7+5JC9WPbhI5PaS7+Ewr2POFob/Asvvo5ll9SBvAI=; b=tdHdQXVGULeqAqq93hf4A/agVHC7Zc1wizbT6fZBLBGnmEY5DKhhmzkgIK+VBrBHtCG7 9IsGcCyWWtu3wrVxQ1ynI0qDWjV8c6pEbFMNaWTk4QeMuIB584f+ANY3RiKSrab/e7ci MNaPjVxzLaCeqNZMcRBN/nWF/86Ky5T9lOIWJEYwpe3vYzJob+r6ytPkBcp8oOmBE3XU QrHZk0NOPJyT8zzYAX/UTzPvjk/8DyLLTEkjC3GtPehrZTlLLLbKelAxw1rhhJbHGZta l28qExSbjGH03U03nXUII9zFsyLirviEAGEIxsW/93hwbe0n3cYATWeFnJyzIOYGatlz +g== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2t2k3cb6dx-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 13 Jun 2019 15:50:22 +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 199B938; Thu, 13 Jun 2019 13:50:16 +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 AF6642BC0; Thu, 13 Jun 2019 13:50:15 +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; Thu, 13 Jun 2019 15:50:15 +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:15 +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 v3 03/10] serial: stm32: select pinctrl state in each suspend/resume function Date: Thu, 13 Jun 2019 15:49:53 +0200 Message-ID: <1560433800-12255-4-git-send-email-erwan.leray@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560433800-12255-1-git-send-email-erwan.leray@st.com> References: <1560433800-12255-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-13_08:, , signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Select either pinctrl sleep state in suspend function or default state in resume function. Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray -- 1.9.1 diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 9c2b04e..a8f20ba 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -1298,6 +1299,8 @@ static int stm32_serial_suspend(struct device *dev) else stm32_serial_enable_wakeup(port, false); + pinctrl_pm_select_sleep_state(dev); + return 0; } @@ -1305,6 +1308,8 @@ static int stm32_serial_resume(struct device *dev) { struct uart_port *port = dev_get_drvdata(dev); + pinctrl_pm_select_default_state(dev); + if (device_may_wakeup(dev)) stm32_serial_enable_wakeup(port, false); From patchwork Thu Jun 13 13:49:55 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: 166672 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp797579oca; Thu, 13 Jun 2019 08:11:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+acf9ENbGqnH2DZspxvfXrlu0Qn5V1Nkd/b+h/p77nj1/tJL1AaXkOKgx0HGO1tUqnJBH X-Received: by 2002:a17:902:9885:: with SMTP id s5mr11061141plp.102.1560438715636; Thu, 13 Jun 2019 08:11:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438715; cv=none; d=google.com; s=arc-20160816; b=XI+QJpftLGJixu3k8kkI6r0po/IypuU0ErqFbpN72G4bOMsH2ACeRGNStR1tAgJcYm I+AbJp3qih1ARYOtF+kcSpibabrE2XTH1mN5l1sT9/kSrGGIehOpmB749X4lHyVlHrfN ILnapXoZFmCAr5YbTV7mVyYmjYmgU5bW9fygEkB6ffDBmVAW5zTdt/lKLsOVlSoPpXFD kolX2AEW0rbfYMNb1AWeyHPY+XB4PLz6OEH0D8NtY3hJIIAAsKVCCxT9DWwKyxj4jSU9 o5zKi+80kZ0/YI3MYkMVOYtfb22fWcUmy4v2GDAmhk9Q4VMVLfuYTfC4BVsIOUTCCpMG xDgA== 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=hQPL1lSMiaGkXN0tX+iDbilLpKHlu0ZCPZ1hRbTVk9w=; b=FJoqrlD27P8vREwYEYc7WYOMv/79uWUy8KsLr87W7UZlL9Mv9b7J1x1E8OxZSeEdYy f9tLFGwU7IyqiR1zvUAfF47ZBdML9TLj+C0LljlR2+qx1voPR0RD6LI2O/fPKhhqWa2w Y4ABJdcgp2VOLImhM4mpDGY4ACIaZPHG2/D4zzdmNPt5g3T/4cqpPUfZfwzOPBA+dQ4u BTWCbofgIwKL2F38btt28zLvq/3i6bIGERQf/I+0ZIixuYm8xqy9dTMzKgY9iIb7KCQs Pay79daBbN0ZMaE76gTBFA99sVXfrZrdI7IsG2BNhFTClzUGpIy9dLIIphwIfB1zVtwj Nvzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=N8YIAF1P; 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 5si3569542pfv.231.2019.06.13.08.11.54; Thu, 13 Jun 2019 08:11:55 -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=N8YIAF1P; 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 S2388082AbfFMPLy (ORCPT + 25 others); Thu, 13 Jun 2019 11:11:54 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:48750 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732292AbfFMNuc (ORCPT ); Thu, 13 Jun 2019 09:50:32 -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 x5DDkxMa019851; Thu, 13 Jun 2019 15:50:19 +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=hQPL1lSMiaGkXN0tX+iDbilLpKHlu0ZCPZ1hRbTVk9w=; b=N8YIAF1P1bqRtbJy25ruaHW0ZwzsImWsUZJYeuANBy0tsRU58dDRTrvOw1SUG/nru9HF dNi92tp3tUHseNk5L29C9/3jOFln2YWqFQh+LzXDFbkczNjcYV7SyG2H+byVb6s4SAtb lsQUBcVzIYn+k8v8iRA1T/erQYO+/habJJXNoTuI26i0cB58V3qHaupVPxe53QjvGfUf B+WaaopZapOE4RQn9d/FRf4o/Hd/c00VV+XTS6lqz+X9PcABfu4U27KsEXpcOuac2jCB lvpFx1xoWDoG4KxsRPN7EC+0q+NoR4esotnImXLu98PbjFJU0DsDcN90i/hBmAua0Vri Og== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2t2gxec01h-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 13 Jun 2019 15:50:19 +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 83FEA42; Thu, 13 Jun 2019 13:50:18 +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 4A5762BE1; Thu, 13 Jun 2019 13:50:18 +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:18 +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:17 +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 05/10] serial: stm32: Use __maybe_unused instead of #if CONFIG_PM_SLEEP Date: Thu, 13 Jun 2019 15:49:55 +0200 Message-ID: <1560433800-12255-6-git-send-email-erwan.leray@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560433800-12255-1-git-send-email-erwan.leray@st.com> References: <1560433800-12255-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-13_08:, , signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use __maybe_unused for power management related functionsinstead of fixes: 270e5a74fe4c ("serial: stm32: add wakeup mechanism") Signed-off-by: Erwan Le Ray -- 1.9.1 diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 41898c4..b0fb420 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c @@ -1276,8 +1276,8 @@ static int stm32_console_setup(struct console *co, char *options) .cons = STM32_SERIAL_CONSOLE, }; -#ifdef CONFIG_PM_SLEEP -static void stm32_serial_enable_wakeup(struct uart_port *port, bool enable) +static void __maybe_unused stm32_serial_enable_wakeup(struct uart_port *port, + bool enable) { struct stm32_port *stm32_port = to_stm32_port(port); struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; @@ -1301,7 +1301,7 @@ static void stm32_serial_enable_wakeup(struct uart_port *port, bool enable) } } -static int stm32_serial_suspend(struct device *dev) +static int __maybe_unused stm32_serial_suspend(struct device *dev) { struct uart_port *port = dev_get_drvdata(dev); @@ -1317,7 +1317,7 @@ static int stm32_serial_suspend(struct device *dev) return 0; } -static int stm32_serial_resume(struct device *dev) +static int __maybe_unused stm32_serial_resume(struct device *dev) { struct uart_port *port = dev_get_drvdata(dev); @@ -1328,7 +1328,6 @@ static int stm32_serial_resume(struct device *dev) return uart_resume_port(&stm32_usart_driver, port); } -#endif /* CONFIG_PM_SLEEP */ static int __maybe_unused stm32_serial_runtime_suspend(struct device *dev) { From patchwork Thu Jun 13 13:49:57 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: 166670 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp797199oca; Thu, 13 Jun 2019 08:11:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCHV1lDbjn1nCTC5jh4yp+yyBpIb32kfFwDHvgBGUxRPbesQJEsWzBwrCCeskDgZkMmiH5 X-Received: by 2002:a62:5b81:: with SMTP id p123mr94269669pfb.158.1560438697730; Thu, 13 Jun 2019 08:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438697; cv=none; d=google.com; s=arc-20160816; b=v89LvEsaMe1Cm6s5Xb1+COuqWIylfBgz/KP/F9/9MESW2xYgK1wwCRWKfdNvpq9qaz qNbA7mielUm8KpfcnjF+wUx1vWS6fWbHXIFEORBrNAvEm3O91IIBHu9XJgggxsySoZQg d4AtrYz1ic3mtSksVZV1uyzBIzq9hfYoeSZEs1sDGNvus3OBfWusbN+RF1fP8fkdeJfB iNdCvD7G6g48T1TiwMV8MCp+4i2xuGVVWEYy4KfwW05mgxtHCQlyeo8BzRep9gbrJWzw uWXOGncJBmOTrJmaSmq5vaqmJSJiPVMLhb8vlpahoCaoGIqerWEzMRX4SJMOUf+X5/vc vOaA== 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=7dQ+9lqtmTtedvp/b3rgO/AqPLUdhqousiUICsfwmlU=; b=eMUePkkMNGsOL063tuZt6tfyyqJ3PeIXd9S1HGmwenOQWVw5NXBr7zdjEmWBYzq1AF F9WyXD9hEatfFcEW8qxgTtskCRIoKM8nakE06yknoswiqT0Iz+sr1OpEbqWGucvkEFOj el62Mn7OO75WiexB7Yfa2KDLOcPrIxk5Hhj7Ro/muItPKx/oadWIju/z4kqo5ZuOJP5A XXFKm77zYDIlJTr0ujd+wHeLefIR7Pzrc8lMJZfq99DCwpLXdEaBip6FSmVtH3MFuAVl 9EKpFN2Gz8+vODwrrQCXX2wxOzpjKedarcTRGszKKgq0gUWzlvI1q4lEtdwoOlb75PZZ tg7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=ijH4AZve; 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 61si3428590plr.368.2019.06.13.08.11.37; Thu, 13 Jun 2019 08:11:37 -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=ijH4AZve; 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 S2388055AbfFMPLg (ORCPT + 25 others); Thu, 13 Jun 2019 11:11:36 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:48770 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732294AbfFMNuf (ORCPT ); Thu, 13 Jun 2019 09:50:35 -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 x5DDkxYm019850; Thu, 13 Jun 2019 15:50:22 +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=7dQ+9lqtmTtedvp/b3rgO/AqPLUdhqousiUICsfwmlU=; b=ijH4AZveed8r4NRn2xYB5nDS0pakBJfLjvIf0GqKUmFnV/7y+itrFb9RfIPwRF9a3sA1 CRawx/Ss7DilL/8/TriOLtNJRsBGOvkirJquY7FdK907Ctabg73A+xw9rf4C7LW+7RAt eyGHhz6CAlJvEtQgYYxR09sKR2NoQgLRPsaSFOdjTx1z4YTpE8BVVQvtDz+Frp310hHJ 1/oatkRyxqaKhX9PUb/CLU1KxRYKzf6PCOAoowWF0DwSoI37XrMgzSAhHDYGItgAWEpE vE3rVEzkS0P3QKLxpVcnfkGE1/tVpvF6fu/KPAYJ3X5Z1/1p2lTHbw7Qmru+EK0Rpxs5 sA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2t2gxec01t-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 13 Jun 2019 15:50:22 +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 588373F; Thu, 13 Jun 2019 13:50:21 +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 3C5A02BC0; Thu, 13 Jun 2019 13:50:21 +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; Thu, 13 Jun 2019 15:50:20 +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:20 +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 v3 07/10] ARM: dts: stm32: update uart4 pin configurations for low power Date: Thu, 13 Jun 2019 15:49:57 +0200 Message-ID: <1560433800-12255-8-git-send-email-erwan.leray@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560433800-12255-1-git-send-email-erwan.leray@st.com> References: <1560433800-12255-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-13_08:, , signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, pinctrl states defines only one "sleep" configuration for pins, no matter the possible uart low power modes (Rx pin always kept active). Sleep pin configuration is refined for low power modes: - "sleep" (no wakeup & console suspend enabled): put pins in analog state to optimize power - "idle" (wakeup capability): keep Rx pin in alternate function - "default" state remains untouched, to be used while the UART is active or in case the no_console_suspend mode is enabled Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray -- 1.9.1 diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index 85c417d..2e1ab1b 100644 --- a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi @@ -599,6 +599,23 @@ bias-disable; }; }; + + uart4_idle_pins_a: uart4-idle-0 { + pins1 { + pinmux = ; /* UART4_TX */ + }; + pins2 { + pinmux = ; /* UART4_RX */ + bias-disable; + }; + }; + + uart4_sleep_pins_a: uart4-sleep-0 { + pins { + pinmux = , /* UART4_TX */ + ; /* UART4_RX */ + }; + }; }; pinctrl_z: pin-controller-z@54004000 { From patchwork Thu Jun 13 13:49:58 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: 166667 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp796710oca; Thu, 13 Jun 2019 08:11:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZAvJ+pzzBLVZaWWQ1Zfep+/pNtpn9IoXqVl987OokgCpWuapOT97fd91AOaOjq56d9aKX X-Received: by 2002:a65:508b:: with SMTP id r11mr765558pgp.387.1560438676194; Thu, 13 Jun 2019 08:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438676; cv=none; d=google.com; s=arc-20160816; b=zhOS8pwY716rZV3r0cLQCh5rQeN5c8MifbjEji0KN9iHBcET4JQ8dhWM7s3D28mAdc k0JScVQK4MalzHSpUXR1GRAY6t0F2Pdai8HdCFHYu1N4P239XZ9vRs46+nUZ36KpnMXN cfjynDYrygfMFIToAtAiPhPkdtVVB1jW/zQev062aDfZ771X7OZx12con2PSk6e+skcN 3eC1vYjGOhPZn9j9gSRn1NM7uMjUUzH77FB3IDfxK5KJLxem8/Or3b9rKDkK1frZ8aP5 IjvkL6M4DZ9YdafmeoF6KtUjk+seEiD+j5lPat4jw/FyyEuuFb6yYXr6rXO0nLy/MPsN +f7Q== 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=tCqCtJ+aEYgGguO+2MVvQssjCEBkv0n4pYDaflX/fgg=; b=frcKu19VOFhXFyfMPCas8wRaLIRWVev+D1vWeQhWKNwIUesb5O8S5iBVCLuChz1/E4 q5wxws1m1k49NLp7vUtDfvUVENvhZWl0CmdaKdh9v2JHb5phfTZ7IpHyQnhIwkNFahJF UPyQ/7jv7QSF3NxZYoqm81BpjT7szoNh5Tu4X2Y6F4MsI3MHEyxTbBlD1icjr8Zu13Xg GuJbQ2oxn0FRY1kWH/RmANDMk+UaV4gq0dn4yfsBmP9HenDeu8Ai0LDKWapubewDGjlk MlPfpuupeJSmSw6qHsDvdV0CgBOYH4VlBHsIphwZB41m1y4aURYjyaHNedjGI6R2v6IU ec0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=b8YQ3B+e; 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 i10si3594086pfd.226.2019.06.13.08.11.15; Thu, 13 Jun 2019 08:11:16 -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=b8YQ3B+e; 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 S2387515AbfFMPLP (ORCPT + 25 others); Thu, 13 Jun 2019 11:11:15 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:21586 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732297AbfFMNuh (ORCPT ); Thu, 13 Jun 2019 09:50:37 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5DDlOdA027700; Thu, 13 Jun 2019 15:50:23 +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=tCqCtJ+aEYgGguO+2MVvQssjCEBkv0n4pYDaflX/fgg=; b=b8YQ3B+epEurU2X7E+Aph242b4wrliFRxc3CHFTCIccsG6x2e6KTC4rOkml5ohreZ30Q +bTSVaqx5m5c8AyNrU0xLj08iFU/wDuf4zAoAklt7qNXyRijkSBfd7+bBlirWyjgdOd9 71E0Pl7vZDGtmvwa8jYwTcVGzICRghut/a3EnVYKJispk5Z0tVC6PIqj2P/YnuecrHnB +v3FSuv1Y4UPIJ32hC9mQM8EDvtNo5Q1n0N4ABBl9hJnD515fNf0QoMkdW34fTXO4cQ5 MMX6T7R93a+pz0FBTT+F1Z3G3kVQorwEsBTf6CaY1IziSb+TTis3ktFD1yA/7x/k9M2i 2A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2t2f8c49b1-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 13 Jun 2019 15:50:23 +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 73EC03F; Thu, 13 Jun 2019 13:50:22 +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 570AA2BC0; Thu, 13 Jun 2019 13:50:22 +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; Thu, 13 Jun 2019 15:50:22 +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:21 +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 v3 08/10] ARM: dts: stm32: Update pin states for uart4 on stm32mp157c-ed1 Date: Thu, 13 Jun 2019 15:49:58 +0200 Message-ID: <1560433800-12255-9-git-send-email-erwan.leray@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560433800-12255-1-git-send-email-erwan.leray@st.com> References: <1560433800-12255-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-13_08:, , 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 idle and no_console_suspend states to uart4 pin configuration Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray -- 1.9.1 diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts index 62a8c78..34cc847 100644 --- a/arch/arm/boot/dts/stm32mp157c-ed1.dts +++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts @@ -251,8 +251,11 @@ }; &uart4 { - pinctrl-names = "default"; + pinctrl-names = "default", "sleep", "idle", "no_console_suspend"; pinctrl-0 = <&uart4_pins_a>; + pinctrl-1 = <&uart4_sleep_pins_a>; + pinctrl-2 = <&uart4_idle_pins_a>; + pinctrl-3 = <&uart4_pins_a>; status = "okay"; }; From patchwork Thu Jun 13 13:49:59 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: 166668 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp796794oca; Thu, 13 Jun 2019 08:11:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCt5d1X8UKIVE0TpPa4STqu0NLySlIq9JyWyhrhYe+x5bNH2H380DTdyp71F3Q+aMHE/e8 X-Received: by 2002:a17:90a:2627:: with SMTP id l36mr6258760pje.71.1560438679470; Thu, 13 Jun 2019 08:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438679; cv=none; d=google.com; s=arc-20160816; b=RkkwpJCOaUOiukc1p7UAyOvWr5o45AYtxWdbcFPFBy5osk0E5XYF+yGhY4bw0UFBp7 y5oT9nZvIQcdLT0mdcs9f1UMXoYIhXZy7yWHpMeXPm5IRB5pyfRZSBdw24X2gHQ+xADq Y7xttNjtHYXXlbzibX9uWvQ7FrEM1a5CHJjoOff43FzvukKQ5DOjOitPfwo6J14fy/j/ 1FV/w3TocPGK97QiiLP50DtWsvFtf5VVxpK8SP/7CW9Oibtpqn4qmF0TLEWgEyVBwp0a fRCMElo5ravdTZPiSOYq/puFjqXVX6p+E9fv9+325qSc/PAt0R7/ITjmqVJ6XOTFkPl5 Jdyw== 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=k3/ECH5XcUZOXRvixEpZeLk28W6/a2P91oQPfmM+on4=; b=vhIKKrouXQsh8c9oO3UEGYUbozX2/t3GAuwwq6bwZu2rk6XZAADActZzv1MciWgWKv Rn6YKbZCZZXsWg4Mfr4s9G3D1ZXL8TuHoCYADEDGuwyjodRzEAItoNdfZOOnqq/gZ4t8 0vu1GuRbOWhXCSTMS0CFYD24PKJBPT9awKdTlEtFOx39QhHeo41IHcaSptnJ319hqqT2 VS45t4CI8bcfK3Ypb/+93vVD04FiRyY/4tWYzJgc6ZuKpluX7K7EVT5d4HRbm/Uv2bxx 0/EQYakExhZrYn4jztdyk2yJ6CC1Z35Hat/Smd+WpSJhr1rziSJk5xVMNCRXdI0IWOLR 9L4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=rCROcdPu; 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 i10si3594086pfd.226.2019.06.13.08.11.19; Thu, 13 Jun 2019 08:11:19 -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=rCROcdPu; 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 S2387971AbfFMPLO (ORCPT + 25 others); Thu, 13 Jun 2019 11:11:14 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:48788 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732298AbfFMNui (ORCPT ); Thu, 13 Jun 2019 09:50:38 -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 x5DDkxMc019851; Thu, 13 Jun 2019 15:50:24 +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=k3/ECH5XcUZOXRvixEpZeLk28W6/a2P91oQPfmM+on4=; b=rCROcdPucgEEK8Og12r5AdA4GASFXBx9Ick3SEOTTep/lObGdZD8wh2AaDcOwYA1dnV/ omdUnVUwfXhtyMh8BHYL0DLkXw5VBBC/q5nOJrlFeB5EFsbiUnNgAAV3f7PWjrsjQuCJ 0mBJwqb53dGuInbHhYdqsxO3WjtvtENXitA6y8nbBZjkCzUWz4uNTF0/oQknNcYYZqnP wHg/fsePpkl7PzMb9qQblCsDBe3cumvvunDsuw+1ufFoxzcx/KiMe8pyhDsJRcgkAr0m FGdBcgS34VBJshdEA0Q5bhDRTRdYaYBljsMLZkm1VCCcRUJCuecBuU15d6PqQUicUPh4 6w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2t2gxec01y-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 13 Jun 2019 15:50:24 +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 9299338; Thu, 13 Jun 2019 13:50:23 +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 747B12BC2; Thu, 13 Jun 2019 13:50:23 +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: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; Thu, 13 Jun 2019 15:50: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" , Bich Hemon Subject: [PATCH v3 09/10] ARM: dts: stm32: Update UART4 pin states on stm32mp157a-dk1 Date: Thu, 13 Jun 2019 15:49:59 +0200 Message-ID: <1560433800-12255-10-git-send-email-erwan.leray@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1560433800-12255-1-git-send-email-erwan.leray@st.com> References: <1560433800-12255-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-13_08:, , 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 idle and no_console_suspend states to uart4 pin configuration. Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray -- 1.9.1 diff --git a/arch/arm/boot/dts/stm32mp157a-dk1.dts b/arch/arm/boot/dts/stm32mp157a-dk1.dts index 098dbfb..b851f80 100644 --- a/arch/arm/boot/dts/stm32mp157a-dk1.dts +++ b/arch/arm/boot/dts/stm32mp157a-dk1.dts @@ -244,7 +244,10 @@ }; &uart4 { - pinctrl-names = "default"; + pinctrl-names = "default", "sleep", "idle", "no_console_suspend"; pinctrl-0 = <&uart4_pins_a>; + pinctrl-1 = <&uart4_sleep_pins_a>; + pinctrl-2 = <&uart4_idle_pins_a>; + pinctrl-3 = <&uart4_pins_a>; status = "okay"; };