From patchwork Thu Dec 14 15:04:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Elad Nachman X-Patchwork-Id: 1876227 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=marvell.com header.i=@marvell.com header.a=rsa-sha256 header.s=pfpt0220 header.b=MRuaR3JN; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-25435-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SrbJC5k6jz20LT for ; Fri, 15 Dec 2023 02:05:31 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F1C6F1C21648 for ; Thu, 14 Dec 2023 15:05:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F4F95C06E; Thu, 14 Dec 2023 15:05:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="MRuaR3JN" X-Original-To: devicetree@vger.kernel.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9695C8E; Thu, 14 Dec 2023 07:05:24 -0800 (PST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BE9LR9u002199; Thu, 14 Dec 2023 07:04:23 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=pfpt0220; bh=nuCTvLv1 hEiBtVDRf9IkTWr4PLGW6KCIaFlBnMtgA7s=; b=MRuaR3JNtNCoywy4odo1u1C6 Dy2upz9T1DLA/8ZDK5GSFku3LrGspV2Za3SGU4fwHAiee+iCDTZSyK4C73deDFBK uIpu6CIOC7NsIEmgNj1Omw42SkhFzPdWzoUNToxTSqwm85y2qJVb0rK+g1QHzbwk m5wVh4ELywTBI+DDUlvq7Ory5XNZz0kYku6BYk0H/NaV+DAGjrJd6mmu8CgWPKG3 eWxlP011bF3lg56PHPejDv4KT/C4f0RwbNRPm2rfjKRqoSdbzUqKCrDORfQMbspF 47P/Up0H9V2x614FwhzD1VLhq4lGiXAjmQnkBErulLc7jCwzRFTuaw0jauYOcA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3uyy0m93t0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 14 Dec 2023 07:04:22 -0800 (PST) Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 14 Dec 2023 07:04:21 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 14 Dec 2023 07:04:21 -0800 Received: from dc3lp-swdev041.marvell.com (dc3lp-swdev041.marvell.com [10.6.60.191]) by maili.marvell.com (Postfix) with ESMTP id 06B023F7085; Thu, 14 Dec 2023 07:04:16 -0800 (PST) From: Elad Nachman To: , , , , , , , , , , , , , , CC: , Subject: [PATCH 0/3] watchdog: sbsa_gwdt: add support for Marvell ac5 Date: Thu, 14 Dec 2023 17:04:11 +0200 Message-ID: <20231214150414.1849058-1-enachman@marvell.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: d39ptV3d-6NQ6WrNs6UhFmrKMspK0cKi X-Proofpoint-ORIG-GUID: d39ptV3d-6NQ6WrNs6UhFmrKMspK0cKi X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 From: Elad Nachman Add support for Marvell ac5/x variant of the ARM sbsa global watchdog. This watchdog deviates from the standard driver by the following items: 1. Registers reside in secure register section. hence access is only possible via SMC calls to ATF. 2. There are couple more registers which reside in other register areas, which needs to be configured in order for the watchdog to properly generate reset through the SOC. The new Marvell compatibility string differentiates between the original sbsa mode of operation and the Marvell mode of operation. Elad Nachman (3): dt-bindings: watchdog: add Marvell AC5 watchdog arm64: dts: ac5: add watchdog nodes watchdog: sbsa_gwdt: add support for Marvell ac5 .../bindings/watchdog/arm,sbsa-gwdt.yaml | 52 +++- arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 14 + arch/arm64/boot/dts/marvell/ac5-98dx35xx.dtsi | 8 + drivers/watchdog/sbsa_gwdt.c | 247 ++++++++++++++++-- 4 files changed, 298 insertions(+), 23 deletions(-)