Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp833079lqp; Thu, 23 May 2024 00:58:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTFVFnbo4F6SvaURM2SQFtUxSTouZcB06dpRrMMMVcykTxcvtWnkXc0kCsGuQ5sNvfpg77ZbWKFEL0aCi1txrNAX4TJjVnYvrRZdeV4w== X-Google-Smtp-Source: AGHT+IEwvf+8pcAQ6z86TrQEDHsLcTi/LrjUrkmX+KuLt4BG+8Dsd/eYsBOKRoMtQsGtw7+gn1gz X-Received: by 2002:a17:902:da8a:b0:1f3:3b0:61a7 with SMTP id d9443c01a7336-1f339f0b3c7mr22239565ad.12.1716451122192; Thu, 23 May 2024 00:58:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716451122; cv=pass; d=google.com; s=arc-20160816; b=ujuo9/VEJ1VwNq3d0yUizUplQQrTXaJdRdJg8QPYp4ATitIZLOmKi2jR6yb+ch9nZB 8DjYQDEAO0gJouH/VC8C4Y2auhRTvOsJqtoC1k4iyyOerfmbf5PVyQCwXrqJW+AOUhrA +ChdX81qZIeqX/FOEXUHuVI52h1eNqmUG1DWjYz6Lc1Si5nV/g6lvKSMEoPq8YpbccQu gjPGS/bdRBL0eV+MdV94Y+YmT4kNfo0GkYdDEvecxMAGWj4z8+IuXYQ0lS+BA7AwKX4X 6ZeDVGO4PiVd5w/ajoyZooq64vXG72tlE4tPdnyIBhuSxzsQwtvb/XXUb6mbEiFNxdBx TA3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ufllGCwa6G4RtEd5vl28DPHk2z3wosI7B9qfMgMUop8=; fh=kCWSUMl04jfRfpcybjdxmJW8p1j2QDofZxZPpiBcQj0=; b=eTJMB5sv52Kvcs0VzLqZMzqqKqYRQ3i1I37HrBbWLbYaByUN7JuA9sqfjt9bZ1UB4o TsCdvbZfArfIeuQu0XqMkvHZvmfHG7laLWuygGoYOX6xdljgUA4JOL6kAh3ykXAN1H91 AkyS6VV9wup2MiW35z+Cy3SsoVwxSYFjVlr7K674hgBrm/5DH500L4NjFP4OhC+7KWn6 eB8+HNsNMgyawz/ITAZ/Wf7kmvQWHOH/f5HbwDa/qAz898C7d0I49vbJgzzc1UIeNJxt xx1x3Hz5n38iHMbL5JLxC1UJYtY7FZNsKaDgLZzWBxRi4hpLmP4Sp/bbHqzirYIcmo60 3INg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=pfhp84pK; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-187123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187123-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f67a154cebsi14591147b3a.139.2024.05.23.00.58.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 00:58:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=pfhp84pK; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-187123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187123-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C014B28159F for ; Thu, 23 May 2024 07:58:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42BB713CFA6; Thu, 23 May 2024 07:58:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="pfhp84pK" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E48CF13CAA2 for ; Thu, 23 May 2024 07:58:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451109; cv=none; b=WIaKMy2UuE+KmKQCy3vQmKnzCNxtet2NtfvNmg1df2bWyk1HmAmL7vjSp/QP4nuJORmDIROAnAGdMMZS1huZQiGgx0zrjHraIE2op87WBjPZjisuN45iRtp3bjv7RrGQwuMcFUCN8lYitCFn3qTxcr7VMgyWuvcuViFHbVGLZYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451109; c=relaxed/simple; bh=pWvlBUsTahE00BJX6As7h5+KeekjrqWMB+YQjnR50/g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MDHIiT4n4hbr5ihtY9klw7wDJTMCypaV4N6bXizIntWaD04HQVBDenjOhk5HEmR4xbkWOIGd5prcMKO0SFN0UJGymw/yzsjPYe8z6KTpYYKlNE2Tvz0nSDrABTZT7eB9+86X9J4cqiGxc553fb7XOolELvHhe85Hf3ufTuNcQ98= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=pfhp84pK; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-42011507a4eso14765045e9.0 for ; Thu, 23 May 2024 00:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716451106; x=1717055906; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ufllGCwa6G4RtEd5vl28DPHk2z3wosI7B9qfMgMUop8=; b=pfhp84pKqyDiJ8h+fhVs1mXGPfuSk3Z4+Q7tqYRoTxQnVRpQSxC3DlHjcLyX8blDE3 IblQuAjRV6PglPK6yof1Qolx/+/Vj2I0f/D324cjex+fBIN+gT/6WI6/V4IJ6Xox8Tcp 4OMj2xNCTdO1+A0Kg+QHqMC0J7XfgLXRoE5JBvxc8IOGN0YF3Oc50sHVP7TXl1W81VHx ZPoqED82PAZpkUygRfdXwpgMjGzWiCIirAqOBOv/Ky6obP5haRiQXi6tRFUuvDkCvjp7 8v8Gd+WeIxTQMv+vRxqta3NfXZWgI0zhZD5ZzNdxD3oc1uoS8yZ0uYSbxgqxz3AJrJ2W nUKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716451106; x=1717055906; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ufllGCwa6G4RtEd5vl28DPHk2z3wosI7B9qfMgMUop8=; b=RYuHtVbGvCXcBtW9d49QPMefUmpPNobXc304rQj/3mKaxwyLtjb0pcGM+SyCIGt9Or hT7oaRgY9aZKi8soKWchNvq9l3qfsP5AO77XKVB/2iLWJSczUGJml7km9SMOV5i6uODs kDs+aYeovSAMvoxPDv2O4W+P1W9yk5gNo5kKlefM+sZW6T2Hqo1899hzFGW5txJszQA/ KaQwzKyTS8pR5O9inAQTcgL7coJadOZMCkQQ1RCs0EhhbX6BCk17wP3NEBCU7hNchw2M Qdg0c3zwcs3PzTm6b8rL5q2jL50JlXww5F/fK53uyfT12cHFu/yGIthFjW8MIihws7p7 MZyw== X-Forwarded-Encrypted: i=1; AJvYcCW+xWgpFE8Ihbm7bVKikrAmBFm14U7PrAzIswsB9g2IRVir5PYf23+f2dd99vHL/EubUi05mwgEXnlLOYLPhSJ3oJn9rbIx7YtJHFtW X-Gm-Message-State: AOJu0Yy71V0FWrvtvjwc48zSf7JqjF9zu26i+Ddm70MajLZtpo43syxR M3iwn/+i6ykegi9iTy7cBdNpbevy0dI6ILUvRbCtjJSILeyuAlBDvI+Tp8zroMY= X-Received: by 2002:a05:600c:3b8d:b0:418:6138:6777 with SMTP id 5b1f17b1804b1-420fd339b22mr30829365e9.31.1716451106146; Thu, 23 May 2024 00:58:26 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4091:a246:821e:6f3b:6b50:4762:8343]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42100f01d7fsm17359125e9.1.2024.05.23.00.58.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 00:58:25 -0700 (PDT) From: Markus Schneider-Pargmann To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Tony Lindgren , John Ogness , Markus Schneider-Pargmann , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Ronald Wahl , Thomas Richard , Thomas Gleixner , Andy Shevchenko , Arnd Bergmann , Vignesh Raghavendra Cc: Vibhore Vardhan , Kevin Hilman , Dhruva Gole , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 0/5] serial: 8250: omap: Add am62 wakeup support Date: Thu, 23 May 2024 09:58:14 +0200 Message-ID: <20240523075819.1285554-1-msp@baylibre.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, to support wakeup from Partial-IO using serial pins of mcu_uart0 and wkup_uart0, this series adds a new pinctrl state 'wakeup' in which specific wakeup flags are set on these pins. Partial-IO is a poweroff state of the SoC in which only a few pingroups are partly powered. If the user enabled wakeup from the serial port, the pinctrl state is selected on shutdown. For another deep sleep state, which is comparable with suspend to memory, the same pinctrl state is selected on suspend as well. The series is based on v6.9-rc1. This series is part of a bigger topic to support Partial-IO on am62, am62a and am62p. Partial-IO is a poweroff state in which some pins are able to wakeup the SoC. In detail MCU m_can and two serial port pins can trigger the wakeup. These two other series are relevant for the support of Partial-IO: - firmware: ti_sci: Partial-IO support - can: m_can: Add am62 wakeup support A test branch is available that includes all patches required to test Partial-IO: https://gitlab.baylibre.com/msp8/linux/-/tree/integration/am62-lp-sk-partialio/v6.9?ref_type=heads After enabling Wake-on-LAN the system can be powered off and will enter the Partial-IO state in which it can be woken up by activity on the specific pins: ethtool -s can0 wol p ethtool -s can1 wol p poweroff I tested these patches on am62-lp-sk. Best, Markus Markus Schneider-Pargmann (5): dt-bindings: serial: 8250_omap: Add wakeup pinctrl state serial: 8250: omap: Remove unused wakeups_enabled serial: 8250: omap: Set wakeup capable, do not enable serial: 8250: omap: Support wakeup pinctrl state serial: 8250: omap: Set wakeup pinctrl on suspend .../devicetree/bindings/serial/8250_omap.yaml | 16 ++++++ drivers/tty/serial/8250/8250_omap.c | 56 ++++++++++++++++++- 2 files changed, 70 insertions(+), 2 deletions(-) -- 2.43.0