From patchwork Fri Mar 31 07:41:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Neeli X-Patchwork-Id: 13195359 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 8C579C77B60 for ; Fri, 31 Mar 2023 07:41:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230410AbjCaHlg (ORCPT ); Fri, 31 Mar 2023 03:41:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbjCaHle (ORCPT ); Fri, 31 Mar 2023 03:41:34 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2041.outbound.protection.outlook.com [40.107.92.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33C0DE19A; Fri, 31 Mar 2023 00:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dQw2LKNo9yCbvoEabCJKZfKaCZbASR3E6eDY79dEGshrm03Q5mRU27o1lQ/CX6Lmzcp8CXbBnROZhen4O/MbKRbIIC59zUAWkQs5tIrmHa9lmsrZ22xxrlF96bfPDn0mpzUScIUoRltSJi4iKbUo5mf8UZHW2GMT2RJJ6kAhX0QIy8Zyp2rU3RKTwToCgZvKYZdpj2jNFbKB/RY63ATdLMdvBXsA3flRFHY4YS7gdgiDiPbZ7dPieeNh/uF3ktiY/5nZHswl29CyCQgZ+p8BB8SAS7mnN7856mVFXrnzfCiFvRlBO+xGAL7Y/jvocXhgsaArB+ypUbDacMr90RZ8ww== 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=LGSuVqvIoLNH/7eCSqOZVafI/kBEtClwS1YIIbRkv7s=; b=LwFTzR5TNqYO83yZnDTdj/HsB92YXOYJ1r3Rpy0AszM2ESjs+XZirXY/b5hKvqAsqamHN+ZJoNT6xLE80ApHdGv5MtAzO+Xp9jDBmYHqGInDCCvtB3CVQlGiPJHlkFoE8cA0F8efzDnQsVshgJz4yTY5yLZOCd7CgfXVUMNnul9ovL+EipAstoK4uDfudtOsXR3dW55KHJG83TXhL1gUclgrjxloW1MBnUOamBTpfvEqidPn1Ew6rTN/Ee29FQKzkEhJvJn4xjta3YqD04n7IWRM7fBPBja0w65eHBbmCGq5cWEjqDLd3eDlNNqiG2Um9J4L+CvJqgdbV+6KKnxBvg== 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=LGSuVqvIoLNH/7eCSqOZVafI/kBEtClwS1YIIbRkv7s=; b=hI9ebqdGw+FeCBU20qmii2dYFdnR3twxw7YUl8GOxWZKXV0jvUr3mUD0137HAo4lgYt2JEdridR2+CGMFJ0VmD9L1LxAEEiWfw0uDp6UWIbIgf8xzN9Jld2O+ZMiZUhfttQhPMyihlYR6AkR0t0k2WGsg26TShL32jVdiqIS4rk= Received: from MW4PR03CA0236.namprd03.prod.outlook.com (2603:10b6:303:b9::31) by CH2PR12MB4907.namprd12.prod.outlook.com (2603:10b6:610:68::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.35; Fri, 31 Mar 2023 07:41:28 +0000 Received: from CO1NAM11FT069.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b9:cafe::1f) by MW4PR03CA0236.outlook.office365.com (2603:10b6:303:b9::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.22 via Frontend Transport; Fri, 31 Mar 2023 07:41:28 +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 CO1NAM11FT069.mail.protection.outlook.com (10.13.174.129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6254.23 via Frontend Transport; Fri, 31 Mar 2023 07:41:27 +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; Fri, 31 Mar 2023 02:41:26 -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; Fri, 31 Mar 2023 02:41:22 -0500 From: Srinivas Neeli To: , , , , , , CC: , , , , , , , Subject: [PATCH V3 1/4] MAINTAINERS: Add fragment for Xilinx watchdog driver Date: Fri, 31 Mar 2023 13:11:14 +0530 Message-ID: <20230331074117.356339-2-srinivas.neeli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230331074117.356339-1-srinivas.neeli@amd.com> References: <20230331074117.356339-1-srinivas.neeli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT069:EE_|CH2PR12MB4907:EE_ X-MS-Office365-Filtering-Correlation-Id: 9837c2e0-3eec-4cf7-d7e9-08db31bb560b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XxaOHoN2S/wJZnJ/uJS1625YmEaYH1jarFjqO07efYLs7oKdGBGPSq4JJaOmih8JTKymiuvpcRs41CPtqErDB+Yd5OnZ0FnR/KV54NIyyjvWbgFGaYuJjaTID0oiNz6QDqok+N4DFlMVwx96qbYI2Jm8LU9MNfZs3OTHkm1jnnFTPbv9uwa68sp4OM3F09UG8Qg/vLNg/Wj/lkKWtGm2atXUM0BytfTfDwdFKFxjm8SUc21vQCfvY3pJ8qMO8mG4J9rsXC2AodOWN5sHE0mUYg2b0Dmy/LdbliRlHsty1oTLIJM5lof0G5FkL0obELyDP5UxOSCHofePjZzvsYj/6RAARTzFkV45NcjkMSaw3OG8s9HIYrHxaFHDaxm2shxDHPvK6XcSpZO8iMmIABExfRn5uAq0gfvh9msSCKOrBJpHHNGHDjTEhvnnUNgAfBKtbBypxQmGZA0CnMOYTTBBIV5M7aHTCNWzssiUd/maGX2Lt1anv1Y8VnhBNBEZXr9/fDdP0+j1JoZ16tjyVtLMzGRzmzCM36U7Rt1X0X9Ffp60SrXwtg+8AULATZ7W8XG+7xPiqmCgQZD6PH6DG1AG8nwA1Yd0nikzeL4/q+fKNo+n3qFpF9MnZbhh88Xcm89p785RJrl4CFGVo8t8PYCmT0bVLybFbnmIqRoGzTin+5ABqVX9rubWGSt5GhOFFQJdyuzTLxyaJ0eSv9KLbneZIpH7HVAX+d+Czi0fne3OvdY= 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)(39860400002)(136003)(451199021)(46966006)(40470700004)(36840700001)(6666004)(81166007)(82740400003)(1076003)(356005)(110136005)(26005)(70586007)(54906003)(82310400005)(316002)(36756003)(70206006)(8676002)(40480700001)(41300700001)(86362001)(4326008)(478600001)(40460700003)(47076005)(44832011)(5660300002)(4744005)(8936002)(336012)(2616005)(2906002)(36860700001)(426003)(186003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2023 07:41:27.3756 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9837c2e0-3eec-4cf7-d7e9-08db31bb560b 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: CO1NAM11FT069.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4907 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 V3: -None --- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d8287eb2ab4a..4ed139d56913 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -23071,6 +23071,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 Fri Mar 31 07:41:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Neeli X-Patchwork-Id: 13195360 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 F3D7BC77B62 for ; Fri, 31 Mar 2023 07:42:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230191AbjCaHmG (ORCPT ); Fri, 31 Mar 2023 03:42:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbjCaHmA (ORCPT ); Fri, 31 Mar 2023 03:42:00 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2055.outbound.protection.outlook.com [40.107.243.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CF9F11176; Fri, 31 Mar 2023 00:41:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CV0qa4GOXqau1BDZHF2kkICwNGfNfKnoIIe6AwF4yZIjAsNmtEJEJ2aELv0vFoToD9RLj6Ru+kylRxGEOEuIgthrh9ax3zQhOoxZD2eSeSdI1V6YJ4beVK27tJuiLZj37CB1fl7SJQr0BA5osQNftdE+iIHHW+pGZHZq4kxIVzA60IcjNv8UL937VNNo1Xa8nRzir4t5VvUAgNNbH9yG3r9f/DU7BlHeSHy1R+cpyfhfLErgiF/04vDZsRLJOq+iRphwft8UwcAjjH8mYE80J/BzkspBn37ZKOT7/3WAfa7yPvdUjgwWS3VQmtaRt3+nqCdv38FKAURWV00BSs3T3A== 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=27BS5q/Rq5iIoVGjzHqpdt/WYf8x9MJNDwwz5v7W0Pk=; b=a+l//hBmKAxXCGg7Q9qBJvtyseudwpg6aZ6AHfQINL8EpJmS4F8VDJMHRzXJS1L6pGWy6y64m76RGanrt9ufD79srSn6HG2M8jYs7p0pTtwckqkrIHi1IHKYM/bDrKT0jkMkyD1IXeZCEQ5TccldhAkIKULi6f23deEuEbxlxb5ms+I6CT9OSYWH9QCFDxeJgsYZDuO8EV9l5QVOxvr7Kt6ndz01/6zAr2r4deMZ/7IuhAv3B6pJVzE8g8gzzWm1p2Tm/GhcQS7hyPOJEwmNGQF+MQOxcNeC6kkLZfwqSz4sm5TQ1FBzZ6oeVNZmTg++XnGNBGTeG4/khpSV4KcLhg== 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=27BS5q/Rq5iIoVGjzHqpdt/WYf8x9MJNDwwz5v7W0Pk=; b=aYhigJr23vzOrKaikC7VRr+BSIC2+aZm+tlFAoaNIcCwSPZ7PU8/ZhPKwSnSOD698B+Hremfj1GDRfU0bsmg+eHUK6rGQZyj1nYEqfmyM/E0qsOBA+s1koyz5XbuKWb88ajN1rVQIbIcyNlldWIyxNIBDXDAPEM2mB8fzS9QM8s= Received: from BN9PR03CA0654.namprd03.prod.outlook.com (2603:10b6:408:13b::29) by PH7PR12MB7870.namprd12.prod.outlook.com (2603:10b6:510:27b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.33; Fri, 31 Mar 2023 07:41:52 +0000 Received: from BL02EPF000108E8.namprd05.prod.outlook.com (2603:10b6:408:13b:cafe::f1) by BN9PR03CA0654.outlook.office365.com (2603:10b6:408:13b::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.20 via Frontend Transport; Fri, 31 Mar 2023 07:41:51 +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 BL02EPF000108E8.mail.protection.outlook.com (10.167.241.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6178.30 via Frontend Transport; Fri, 31 Mar 2023 07:41:51 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) 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; Fri, 31 Mar 2023 02:41:31 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 31 Mar 2023 02:41:30 -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; Fri, 31 Mar 2023 02:41:26 -0500 From: Srinivas Neeli To: , , , , , , CC: , , , , , , , Subject: [PATCH V3 2/4] dt-bindings: watchdog: xlnx,versal-wwdt: Add versal watchdog bindings Date: Fri, 31 Mar 2023 13:11:15 +0530 Message-ID: <20230331074117.356339-3-srinivas.neeli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230331074117.356339-1-srinivas.neeli@amd.com> References: <20230331074117.356339-1-srinivas.neeli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF000108E8:EE_|PH7PR12MB7870:EE_ X-MS-Office365-Filtering-Correlation-Id: bd4ed929-2bb1-4487-6580-08db31bb6484 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: URhFkFHmnvzrboJ3Sigpn5xfxsZxiJNXjvoYRlkzfpkNS+lUGmj+krRGtNH+MQ1lEilhbj9/HvPLWvj4ZGI+hbOpYECYQ1ehHNI5Wx8D0xRXK72LBI9jrn4zOPnEtoCmSEtBC7YgfZZapwYZ/sg2FQoIN2C9islyiR8filmmC8TyqycTKDIksKcjZFvLQfZMuMrWcCDbc09+7i4z+//45aLgHZ5wuP9r1ua18Fhj22dzhSVIie/eoSbpybZkNzMR/nP8kVFnrOHm5tpNRQoInedOEvuHHoHVbU35XRz+XWyVyE4zAIV9T5TNLeeYKlV8d5QpCBumrDWoUtsql+XSNuXlRYDYyEWfY2hrb+0GStTmWitZ0e07iSO6jcQjEmamHZkQ6vfLooVvtIvv8H3LyYF97WAinwzMZe5GhI4sWANdHdpV/TYAsx/cqoxpA/ktJIYUQbet0cpEEO6G4mfdj01E2wOBHSZimYp53R1DTEAPF2XX2mafRdA6dfPvJPuCWEa5WHZeFNJ8K962A443VF9px6GXM5Ge3P9KC9SGdGqg+ru/AyjZoZIEn13cK1bhJL9qy2bxcDHxFfPntSEpCWpnsHYvSsQooQupKfLeA0GZjPgjitj+CvEuKvdEQeXQwIyyzpIfArXrq2Wj5ZQPKYldu/saxhKYoedYU3+baEwY0nmdqjVFtdMVIcgklQK7MoR/jZNyHe8/CHWCmsP9qBhOGAbIt+GbJu1uBabF4AAkLGdJdFU+QD3IAJKNyztjnNr+Cq8gXk/bKicRNZiJkg== 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)(136003)(346002)(376002)(39860400002)(451199021)(36840700001)(46966006)(40470700004)(82740400003)(40460700003)(966005)(8676002)(356005)(70586007)(41300700001)(81166007)(36860700001)(70206006)(2906002)(36756003)(4326008)(86362001)(5660300002)(478600001)(44832011)(8936002)(40480700001)(82310400005)(110136005)(1076003)(26005)(6666004)(54906003)(186003)(316002)(83380400001)(2616005)(47076005)(426003)(336012)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2023 07:41:51.7788 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bd4ed929-2bb1-4487-6580-08db31bb6484 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: BL02EPF000108E8.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7870 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. This patch adds devicetree bindings for versal window watchdog device. Signed-off-by: Srinivas Neeli --- 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..dea1e7c487d3 --- /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 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. + +allOf: + - $ref: /schemas/watchdog/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 Fri Mar 31 07:41:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Neeli X-Patchwork-Id: 13195361 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 2D7EAC77B60 for ; Fri, 31 Mar 2023 07:42:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230452AbjCaHmG (ORCPT ); Fri, 31 Mar 2023 03:42:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231139AbjCaHll (ORCPT ); Fri, 31 Mar 2023 03:41:41 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2076.outbound.protection.outlook.com [40.107.101.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10AF211176; Fri, 31 Mar 2023 00:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QWIzt7BCVHyEJPHtiS/YQSixiJSGbIahe8JDLLUNlk7nYpNoBLO1HHI8x8piRz6dkkhem0+BJRe2bDlDkshFOihc2wVkyb0QCGOsXV6I6Gy1qOpokymVdqmjvDgHW7HsYdpTeyIijZOwBkRSKe55mgLPqqWAC7400ZWx6/aI8RRqPvjsGMGhFA2QhqlDHzqoUC0AcRI6lTqc2F30HPMuZStcesXbBEpy+UNiHKvE8BHTOktY8UWJF7LQOV/IkFFoiV1MKOnKIAQ5Ly+pFkKtm90mLtZ/41cWJHwdhb2prCWv/aYzqX8hUYmK+9Zrvush6z0shM2nNLWKsYQYws81Qw== 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=CWEL/a+X4tXqmLP0hjTzAnzqIqLiUb1AGbLfNupgtrg=; b=SyoSoj46yY8EdGFvouozfzeNWI7+ZsfShNYheWIlvFYfvwYo/kY3VWdEHnfooqjKGAI8NGGObs6giLFHHwCkT2gdfMWs4z1LSOwjOq919DJYVbQzaJ39gkKyRJkVk0tTZgY1OhrMdlY82t52PFAEqJGzVsEM9YLobYz7X6/EFgGgD4PnxrnH7P1+04fOZxoX7eQAfTp8JIE9+GQLXHGp/76/4gjQ2aN0lTslJjZjJraZgzMNKi6LqZWgG/7Te4jW0NkmGb9GwM7renQaazUQE2YBhJK/MO2X5s2sbId/leOCU3k0dzC9hxkpJjN9zIR6P5AxoJ67li6RPonmYx3GGw== 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=CWEL/a+X4tXqmLP0hjTzAnzqIqLiUb1AGbLfNupgtrg=; b=DJXbFJc4Kt66OZcg6nIbCgjoH1MBYXiOAVp3Er1DjvVUxpSDX7ZxVODxwSUyu8RYP5YGpJxnvklMGttGLh/rZtpCRYv74U9HPOLtKARUl/R2Ewtn2wttUNYO5fVjCu395TXm+GzT2kVMN2YpUxEqxxOyQ6PXHduyWqHQ3ToldRM= Received: from BL1PR13CA0248.namprd13.prod.outlook.com (2603:10b6:208:2ba::13) by BY5PR12MB4322.namprd12.prod.outlook.com (2603:10b6:a03:20a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.22; Fri, 31 Mar 2023 07:41:36 +0000 Received: from BL02EPF000108EB.namprd05.prod.outlook.com (2603:10b6:208:2ba:cafe::29) by BL1PR13CA0248.outlook.office365.com (2603:10b6:208:2ba::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.20 via Frontend Transport; Fri, 31 Mar 2023 07:41:36 +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 BL02EPF000108EB.mail.protection.outlook.com (10.167.241.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6178.30 via Frontend Transport; Fri, 31 Mar 2023 07:41:35 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) 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; Fri, 31 Mar 2023 02:41:34 -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; Fri, 31 Mar 2023 02:41:31 -0500 From: Srinivas Neeli To: , , , , , , CC: , , , , , , , Subject: [PATCH V3 3/4] watchdog: xilinx_wwdt: Add Versal window watchdog support Date: Fri, 31 Mar 2023 13:11:16 +0530 Message-ID: <20230331074117.356339-4-srinivas.neeli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230331074117.356339-1-srinivas.neeli@amd.com> References: <20230331074117.356339-1-srinivas.neeli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF000108EB:EE_|BY5PR12MB4322:EE_ X-MS-Office365-Filtering-Correlation-Id: f0e6990f-657c-450b-c862-08db31bb5adb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +13PE/kTgTw51ousKML/f74MnU9GoV+FZ9KtZZT43IhNgQNECtw5f+wUJ2rTZTb63I802UfFGkCpCjUvTDTWvlkmjcTikAnkJYWrhg3jzxbLkLCXDVHaDDcJL4ChDihWEnWjuw7A1mwRSy/ZyGdf1z9rEUj3VZi4B3tee+cceaGx50rAigTYAWb+WRvG0/JWn05NfxYKDjHpC5pLOMeGMKO+SvsIc80LJI1GHdVVB6maNMYH8jwa4ODsyIFzFd90BkKj2Drz6sDqfYJYuO9E+6Rj2zliwa/tnpo6gxh/6vzaYYJb3nEaw7Pue7xf5mtZyoqyHSP7gkckWZVSdRUkPJOWqe9o3UBczmz2UJQ2X8tNLwECHj3SP9q0NCt+2eZeIV4emBZQ05tj3DbmGA9OMQB93tiiy38irNnRW9LiU6GRDeyHTQ1jrnaNR2fQgILenKLxaDc2AfAO1gs9RK43w2vrSYRt1ixEvzaJy5qa1IMdnONDRMyyCuMa9WZLPcVzeLr4UXRmhn7Xmc6JkC1a/QXvoyoang/iRdotf4O6pQCHKkmGVpe3+j08qZPmIVnkMt8yV4p9SdcZajqPQNPNgcNitgKmwwSVGBTHahTync6X4jXmvNO+ZiWaBgjbn4D18LoHsXIIFgdcDvwa8h6s+iOq8/3LQhWFsjPBp3YPpKUJM08XfCJUGUxSNxUgEcV1mm+VchCUomD7k2Yxg578YsKNfLP75WDaG9ahIEaff+M= 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)(346002)(396003)(376002)(136003)(39860400002)(451199021)(46966006)(36840700001)(40470700004)(478600001)(47076005)(83380400001)(336012)(36860700001)(2616005)(426003)(186003)(1076003)(36756003)(40480700001)(82310400005)(86362001)(82740400003)(26005)(81166007)(356005)(40460700003)(6666004)(4326008)(70586007)(70206006)(2906002)(8676002)(44832011)(8936002)(5660300002)(41300700001)(54906003)(316002)(110136005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2023 07:41:35.5587 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0e6990f-657c-450b-c862-08db31bb5adb 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: BL02EPF000108EB.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4322 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 --- 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 | 215 +++++++++++++++++++++++++++++++++ 3 files changed, 234 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..7e9205bbf160 --- /dev/null +++ b/drivers/watchdog/xilinx_wwdt.c @@ -0,0 +1,215 @@ +// 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 + +#define XWWDT_DEFAULT_TIMEOUT 40 +#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 xwwdt_timeout; +static int xclosed_window_percent; + +module_param(xwwdt_timeout, int, 0); +MODULE_PARM_DESC(xwwdt_timeout, + "Watchdog time in seconds. (default=" + __MODULE_STRING(XWWDT_DEFAULT_TIMEOUT) ")"); +module_param(xclosed_window_percent, int, 0); +MODULE_PARM_DESC(xclosed_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; + + if (xdev->close_percent && xdev->close_percent < 100) { + 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; + } else { + /* Calculate XWWDT_CLOSE_WINDOW_PERCENT of timeout */ + time_out *= XWWDT_CLOSE_WINDOW_PERCENT; + time_out /= 100; + wdd->min_hw_heartbeat_ms = XWWDT_CLOSE_WINDOW_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); + + if (xdev->close_percent && xdev->close_percent < 100) { + iowrite32((u32)closed_timeout, xdev->base + XWWDT_FWR_OFFSET); + iowrite32((u32)open_timeout, xdev->base + XWWDT_SWR_OFFSET); + } else { + /* Configure closed and open windows with XWWDT_CLOSE_WINDOW_PERCENT of timeout */ + iowrite32((u32)time_out, xdev->base + XWWDT_FWR_OFFSET); + iowrite32((u32)time_out, 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->timeout = XWWDT_DEFAULT_TIMEOUT; + xilinx_wwdt_wdd->min_timeout = XWWDT_MIN_TIMEOUT; + xilinx_wwdt_wdd->max_hw_heartbeat_ms = 1000 * xilinx_wwdt_wdd->timeout; + xdev->close_percent = xclosed_window_percent; + + ret = watchdog_init_timeout(xilinx_wwdt_wdd, + xwwdt_timeout, &pdev->dev); + if (ret) + dev_info(&pdev->dev, "Configured default timeout value\n"); + + spin_lock_init(&xdev->spinlock); + watchdog_set_drvdata(xilinx_wwdt_wdd, xdev); + watchdog_set_nowayout(xilinx_wwdt_wdd, WATCHDOG_NOWAYOUT); + + 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 Fri Mar 31 07:41:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Neeli X-Patchwork-Id: 13195362 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 E8658C6FD18 for ; Fri, 31 Mar 2023 07:42:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbjCaHmH (ORCPT ); Fri, 31 Mar 2023 03:42:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbjCaHmA (ORCPT ); Fri, 31 Mar 2023 03:42:00 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2061.outbound.protection.outlook.com [40.107.220.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51527E072; Fri, 31 Mar 2023 00:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bg+xP3qa+ANfvPIRbjNri0tdt9a2gRciU2jeyEtyA7+V/S56uvGVgocdfdpWCEK9fRwlbM9dUQYMEWJnP8vuvJwbRtoVmkJ0+88NfiAp6JSdti/gUZLW/ToRBatA3L9qDPytEVTk+WbU5bkk08z6v3j90BmqYzkeyLZ5EmwTFUjQ1OuaXI/U2J57BukZWJRnlcdWC/dSd39vgpslJ3+n4pVowuC72aj7YRAOtMtxKq8gAy3/6/y4vmf+l5XSmuf3KTMHZ3jxgsST3jS3SED6PN7E1CUan4LgXZwwaCwGN8OUudyTRFxYHrRyyWeX2oJgptNO8DBY2POC7T83S63DQg== 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=RL0XCkROS5sV11j0Or8iLOG8d7WCBvvKK+gsWxICLvU=; b=lN4wlz5JsBQCN2YjjedbFI8x5YhQiEH7PYyDX+eLS7huLhD371Ag6w7MkAGpTn8jSXWxGQ2RWKqqSJftZC57uLL9BBq5jYNf9mWO49120ru7GChQEOr6YEE3jU8qqJT1KRur/CpT2wWdFl84KrnXoebobpZVgn2VILyT3QO2Z8griMqiT/m+RO3JUMXlFU1yHkd2/KUEiYHz8JI28qT9P53PSKmgeHWcr+PZMYbY2T14Y+syuc0XIvSAkToYdc1INkAINOPJLINwx7PwBaxzRx0xPRiICPqC/LCg1N02IRbuelkUzfoY9aXYZijWXWvHB5/8fsJl2r2WlhZo5anfoQ== 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=RL0XCkROS5sV11j0Or8iLOG8d7WCBvvKK+gsWxICLvU=; b=0pf3X4BTIx+1plQBu++ez22L7CRWnBTLZA5rD/fBZkoBEcvxtizqiCZJg3UwLVfzeksU/lcLgVxuFtVV4W23dugtDXDQSySyMdToY50hkk5pBa28ixSJQnNObNE/827O6MeztOsuqT63ee0zQKGry3TeSRuv+2j+qiuL8GGJsj0= Received: from BN9PR03CA0644.namprd03.prod.outlook.com (2603:10b6:408:13b::19) by IA0PR12MB8976.namprd12.prod.outlook.com (2603:10b6:208:485::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.22; Fri, 31 Mar 2023 07:41:53 +0000 Received: from BL02EPF000108E8.namprd05.prod.outlook.com (2603:10b6:408:13b:cafe::4f) by BN9PR03CA0644.outlook.office365.com (2603:10b6:408:13b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.22 via Frontend Transport; Fri, 31 Mar 2023 07:41:53 +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 BL02EPF000108E8.mail.protection.outlook.com (10.167.241.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6178.30 via Frontend Transport; Fri, 31 Mar 2023 07:41:52 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) 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; Fri, 31 Mar 2023 02:41:39 -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; Fri, 31 Mar 2023 02:41:35 -0500 From: Srinivas Neeli To: , , , , , , CC: , , , , , , , Subject: [PATCH V3 4/4] MAINTAINERS: Add support for Xilinx versal watchdog Date: Fri, 31 Mar 2023 13:11:17 +0530 Message-ID: <20230331074117.356339-5-srinivas.neeli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230331074117.356339-1-srinivas.neeli@amd.com> References: <20230331074117.356339-1-srinivas.neeli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF000108E8:EE_|IA0PR12MB8976:EE_ X-MS-Office365-Filtering-Correlation-Id: 5836fee8-9277-4b40-c1da-08db31bb6540 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B+9urdVDxWRl00EaftWgPMftvCuzmRIcO4CHxY9FVhPr/0n+Vq1ldHZbeDdfjeBSa/Z/4x6ahrIh5x2YoluqDN3HmpIhHgNImYvZyM6FFthgY4A3PwLMphnV2VtotlpSpqgYSS9dAhTCLCuEY63kLuo1fxoExGT3H+nbzoHwVwmHz7sgp/sRnzh0WyrhUm7Vw7sqXjf5lx+SQZrUNoT+KS0FQJFjBGLtU+5iWLQD6NAFwBK2sWHTlVhZXVBHSVZOdr0VTQ6yZ3OyrFH2osfVVKReFEd1RrKM8sDGeYBkLvi6CKfCE+H7sFlzFKSw0nNaCQLl/+92uWxyT3/LIt59DG3vwuCXx0zJbbKz62tVhpjUcUu/UicTXjmXfk/u1YkjRw6/54Nc8SM6VPhfPl14iLZtcAhu3Tuwqw7zJW5duazbQqq9mrOksXBLQYMXjo1QAX/ZZ/cshe3U+DMpt3eIZbXLm+Jcr2wl2qx8XbQu/gCcnmkZRQTJCP6OXPYeYfpvwxJsPkWlllm8BBdn4O2gGjottqlYrPFRbhUTnGZzqm+7pWwfMaj7HLt4Kw4mhTF9Wicl9Ikq4KCjAvibDXDpj686JAICQEhzVi7vJCRNTltmffiBGsj9k1T0l0oQSceSQ/bGJVr16mRV4ENbZZP7AamPmJdNhocfgh5hJwIhF4OAcJBWkf2y8oP8fBzJXRLKvP+dSdihin6qvMttnaxKVHPPtwFcAUNsPvJFkN7Nh+A= 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)(346002)(136003)(39860400002)(376002)(396003)(451199021)(40470700004)(46966006)(36840700001)(2616005)(82310400005)(426003)(336012)(5660300002)(47076005)(186003)(81166007)(86362001)(26005)(1076003)(6666004)(4744005)(44832011)(356005)(40480700001)(41300700001)(82740400003)(4326008)(8936002)(70206006)(70586007)(8676002)(40460700003)(2906002)(478600001)(36756003)(36860700001)(54906003)(316002)(110136005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2023 07:41:52.9979 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5836fee8-9277-4b40-c1da-08db31bb6540 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: BL02EPF000108E8.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8976 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Added entry for Xilinx versal watchdog driver. Signed-off-by: Srinivas Neeli --- Changes in V3: -None --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4ed139d56913..7b862ef7c876 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -23076,8 +23076,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