From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 B14E97CF39 for ; Thu, 23 May 2024 08:02:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451353; cv=none; b=oqGcFTxSuOsFWHh+wz3FJsCJddXqLwcv8RhgdLOHV6q3+QKg1Nax069otnfDnZUpKNwLDZr2tlOyFH28kxGQpGJvkJYSjNCZBu3heZisqam8BEbyDlM413VYMv2qRKlViFPqInMHGuHhoSbJhNrsu8G6RXVDjsU9KSIUaG9d0to= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451353; c=relaxed/simple; bh=klatJAFWHBc0wuOs/nIGWmTjjd1VxcRv1nD6KbggBgE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nK+KQsZLuJn3XgQevwKmkI4tvJMx8e5S9w9ghXe+1pVcPQvYr6KtWArWFPBp7zr/uw+DnTbiDXlaQrJIAEgBpIsmVHH7DxBhTwV9WJ9PnD1zfVVCas2TELc87OI2j1C0Jc8HtZe3dVt9Cvf0bacllhobaeLMturwvjIZZWCWgdQ= 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=HEyrLJLZ; arc=none smtp.client-ip=209.85.221.48 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 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="HEyrLJLZ" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-354dfe54738so1202396f8f.3 for ; Thu, 23 May 2024 01:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716451350; x=1717056150; 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=0J2OeoCqQcca8A4XUgC5bySDFCw48o1TNPYwtFh2a2I=; b=HEyrLJLZjP56NB03ADK3PtQyNT3UX1lXGTttfs2BiEyLx/lkw+wYy2J785iBy4U7AL dr6yWbZ/hG/1xwLD1LnTwjExVHsID4t4nE+4NpJTdyhvi7LygDHfgVh6x9gBABRPjb5p 3Dy2AbA/B6cJck0P9Lx5yUWe8PdaUVyNrab5/f2UmrRw+yJ2zyzIiWfp35pYoyReOBvD CVTr1be4aVGLmZ/YXkulZDm33Q5G4+7aR9dFW7GFnStLO9jWkDlRi0brIbnq0bQVxvwH NScQlq3CH4Ep1bJ3KZlQCcqRxUV4mVc6ZRB1IJldYDpeM1lFFmjm87Q8pAfQjm2pxswj fUkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716451350; x=1717056150; 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=0J2OeoCqQcca8A4XUgC5bySDFCw48o1TNPYwtFh2a2I=; b=K1I6g4S0h1rV04U4LHkQoBG6nkzj9ZX9+H8/AA/f06eyVgKVmWXWzPL7GMpa1b7qzg HvCKTGrcnDJsXH5kBNjICCxav79hDGmYRG3sq3BLve2j0NV2j6MkZmO1cr9s0OICtGVG 7Urr8Th7gods4psTF/7kTXdIXSLcJruDMENpQKR9HLbiBrXN+G1XymV+jxB0e6ujDjbA 8aWSydVpWlVTDjaLMrS6VxW2Oga1LbpOyxiktselWlnXFZkBhnU/3AxmtGL7o4dHPS9O Yv6cq2LAK4mV5a1uRv3NbJw/Ojwti+hnutwBTfBTUPCFCzR765ZHwgvVt4Slkea62Dkx CBiw== X-Forwarded-Encrypted: i=1; AJvYcCW4aqRvS6WnYaGKdST+cqxoIceM/AO3axy0H0FoUEAeBQxUAorcRdVwJn5g8BEFVA1ahHDNiTrZ0esIybOEtzHxYOhESxXKgJiy1A== X-Gm-Message-State: AOJu0YxFrClJNUl9mmOcOChJR3xlfkxmCw628oqFbkoX8GOar0AG9Ry8 fjW3F/SdPNm9uItSga5IzZ5CN2QPlPHHCWjVPLXhq2/DWk4vcc1p+H/UxfgMzII= X-Google-Smtp-Source: AGHT+IFs4zKu4mkfSwJ00cEuqunFI4d5En43MpOl7AHLMm7sgx8p/3MO55WY1Bh9L819Lj+C7uR7JQ== X-Received: by 2002:adf:cd06:0:b0:354:f2b8:c75e with SMTP id ffacd0b85a97d-354f2b8c8b4mr2348864f8f.33.1716451349471; Thu, 23 May 2024 01:02:29 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4091:a246:821e:6f3b:6b50:4762:8343]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35501abfdddsm93637f8f.110.2024.05.23.01.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:02:28 -0700 (PDT) From: Markus Schneider-Pargmann To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vignesh Raghavendra Cc: Vibhore Vardhan , Kevin Hilman , Dhruva Gole , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann Subject: [PATCH 0/6] firmware: ti_sci: Partial-IO support Date: Thu, 23 May 2024 10:02:19 +0200 Message-ID: <20240523080225.1288617-1-msp@baylibre.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, Partial-IO is a poweroff SoC state with a few pingroups active for wakeup. This state can be entered by sending a TI_SCI PREPARE_SLEEP message. The message is sent on poweroff if one of the potential wakeup sources for this power state are wakeup enabled. A list of potential wakeup sources for the specific SoC is described in the devicetree. The wakeup sources can be individually enabled/disabled by the user in the running system. The series is based on Andrew Davis accepted patches: [PATCH 0/4] Unconditionally register TI-SCI reset handler https://lore.kernel.org/lkml/20240326223730.54639-1-afd@ti.com/ 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: - serial: 8250: omap: Add am62 wakeup support - can: m_can: 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 (5): dt-bindings: ti, sci: Add property for partial-io-wakeup-sources firmware: ti_sci: Partial-IO support arm64: dts: ti: k3-pinctrl: Add WKUP_EN flag arm64: dts: ti: k3-am62: Add partial-io wakeup sources arm64: dts: ti: k3-am62a: Add partial-io wakeup sources Vibhore Vardhan (1): arm64: dts: ti: k3-am62p: Add partial-io wakeup sources .../bindings/arm/keystone/ti,sci.yaml | 6 + arch/arm64/boot/dts/ti/k3-am62.dtsi | 4 + arch/arm64/boot/dts/ti/k3-am62a.dtsi | 4 + arch/arm64/boot/dts/ti/k3-am62p.dtsi | 4 + arch/arm64/boot/dts/ti/k3-pinctrl.h | 3 + drivers/firmware/ti_sci.c | 135 +++++++++++++++++- drivers/firmware/ti_sci.h | 31 ++++ 7 files changed, 186 insertions(+), 1 deletion(-) -- 2.43.0