From patchwork Thu Jul 28 15:39:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 12931469 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 83033C19F2B for ; Thu, 28 Jul 2022 15:40:30 +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: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:In-Reply-To:References: List-Owner; bh=IquNQbihFknFsWyiB0mEzIv/2+FmpuBOe8ETtFbNEN8=; b=eKGyeuoclGhfOe 6UPsSbRiDfYulxVzOTPu8x1gNvgWC/SMT8KRc71THDMVWwgZ0X+/LrBoeJg8WJH87equqeFAoSZ4K o5jgDNv9bvacWNjyzZRLaFyICRKjvHVvrAn9dCoLxNPsft9idqO6fvVDIM2X/D3IruRoTiJ7zHI6a tjVIzqFKXu1Nu6y0AO9l+HGavcf5HJ63K9mGBMvqAVqBMEbuPX0ghIK93GmhDgAV3C1g/2S8mR6N1 mmS1pGuR2h4lGHyIfl/BJ42ZU8DPxocyqKYqaYNF3Uoi9dk3mQDbhuzxMB9F9P2UfKF6NJ6eTzBtL rZW5f4vFNQthnA64SuCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oH5bj-00Aaue-NP; Thu, 28 Jul 2022 15:39:27 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oH5bf-00Aars-Tg for linux-arm-kernel@lists.infradead.org; Thu, 28 Jul 2022 15:39:25 +0000 Received: by mail-pf1-x435.google.com with SMTP id g12so2257872pfb.3 for ; Thu, 28 Jul 2022 08:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CqSVW/Ueq6eSKuuwfz5Rq7CFA5+wXLwAWIYxDZSpO44=; b=Mr16A+PaQ/QvRlFTof2HXImkabcfMVdsACcFH/i8ptMJGW1+/4dSaqJ2BBBZbr8sj1 T/xZiOYHH9TxqQMvAbuFv+TD6zRIiIZWvOjT+sFZppRity0mktOZJF6Gn+Hajj67uf5z 9Pv1twnvGQC0/BWmgqg9CgZVs82EDjtuTntDk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CqSVW/Ueq6eSKuuwfz5Rq7CFA5+wXLwAWIYxDZSpO44=; b=L1xT1lPF6Lk8+blEYru2PcL8H7RHfzVekh/u3+J86PJcriXPXpuWNrPCex0OfFJpS9 TlC34fZ4xeL6aA5XJ2b25NJYhGLElDbGliCTTHpVIs9MBsHLg1AkpnFjkxuVHCd5PrvQ eAisp3vWq5tO56lsuuDbeE7BjcvZ4EviHv8himkQ6tRzTkQTdg8ropuvXJK3lvA5A7nh ZBeiAWtaptCUZgMUiQLUFZ3bD2IZ+xncizuVeSTVrB0CxkW6ibVCekxHVD1F2hJsnVtY QvLP9iLdE39HXGVhFo2ZTdIQ11rg6XoPb1eTAzKOR7cVyXlE5ZzbaoeD7YqyW04VhHD2 C6zQ== X-Gm-Message-State: AJIora/8ATdDSDpTYX6ZJVRow7IpeSwWoOnXtnRlfclu776lUTixk07v KYM6nooKC0+eIdwA3wL7WuEoYg== X-Google-Smtp-Source: AGRyM1u7RU0iN+DYfRvTGeLIPu8TkCTXOx9aEqO/5m1pJbFtITJo9P6lOu6fitsB9UUSmxcut8h8eg== X-Received: by 2002:a63:1c24:0:b0:41b:40c5:f114 with SMTP id c36-20020a631c24000000b0041b40c5f114mr8543848pgc.3.1659022760163; Thu, 28 Jul 2022 08:39:20 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:7c0f:5963:f38d:5645]) by smtp.gmail.com with ESMTPSA id n5-20020a170902e54500b0016c0593876csm1462148plf.157.2022.07.28.08.39.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 08:39:19 -0700 (PDT) From: Pin-yen Lin To: Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Eizan Miyamoto , Evan Benn , Hsin-Yi Wang , Pin-yen Lin , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v3] arm64: dts: mt8173-oak: Switch to SMC watchdog Date: Thu, 28 Jul 2022 23:39:13 +0800 Message-Id: <20220728153913.2652153-1-treapking@chromium.org> X-Mailer: git-send-email 2.37.1.359.gd136c6c3e2-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220728_083923_973984_F2FF060F X-CRM114-Status: GOOD ( 12.17 ) 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 Switch to SMC watchdog because we need direct control of HW watchdog registers from kernel. The corresponding firmware was uploaded in https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/3405. Signed-off-by: Pin-yen Lin --- Changes in v3: - Remove /delete-node/ and create a new node for SMC watchdog. Changes in v2: - Move the modifications to mt8173-elm.dtsi and add some comments. arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi index e21feb85d822..fc8203297bac 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi @@ -161,6 +161,19 @@ hdmi_connector_in: endpoint { }; }; }; + + + smc_watchdog { + compatible = "arm,smc-wdt"; + }; +}; + +/* + * Disable the original MMIO watch dog and switch to the SMC watchdog, which + * operates on the same MMIO. + */ +&watchdog { + status = "disabled"; }; &mfg_async {