Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp905580rwp; Thu, 13 Jul 2023 03:06:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlHBjMGLERefbV1RhDiTzibH1igKARTwxganlIli3ECG2+caFa+KgZmNGs82KCjvLtUHphFp X-Received: by 2002:a05:651c:c8a:b0:2b6:a882:129c with SMTP id bz10-20020a05651c0c8a00b002b6a882129cmr949232ljb.0.1689242797236; Thu, 13 Jul 2023 03:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689242797; cv=none; d=google.com; s=arc-20160816; b=WEDR4aVPZOR3k8mO9eZMhCJUMi6xDeaUmdYMBasVJ+1n9wU1jfiCh0MDlYH32xN05/ CYtXcgIGvp2heX8Ef97EAI8k157+gXDgJCGxYrRDgP7i4mf4Fu/AtTLR8/XV4ZuFjzam ZXMLKSauWii2qViEvXkDWg59akFYddJBp8ybVmfuPxn8hQeZtB1jVUGT7TevrokaAjpv W+jhNXPAB2NUXWJ8yYZ5OGDW0mdGBDWi7n0c/4p28l/eDSmMPiVFWOHmrx6YlD5PinUo QvZ1h0kbdKpwBaCkm5T9a7LOYaOSHsJqF4M5rCp64kehcDNJDAU71Gkr7uM4uRbXwfM+ svaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jnvC6oqf7550vuX04Y+Pl19iCeyz3P0LnhYgz2I4V6w=; fh=26ARdFcEfuUFW5W2UBjFkMA4idoTK1yPd3wFZD9VxgA=; b=FYVYibkGMMA8LaKaCqgSjZ+bWW1dExRArDMd81q0HPNj+QXh8Y1/Qefl3DHzYgPlwT Atl7JU/n2mDxnlwr4ampxFlY0vLN3MjdN1VtU8Lseuq7wE7Dk/FFWtcsSqbfAx9mMC2O Ah45qlxlC7w0x5G5RiMOFNsKENuWBX4D6C7Pr9O4DGqJkVIeaafbzoKFl4rODhc9GnBg jXN9bjIqquFpnoYNgZHavvy6BLDD+uPmtAayAvdsuG0ZFJQhgxxPss7e/8EKy/r0ewR4 ZY3E2Tr0bEjLPEIlrVYcpz2FwMouqPb8bR8iEHU77ZVju3VxTLVAdmS9LguPBM/Ccvkw us6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=TWJRBH5i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id la21-20020a170906ad9500b00992feae3848si7056298ejb.38.2023.07.13.03.06.12; Thu, 13 Jul 2023 03:06:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=TWJRBH5i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234363AbjGMJwQ (ORCPT + 99 others); Thu, 13 Jul 2023 05:52:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234367AbjGMJwI (ORCPT ); Thu, 13 Jul 2023 05:52:08 -0400 Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net [185.136.65.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB5472708 for ; Thu, 13 Jul 2023 02:52:01 -0700 (PDT) Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 20230713095159294f2fb98b44d8704a for ; Thu, 13 Jul 2023 11:51:59 +0200 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:References:In-Reply-To; bh=jnvC6oqf7550vuX04Y+Pl19iCeyz3P0LnhYgz2I4V6w=; b=TWJRBH5iVvX4tC5XX1wgojIwaxZpSZSm67w/tCsfb6hvUKfnPg7cyvVHpDtwF2SGObMNHf 4y1FmtgAs4A4uX5e0i6DkY/l3KniLYZX/SulWyl+Etyt+hEC/LBAZnT5at+FZ32h0yRL3qyi +Zcu7Xc0DMy95PKDAkB0vlyRQVe94=; From: huaqian.li@siemens.com To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: huaqianlee@gmail.com, nm@ti.com, vigneshr@ti.com, kristo@kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jan.kiszka@siemens.com, baocheng.su@siemens.com, Li Hua Qian Subject: [PATCH v3 2/3] arm64: dts: ti: Add reserved memory for watchdog Date: Thu, 13 Jul 2023 17:51:26 +0800 Message-Id: <20230713095127.1230109-3-huaqian.li@siemens.com> In-Reply-To: <20230713095127.1230109-1-huaqian.li@siemens.com> References: <20230713095127.1230109-1-huaqian.li@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-959203:519-21489:flowmailer X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 e26bd988e522..4bb20d493651 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -63,6 +63,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 { @@ -718,3 +724,7 @@ &mcu_r5fss0_core1 { <&mcu_r5fss0_core1_memory_region>; mboxes = <&mailbox0_cluster1>, <&mbox_mcu_r5fss0_core1>; }; + +&mcu_rti1 { + memory-region = <&wdt_reset_memory_region>; +}; -- 2.34.1