From patchwork Mon Jul 25 08:24:47 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: 12927870 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 50DDDC43334 for ; Mon, 25 Jul 2022 08:26:29 +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=4fjmEQIBqlnUoFN3bZnOnEjyR2g4oM/W+yFXP1YojDE=; b=diHEa87RtBLqJl 2HbYAfpHpptmGzp4AVBPoO/qcLdotuZkH0ob3w2sw9ScgJPAmGcFJXMcvgMfDCf4uiqQKnHcTaY0S NUrPlQlLIWxKlLRzUtiizAW1DGVkrNHZNV6dpBkhM32BSbJDZW2yKatzpAOd5WfT9stvqYaxhoJGY 7FscDqvjWW7lG+BQdz1v42l1zV1zeg4OplpnnRClQ6snJOZXNTFMJtEI5bEKUpJ8wJ79mCHzp8G3O bAeyDKqcLI6fjeTFd+cNBHEGoe10QNKocPhQWaQVLI+iQwXuSKfjcI5jJUEb93qJk7amGo4pPWyj8 2XX/NM4SiBMtPLMYT3Hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oFtOo-006oIk-V4; Mon, 25 Jul 2022 08:25:11 +0000 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oFtOk-006oAB-Nj for linux-arm-kernel@lists.infradead.org; Mon, 25 Jul 2022 08:25:08 +0000 Received: by mail-pg1-x535.google.com with SMTP id bh13so9739515pgb.4 for ; Mon, 25 Jul 2022 01:25:01 -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=kGQIfBSg21d8MaClj25+YrNibPoLqEzZ9tPdy7y2WU8=; b=Z/44oLBpU67FazLoPRhw9EoDB7p9O0DopA+QnAhE/fO+Qa/QflytOcQ2fvgzPbSw5L WQVHStfPgywQj4rIX3JM/mPCAdddMBviY8QD+kdCGDjBpNpLFMDse95KCMVWKn4LUS4D OH2W9TecbxWviO8rlbZxq8KlL09VWh6Y3OOQw= 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=kGQIfBSg21d8MaClj25+YrNibPoLqEzZ9tPdy7y2WU8=; b=tnqz/Z63urAFpdXO9YUrGQ2AQ2xfG+JzE1VEDT31dCTLyCIwTLxu0PmBRpP3GLPfZ0 sthKmYr9OEuMFCl1ToxiGRVCut9rotD+OS4OtBVK+6KJU74AQTHFJE/kIE239XlWjS8/ b2xs8LSwSM/sTYdHWg3EasiR0/R7zS8GvSLDodO5EYaidoxQy5/eQyfvjJWVjT54t9WK lFlEdsLI7ExVI5pWJnKHIxdyG23RTamsYvf0N/2OFvtkUEtzOqUcChvs4yk9Yh0f96eP QIoJg8C3jogMDnDKphOZKD8nGcm/1meU6/aiJ4OK6fGW5TVbN8Z5/8OrJSWD1pb2ye9s WSdA== X-Gm-Message-State: AJIora9jbYXlROxeJEJHveK6BGuhb2sTue+HNfopPjEfIXZCkf1Qos0W mLkuC4d4uJtMvh8HRsGeu6G0dA== X-Google-Smtp-Source: AGRyM1toZNSKvxgwGTAar8bhczeRFzgE/1q6uyg+lK8LTNMCbEYdUJJ8lpGmzEk3tpAOQilyUtm83A== X-Received: by 2002:a63:9142:0:b0:412:b171:b6ac with SMTP id l63-20020a639142000000b00412b171b6acmr9876579pge.206.1658737501260; Mon, 25 Jul 2022 01:25:01 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:7c:3b29:8e9c:93e3]) by smtp.gmail.com with ESMTPSA id f21-20020a63f755000000b0041ab5647a0dsm4010394pgk.41.2022.07.25.01.24.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 01:25:00 -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: Hsin-Yi Wang , Eizan Miyamoto , Evan Benn , Pin-yen Lin , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH] arm64: dts: mt8173-oak: Switch to SMC watchdog Date: Mon, 25 Jul 2022 16:24:47 +0800 Message-Id: <20220725082447.2613231-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-20220725_012506_818939_2334B932 X-CRM114-Status: GOOD ( 10.10 ) 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 --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index a2aef5aa67c1..2d1c776740a5 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -528,10 +528,8 @@ power-domain@MT8173_POWER_DOMAIN_MFG { }; }; - watchdog: watchdog@10007000 { - compatible = "mediatek,mt8173-wdt", - "mediatek,mt6589-wdt"; - reg = <0 0x10007000 0 0x100>; + watchdog { + compatible = "arm,smc-wdt"; }; timer: timer@10008000 {