From nobody Wed Feb 11 12:54:44 2026 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 8AD8E2EAF9 for ; Thu, 23 May 2024 08:02:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451355; cv=none; b=Y4G+NWxg5MlF/3ufrlbHsXDo1P8GWxOpqpAf/a9gG61AIqwZmCVc2U8j2YvCoJy6POAQpSZN9tauQm3ygdwhPDNFKyru8TzpKosuPNHy4GWteAOpm7X5fKDUOx0qb3WaDiZSPYR78A46uScoLdjCe/pLuYbjR2ucRrmgLyFkwg0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451355; c=relaxed/simple; bh=93BkviNCvSQMI5hCOWWFbJYlHSfKWs+OCnF5mCnvmxg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TXwSMxWFzD9GZfy0Gr0pLm9jp1MajM3XwkP0PMnqCZwpI2Fbo3U/bpFT2+B2/uaU9d36ybX+S92+AtS1/RJblZZQ217Vm/UfdDZW8CM18GAyx0SmjMtnpGsAfv4xPgRcq5mxcQVgckpgWO7h5oiQEd8PEniuL44CRN0dIxG07OA= 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=wkNDQulX; arc=none smtp.client-ip=209.85.221.49 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="wkNDQulX" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-354f6ab168aso302046f8f.1 for ; Thu, 23 May 2024 01:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716451351; x=1717056151; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hvk4HIZY8LHEcAUwcSCVMUiBIBW/hN1J4i9rPXs1rgU=; b=wkNDQulXNVjFwQp+Jmnx4X0GJKh94nyCsuDjeb4tYWZY217Dvb2k1LmsV1djAMlv05 n08m1EG2pOuzd366FlsuoB00eObM7Ll9VNxGX8DBdMA9+ioQsmgoS3WZSs7wU6sImhLI g1WeSEizbh+Edm5/qe4Ja7yJoCoAbK7JjwezObweO6dBOyAAvmtJ3a4DpkLclBiCCLcQ KZXA+vXELbkQoPU5Zb8imFcEiCIHLlX93ZJlY4eK9yoMH/+BZdbuPUbK7qNKQ9Cq6f8c DYG1otQyxeD02VKSx1aTKZc3cdd+W/Ja54R5S15Xu0HD5UTSzlEWL2FuSDdI8dxWDWhl fAXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716451351; x=1717056151; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hvk4HIZY8LHEcAUwcSCVMUiBIBW/hN1J4i9rPXs1rgU=; b=kdfrEpMzTRRQIG8NqR6dU2otdDmH38F2SLpCRdb8xKRAAEciOf1VUIUda/qTTer9XP MjiElh5f5t9+IW3r4NKqRLvWkWTrl4RdTqxx+LDslXTMSzPRaL+Y/82jPv9V47BpFerY m+VXa0KEra66f/j6LJypm4M563jqflhfh7vcLE3fM3LzccXWE9dMwizeLzEzOb4ZKcTx mMtuozm9YbPbblVB/qbWjAuysn2e9F6TeQ0/hui3gN1d+z8ZQ4tF/bq4kzywvOkjqSTg yeS05LCX6dLl6H9VI/vgwUyC8cseIQ4hsoEpaOieYDg1OjWbfcE3XZ8JgZVWY6aZgP7V HdYQ== X-Forwarded-Encrypted: i=1; AJvYcCVIEmHK/+f/NddPdznxSTS3mFKGZfvyMZMXxUhL3xi8v/z2nNX3RqqMo+ICay3wfVhz4Z/aJNk5ZItvzNwhANEnKNR4AgD8KqNNZ9Mf X-Gm-Message-State: AOJu0Yx7O9AoMD77SdCjsyOCV5fh7ImbVNjAvLn8Luq+RM0lgd7RuHqk xCmTHwtf2KhBuVnz6Dxi7Ym121ghRF+USYJ8Ctf+8scZUvmQCiHiF6PocLjQiPs= X-Google-Smtp-Source: AGHT+IHIDpueviEXVOQCfyMIdb4MDOW3f6eAQ8UhH17w3HoGPfjSwbQa24Vo8LaaSg9UtVgFg6tSMQ== X-Received: by 2002:a5d:456f:0:b0:354:f46c:856b with SMTP id ffacd0b85a97d-354f757c1c3mr1444427f8f.28.1716451350801; Thu, 23 May 2024 01:02:30 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:02:30 -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 1/6] dt-bindings: ti, sci: Add property for partial-io-wakeup-sources Date: Thu, 23 May 2024 10:02:20 +0200 Message-ID: <20240523080225.1288617-2-msp@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240523080225.1288617-1-msp@baylibre.com> References: <20240523080225.1288617-1-msp@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add a property with an array of phandles to devices that have pins that are capable to wakeup the SoC from Partial-IO. In Partial-IO everything is powered off including the DDR. Only pins belonging to a couple of devices are active and wakeup the system on activity. Signed-off-by: Markus Schneider-Pargmann --- Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml b/D= ocumentation/devicetree/bindings/arm/keystone/ti,sci.yaml index 7f06b1080244..c8ed0dd4fee4 100644 --- a/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml +++ b/Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml @@ -61,6 +61,12 @@ properties: mboxes: minItems: 2 =20 + ti,partial-io-wakeup-sources: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: | + List of phandles to devicetree nodes that can wakeup the SoC from the + Partial IO poweroff mode. + ti,host-id: $ref: /schemas/types.yaml#/definitions/uint32 description: | --=20 2.43.0 From nobody Wed Feb 11 12:54:44 2026 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 3C32D13CABA for ; Thu, 23 May 2024 08:02:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451357; cv=none; b=jZm4FbF1ttG+fYqNXYsNVUuZYeXu6zcsLP14CBQHrwP0E/owY2dioy6D5Tt2daFEMj+2D1k1JAI+H5OrVJWN8W1clMSjaUkfE2bThp2qQLkKjmxt6CZF/bzbzbRAmEByqWkg8f6+37zr1QAWYFXpj8D1FXE0Mdac1j8gGMB/pFc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451357; c=relaxed/simple; bh=j8+sHDjNw31cei+wC4fEL/gHqSzt2rHIkiQwgzGG6JE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NRJsAQibUhsSdRzkeA4osZya0lThpbq9N6dkdKyFvVnaWkmvQ3iZF8JhujxzuleQCrnKLvWSRlDtPOmTVfZ+EDIYlT4JRoL4e0TTS3s5ZreHcfzk5Lp65M1XyX3HoiiH6gF8vtSejLEtBgyrvhzHQ3sOx/rqfTvVjgi4uf24xZE= 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=fQx+ycYi; arc=none smtp.client-ip=209.85.221.42 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="fQx+ycYi" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-34dc129accaso1666127f8f.0 for ; Thu, 23 May 2024 01:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716451353; x=1717056153; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CKfwfIlswqj+NeWyOeSXupSHhvK+FlBEhFYxTgaPgZg=; b=fQx+ycYiq/5lpOJzeG2FRDQPqu+t4wwEgWWM1uPfguJ2OscVdBQwtuA6Lyq/cmuMV+ udKsQbcqhgRqWmBE1IWwMwF3E995ypggUkN3H8w8m50Ydr0n1kS4Hk8UcwV3p17bNsAr 0rRY/TdJxvt7kJkhRmlHT/CaoDfwM6ikfVaikIPfniucWCCut0B2uJa7VRdLP5zvpbmG ThgVo+6jXVCdblE/HI0Uvr8I6YklnhtQ9N5kkW5axw1ZHJ1kschsb+A9jx/73Tdeq1te UeqD0QkHwzqPkh8O/EoDsgJBvPnf0MGMhgCvjLtjecKCLzIiVj4PRmslgzl6xBvHkKGT Lbqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716451353; x=1717056153; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CKfwfIlswqj+NeWyOeSXupSHhvK+FlBEhFYxTgaPgZg=; b=plBXCDa8kXoLpt/pk+wXCknJKrxTUAazW/SDiQWr1swAxIP+BEfzqV5tGEArjLHDlb Ekoi/ZSF3GNIqYe5yYWHRDjuHIggnHsx2cpb02Sg2eKmgED4r0yQfQjFz46PiYoj0zbz zv9sZiT02DwueJHQ0391FLNshu6nSL2k0Yio0TRZdrA0gkA6Fl+hgPMzzCbf4AO0PC9X lJx7MhOTXu+6caKHN0tfaT03rT7HvQdPgnCZVTsVV/9+ZgO3TpZnvf6e/+8/sIb7sgsO i6cMOTeUnuXI23S7VdlOmkUto3BZLviu9VDz1YUJiALMihWdayJ2y7/G0u8H2vh9Fylv 90mQ== X-Forwarded-Encrypted: i=1; AJvYcCU8ozjKS/OOb+krXCYZmpz2MP46HeHIuHYTKSLV6y5W6cdXpJeaPtftGS7ErfKgZ9c4Gyu3HC+Kbge4WTmQTcjJ7srUFJGnu9ClqZ+7 X-Gm-Message-State: AOJu0Yx5N2z4i7kMoESBVH2Gzk4rfzOYunAJ2s5Iv8Bl8Qylq5JycZJ2 uiPk3hN5rgZpAErT5c4da2HnHTZctLGId6O59yJ4SK+dIffnw8mGatO1ikb6L9Q= X-Google-Smtp-Source: AGHT+IEiGPP2k0Tes52yuipZMzp/g7mrJRY1V/fQrwHdTe2JA41WKN+HYayFlOJdmGCEyJZnrhwD6Q== X-Received: by 2002:a5d:4007:0:b0:354:e72f:d5d7 with SMTP id ffacd0b85a97d-354e72fd6f3mr2266834f8f.24.1716451353123; Thu, 23 May 2024 01:02:33 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:02:31 -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 2/6] firmware: ti_sci: Partial-IO support Date: Thu, 23 May 2024 10:02:21 +0200 Message-ID: <20240523080225.1288617-3-msp@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240523080225.1288617-1-msp@baylibre.com> References: <20240523080225.1288617-1-msp@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add support for Partial-IO poweroff. In Partial-IO pins of a few modules can generate system wakeups while DDR memory is not powered resulting in a fresh boot of the system. The modules that can be wakeup sources are defined by the devicetree. Only wakeup sources that are actually enabled by the user will be considered as a an active wakeup source. If none of the wakeup sources are enabled the system will do a normal poweroff. If at least one wakeup source is enabled it will instead send a TI_SCI_MSG_PREPARE_SLEEP message from the sys_off handler. Sending this message will result in an immediate shutdown of the system. No execution is expected after this point. The code will enter an infinite loop. The wakeup source device nodes are gathered during probe. But they are only resolved to the actual devices in the sys_off handler, if they exist. If they do not exist, they are ignored. Signed-off-by: Markus Schneider-Pargmann --- drivers/firmware/ti_sci.c | 135 +++++++++++++++++++++++++++++++++++++- drivers/firmware/ti_sci.h | 31 +++++++++ 2 files changed, 165 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 160968301b1f..04730c4df2de 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -116,6 +116,9 @@ struct ti_sci_info { u8 host_id; /* protected by ti_sci_list_mutex */ int users; + + int nr_wakeup_sources; + struct device_node **wakeup_source_nodes; }; =20 #define cl_to_ti_sci_info(c) container_of(c, struct ti_sci_info, cl) @@ -380,6 +383,28 @@ static void ti_sci_put_one_xfer(struct ti_sci_xfers_in= fo *minfo, up(&minfo->sem_xfer_count); } =20 +/** + * ti_sci_do_send() - Do one send, do not expect a response + * @info: Pointer to SCI entity information + * @xfer: Transfer to initiate + * + * Return: If send error, return corresponding error, else + * if all goes well, return 0. + */ +static inline int ti_sci_do_send(struct ti_sci_info *info, + struct ti_sci_xfer *xfer) +{ + int ret; + + ret =3D mbox_send_message(info->chan_tx, &xfer->tx_message); + if (ret < 0) + return ret; + + mbox_client_txdone(info->chan_tx, ret); + + return 0; +} + /** * ti_sci_do_xfer() - Do one transfer * @info: Pointer to SCI entity information @@ -3262,6 +3287,79 @@ static int tisci_reboot_handler(struct sys_off_data = *data) return NOTIFY_BAD; } =20 +/* Does not return if successful */ +static int tisci_enter_partial_io(struct ti_sci_info *info) +{ + struct ti_sci_msg_req_prepare_sleep *req; + struct ti_sci_xfer *xfer; + struct device *dev =3D info->dev; + int ret =3D 0; + + xfer =3D ti_sci_get_one_xfer(info, TI_SCI_MSG_PREPARE_SLEEP, + TI_SCI_FLAG_REQ_GENERIC_NORESPONSE, + sizeof(*req), sizeof(struct ti_sci_msg_hdr)); + if (IS_ERR(xfer)) { + ret =3D PTR_ERR(xfer); + dev_err(dev, "Message alloc failed(%d)\n", ret); + return ret; + } + + req =3D (struct ti_sci_msg_req_prepare_sleep *)xfer->xfer_buf; + req->mode =3D TISCI_MSG_VALUE_SLEEP_MODE_PARTIAL_IO; + req->ctx_lo =3D 0; + req->ctx_hi =3D 0; + req->debug_flags =3D 0; + + ret =3D ti_sci_do_send(info, xfer); + if (ret) { + dev_err(dev, "Mbox send fail %d\n", ret); + goto fail; + } + +fail: + ti_sci_put_one_xfer(&info->minfo, xfer); + + return ret; +} + +static int tisci_sys_off_handler(struct sys_off_data *data) +{ + struct ti_sci_info *info =3D data->cb_data; + int i; + int ret; + bool enter_partial_io =3D false; + + for (i =3D 0; i !=3D info->nr_wakeup_sources; ++i) { + struct platform_device *pdev =3D + of_find_device_by_node(info->wakeup_source_nodes[i]); + + if (!pdev) + continue; + + if (device_may_wakeup(&pdev->dev)) { + dev_dbg(info->dev, "%pOFp identified as wakeup source\n", + info->wakeup_source_nodes[i]); + enter_partial_io =3D true; + } + } + + if (!enter_partial_io) + return NOTIFY_DONE; + + ret =3D tisci_enter_partial_io(info); + + if (ret) + dev_err(info->dev, + "Failed to enter Partial-IO %pe, halting system\n", + ERR_PTR(ret)); + + /* Halt system/code execution */ + while (1) + ; + + return NOTIFY_DONE; +} + /* Description for K2G */ static const struct ti_sci_desc ti_sci_pmmc_k2g_desc =3D { .default_host_id =3D 2, @@ -3398,6 +3496,35 @@ static int ti_sci_probe(struct platform_device *pdev) goto out; } =20 + if (of_property_read_bool(dev->of_node, "ti,partial-io-wakeup-sources")) { + info->nr_wakeup_sources =3D + of_count_phandle_with_args(dev->of_node, + "ti,partial-io-wakeup-sources", + NULL); + info->wakeup_source_nodes =3D + devm_kzalloc(dev, sizeof(*info->wakeup_source_nodes), + GFP_KERNEL); + + for (i =3D 0; i !=3D info->nr_wakeup_sources; ++i) { + struct device_node *devnode =3D + of_parse_phandle(dev->of_node, + "ti,partial-io-wakeup-sources", + i); + info->wakeup_source_nodes[i] =3D devnode; + } + + ret =3D devm_register_sys_off_handler(dev, + SYS_OFF_MODE_POWER_OFF, + SYS_OFF_PRIO_FIRMWARE, + tisci_sys_off_handler, + info); + if (ret) { + dev_err(dev, "Failed to register sys_off_handler %pe\n", + ERR_PTR(ret)); + goto out; + } + } + dev_info(dev, "ABI: %d.%d (firmware rev 0x%04x '%s')\n", info->handle.version.abi_major, info->handle.version.abi_minor, info->handle.version.firmware_revision, @@ -3407,7 +3534,13 @@ static int ti_sci_probe(struct platform_device *pdev) list_add_tail(&info->node, &ti_sci_list); mutex_unlock(&ti_sci_list_mutex); =20 - return of_platform_populate(dev->of_node, NULL, NULL, dev); + ret =3D of_platform_populate(dev->of_node, NULL, NULL, dev); + if (ret) { + dev_err(dev, "platform_populate failed %pe\n", ERR_PTR(ret)); + goto out; + } + return 0; + out: if (!IS_ERR(info->chan_tx)) mbox_free_channel(info->chan_tx); diff --git a/drivers/firmware/ti_sci.h b/drivers/firmware/ti_sci.h index ef3a8214d002..6d8b12341f68 100644 --- a/drivers/firmware/ti_sci.h +++ b/drivers/firmware/ti_sci.h @@ -35,6 +35,9 @@ #define TI_SCI_MSG_QUERY_CLOCK_FREQ 0x010d #define TI_SCI_MSG_GET_CLOCK_FREQ 0x010e =20 +/* Low Power Mode Requests */ +#define TI_SCI_MSG_PREPARE_SLEEP 0x0300 + /* Resource Management Requests */ #define TI_SCI_MSG_GET_RESOURCE_RANGE 0x1500 =20 @@ -545,6 +548,34 @@ struct ti_sci_msg_resp_get_clock_freq { u64 freq_hz; } __packed; =20 +#define TISCI_MSG_VALUE_SLEEP_MODE_DEEP_SLEEP 0x0 +#define TISCI_MSG_VALUE_SLEEP_MODE_MCU_ONLY 0x1 +#define TISCI_MSG_VALUE_SLEEP_MODE_STANDBY 0x2 +#define TISCI_MSG_VALUE_SLEEP_MODE_PARTIAL_IO 0x3 + +/** + * struct tisci_msg_prepare_sleep_req - Request for TISCI_MSG_PREPARE_SLEE= P. + * + * @hdr TISCI header to provide ACK/NAK flags to the host. + * @mode Low power mode to enter. + * @ctx_lo Low 32-bits of physical pointer to address to use for context= save. + * @ctx_hi High 32-bits of physical pointer to address to use for contex= t save. + * @debug_flags Flags that can be set to halt the sequence during suspen= d or + * resume to allow JTAG connection and debug. + * + * This message is used as the first step of entering a low power mode. It + * allows configurable information, including which state to enter to be + * easily shared from the application, as this is a non-secure message and + * therefore can be sent by anyone. + */ +struct ti_sci_msg_req_prepare_sleep { + struct ti_sci_msg_hdr hdr; + u8 mode; + u32 ctx_lo; + u32 ctx_hi; + u32 debug_flags; +} __packed; + #define TI_SCI_IRQ_SECONDARY_HOST_INVALID 0xff =20 /** --=20 2.43.0 From nobody Wed Feb 11 12:54:44 2026 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 2D80213CF9E for ; Thu, 23 May 2024 08:02:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451357; cv=none; b=hx7lDTUZYobcJtjEUjhFFZUZLkgyeg5MOrLPOfVCWIdTCIqafVfLf4mA0IAb3zGq5weVpbLRI+eyv35oCNG9ZE7ue/K+cNgf/OJBlO8dZaTsON3pAodBNitfZaboeH/bHQrPxI2TCR6nDhDJum6vCa5mhx84MdWunt8rBRgEWso= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451357; c=relaxed/simple; bh=n8HeudbjliWXaBQUvD9BlfeZlqMnARef/edVZd5Ox0I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XWOyHVOcWRWtt/i9Q3ykxvXiSI10P3b7S9H4o2pkfs8m+uSqMEA9Pade7sOVIdpcjm4/Xo8WXvfB3WlKNkEYCUIkP0VROtxT+Ozqx4p0voCoZ6CcgtoYU2WP+boy7snGWNGl/PEpnNbFSD8e463wFiqWS7pr75vpXCPcTY0AsGE= 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=VnEYlMwh; arc=none smtp.client-ip=209.85.221.49 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="VnEYlMwh" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-34d8d11a523so4005739f8f.2 for ; Thu, 23 May 2024 01:02:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716451354; x=1717056154; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jlxxT6O8N73c9hvaUpQrlj0G+RWv6RhO/OTBz0tylgY=; b=VnEYlMwhB3YrE1zWm5QkIj5YAazLoezxbNzVT0GL3bduaFBHR/NLOexFF23sL06ZfI ++qZY522ZzDJxVchGSynObBz3QoVbz0v4mG4gbFXSRi2mx1c1YKlkg1S4BZOt4VwpJMT eEFVz4Z6WpENy7fC1Fg1iTgweH1WZNqkw289SPlKZzafCXoGltm2W7Iv8LR5eZsVXZvd U6k2eXNNis4U2JiJ0Xc6M/c2C/83abP02WxpHOhe4fLJOs3Fxh+Zw0y//vgUuj2pd1eu fLDEa3tc9x0wv/6SLCRwna4WfVqtrpStidrvDLKQ36pa+ZRhVBQdcH60O6tj07r4Pvyz RuFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716451354; x=1717056154; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jlxxT6O8N73c9hvaUpQrlj0G+RWv6RhO/OTBz0tylgY=; b=bXYw0s+/3CFEIiB5qLWUg7Fm34FSPJ703QKrTo2cUyFMZXVWjdD/DkG0PBWbPlzn9J IZ/ppvuwLanMeDCyORWK5j6hENWj7gj42GFFl1HrSk9UfuAj2lam5YgoWKeTk9pf17dB pZdfMzdX+lt6bovmh3yMo8OD8o/dUF9gYTIYte5s2lWSr6n+fqRIWmBbfi0m6uqDHGTz 4MdektZ71ieej8wcmXGrVhrcp24XzzoWfeHD7mU8XW5dmCI82Ld6n9h9vGbiqs9QeGEa bYuc8tUGo/k4WR8ep2wg6kXmsLjZM7TY7G3CBtj+YBvYK5CzR8C4dhPX0r9uABeBZ+pW MRjQ== X-Forwarded-Encrypted: i=1; AJvYcCWPHUvh3mtZvzRVu6QFqPQwuvpy1OiL+0vKw2L8vCQMtPFMeKMGNxoZXLoWR/yZP2KTif0Iuwwt/mFnWJDzGh0jD5phsB/TV0aROoNo X-Gm-Message-State: AOJu0Yy8juamodYDiFYr4GNgJFKIokr9G9Q8gs+OJ2PWUYRPm8MuOT0T ewbUY9kLRMzga+WCM0TTPNIG2egK9z6ZYrmI8h1gSUfHUx3gtPxV2kUyLiRlGUQ= X-Google-Smtp-Source: AGHT+IHha0spuQLWF3mRLOAXmYo6c3Nk7W94QQizRM9z1j60uMb1s3ETcJpRBzV1BunMRUTV4mflMg== X-Received: by 2002:adf:eecd:0:b0:34e:34c5:2312 with SMTP id ffacd0b85a97d-354d8dade41mr2802684f8f.59.1716451354367; Thu, 23 May 2024 01:02:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:02:33 -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 3/6] arm64: dts: ti: k3-pinctrl: Add WKUP_EN flag Date: Thu, 23 May 2024 10:02:22 +0200 Message-ID: <20240523080225.1288617-4-msp@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240523080225.1288617-1-msp@baylibre.com> References: <20240523080225.1288617-1-msp@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" WKUP_EN is a flag to enable pin wakeup. Any activity will wakeup the SoC in that case. Signed-off-by: Markus Schneider-Pargmann --- arch/arm64/boot/dts/ti/k3-pinctrl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-pinctrl.h b/arch/arm64/boot/dts/ti/k= 3-pinctrl.h index 4cd2df467d0b..e36bce881f44 100644 --- a/arch/arm64/boot/dts/ti/k3-pinctrl.h +++ b/arch/arm64/boot/dts/ti/k3-pinctrl.h @@ -12,6 +12,7 @@ #define PULLTYPESEL_SHIFT (17) #define RXACTIVE_SHIFT (18) #define DEBOUNCE_SHIFT (11) +#define WKUP_EN_SHIFT (29) =20 #define PULL_DISABLE (1 << PULLUDEN_SHIFT) #define PULL_ENABLE (0 << PULLUDEN_SHIFT) @@ -38,6 +39,8 @@ #define PIN_DEBOUNCE_CONF5 (5 << DEBOUNCE_SHIFT) #define PIN_DEBOUNCE_CONF6 (6 << DEBOUNCE_SHIFT) =20 +#define WKUP_EN (1 << WKUP_EN_SHIFT) + #define AM62AX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmod= e)) #define AM62AX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (mux= mode)) =20 --=20 2.43.0 From nobody Wed Feb 11 12:54:44 2026 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.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 095BF13D254 for ; Thu, 23 May 2024 08:02:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451359; cv=none; b=ioGBPXkbfQOP2S2o4DSQtjJzadqK7S1eZ8lURiHOSfnnZ0EtnG0MGza3EZv1oim9n1wsuQSo1Pw+scwZCvKmBu0uVKDvaoZ7unUVgUvuNRWZLSCDcogKkXGDkgffStXMCLwQ8pSK5c6BDTHUVSnRVa9aqjFyDFHhFo7rjcoJG5w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451359; c=relaxed/simple; bh=C8sDWgMYMARKdYlzfVvMcP8JVf4fovQSAHLrQ/W78ME=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YQNI/OqXgMODSVCYf55QeWcBeQTvcvN0X+8qUuRTnqRYq9BpNQ0Q43UaHPPFZEz8bwKzKwD5eL7zVKQzGaY6qfLCL+nUdCZ9uaysQ+3HmhwiRJqTDApeL/8ZFnDPQZt/09eb9lYI/a2URAsbUzdJbdnaiuQc+vkMHjUhcHXQSJE= 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=MflyJX5G; arc=none smtp.client-ip=209.85.128.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="MflyJX5G" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-420180b5898so48976195e9.2 for ; Thu, 23 May 2024 01:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716451356; x=1717056156; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0UTV4+P4H7+uVsIxGGCjRLk6NaFdUSwIupMLwjHFRwo=; b=MflyJX5GmdNEZOVx8gxV+s2BqWbL0AEKxWngPJRYW5bxm8c4Sgi4btVpm/mwGy8+Jm oYIu+227wy7VWszkgklDLB1+ISveGUq/k5y++2PrR5hN8wY3kVm+lO+GNl1fW0ABodiZ pHhJ/wFFNSCl49DcZNcKnQD5uG9fy2aYDa/ejXsh9cj67dTAX/mK8aAirb9S9cwdYPCN oH/5FNgJGlqTiMIrpVFhGAkclwN7UCYxrgEZMgFlSGg0AVRm11M5/AWUsjOTUhr33Au9 3f/ziaRoY3CXvjB/rj/9gihFYMQ7LHVIdbirJJ8UfBSIb83JcRTVUqEa3vWRL7O5Xqgd Wy2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716451356; x=1717056156; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0UTV4+P4H7+uVsIxGGCjRLk6NaFdUSwIupMLwjHFRwo=; b=qyD3HWTujxJ1IyBrPRMybiCTdJ0pSIrbOi2+/+rwjrBqJVAkM2m78lRMi15g+YN6Zi 9tOnHK8Vc+W5GrzwMfz5vFPi7krM7MFB1fdql6Dy/R7CxpATMeGUHgncsxja/lVcrHUU V/8Eyk8dU0aw0GGj+h4KSP36uz1Lhr+yt8ixx7swBmEJ5Of9RIZob4W/wcyxeubvIeDS 09TCUp006myIoRbBhnO9CYmD004Eyj3ewtiC4YxAZdYr3uTqUlYp87HZV5IOhmL4krjU AIK6YM8ZGG/vWj5/QbpOAFcU+mXSab/vGdHVJzcOkcknGmUnOgpejpi57ADVBrJPK6cS Ce/A== X-Forwarded-Encrypted: i=1; AJvYcCUwvUEmXX4WWlabITlv5GicTlqiZ01MUZbZvu0ySUMHDI86jA+59hJhNuRLd6peyu/KHVtjlPh3IzizjsDIpQIK703rpR11TmQgfdgs X-Gm-Message-State: AOJu0Ywi2b+KpdypzPPg9Gbgk0FIctqta1y8+/Bg5aSMcSaG7HHH/n8t 2ZTEb5L7M2xxiKW47P1OjISb3GTgQEI+q5VWzj6dGbArOy9OH64YpVHBB7Y34n8= X-Google-Smtp-Source: AGHT+IF49vNHWfiYKOhW4GUh5UvdNVwkXdUWhLerjr6nku5L1GZw3HL0bskA3h4PrdU7ztVf/bakcw== X-Received: by 2002:a7b:cc14:0:b0:41b:c024:8e88 with SMTP id 5b1f17b1804b1-420fd344e28mr30256415e9.33.1716451355819; Thu, 23 May 2024 01:02:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:02:34 -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 4/6] arm64: dts: ti: k3-am62: Add partial-io wakeup sources Date: Thu, 23 May 2024 10:02:23 +0200 Message-ID: <20240523080225.1288617-5-msp@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240523080225.1288617-1-msp@baylibre.com> References: <20240523080225.1288617-1-msp@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In Partial-IO mode there are a number of possible wakeup sources. Add the list of phandles to these wakeup sources. Signed-off-by: Markus Schneider-Pargmann --- arch/arm64/boot/dts/ti/k3-am62.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62.dtsi b/arch/arm64/boot/dts/ti/k= 3-am62.dtsi index f0781f2bea29..9ffa6652492e 100644 --- a/arch/arm64/boot/dts/ti/k3-am62.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62.dtsi @@ -120,3 +120,7 @@ dss_vp1_clk: clock-divider-oldi { #include "k3-am62-main.dtsi" #include "k3-am62-mcu.dtsi" #include "k3-am62-wakeup.dtsi" + +&dmsc { + ti,partial-io-wakeup-sources =3D <&mcu_mcan0>, <&mcu_mcan1>, <&mcu_uart0>= , <&wkup_uart0>; +}; --=20 2.43.0 From nobody Wed Feb 11 12:54:44 2026 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 2E91A13D272 for ; Thu, 23 May 2024 08:02:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451360; cv=none; b=DF+ICiPtTeROFJ4AkjNc3IoZjIQVAyBBOuTR4bofluXdi44apvgaeFgSJE1IXsgMwme9dc23EJ/GsSUDrfz0Ppei8em1RyTKtR+7i+vrT2hvr3Avcv5NottnVca0oUSwb83q80K0iuSd/0W74/S/isMGIa2VBmY59AjtqRsHdco= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451360; c=relaxed/simple; bh=F3HLan+EFrrhgGJOCJBcZod3FUMJQinkw6hx3P+yk+A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pnFtHwpL/ugB6PsapgOJojAg1qT8GwKa3WmKDweizQSQW0rfjZ8frsXAoDHR2Y5xuM16a2Ra+8J35p1KgZPnfi92DkvEqjwKgtoLxy86l/eRbI1pIeAhMhkK6CZRw84/u8p3ae8cPwQUrTYBOgrKlp85gnNCTL4imAQQotOGEjI= 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=N2sVzYyv; arc=none smtp.client-ip=209.85.221.44 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="N2sVzYyv" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-354be94c874so1308149f8f.3 for ; Thu, 23 May 2024 01:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716451357; x=1717056157; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZWlrESD1hPbK1jELiQUm0maGQhBf2warBvSE6Jg46pY=; b=N2sVzYyvzRTKT2HH8IlxaYswHGz/4nEStmu5iWFGFoJXOKWDLzk6kSymRIX5T3SEI4 ZP1SCwUWEVvVS62YVvHZ8ErtvmAzoZBJCNbsJAYjatyvbkeoAbum4UYO1U1GZv2NEbhw JzxBvnjCFPiWYPe9IS7ofvmKHKt7ROEyi8+D5T+vTrHOXIBfkuVEKsW7q+u0x4oroesP w8cYycmgYdeUxm2Mlxgvi/lTlJFRC39AzMOicDCkX/U8bPXEWUT2kFptcGaEfDi0i+sC iC/GhYVOMrm5S4t9H0th08kHlQ7ImlKZRsr+kj/JSNUPl2A01WEP+OQuidPn8183BW16 Fafw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716451357; x=1717056157; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZWlrESD1hPbK1jELiQUm0maGQhBf2warBvSE6Jg46pY=; b=EFc+BgTW4DSyh3XYRAXQ5pvf2NKm9ydeJS5nMCItKupae+BjpbQjMOUgHLYMPSrFBM K07xMGfRbV+ZTup6Z3oRDw9GAYwgpsNcdjy+tB9wOSwjdPHVNxdui5ugVcBBV/kVSb5J hOblH4Cg2Nohpgt4ZhnRh9w8wEy1Wx2Elblq7XQNyj+8X1IzL9I9WOpawuGxTgeXRiJu Jr2W7cVQIgcthz+tIUTnF6Gn1twgNBAsj+LepkYFP+LRrw3BCByYZQMdls9+HYsszkhc i5TaOWDxtgpudDSOY93qCAgSAxPXRpdh+V/LZyX3IfOU2xe4ORBih8iWWOVpv+iI6ZNt PxOA== X-Forwarded-Encrypted: i=1; AJvYcCXDqs8eqYW3xq6mwRdxU5Arg2VlGeAEgDQ08B5QB2Gtlq+jFiqPgUFOUKsTsF8M4ZvpryH0EkJcQTxMgJf9ailslAA7AM5Crs9WByyL X-Gm-Message-State: AOJu0YxjUwqtDkiUVsKztG/ZCfeFIlPw7zRdZVKhiLBPnxb8YcUJOKjT HQUFn1XcfL6m0Fm0KPcDtOMtOKUvXr1YTSix2XkfZgoS4Et/VWZO8NH4CZ+3SY8= X-Google-Smtp-Source: AGHT+IF1GFP+Prk8Sx8nfsKKmPVEsEvOgzLyVffBGqv+aRehf2+t9mnt83aCEYUlD2pGPfUSBjfp1Q== X-Received: by 2002:a5d:66cb:0:b0:354:f308:7cf2 with SMTP id ffacd0b85a97d-354f3087ee9mr2824214f8f.50.1716451357249; Thu, 23 May 2024 01:02:37 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:02:36 -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 5/6] arm64: dts: ti: k3-am62a: Add partial-io wakeup sources Date: Thu, 23 May 2024 10:02:24 +0200 Message-ID: <20240523080225.1288617-6-msp@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240523080225.1288617-1-msp@baylibre.com> References: <20240523080225.1288617-1-msp@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In Partial-IO mode there are a number of possible wakeup sources. Add the list of phandles to these wakeup sources. Signed-off-by: Markus Schneider-Pargmann --- arch/arm64/boot/dts/ti/k3-am62a.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a.dtsi b/arch/arm64/boot/dts/ti/= k3-am62a.dtsi index b1b884600293..5c13851c29ec 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a.dtsi @@ -123,3 +123,7 @@ cbass_wakeup: bus@b00000 { #include "k3-am62a-main.dtsi" #include "k3-am62a-mcu.dtsi" #include "k3-am62a-wakeup.dtsi" + +&dmsc { + ti,partial-io-wakeup-sources =3D <&mcu_mcan0>, <&mcu_mcan1>, <&mcu_uart0>= , <&wkup_uart0>; +}; --=20 2.43.0 From nobody Wed Feb 11 12:54:44 2026 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 5273713D28C for ; Thu, 23 May 2024 08:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451362; cv=none; b=nZ1GZkPp1P2rEzHUQsAzCssOAzzZM7J+4PJPQHS+CBbxUGqCim0TFjlS64xIccIRFpECEjL+8qN76MI0t6phz1o8Ghduupto7km5HkXBHyzyRu54v2kMyle0Z1gLJWdbJjRmcpQs/WT73TS44CE4ztvbb7cYGv7d/Eitexhc6rY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716451362; c=relaxed/simple; bh=ouSbJlOZEY8GCBHVOJ6ME7OlvRUFtsDeo1y5EHXursA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=E72wN1RxrLnBR4gmikVxX03glcGGuVEPNzKGW8X6JU8ev+6pbBaYtG/zO+8UkCpPBSUNNE+CuHCJ/cT8PAZ2lxIBbTZSFOghAH3ggKYleoWITTaNeQwN/hrrSOBm2N0BhkwdZXzWkwe/4x+HFOXXzpDwZJKlIsmBeX8WD91O4h8= 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=I8nZmBuj; arc=none smtp.client-ip=209.85.128.50 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="I8nZmBuj" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4202dd90dcfso16775675e9.0 for ; Thu, 23 May 2024 01:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716451359; x=1717056159; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5xxaqeXNmd56fs7VILfOHspA8Y/nLG+qphjjlB9Ut0E=; b=I8nZmBujVwHIUw6xc5zAaRpMUynxu09GIN2UMSHBgXJ83AkLVaoQUMXZ9vArRDCoC/ Rwz7+9m4WIJkeGzVB2nceoGaBRv9utJy0Z8rXP9tzXJScyKufyKgSWeFxVvGM6et/fWd 015kf6qauKYZXbRA5rAWF0875RxU4UH9fQUC08RUSR67RZ2uFzM+rDCoYQMc6h8CgeD9 kGyQ/1n3W4843u+TOzvVrCVOty8hkbA16TlNecDht2QApmcbmP7FnQ7qAZu7EQrjaUgj 0WorCn1aUv606Pv3TLP/w/FF9e2tbmXLoN2fH2NQ/i5bs5E7uErfdZECSin+wdON2ksZ 5scQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716451359; x=1717056159; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5xxaqeXNmd56fs7VILfOHspA8Y/nLG+qphjjlB9Ut0E=; b=cYmtQOVoIom/nMlBU1um3gDTWbEk7EYKFvVerG0tllnugP/uHHf+7u06LupOC0TWPs WEBnHWL6hUaDVwiCtLUmlk1wF9UucQIyMOAQvhXQejFm8U+e60cdPkCEnV/QNNw1js6S JWq7xoOMjGs8778bZEqgWXM9u7QZpVy9FdOZS1zux8EngRemPLSdZEbSQLkdaPeIofV2 WzGO2ATwEW2qZ/zPCGMegb2yQy0Hkq7B2y5ClBfCteEUlv8HXo4sBAEN3Nq+sCiBCoV6 wJoeHWKh6te1WJniW+uuW5xzIQgYO2kv8HJwnc4EvQk/rJJ/269sp/YITlxh2FsWOUEu H+Sw== X-Forwarded-Encrypted: i=1; AJvYcCVnHPhA0/dCW9+ijEH7B13dMjmC5DjZjy7qD4VMzTSgphIbN3GrseoP9oMgNpPkLTUdSxFXqEkJmzWMfxc5iDHeiazhzezutBJWLStI X-Gm-Message-State: AOJu0Yw3/TTQEVBcI+7k+SNHJ7qXJrLN8HdMVwjoF9de5b8bfPTEREmi R3EPvv3uduajJ6L6BIJfaCKm8xaiQ+/cSUjjlZRbEQPJIKW+StlQJHh8RpJhW+0= X-Google-Smtp-Source: AGHT+IGkl2Vp85pLyfdv7MQfq/S/GF6HxNSjqay+owUe5sYi6UWuSKa4o4vJy6nD+5JPxVtRVaLkog== X-Received: by 2002:a7b:c3d5:0:b0:41b:b07a:c54c with SMTP id 5b1f17b1804b1-420fd301f7emr33153235e9.9.1716451358550; Thu, 23 May 2024 01:02:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:02:37 -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 6/6] arm64: dts: ti: k3-am62p: Add partial-io wakeup sources Date: Thu, 23 May 2024 10:02:25 +0200 Message-ID: <20240523080225.1288617-7-msp@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240523080225.1288617-1-msp@baylibre.com> References: <20240523080225.1288617-1-msp@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Vibhore Vardhan In Partial-IO mode there are a number of possible wakeup sources. Add the list of phandles to these wakeup sources. Based on the patch for AM62a. Signed-off-by: Vibhore Vardhan Signed-off-by: Markus Schneider-Pargmann --- arch/arm64/boot/dts/ti/k3-am62p.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62p.dtsi b/arch/arm64/boot/dts/ti/= k3-am62p.dtsi index 94babc412575..4d43cc972056 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p.dtsi @@ -123,3 +123,7 @@ cbass_wakeup: bus@b00000 { #include "k3-am62p-main.dtsi" #include "k3-am62p-mcu.dtsi" #include "k3-am62p-wakeup.dtsi" + +&dmsc { + ti,partial-io-wakeup-sources =3D <&mcu_mcan0>, <&mcu_mcan1>, <&mcu_uart0>= , <&wkup_uart0>; +}; --=20 2.43.0