From patchwork Thu Apr 20 10:42:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Neeli X-Patchwork-Id: 13218449 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFCCDC77B7C for ; Thu, 20 Apr 2023 10:43:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234385AbjDTKnX (ORCPT ); Thu, 20 Apr 2023 06:43:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234451AbjDTKnD (ORCPT ); Thu, 20 Apr 2023 06:43:03 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2074.outbound.protection.outlook.com [40.107.94.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4215D19AC; Thu, 20 Apr 2023 03:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NSQJY/CJGlYzouxLvkCWs/fBtSn/pO+WpnrM2Z2P6Fv9DFyzfTO+HrbIZrQkDejMX9Nz8QFZa4EegVcHjl3/YlDH5xvPEDP6DSBmG8St34hSLNd7/KYw7RYTYWjR69ysIu15D7ypXC7bMv01tkhZ3vZ8uLJaRYkSE1FQ2N3D1dZ2ZU2YjhKN8dO2h7lhmTuJjcDN5to+7QxK5nBoA2a472VGMs4l9wXulhwwmlnCezUS4rNDWFiHSkTs7va1Op6c/7pNf811McfS1t39hNdFbUFNMPWieyDYRl/7silTOkhra0YQNp6si3qUbfGXkKAuQivNT80AgjtXlHLNONRfvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dcce2Sdq6urR/D2m4dTJ3IivgnupefVak85nIGXDV4Q=; b=J/FI9CqViCldCuw0BSbmgbRYTcmj3FV7CODJ6Km3PnXKEfik7ihKLALeqapOp5Ga5J5d+KMoe1GL0mapLEepN7AXu0t6kJRCnfVuLK+kk0bS7SF2SJYc8rTiAG9D0kgSy6yR2OGZy/zsGwvk2q8MQeOszFhUhAV40Z4p98ezZlLNQZJS01IJMJgaChMzch+N9YQCfU/aFimKi/+ZEyM1YpfHnDQPkjq7FAK5yVvlI7ZQZF5UYVD5Tzb01oT5NQfKQ+BL5f+oqBXhBXJbNJD7FaarXS9rxdSd+Pw+3LH0nFSsELsKle3RimornhSL2Y62wERIUwSMtx9+UlyY1ofgsg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linux-watchdog.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dcce2Sdq6urR/D2m4dTJ3IivgnupefVak85nIGXDV4Q=; b=lxdhwh7kZ+feQfIiDYFa/aXvdvw3OGXaw+eqJ2BvYY3l3kS8YJ6c+u6JTGPvoJ9wzW7+GJJMbHdSI1Miju/hDl4/ojTvVIKB60/UG1pi+HbrrkcP0pVaFpNn5wg9FsaS2dd8UqpbYUhfgRpIhf9JaTy2AstHV+S5DTrpKDuZoAc= Received: from CY5PR13CA0001.namprd13.prod.outlook.com (2603:10b6:930::34) by CY8PR12MB8363.namprd12.prod.outlook.com (2603:10b6:930:7a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.22; Thu, 20 Apr 2023 10:42:42 +0000 Received: from CY4PEPF0000C97E.namprd02.prod.outlook.com (2603:10b6:930:0:cafe::5b) by CY5PR13CA0001.outlook.office365.com (2603:10b6:930::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.11 via Frontend Transport; Thu, 20 Apr 2023 10:42:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000C97E.mail.protection.outlook.com (10.167.241.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6319.14 via Frontend Transport; Thu, 20 Apr 2023 10:42:41 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 20 Apr 2023 05:42:41 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 20 Apr 2023 03:42:40 -0700 Received: from xhdsneeli40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Thu, 20 Apr 2023 05:42:37 -0500 From: Srinivas Neeli To: , , , , , , CC: , , , , , , , Subject: [PATCH V4 1/4] MAINTAINERS: Add fragment for Xilinx watchdog driver Date: Thu, 20 Apr 2023 16:12:28 +0530 Message-ID: <20230420104231.2243079-2-srinivas.neeli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230420104231.2243079-1-srinivas.neeli@amd.com> References: <20230420104231.2243079-1-srinivas.neeli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000C97E:EE_|CY8PR12MB8363:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c855bf5-af48-47b8-8e40-08db418bf80b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EB6QYphDqNkPjYyOIHdu3/nA6V+N4ih1Dey7jbJ+35dkVaMsbpnXllKDn/ekQj0aAHPaJEqtXFHwfMrVDYHUR2neJ9ahHimNeykSo5F9RZgNEUJhDt6+DaSCxxsrJoFf/kFyyqUJnr0Xc4Eq66Av58rUdnRkmwsvdDanJnZQwlN2vBJoQgpEU12YQWhCglqrjSzPgTWpdROgrdJcr//v9Zzf+GKgD1ySGP1XlquGdBxB5rMqsJjLxt8mDLCBgtddGUleu5gny7qGUaOun5MyqQPtsgvAnuDhsflZL8JnkNzVBoMw0PsTbvdMG7F7Kez4jRuqLqRbQqZfPBg6d9KWGQVphTZ/AiS4/oBRVOadd8h033WGqKJ46PyA2a5sRPI0BQDCfcMsuXGE8/i8etWYe2u+Bx3vwAcq1x2WJCIOgUoeX+TZBtb5RSboId24rwNAuQGVSeGqS6U5DthRgYDSeEiRB8CkPaysIkEKdeqGcpFwbV+U2SignLnKNYk+/vXueIoIlU0Ci92FoAHU6OABiiRUinp3JhNL9DEOXHXRpPJtSyNq3E715+1MC0YZTbNuZEQz/8UJ5a5c9id56t0ly4fbEIuH+85TUBBrokNam7MS7IQCaTkZE7kCOPOhAcK6Wh7V65iyvt4eDgIdW98W6Jt0lyfMBs7RvO7/Q3ZPmo0hlEF9K/0V0AoOX6xkAJFbtKxo3bo1OT4GHvWlqRt5Ix8fYvUxzglsEHQ31aLKeGg= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(396003)(346002)(136003)(376002)(39860400002)(451199021)(40470700004)(46966006)(36840700001)(40460700003)(2906002)(8936002)(4744005)(8676002)(44832011)(5660300002)(82310400005)(36756003)(86362001)(40480700001)(6666004)(26005)(1076003)(110136005)(54906003)(478600001)(36860700001)(2616005)(83380400001)(47076005)(336012)(426003)(186003)(316002)(82740400003)(4326008)(70206006)(70586007)(356005)(81166007)(41300700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2023 10:42:41.9729 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c855bf5-af48-47b8-8e40-08db418bf80b X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000C97E.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8363 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Added entry for Xilinx xps-timebase watchdog driver. Signed-off-by: Srinivas Neeli Reviewed-by: Guenter Roeck --- Changes in V4: - Updated patch with reviewed tag Changes in V3: -None --- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index eddbc48c61e9..327901c9f1d1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -23143,6 +23143,14 @@ F: Documentation/devicetree/bindings/media/xilinx/ F: drivers/media/platform/xilinx/ F: include/uapi/linux/xilinx-v4l2-controls.h +XILINX WATCHDOG DRIVER +M: Srinivas Neeli +R: Shubhrajyoti Datta +R: Michal Simek +S: Maintained +F: Documentation/devicetree/bindings/watchdog/xlnx,xps-timebase-wdt.yaml +F: drivers/watchdog/of_xilinx_wdt.c + XILINX XDMA DRIVER M: Lizhi Hou M: Brian Xu From patchwork Thu Apr 20 10:42:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Neeli X-Patchwork-Id: 13218450 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 571C1C77B76 for ; Thu, 20 Apr 2023 10:43:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234624AbjDTKn0 (ORCPT ); Thu, 20 Apr 2023 06:43:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234637AbjDTKnH (ORCPT ); Thu, 20 Apr 2023 06:43:07 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2060.outbound.protection.outlook.com [40.107.237.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75C4C5B83; Thu, 20 Apr 2023 03:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UhSh+VRl+rG3VzqNOGJh7crs6N/cR/WxSZumqjvJMYYXPoNwgvmztjO8mo2CwPis7WmpzbK5wom2C2ID+ugmZPRovqLmT18qhVXug3BfnbaK84OTY59TXsctXTaIylgSSqDQaFdly/8ttIBq7PQ35O7l4gNgFoTrbo6I2qiCtC4S8AUt0IIx7S/lr0Aw8c7iJ2nvX3cgTW6/K1CtdsK/Ltg/HSqh7aJ6ZwVX9RAQ1x5ZdCdlDlIk6Im8RDM2hawkmw2osyD44pKDrOuEUvkDrCj+J/re0fnVxBkcK/ah5mIHGcP8b0NnIZF5Ey1mI30rfQ3z/JzX0j/br+n2xPFaOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=scHa0iKG2+wX89jGOfXo8F+ytRZ5R3mQYPJuROTvKK4=; b=TOZ1CW0NYmrXXDcZ1FlSKqc8rFHm9C/4qBVSEIL+CBdROryBD3yUUk+3zjrcUpjbAs41DadkySdVxonn9D/FqJsIfyHCf5X2n3dbNYPBZ9MCwDU4+5pl79S/oZSb0t0h0cnuUUKWzxX76/DJZhfu4rdAYqj9DUTVtr8/AyxbmMaKcl2ty1V1oLs2eJqkbxKwjMsD0KQw8JKsldq8Mhw+xBn3BK4u8cfzDEj401eDTv7qbJPnJX0tf1KSrJGXUcTGYGbA8eyhpDg9ruF1x7bwOnk/cmXDJEslFYriRyBRQbg404fldgXa+eRVCn26hAvfVDLGrh15+CUzh7X1H7au6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linux-watchdog.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=scHa0iKG2+wX89jGOfXo8F+ytRZ5R3mQYPJuROTvKK4=; b=F1NT6wIfQ2/wlQt7jJA7JhCEOW4Eo6kw949h0WD5WrnYpCQt5FLzSbS92YnT37Jwa7WEU66jKxcwHmTo+vlAw0SzygRbPg+/sWVLOs+J1OYKQRyA8xiuD8T/DNplgpnFIQjDk9LQ0JUA3bkEphGBri4CSxZtvFQGLWra9iYKwKc= Received: from MW4PR04CA0033.namprd04.prod.outlook.com (2603:10b6:303:6a::8) by DM4PR12MB8522.namprd12.prod.outlook.com (2603:10b6:8:18f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.20; Thu, 20 Apr 2023 10:42:47 +0000 Received: from CO1NAM11FT097.eop-nam11.prod.protection.outlook.com (2603:10b6:303:6a:cafe::bd) by MW4PR04CA0033.outlook.office365.com (2603:10b6:303:6a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.25 via Frontend Transport; Thu, 20 Apr 2023 10:42:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1NAM11FT097.mail.protection.outlook.com (10.13.175.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6319.25 via Frontend Transport; Thu, 20 Apr 2023 10:42:46 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 20 Apr 2023 05:42:45 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 20 Apr 2023 03:42:45 -0700 Received: from xhdsneeli40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Thu, 20 Apr 2023 05:42:41 -0500 From: Srinivas Neeli To: , , , , , , CC: , , , , , , , Subject: [PATCH V4 2/4] dt-bindings: watchdog: xlnx,versal-wwdt: Add versal watchdog Date: Thu, 20 Apr 2023 16:12:29 +0530 Message-ID: <20230420104231.2243079-3-srinivas.neeli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230420104231.2243079-1-srinivas.neeli@amd.com> References: <20230420104231.2243079-1-srinivas.neeli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT097:EE_|DM4PR12MB8522:EE_ X-MS-Office365-Filtering-Correlation-Id: 8bdea296-bc01-4c8e-1be6-08db418bfad3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: C1knh167gicW1e4Bn3M9v2Llt6/w37nlZDzf+2UVSjUg6F+l/q6VlpU2dg2ICZhWIF67chQnvtkAV/YnHtLVCcQXOubSwNUpt94h5ICL6WTSZpvlMhBsET6iQuMC7xtaozFom71NrIQEnjTsKGlbv4/yEXjV/B9CQY8r4NlMmxTEHO/BGUNS9okW+r2aPPqVs9UpBMOmKrHPDk4H6uTYps1hFmVLJk2ipu7xhdRKai1lh4RRE9ToUaEvNgFwV9YIEIWLK4QiGHRyYO090dwnKxf4J4oLrfUdF4F6srXVlI9ClP3wCQ7Ycrc8keKdkksuXFDgmFUu4DZU3OKhsfWiyev/gynCRUA5vcuYdqAB0H7egrHEUguAaVGXZNYGztAkPUSsNVpaczaHnTdHOqOfuYQwjurIItMw/8unPCZXyY5qLKO2dn9hzYyfxt9F+6rEP8Szq0aMeTMjtD2Oc1LKQC0EHmup7v2Px+3ZQTihXvKSB/echzAK2RObSzL2omSodM9NOTyxo2BxNt40PHXxIQf4OL87LFeXy1DHFZRSR7AKEWIQeszX9dqIzG9KPFFuTij8mGiAgceAX8D5KxsKbhnYCRFICJIUGxun56kubKATxaBuDrlF0dqfBWvTyjXPtQ9sXcGLlIyQaU+tu/yJqjv9cXTFaXCF0O5oxMIFg5h6Asl+jwVDOhddyoHHoRNgd68ULA8g2LirSP0QNj26/EECY+nt09U6oX4Hl21sbFD+M7eOBZ/nBZ8hMuWOc6TJ X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(396003)(376002)(136003)(39860400002)(346002)(451199021)(40470700004)(36840700001)(46966006)(2906002)(44832011)(36860700001)(2616005)(40460700003)(478600001)(6666004)(82310400005)(966005)(86362001)(26005)(1076003)(36756003)(186003)(40480700001)(336012)(41300700001)(426003)(82740400003)(81166007)(54906003)(356005)(8676002)(8936002)(47076005)(4326008)(83380400001)(70586007)(70206006)(110136005)(316002)(5660300002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2023 10:42:46.5893 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8bdea296-bc01-4c8e-1be6-08db418bfad3 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT097.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB8522 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Versal watchdog IP uses window watchdog mode. Window watchdog timer(WWDT) contains closed(first) and open(second) window with 32 bit width. Write to the watchdog timer within predefined window periods of time. This means a period that is not too soon and a period that is not too late. Add devicetree bindings for versal window watchdog device. Signed-off-by: Srinivas Neeli Reviewed-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck --- Changes in V4: - Updated commit subject(removed redundant "bindings"). - Updated commit descriptioni(removed "this patch"). - Updated watchdog.yaml reference to local. Changes in V3: - Removed xlnx,close_percent property. Changes in V2: - Added watchdog ref - Removed timeout-sec property - Used 4 spaces for example indentation. --- .../bindings/watchdog/xlnx,versal-wwdt.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml b/Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml new file mode 100644 index 000000000000..14b069599740 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/xlnx,versal-wwdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Versal window watchdog timer controller + +maintainers: + - Neeli Srinivas + +description: + Versal watchdog intellectual property uses window watchdog mode. + Window watchdog timer(WWDT) contains closed(first) and open(second) + window with 32 bit width. Write to the watchdog timer within + predefined window periods of time. This means a period that is not + too soon and a period that is not too late. The WWDT has to be + restarted within the open window time. If software tries to restart + WWDT outside of the open window time period, it generates a reset. + +allOf: + - $ref: watchdog.yaml# + +properties: + compatible: + enum: + - xlnx,versal-wwdt + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + watchdog@fd4d0000 { + compatible = "xlnx,versal-wwdt"; + reg = <0xfd4d0000 0x10000>; + clocks = <&clock25>; + timeout-sec = <30>; + }; +... From patchwork Thu Apr 20 10:42:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Neeli X-Patchwork-Id: 13218451 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E368BC77B72 for ; Thu, 20 Apr 2023 10:43:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234903AbjDTKnl (ORCPT ); Thu, 20 Apr 2023 06:43:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234907AbjDTKnM (ORCPT ); Thu, 20 Apr 2023 06:43:12 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2067.outbound.protection.outlook.com [40.107.220.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5F955BB4; Thu, 20 Apr 2023 03:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NaSavYKuB1VTYYYzeEKPUtt7OPGwULm8INAF0ZHfCWOHGaOsqjOuwxRNSJfpNd7SYKlJUBeOr9Qc+NvT0CRv9ObcsCAPK66xMFzJT0OTpnY+W8GRE0GIMGtroA0k+gHyqSf5UT7e8L70KWXK9V/qkSg9oMgwtykcIU3qMtTV8OaowX81yghfRyM5Mm7gzTRj3KyILWshiKFw5qHKCq91jkJNngyziQxGzavUDZPy5Z3iLSpoHHmrAQRD7cW7A/oi4NHGKHxMdkBv3TP24SubUuYUE7lMToPVNbrb/T6YjqZuXLe+GYheW5tqWvDVicNo3np0WNTA6L/0UCj+HbkhFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DZOiu4TTaPV1VIVOCcScNb52DkIinOzVWblp10jj9ws=; b=UyWNClZbb0SaNKRnAD3Ldh0lZt1/DbDHVYGkohr4IzPZiUqGGJZyO1hV3SJL3XuKQKRIP2TP3JsBhPt1/3E/nn6Zgsw9L2CBeb3ONfbx/V+1qwq8hI+37YW+7jUJQidoK48jbdtgBmmmpQTlINX0JplvfLDcuyQ3+PPDrT7Fyau58Vx/oRlV0aOmrOEoy3YWNQHN7kd5jeGE+F5HlgLFScvZiZmnxBqtQ89I20Sc+ssFrh7CdsoTWXFSBaWKpzIEGOxZGijDlmqsSo8bHWiN/ks04uEqh1Kx/ncRtTHnSaxYGrrrkFhO5w3qssa2vwvVsUbGreO/rla7VZp16wV7Xw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linux-watchdog.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DZOiu4TTaPV1VIVOCcScNb52DkIinOzVWblp10jj9ws=; b=2ElUIFPjdKf6HVFAm5CeA8m4X33EC4Sj8QK9q+nkRgeiVvShRNTG7kuiiEzbZip0AOmDQ6EMdA4L1sm1M4usPX8VCp0TCxHBojNaUATvW4TH2usZIvPoPDnyM/uLXh5pTtxgml+GwyubU8tthn9dfLYt0x31V6dS8y36MLgM/J4= Received: from MW4PR03CA0255.namprd03.prod.outlook.com (2603:10b6:303:b4::20) by SN7PR12MB6768.namprd12.prod.outlook.com (2603:10b6:806:268::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Thu, 20 Apr 2023 10:42:52 +0000 Received: from CO1NAM11FT016.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b4:cafe::d0) by MW4PR03CA0255.outlook.office365.com (2603:10b6:303:b4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.25 via Frontend Transport; Thu, 20 Apr 2023 10:42:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1NAM11FT016.mail.protection.outlook.com (10.13.175.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6319.25 via Frontend Transport; Thu, 20 Apr 2023 10:42:51 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 20 Apr 2023 05:42:50 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 20 Apr 2023 03:42:49 -0700 Received: from xhdsneeli40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Thu, 20 Apr 2023 05:42:45 -0500 From: Srinivas Neeli To: , , , , , , CC: , , , , , , , Subject: [PATCH V4 3/4] watchdog: xilinx_wwdt: Add Versal window watchdog support Date: Thu, 20 Apr 2023 16:12:30 +0530 Message-ID: <20230420104231.2243079-4-srinivas.neeli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230420104231.2243079-1-srinivas.neeli@amd.com> References: <20230420104231.2243079-1-srinivas.neeli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT016:EE_|SN7PR12MB6768:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d201c38-481a-42cd-c6b0-08db418bfda7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UxN3uxuR5bJMDaWcRTVkjx1jKpKrhZum38J98O9MCsVf1zKBzcbuOWI6oJqBo5eyu+HKIN98jtvE0BwOynM98ORCxo7z5Rp9sAX1fY9PzHalpQIDjGzoRtZnAZ1WjXfnHHo4lf7JRXtWX3mju5f6WnmujMTW5+rxDv5UwP+MI6JdaTM5iR/bq0Ljna9sYtKAQP66pRZ+sYA4xugAkpjAj5Hld0HyNbl+0/eyy+JV/vcQxiSNi3h1LpEzdzocyxMRTXArBrj7ofv9EMcL7ETtmb7YLkuqbBGy7SfcoEUHJINbtBDgYekDmcK5bX+mwHI3HYUItEmIYzl2Z0sS1dtcr/ktBvPOMox2cZYZ86r8umUeRFsrZ0YsUu+DSC3+InCpB2J3+rXS0VQZKTx+GVzHIvI3n0nGv3RC+T9AY+JFZGr24jPCOmO2Iej5uM7d74jLWeNC5r6koYyXMb8Fv0yVQARH9vH0GiBbgsijDlxYG6WrN4QcgS5e8NEaSJKADq2RRuP6889oAK/jrt3w46fSB417E+r7QBVqucEdkdCGZwxDT1rlpKDFyUovvt+hi+InqZYIXdMN+8MnddbUrhVaTt5AxNEfjwiyGFMxMft2cjNASHWrM1tE5+5ko9aRpPDQyYao+wt9VPXlLcxejg9g4jpQKe9FIVGWJTEZi6260PDWFJkb8xUhgIXhmTOTtZ/Fi0vp8/a1pJiqvTgktS5iTQ8u/z8517vvgoyiEhFLOIM= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(396003)(376002)(346002)(136003)(451199021)(46966006)(36840700001)(40470700004)(478600001)(6666004)(8936002)(8676002)(316002)(41300700001)(82740400003)(4326008)(70206006)(70586007)(40480700001)(54906003)(110136005)(81166007)(356005)(186003)(40460700003)(2906002)(36756003)(426003)(83380400001)(1076003)(26005)(86362001)(336012)(47076005)(82310400005)(36860700001)(5660300002)(2616005)(44832011)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2023 10:42:51.3229 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0d201c38-481a-42cd-c6b0-08db418bfda7 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT016.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6768 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Versal watchdog driver uses window watchdog mode. Window watchdog timer(WWDT) contains closed(first) and open(second) window with 32 bit width. Write to the watchdog timer within predefined window periods of time. This means a period that is not too soon and a period that is not too late. The WWDT has to be restarted within the open window time. If software tries to restart WWDT outside of the open window time period, it generates a reset. Signed-off-by: Srinivas Neeli Reviewed-by: Guenter Roeck --- Changes in V4: -Maximum timeout value calculated at 100Mhz source clock. This value vary depending on the source clock to IP. -Removed module parameters prefix("x"). -Moved closed window percent check to the probe fucntion and updated dependent code. Changes in V3: -Removed "xlnx,close_percent" support from dtb. -Added "xlnx,close_percent" property as module paratmeter. -Updated code with devm_clk_get_enabled(). Changes in V2: - Takes "xlnx,close-percent" property from device tree parameter. - Removed clk_disable() function. - Removed module parameter permisions and using readomly. - Added check for close_percent( 0 < close_perecent < 100). - Updated other minor comments. --- drivers/watchdog/Kconfig | 18 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/xilinx_wwdt.c | 201 +++++++++++++++++++++++++++++++++ 3 files changed, 220 insertions(+) create mode 100644 drivers/watchdog/xilinx_wwdt.c diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index f0872970daf9..ec4b522ae29e 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -304,6 +304,24 @@ config XILINX_WATCHDOG To compile this driver as a module, choose M here: the module will be called of_xilinx_wdt. +config XILINX_WINDOW_WATCHDOG + tristate "Xilinx window watchdog timer" + depends on HAS_IOMEM + depends on ARM64 + select WATCHDOG_CORE + help + Window watchdog driver for the versal_wwdt IP core. + Window watchdog timer(WWDT) contains closed(first) and + open(second) window with 32 bit width. Write to the watchdog + timer within predefined window periods of time. This means + a period that is not too soon and a period that is not too + late. The WWDT has to be restarted within the open window time. + If software tries to restart WWDT outside of the open window + time period, it generates a reset. + + To compile this driver as a module, choose M here: the + module will be called xilinx_wwdt. + config ZIIRAVE_WATCHDOG tristate "Zodiac RAVE Watchdog Timer" depends on I2C diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile index 9cbf6580f16c..6cb5f1dfb492 100644 --- a/drivers/watchdog/Makefile +++ b/drivers/watchdog/Makefile @@ -157,6 +157,7 @@ obj-$(CONFIG_M54xx_WATCHDOG) += m54xx_wdt.o # MicroBlaze Architecture obj-$(CONFIG_XILINX_WATCHDOG) += of_xilinx_wdt.o +obj-$(CONFIG_XILINX_WINDOW_WATCHDOG) += xilinx_wwdt.o # MIPS Architecture obj-$(CONFIG_ATH79_WDT) += ath79_wdt.o diff --git a/drivers/watchdog/xilinx_wwdt.c b/drivers/watchdog/xilinx_wwdt.c new file mode 100644 index 000000000000..2585038d5575 --- /dev/null +++ b/drivers/watchdog/xilinx_wwdt.c @@ -0,0 +1,201 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Window watchdog device driver for Xilinx Versal WWDT + * + * Copyright (C) 2022 - 2023, Advanced Micro Devices, Inc. + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +/* Max timeout is calculated at 100MHz source clock */ +#define XWWDT_DEFAULT_TIMEOUT 42 +#define XWWDT_MIN_TIMEOUT 1 + +/* Register offsets for the WWDT device */ +#define XWWDT_MWR_OFFSET 0x00 +#define XWWDT_ESR_OFFSET 0x04 +#define XWWDT_FCR_OFFSET 0x08 +#define XWWDT_FWR_OFFSET 0x0c +#define XWWDT_SWR_OFFSET 0x10 + +/* Master Write Control Register Masks */ +#define XWWDT_MWR_MASK BIT(0) + +/* Enable and Status Register Masks */ +#define XWWDT_ESR_WINT_MASK BIT(16) +#define XWWDT_ESR_WSW_MASK BIT(8) +#define XWWDT_ESR_WEN_MASK BIT(0) + +#define XWWDT_CLOSE_WINDOW_PERCENT 50 + +static int wwdt_timeout; +static int closed_window_percent; + +module_param(wwdt_timeout, int, 0); +MODULE_PARM_DESC(wwdt_timeout, + "Watchdog time in seconds. (default=" + __MODULE_STRING(XWWDT_DEFAULT_TIMEOUT) ")"); +module_param(closed_window_percent, int, 0); +MODULE_PARM_DESC(closed_window_percent, + "Watchdog closed window percentage. (default=" + __MODULE_STRING(XWWDT_CLOSE_WINDOW_PERCENT) ")"); +/** + * struct xwwdt_device - Watchdog device structure + * @base: base io address of WDT device + * @spinlock: spinlock for IO register access + * @xilinx_wwdt_wdd: watchdog device structure + * @freq: source clock frequency of WWDT + * @close_percent: Closed window percent + */ +struct xwwdt_device { + void __iomem *base; + spinlock_t spinlock; /* spinlock for register handling */ + struct watchdog_device xilinx_wwdt_wdd; + unsigned long freq; + u32 close_percent; +}; + +static int xilinx_wwdt_start(struct watchdog_device *wdd) +{ + struct xwwdt_device *xdev = watchdog_get_drvdata(wdd); + struct watchdog_device *xilinx_wwdt_wdd = &xdev->xilinx_wwdt_wdd; + u64 time_out, closed_timeout, open_timeout; + u32 control_status_reg; + + /* Calculate timeout count */ + time_out = xdev->freq * wdd->timeout; + closed_timeout = (time_out * xdev->close_percent) / 100; + open_timeout = time_out - closed_timeout; + wdd->min_hw_heartbeat_ms = xdev->close_percent * 10 * wdd->timeout; + + spin_lock(&xdev->spinlock); + + iowrite32(XWWDT_MWR_MASK, xdev->base + XWWDT_MWR_OFFSET); + iowrite32(~(u32)XWWDT_ESR_WEN_MASK, xdev->base + XWWDT_ESR_OFFSET); + iowrite32((u32)closed_timeout, xdev->base + XWWDT_FWR_OFFSET); + iowrite32((u32)open_timeout, xdev->base + XWWDT_SWR_OFFSET); + + /* Enable the window watchdog timer */ + control_status_reg = ioread32(xdev->base + XWWDT_ESR_OFFSET); + control_status_reg |= XWWDT_ESR_WEN_MASK; + iowrite32(control_status_reg, xdev->base + XWWDT_ESR_OFFSET); + + spin_unlock(&xdev->spinlock); + + dev_dbg(xilinx_wwdt_wdd->parent, "Watchdog Started!\n"); + + return 0; +} + +static int xilinx_wwdt_keepalive(struct watchdog_device *wdd) +{ + struct xwwdt_device *xdev = watchdog_get_drvdata(wdd); + u32 control_status_reg; + + spin_lock(&xdev->spinlock); + + /* Enable write access control bit for the window watchdog */ + iowrite32(XWWDT_MWR_MASK, xdev->base + XWWDT_MWR_OFFSET); + + /* Trigger restart kick to watchdog */ + control_status_reg = ioread32(xdev->base + XWWDT_ESR_OFFSET); + control_status_reg |= XWWDT_ESR_WSW_MASK; + iowrite32(control_status_reg, xdev->base + XWWDT_ESR_OFFSET); + + spin_unlock(&xdev->spinlock); + + return 0; +} + +static const struct watchdog_info xilinx_wwdt_ident = { + .options = WDIOF_KEEPALIVEPING | + WDIOF_SETTIMEOUT, + .firmware_version = 1, + .identity = "xlnx_window watchdog", +}; + +static const struct watchdog_ops xilinx_wwdt_ops = { + .owner = THIS_MODULE, + .start = xilinx_wwdt_start, + .ping = xilinx_wwdt_keepalive, +}; + +static int xwwdt_probe(struct platform_device *pdev) +{ + struct watchdog_device *xilinx_wwdt_wdd; + struct device *dev = &pdev->dev; + struct xwwdt_device *xdev; + struct clk *clk; + int ret; + + xdev = devm_kzalloc(dev, sizeof(*xdev), GFP_KERNEL); + if (!xdev) + return -ENOMEM; + + xilinx_wwdt_wdd = &xdev->xilinx_wwdt_wdd; + xilinx_wwdt_wdd->info = &xilinx_wwdt_ident; + xilinx_wwdt_wdd->ops = &xilinx_wwdt_ops; + xilinx_wwdt_wdd->parent = dev; + + xdev->base = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(xdev->base)) + return PTR_ERR(xdev->base); + + clk = devm_clk_get_enabled(dev, NULL); + if (IS_ERR(clk)) + return PTR_ERR(clk); + + xdev->freq = clk_get_rate(clk); + if (!xdev->freq) + return -EINVAL; + + xilinx_wwdt_wdd->min_timeout = XWWDT_MIN_TIMEOUT; + xilinx_wwdt_wdd->timeout = XWWDT_DEFAULT_TIMEOUT; + xilinx_wwdt_wdd->max_hw_heartbeat_ms = 1000 * xilinx_wwdt_wdd->timeout; + + if (closed_window_percent == 0 || closed_window_percent >= 100) + xdev->close_percent = XWWDT_CLOSE_WINDOW_PERCENT; + else + xdev->close_percent = closed_window_percent; + + watchdog_init_timeout(xilinx_wwdt_wdd, wwdt_timeout, &pdev->dev); + spin_lock_init(&xdev->spinlock); + watchdog_set_drvdata(xilinx_wwdt_wdd, xdev); + watchdog_set_nowayout(xilinx_wwdt_wdd, 1); + + ret = devm_watchdog_register_device(dev, xilinx_wwdt_wdd); + if (ret) + return ret; + + dev_info(dev, "Xilinx window watchdog Timer with timeout %ds\n", + xilinx_wwdt_wdd->timeout); + + return 0; +} + +static const struct of_device_id xwwdt_of_match[] = { + { .compatible = "xlnx,versal-wwdt", }, + {}, +}; +MODULE_DEVICE_TABLE(of, xwwdt_of_match); + +static struct platform_driver xwwdt_driver = { + .probe = xwwdt_probe, + .driver = { + .name = "Xilinx window watchdog", + .of_match_table = xwwdt_of_match, + }, +}; + +module_platform_driver(xwwdt_driver); + +MODULE_AUTHOR("Neeli Srinivas "); +MODULE_DESCRIPTION("Xilinx window watchdog driver"); +MODULE_LICENSE("GPL"); From patchwork Thu Apr 20 10:42:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Neeli X-Patchwork-Id: 13218452 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8281DC77B72 for ; Thu, 20 Apr 2023 10:43:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234916AbjDTKnn (ORCPT ); Thu, 20 Apr 2023 06:43:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234943AbjDTKnP (ORCPT ); Thu, 20 Apr 2023 06:43:15 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2077.outbound.protection.outlook.com [40.107.244.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29E2E137; Thu, 20 Apr 2023 03:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X9v12XOtLwDHBLetiHCdkoj50cUBM1h1LBS4+hTnSmULmCV6l/0AP2PGPKzBGPVhumvf3gdjlBUYw9OwcqHk9+6OlOKNzKXSmuj7Lsb6fmU1+KPtqIdgpPzjT5uRtFnbPgPKwVVLybTp52W0Zn7i8aOTB4syjHjH5m2ZX2V1iaP4O4Duk3McQ0L8ex1FD8mALHHEPGfg71VUbb7+LFHme3xE2u+kyW7ZqUjIq6+H2E0O51iGWywN4l6dP+dJ36Vd4z0tvghoO+CEabiNLSGWOJ+FoIsLxlTEcXT5FKWXcGTzFz6ZbetIr+/WKqpuWDs0JsDHEnrZSXtB4/PW7UGLPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NuV2bNHtLbNtTIYixfe4dbGV3RvGOxiAicMAq1Whx7M=; b=dQJFgGzpfAQwdpAdoseBlnPPS1GOfdYg33IG66kSN5s+T2I0M7njdy7mt3HOnsHcaWMkXLOME/YV2LUwnb+P0fCVPgnvu3UHz+xDsrheZURnc9Ny+hN1MijKIFWRzaUAVqMridHTpA/vQCvqWIkSXQus8qnUVK0dnDvEuhmX/Shi/aYtSE8g4wo+nYYB+tltv2gjmyfNvoM6zmeIyvfn5DJjDqaPiG+HVY8QXmLqL2M0tEM3AmuuiT8rca2Qd0I5CozKVdgA8abVQlsPAabMoAPAanh5qetzSyz7HE+/ppfSS2E3lvgwu2IUnZ+C5wo+jPYGSnP7Zie7hSuWwJMZuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linux-watchdog.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NuV2bNHtLbNtTIYixfe4dbGV3RvGOxiAicMAq1Whx7M=; b=AVB/i5ww6G9zXY/XSFioThl3sXi86Z9RbxzXVETTSY9x6Bgn5qOQ77fDeznRVMFC3k4483CM4pwyWkPe3NrG1QScyBYK3pMp8T4L1DZI5b7np1UzKemNVig6wycwCtFHtt1mPYgtg840dcSdOeRHxZaqwtuMLbTwZMNp70RgEZI= Received: from CY5PR13CA0017.namprd13.prod.outlook.com (2603:10b6:930::29) by PH7PR12MB8107.namprd12.prod.outlook.com (2603:10b6:510:2bb::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Thu, 20 Apr 2023 10:42:55 +0000 Received: from CY4PEPF0000C97E.namprd02.prod.outlook.com (2603:10b6:930:0:cafe::f) by CY5PR13CA0017.outlook.office365.com (2603:10b6:930::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.11 via Frontend Transport; Thu, 20 Apr 2023 10:42:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000C97E.mail.protection.outlook.com (10.167.241.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6319.14 via Frontend Transport; Thu, 20 Apr 2023 10:42:54 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 20 Apr 2023 05:42:53 -0500 Received: from xhdsneeli40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Thu, 20 Apr 2023 05:42:49 -0500 From: Srinivas Neeli To: , , , , , , CC: , , , , , , , Subject: [PATCH V4 4/4] MAINTAINERS: Add support for Xilinx versal watchdog Date: Thu, 20 Apr 2023 16:12:31 +0530 Message-ID: <20230420104231.2243079-5-srinivas.neeli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230420104231.2243079-1-srinivas.neeli@amd.com> References: <20230420104231.2243079-1-srinivas.neeli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000C97E:EE_|PH7PR12MB8107:EE_ X-MS-Office365-Filtering-Correlation-Id: d5cab9c0-651e-4ddc-7210-08db418bffa0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rfzPr3vDIskqm5sLn/DWiVf/LsRaVBl4Eb2ARgL2XxkA38f2jMBAdWWD4F3ZmKpXYAT+w4jatZ1Nk/4iu9sayIv2URc7tjuPMisrRmCJ1VIF0aFjeB2szyfolbzfd2gPsEyF5khSPBU12qJDPSPVcv5XU4OqTh4F6Zq9IP/CeyjXlmL1q09FfunHOdzfhZlqt8gXxNc2xBTB3kcurRiswTqk1f7Mzhti0yiv/t97wX/K6+3eJXZbknZfysgbwglzDdR/XOc/jkIzcspThealvl2zxDvofTGCDLr1NQAnlDSVanYLwbcqWemKAt3/y5lOiNtzVlGpWLQs6jmBQEnhrKRHBZmtM2rhahesZhBYu1H5MOi5UPleQC4LqePq2189QPD/Dx1oNCFxZi7Nt4dJc8oZG7huvhrVHcIokxcSmFfsHNAjLWsdKjd8MCORR+P7ODl+/wU2rraYYPViUlBpUwR66P2X+VSVAEbJo4Pv0rKkU/2kyhrKdx5TWzdLaTQ5q2M4df6IF3UdF/khjDkJi0+OydHBa9sszGCBAvzf+gkLxrC/1PYTCyvANvKX4MylBXOKyTOc2FBchIkXTFaR6RHj8t072pZjHVjCyExzgOPXTZqm15ggHxBpYXOEMt7B0RDe0sUAm3W+j5PE2eNZzO4s1CJD0ofmUqb6DuQbFPlE+28n14Ffdy/NKJccIJzAXIw8foR2ho/YzYwlEG4Ue1uMmPtDU/OMDR99A66qlz4= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(396003)(376002)(346002)(136003)(39860400002)(451199021)(36840700001)(46966006)(40470700004)(26005)(1076003)(82310400005)(356005)(36860700001)(47076005)(82740400003)(5660300002)(336012)(426003)(478600001)(40480700001)(81166007)(186003)(40460700003)(36756003)(8936002)(2906002)(4744005)(54906003)(8676002)(110136005)(316002)(6666004)(4326008)(86362001)(70206006)(70586007)(44832011)(2616005)(41300700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2023 10:42:54.6927 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d5cab9c0-651e-4ddc-7210-08db418bffa0 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000C97E.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB8107 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Added entry for Xilinx versal watchdog driver. Signed-off-by: Srinivas Neeli Reviewed-by: Guenter Roeck --- Changes in V4: -None Changes in V3: -None --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 327901c9f1d1..388305608418 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -23148,8 +23148,10 @@ M: Srinivas Neeli R: Shubhrajyoti Datta R: Michal Simek S: Maintained +F: Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml F: Documentation/devicetree/bindings/watchdog/xlnx,xps-timebase-wdt.yaml F: drivers/watchdog/of_xilinx_wdt.c +F: drivers/watchdog/xilinx_wwdt.c XILINX XDMA DRIVER M: Lizhi Hou