From patchwork Fri Sep 22 08:10:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre TORGUE X-Patchwork-Id: 13395316 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47889CD4F2B for ; Fri, 22 Sep 2023 08:11:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2Ej8q29QYCK4VI7tS/lrrxdBIRbJeqWTLSqBdP1QhcY=; b=W80feEPicHtn9u t8muvC7OBS8P+VEtxx/Mk24TF4+vGatPyyTZ1mpNVsARdTVOu3CXRm1bby6rqZVujxIjCxgoLHDZu MRfddCtTsy7uioPfKdBuirwlNShH2ddPebfzlR2yfYS+PekYpQRzaNlivCy8+06tM5u/E2u4etEEx QGXj1mt08qtZyxTsshNVydnR2tQ25qir2YHv/gMxnvzKDkHUPZb+JrTGH5osZVULbMzdA59NN1DWZ t91jUDkRsLDoVeOl3FDP1dIIFQb/0DXaVgJJe9XXe/ZUylC8DLgJJvoksuHBbHEGzRMEDOn1OdjZB Ypl23cGpjHXjvxvNL8/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjbG6-008MYm-0F; Fri, 22 Sep 2023 08:11:30 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjbFr-008MRm-2L for linux-arm-kernel@lists.infradead.org; Fri, 22 Sep 2023 08:11:18 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38M3QAq6003954; Fri, 22 Sep 2023 10:11:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=selector1; bh=4DBHArcLHHs3PcEL5s63 o1s4aDBzEADhjTJ8QgH11SE=; b=3TBBmhJrxkfzes/j+RcYqliLB0vq+d4PYtGO hxYt4mTnMZ/Q250+lc+rLeA4wT1Su1kS88/G/oUrasBsiVaxE2aRlREu8rb+igE8 7E68SBpsbJkSnIRwd4NQc0sFQK1jALqBuFhg/0oYGnUaHxC+p0s2U0Qik1CZiTS4 6nqofbYiQo2or0+I5sBTUl5GVPyvudf4g978E4a+waiT/WZJmkKnTNyh1puDPqg9 kRAAVMROYDPn/puHQBNEcDCyJYfzRBMK1RcJp9swNwWHXDX6dHo2GOi6/lwFYWfB Va/LunRiw0VvslhXt8XJK3SbRvCodn314WRwQ/HZzBGWWZGZ1A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3t8tt7aa8d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 10:11:02 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 73266100051; Fri, 22 Sep 2023 10:11:01 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 6BCD921230E; Fri, 22 Sep 2023 10:11:01 +0200 (CEST) Received: from localhost (10.201.21.122) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 22 Sep 2023 10:11:01 +0200 From: Alexandre Torgue To: , , Conor Dooley CC: , , Alexandre Torgue , , Subject: [PATCH 1/2] arm64: dts: st: add arm-wdt node for watchdog support on stm32mp251 Date: Fri, 22 Sep 2023 10:10:54 +0200 Message-ID: <20230922081055.6242-2-alexandre.torgue@foss.st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230922081055.6242-1-alexandre.torgue@foss.st.com> References: <20230922081055.6242-1-alexandre.torgue@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.21.122] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-22_06,2023-09-21_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230922_011116_037329_CC2FCEA5 X-CRM114-Status: GOOD ( 10.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the node to use the ARM SMC watchdog support. It will use a dedicated smc-id to configure and kick the watchdog. Signed-off-by: Lionel Debieve Signed-off-by: Alexandre Torgue diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi index d7cb05d534ac..124403f5f1f4 100644 --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi +++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi @@ -28,6 +28,12 @@ interrupt-parent = <&intc>; }; + arm_wdt: watchdog { + compatible = "arm,smc-wdt"; + arm,smc-id = <0xb200005a>; + status = "disabled"; + }; + clocks { ck_flexgen_08: ck-flexgen-08 { #clock-cells = <0>; From patchwork Fri Sep 22 08:10:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre TORGUE X-Patchwork-Id: 13395315 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54C88CD4F2B for ; Fri, 22 Sep 2023 08:11:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+i7j1ugZAP3294LBgI/gDApxS5AnMoaiy5VlSZMXPTE=; b=Z5t1VIpZymiAgw lmss16DqWej+TYwd3axARDYFF0i8SE1yPgM7o0OBFtwVSQzDb6jx9ZhaNmZyUqb0PfNlZSQjKdd5i KMqoWHq2/ibLZXsjWWGL0VQiOhQKcLZ2F/XCH3PwTaZ/Yd8ivEFVnhRTCF+hfQO69koMYNfiHBQWm Kp1qzXVgxM4/G7d4iUZsU3rdTkbJjQFZDdqCdBHdWDuhF6ZGxoEvvWuHv+o7c7Krgze66+PSVZAtR W0r47scdqxEiYbbTdcfPlsLGpl4NANq/qr1TliP6a55r1eakIu/sQ4EtoyGS7sJt4FAjsX1JBx39O OOReI8sP4tgRSSh+zoLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjbFu-008MUH-29; Fri, 22 Sep 2023 08:11:18 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjbFr-008MS5-1X for linux-arm-kernel@lists.infradead.org; Fri, 22 Sep 2023 08:11:17 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38M3Q0Kl013675; Fri, 22 Sep 2023 10:11:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=selector1; bh=MTu0R7MXciBuzjCEVdjU /QJRAV5+/VKJ/ZcovBKuFoA=; b=0DzImxo/0qhlvZmuMhJ6Ucv9NGKVv0xCVhvy /++pSMJoyvdI4kLNruWLB9ZTn4a6LuUpUt9XyXDmcaGT4PuUQoUteEOipi52Ik3t BUesQDqbncfRU1JtM5GtURESM4+ZnplqMG1xB2k/l72iq41xa3PFyyNadmw3mtCh ZwA+8Pye7kzRXNeRNXjLn+hJ5uBBNqZdrkSjDlOgiZqr41O80ArsG1Hy9TOm/Nxn ejkP+RQzrafVJe5m4fJyMn2f/fElJJuLEJ/kWiwHeQhBO66NCqK/6clC2rdfgn2c KcgNeUlI7eOKbywk7rEwIlPs0IL2N8LuTH+Bn3N1qoRGwawTYg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3t8tt7j9ju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 10:11:02 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3230A10005F; Fri, 22 Sep 2023 10:11:02 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 2B31021230D; Fri, 22 Sep 2023 10:11:02 +0200 (CEST) Received: from localhost (10.201.21.122) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 22 Sep 2023 10:11:01 +0200 From: Alexandre Torgue To: , , Conor Dooley CC: , , Alexandre Torgue , , Subject: [PATCH 2/2] arm64: dts: st: enable secure arm-wdt watchdog on stm32mp257f-ev1 Date: Fri, 22 Sep 2023 10:10:55 +0200 Message-ID: <20230922081055.6242-3-alexandre.torgue@foss.st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230922081055.6242-1-alexandre.torgue@foss.st.com> References: <20230922081055.6242-1-alexandre.torgue@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.21.122] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-22_06,2023-09-21_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230922_011115_836748_ECD26F5F X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the watchdog and define the default timeout to 32 seconds. Signed-off-by: Lionel Debieve Signed-off-by: Alexandre Torgue diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts index 6c3b83c2b48f..85891124a3a9 100644 --- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts +++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts @@ -63,6 +63,11 @@ status = "okay"; }; +&arm_wdt { + timeout-sec = <32>; + status = "okay"; +}; + &usart2 { pinctrl-names = "default", "idle", "sleep"; pinctrl-0 = <&usart2_pins_a>;