Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5249038rwp; Mon, 17 Jul 2023 00:01:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGGNh74A/MDqoRyehAJT3v0NiI+gsReUqgTLy4Ai1vfl0jydNr6dd1RMNPN84e0Mo8WmuJ/ X-Received: by 2002:a17:903:32cf:b0:1b8:a469:53d8 with SMTP id i15-20020a17090332cf00b001b8a46953d8mr15096617plr.0.1689577292588; Mon, 17 Jul 2023 00:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689577292; cv=none; d=google.com; s=arc-20160816; b=oxic8CtZTzZc7bZsw0fVkGjnmk/rQqF1Qp65jJrpq8DaAbS3a8BQDBdT7zFqbgengc 36LDcLdzntZRpJ0x5MGtXT72cKFlbN4ta81jkelCv2xPogxFVIzdvIMQGzbS7zBmwM5r nFpRYuAPj0kRTWehOjiAW7oRqC2V4eGINuEU9eXSLTZszP/WJjL08ieVCkHhg+tpjbCV PnmHMMYVqAfUb1bAeVWJWUJlces0+/cOmM2qnfIhzR7iEDzX2peDrRJuJyOlBIR3xPn8 HiXILdhelx6YFgvdqvt/N/mc+rGQBmnOZU4Kz4ip+OGsVgv2a8P8b5Y0ekxF/9qe1Vz4 ST8A== 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=MymH64ArnaPt62YtmIkN0lf9J3TC/gL+2koqpYMOhcLK9ZsaUFRN0yqhdVycCA7VFf H9pub3xN4WeQjDm0RL9qxXdJF/SnxnCrlkLLycd2HGzmDP3Zv1P35UJnQzGnGck/7ROA 6ilbcE6GB9PfyRMMku7EEnIXRVbTI82TIbMyCWe+Y8La4lzdHPgpnHVIh8sx0yIKYDM4 9SoNZ0SWshJ51MuelKPSxjLAldRDxlHike1i9fGzNLX0wapWLvvLFt2AepxN2L+klVaG y80q6vyN2vuhf/iV52Q06ZdHXycSFt8lQKgvSy/hCAegoVuzHDz9X43dwYigEac/UhRa a6QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=V4MDgfPu; 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 n15-20020a170902d2cf00b001bb35920640si786660plc.351.2023.07.17.00.01.19; Mon, 17 Jul 2023 00:01:32 -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=V4MDgfPu; 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 S229863AbjGQGmr (ORCPT + 99 others); Mon, 17 Jul 2023 02:42:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbjGQGmn (ORCPT ); Mon, 17 Jul 2023 02:42:43 -0400 Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net [185.136.65.225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C940EE6B for ; Sun, 16 Jul 2023 23:42:36 -0700 (PDT) Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 202307170642340b1ad1b82281e6cf27 for ; Mon, 17 Jul 2023 08:42:34 +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=V4MDgfPufjIsk99rIuCKcySwCscCpLokAdMf9J/sCPVwjq5Yuz4n8qXXKz9UuyJGXuDpDl AzZaD9cXbWbvO5Wczwcp+pmpXMnogwsRl0nE2eFCpWepDro2gIyF+2ZKoCv2xz/83Z0Y0fmh rc+HRKSSp/PTxtMH4YP603pjX/xHI=; 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: [DONOTMERGE PATCH v5 2/3] arm64: dts: ti: Add reserved memory for watchdog Date: Mon, 17 Jul 2023 14:41:23 +0800 Message-Id: <20230717064124.1315746-3-huaqian.li@siemens.com> In-Reply-To: <20230717064124.1315746-1-huaqian.li@siemens.com> References: <20230717064124.1315746-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=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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