Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp831732lqp; Thu, 23 May 2024 00:54:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvZrSegWR328y3zmdzfgyD4ftAYlp/ulIFa+1ejH2A2zA41i2ZI4+0RkfMRC6TrnzeJ88Mne9cMveh2NdzKOvyFkiw50KNjjU2sp6IRA== X-Google-Smtp-Source: AGHT+IEAdFZ7+i8B1mFFQBA+PIp2NdXciB0tLienOOQLr/TnK02rpBsHhXdcNd3TMMUpDGOm56dg X-Received: by 2002:a05:6358:403:b0:17c:263a:5b8e with SMTP id e5c5f4694b2df-19791a7a286mr380279555d.14.1716450878108; Thu, 23 May 2024 00:54:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716450878; cv=pass; d=google.com; s=arc-20160816; b=qvLEtRprYFNBAB0CQoXcjtTv96gzCcWSJeqMjV6cYoLEQ5ddwdFQNxXUxi1QLr0SbA MnIgwTQAAfCX+s/bCeJaPFCzRI5TvmXXRuYo7wAytXmzCwxtikBL6m+dYf73pS67mf5A V0G+J32ZWLBgzNAw0ocZBVOPeKRLOzZ5m1qGKyb+flhU6KaRr8mC09k/2kh7CB3H0p1q wOq0a/5qk5avMuYAsbal6LHpWVqFeKb/0Qe9zz8zuN+LmvjIXDskgZrzudl92aOhlYuW /gQf+S9rz6U7olqRKesYY6ULnOjvOYYMB48TB8YWKJDTjytS9mewSndi/8wZ4ki9sICS bMGw== 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=NO+7TP5WD33s7UxZDGhnr50qHmYrw+DG3n3RuvKTKAk=; fh=UNdU+Gpzk95mVcswu0XuYD3vO6+wBfroZk+NEX1mgpk=; b=TqPibJaBBP+MtbXgPYXXZEtuKM8kg0hirMU9PCI3if4McGsMrdrPLoOSlLz5oU+ebc 7InQrTcHJF/dfwV7Ltuhi921hHy49A3ChNpXXP+zZRgDzTZDUZmnPlsW633bp58kpOkq dknNCc5PJ1WAoaeptmeJYmdX1Se+wI5Tgjpeit6QCdixw3GqjxfMQXoV2dMdwzuG36PZ 8o01fAvlirsXDIPSWRiYvC+HYJrlhRKVegL0K4Qsrsa/lslPou1qGrLbIZVG3xvjvRdZ 58xVWa+5PzjNR9fWtYZgjnj3SUQSQt1N086/7b12+B+4EoQfSiB+lOj2vr5qbQa+FuSR aueQ==; 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=yBaEPaHv; 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-187114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187114-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 41be03b00d2f7-6340a632532si1091307a12.83.2024.05.23.00.54.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 00:54:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187114-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=yBaEPaHv; 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-187114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187114-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 891C7282F60 for ; Thu, 23 May 2024 07:54:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F14AD13CF9B; Thu, 23 May 2024 07:54:27 +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="yBaEPaHv" Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 84A0D1869 for ; Thu, 23 May 2024 07:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716450867; cv=none; b=TvbdMP/+j03t4tzNX8f1/MmnMXWPVCs6afCYZotCyMzkXsgVVFGzwr7CS9ZpomT9i9SzqUfAaadpLB45Nf9YTw2PkSQFhv8rb1EMpRHzczvYrCaYB0OOoAPKL2F4JLOvRDwSryUSy0+2FciVP3U9WGvxNzmrFfSLZ/yuIo1guc0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716450867; c=relaxed/simple; bh=6TUTSQLYTCUXIs3aeg91Rm5y9++WOvlHb8bfQgVmnOo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Yht7U5rMzlv7caFImyV+Xa1O1aCg0GVclhn7igAOuLNljwlTNGbmw3M0b0viSRPPhEFCdiJqOGQz7LcSBziTfjZ6G2say0l7zSGoUecJMIVPm/+uRTcHp2DOBWdvDy7cJokuL3peAZRAr+pTlg7PbUuFRNcY1yU4VL5fhl5dnw0= 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=yBaEPaHv; arc=none smtp.client-ip=209.85.208.173 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-lj1-f173.google.com with SMTP id 38308e7fff4ca-2e3b1b6e9d1so86401991fa.2 for ; Thu, 23 May 2024 00:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716450863; x=1717055663; 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=NO+7TP5WD33s7UxZDGhnr50qHmYrw+DG3n3RuvKTKAk=; b=yBaEPaHvMhb6JhqKTT7NICNmNkBb7AcJDdinIQxt+Wje26d/lB74llcw+xJ14oGq7Y ouXflFjtN89OI5+MsRnSXoLZeIeBGLMA/IwU1pNP1Tt3rGGrry9WgiLr59WZDgWBTxzs oEA1aQddfbDiSMHJNNbg5YbOzAxjwmtKCvqU8eEHX+rLJUws4au4BtmPpe4QXOkYlraH V1vckaPyMShn6cGqZD9DzzVxiVZgCTtftqhnSzXOVp/SEFVpZFUIbdjx7lKYko2NKHwY KQyBKvoS7LrmFvis3zY5OnNaWQaEHz3I+NBCrI8YGy+JWg4O/no0cLyR3mSgy+rq5feb c3tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716450863; x=1717055663; 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=NO+7TP5WD33s7UxZDGhnr50qHmYrw+DG3n3RuvKTKAk=; b=K+yJLl0pp3pj4krMvU/7heayIp1vyCM5pOK493zDqFLfn+LN0Al5AUA9kkyrec8aio LILF6lRWyqdUNz++B+hjTM4gD3JcDESGU8PPy7m2mpw9hOosWpVfSZCFU0i9irE2CaJO ONbC8sGKUL8W+8M0j7Z8VJnlqlQeGkQj0xm1qp82KJmNDvNt7yrsQdZiaSPOkpF3vuIx iO8T4Iz56vlk6B6TwhvszPqQDKW6FEhQxBrN2f5/1rNaSEgKk+UhEESNQh5T/9Sixi2T i1/9DMddMRz8KYMVX7MWj1UYd9hlbbQ1e7dNsRTiZgTuSpxKdLeXPNPAATcmzWKhiiug eusQ== X-Forwarded-Encrypted: i=1; AJvYcCVDQfFDj2nTUs3fm0OEwTwTDSHaLcXHtsY03aBwEd7cCza3X2Vc5fCDuLe5Q0wT40AlofAEJ8Mdwc9oJDjx7D0nFrsQPxjwnF+I4+k7 X-Gm-Message-State: AOJu0Yz+A4kFoEUGfgzzqfYbrFADtEpDTHYdqyBHjex3xdM/ENT+KFzr s24vYcDJM04pG+xNG/CW7ixKmEEZaMjcShSAYSYvfYn8ezvyd4zk35uoSxmQ8fw= X-Received: by 2002:a2e:874c:0:b0:2e7:2907:a63b with SMTP id 38308e7fff4ca-2e94946e2bfmr26921751fa.21.1716450862499; Thu, 23 May 2024 00:54:22 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4091:a246:821e:6f3b:6b50:4762:8343]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad074sm36501833f8f.70.2024.05.23.00.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 00:54:22 -0700 (PDT) From: Markus Schneider-Pargmann To: Chandrasekar Ramakrishnan , Marc Kleine-Budde , Vincent Mailhol , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Vignesh Raghavendra , Tero Kristo Cc: Vibhore Vardhan , Kevin Hilman , Dhruva Gole , =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= , Simon Horman , linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Markus Schneider-Pargmann Subject: [PATCH 0/7] can: m_can: Add am62 wakeup support Date: Thu, 23 May 2024 09:53:40 +0200 Message-ID: <20240523075347.1282395-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, am62, am62a and am62p support Partial-IO, a poweroff SoC state with a few pin groups being active for wakeup. To support mcu_mcan0 and mcu_mcan1 wakeup for the mentioned SoCs, the series introduces a notion of wake-on-lan for m_can. If the user decides to enable wake-on-lan for a m_can device, the device is set to wakeup enabled. A 'wakeup' pinctrl state is selected to enable wakeup flags for the relevant pins. If wake-on-lan is disabled the default pinctrl is selected. It 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 - serial: 8250: omap: Add am62 wakeup support A test branch is available here 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 (6): dt-bindings: can: m_can: Add wakeup-source property dt-bindings: can: m_can: Add wakeup pinctrl state can: m_can: Map WoL to device_set_wakeup_enable can: m_can: Support pinctrl wakeup state arm64: dts: ti: k3-am62: Mark mcu_mcan0/1 as wakeup-source arm64: dts: ti: k3-am62a-mcu: Mark mcu_mcan0/1 as wakeup-source Vibhore Vardhan (1): arm64: dts: ti: k3-am62p-mcu: Mark mcu_mcan0/1 as wakeup-source .../bindings/net/can/bosch,m_can.yaml | 20 +++++++++ arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi | 2 + arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi | 2 + arch/arm64/boot/dts/ti/k3-am62p-mcu.dtsi | 2 + drivers/net/can/m_can/m_can.c | 43 +++++++++++++++++++ drivers/net/can/m_can/m_can.h | 4 ++ 6 files changed, 73 insertions(+) -- 2.43.0