Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp218665rdb; Tue, 16 Jan 2024 22:51:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9IJ75/06IsrgPjRXX8wFO80ibWrWBrZjH84rFXzzZDZYaXWPmy1Mz0JzLV8+M/hhtn9nv X-Received: by 2002:a17:90a:94c4:b0:28e:8027:baad with SMTP id j4-20020a17090a94c400b0028e8027baadmr1354825pjw.21.1705474261293; Tue, 16 Jan 2024 22:51:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705474261; cv=pass; d=google.com; s=arc-20160816; b=Wy/D8IKbrphTYSOVWMXw388d8oMpQjkVY/bM863fPkxUmHTnWVpK+Z7c/pY9EMhi17 pmWG8M9aykVPAB183lrfBqgd3jz5m0KtDZcp+bfrsqEx8iL9Ir6DWRa86+7k+jLQ6GIW MYO9VdWQlWiZJBZ3GKx0y1t9T2L05n4EoWtYT9WLb5dlY95U6CHIUEn6u/r4V2DPbPWr svlO168U2IASzfTGCjmFIkKr27ZkkMQ0iixh2Grai9PQ4VGD/chjRSbGuRtA5A5eCiGT APWfJniJDuFpvg6GwvvAE2BbFBu2owJr1usFw2ixGESmBCy3SLndbpqQNMdbkHDIyb0y Oe8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=WHNI8XrH7RiUQQDT+96DG1fkua1fIsab1rZp4r5XFs4=; fh=kHk/e+rc8zewkfUN/bpuLPV7W7mmWLY7hljVJ9kccw8=; b=kR/KuPXNTtg7WGoebtti/TWf0dx6KGlF98WQSoDDNP4WjjMYHIoaMyLWKfUVehpfq4 03BWPwnR8VsD7lUMj0OnhucuxIhRRsdZXozKiQk7eWvpKxfyJtnaZ1tgLvaPrtIOjS3G j+ln088u21U/Gfff+RkAuRpwFXdAZoK6cVx3VuwLXByOrHcNL+3Idqis0sJ5NzkM/rB2 yFWUKVbi/Exv8w8WM/HVxo6zrCnq1ID2GtenQpMzML3eNecZUMix+GQXtyUDoGMZcBZZ f+ESj6pJvtBmH+mIjJbyu54d9fS5pPU7K73ZXzG1llkNA8hX1rNtt84Buf93R5cbx+/Z Tyfw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=BfDHJ7sy; arc=pass (i=1 spf=pass spfdomain=rts-flowmailer.siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel+bounces-28579-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28579-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id qe17-20020a17090b4f9100b0028e60d88d3esi295575pjb.138.2024.01.16.22.51.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 22:51:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28579-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=BfDHJ7sy; arc=pass (i=1 spf=pass spfdomain=rts-flowmailer.siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel+bounces-28579-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28579-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com 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 77C1B28424F for ; Wed, 17 Jan 2024 06:50:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EC34BE76; Wed, 17 Jan 2024 06:50:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=siemens.com header.i=huaqian.li@siemens.com header.b="BfDHJ7sy" Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net [185.136.64.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4EEFCB662 for ; Wed, 17 Jan 2024 06:50:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.136.64.225 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705474220; cv=none; b=KEko4IAPpmSQ77efEZaR1ZvWejrg5nwBFsBxJep+t3gFPeYZzulW6NM1vT+Gynqte5G7trn90H2A6pb/fv2/9GKnc19iFqCEcKdH/Tr/oGCtNSoSnlNgKfPPConD7FLp8QmN2CHIMC638PHUIPAag2HoqjU3uiTmorIpEAt26ho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705474220; c=relaxed/simple; bh=IjijvpEGm8++x6JhsQhCG9lVruoFVQRR3WtUZVDgXNY=; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-Id: MIME-Version:Content-Transfer-Encoding:X-Flowmailer-Platform: Feedback-ID; b=f4TcFjSh+oA2mM2pqymnm76wfzHJKZEdbrbn2WsqSPlh4cAAcVdXRCv1k4iZiiSRh6ykUv0vvIyx2VIsC0kiO3i2lAPmY6wTIGn7oZBIPWamRFouLLWRPCubPWHVqYu+sTgj/jTJnnVf6Kwxfc8aGYTOJadcsm6Bm9Kga187Zas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com; dkim=pass (1024-bit key) header.d=siemens.com header.i=huaqian.li@siemens.com header.b=BfDHJ7sy; arc=none smtp.client-ip=185.136.64.225 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 20240117065008c6a5161643268dc634 for ; Wed, 17 Jan 2024 07:50:09 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=huaqian.li@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc; bh=WHNI8XrH7RiUQQDT+96DG1fkua1fIsab1rZp4r5XFs4=; b=BfDHJ7syRSlkwGdS0Drr3I6/xmBDrCUrtT0RCX9y8jV0qgNpEhvDZ6fZxMOG3Dw0jCxcWo JEn0JPRgCNyKkaqGz6KATwUuD2YU+MyL9zQ9RThG2ju0LGMh0nQTsQBmNHyWRIuyI8mL12aZ qvJ748Qz2BO3Is0ywsn/Bcrm2V8uI=; From: huaqian.li@siemens.com To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, jan.kiszka@siemens.com, baocheng.su@siemens.com, Li Hua Qian Subject: [PATCH] arm64: dts: ti: Add reserved memory for watchdog Date: Wed, 17 Jan 2024 14:06:56 +0800 Message-Id: <20240117060654.109424-1-huaqian.li@siemens.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-959203:519-21489:flowmailer From: Li Hua Qian This patch adds a reserved memory for the TI AM65X platform watchdog to reserve the specific info, triggering the watchdog reset in last boot, to know if the board reboot is due to a watchdog reset. Signed-off-by: Li Hua Qian --- The driver and binding have hit the master, which could be found in the following link. - watchdog:rit_wdt: Add support for WDIOF_CARDRESET - dt-bindings: watchdog: ti,rti-wdt: Add support for WDIOF_CARDRESET https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=29057cc5bddc785ea0a11534d7ad2546fa0872d3 arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi index 61a634afaa4f..88321799d468 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -75,6 +75,12 @@ rtos_ipc_memory_region: ipc-memories@a2000000 { alignment = <0x1000>; no-map; }; + + /* To reserve the power-on(PON) reason for watchdog reset */ + wdt_reset_memory_region: wdt-memory@a2200000 { + reg = <0x00 0xa2200000 0x00 0x1000>; + no-map; + }; }; leds { @@ -1427,6 +1433,10 @@ &mcu_r5fss0_core1 { mboxes = <&mailbox0_cluster1>, <&mbox_mcu_r5fss0_core1>; }; +&mcu_rti1 { + memory-region = <&wdt_reset_memory_region>; +}; + &icssg0_mdio { status = "okay"; pinctrl-names = "default"; -- 2.34.1