From patchwork Fri Apr 19 12:05:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Guntupalli X-Patchwork-Id: 790659 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2064.outbound.protection.outlook.com [40.107.244.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9374C8562C; Fri, 19 Apr 2024 12:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.244.64 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713528367; cv=fail; b=gv1w9cvRg6LqotOXI/EisZV65H3We9TqEVFVtAdbXuE5/R+n/Tylibg20dcOIMI2RwaI3QAUw5QbLUkgybsvLePIsWeUNZh8zTaN1JvFxnKw2Q/x2Y0u5ssR2HqMPn2wwVuBnA96U5i38DvWVCQK9hlP+XYBmhJLpKD4jeOfZu4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713528367; c=relaxed/simple; bh=LUT4q/fe5ziOxYOguB6voiPfz2gXsHHf0FPPjxikuRc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qRvAffUwZZaY/A1JEvFM7eReoSbI3FzB7/JxFzCxFiPTkYiBm4HBzhJ4hZ3XErf+R4wKB2BPsRqgxXnTFSaSSmYfzaTpS+kpepM51H31yf/zVjrOuN+wbcYliFhJ9do5ncTTEbUiyD4te0ylx9VL/oIZNf4rwxS/uxWkir3A6qE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=EQwpANOI; arc=fail smtp.client-ip=40.107.244.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="EQwpANOI" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WyozL+axCFsRbMa2ZPQd73VzyXRzS3NyLQy+gG6U90LxOMYRIjtpz47I6naNVLRXFh/oM/mwHi9n/W1KcR+wnxDyBmvc23ImdxlJAS7uog74UBP7o/T3rV1wiCDSftMZqg//7MG3S2ddgDMEuffObX/t/bXreLVvaSJ92Fqlsixd4ui5aJaR07uCSbjclhI/zSzzNA+L28RNWZtLBmPBzVO+Vk5oubb7PNM3E2TgoYZffk2/3SEo183XvYxuIo3CCh7iQ8H4HeQLuc/LRuzl57m79nOnW1QLr5XIB+o71A/5AFl67dW5iRiqBSttEDCFckW9hWtRgOpbe2mUOPLQ0Q== 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=wiz1FPoT3sl9O8FPM8GsDCdprKE2enADj2N1v5tWa/8=; b=iSzs59+wuVB3dW+SLDgyCU+BtRz865tUH4r0p37O6Yor7sIUPZv6hoST0n5jrYBDH6rfpdQKnmgzuSFVtfiqYTF+rTfvGQu6vyLldmGyJ+Joh/c0sUfm5W0uV+DYyZUFoPA3nvwGzbi8tna0O8swLaAsnb2We9Dkqm0B237FxFI+MNdkKFx8fDIsCNKICd36P6wOaUmGAOmoO/XtbdJ9HP72vOmV+qBbW7Knqf0eab27WZWTTK+whcNxvDnFVwY7th9ytjkxy/XkIHzTT+vm11VKBI/ta+/qhdq0RfySf73jdYA06/l4a8gmgvORFi4HOzNjEMKV0vxJoHTtjVYSkA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.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 (0) 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=wiz1FPoT3sl9O8FPM8GsDCdprKE2enADj2N1v5tWa/8=; b=EQwpANOIVFQyt22eYcAgva7WVSq+yHZnKb4yLv0R09xRRiLrx4t8ZpHiD6+r8IoRfL66mbKKhgeiNTy3AYYYDFqMyrMy8CdCWgrYPWjjxJN+FsLWp5OW+JxL9TzCzl/7YKHJE0luSnXa+LgupkZlZ1EDnlePrrZqVcthsQCMM9o= Received: from SJ0P220CA0022.NAMP220.PROD.OUTLOOK.COM (2603:10b6:a03:41b::33) by SN7PR12MB7108.namprd12.prod.outlook.com (2603:10b6:806:2a3::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.39; Fri, 19 Apr 2024 12:06:00 +0000 Received: from SJ1PEPF00001CDD.namprd05.prod.outlook.com (2603:10b6:a03:41b:cafe::92) by SJ0P220CA0022.outlook.office365.com (2603:10b6:a03:41b::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.34 via Frontend Transport; Fri, 19 Apr 2024 12:06:00 +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 SJ1PEPF00001CDD.mail.protection.outlook.com (10.167.242.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7452.22 via Frontend Transport; Fri, 19 Apr 2024 12:06:00 +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.2507.35; Fri, 19 Apr 2024 07:06:00 -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.2507.35; Fri, 19 Apr 2024 07:05:59 -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.2507.35 via Frontend Transport; Fri, 19 Apr 2024 07:05:54 -0500 From: Manikanta Guntupalli To: , , , , , , , , , , , , , , , , , , CC: , , , Manikanta Guntupalli Subject: [PATCH 1/3] dt-bindings: serial: cdsn,uart: Add optional reset property Date: Fri, 19 Apr 2024 17:35:29 +0530 Message-ID: <20240419120531.3775919-2-manikanta.guntupalli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240419120531.3775919-1-manikanta.guntupalli@amd.com> References: <20240419120531.3775919-1-manikanta.guntupalli@amd.com> Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00001CDD:EE_|SN7PR12MB7108:EE_ X-MS-Office365-Filtering-Correlation-Id: a5e2bcd0-53ba-4093-79e9-08dc60691424 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kmEyHcbKp0XgJjtttflhLeOd6v/cgLEPw3pyV7L7Z8UTKkP3vvyoaR7kp1/gpC0HNPXG0PGN4iukFcPqyT+Qsb6sfnHYFCaOKeFhC0PM/Nb67suu1C7iS263MahdRW4UXrqpbKoNLuUv3nLZqPP1fkmNBSY9MUrJ2fjZA1DHHGgmFu2LNzBXrNKESIsvxa8GsHVIsT7tNr3wo2o8/tM1WdpkPdbBv1/XNDHO+ULKZD7l7TN1x4c/F8tjyCOjaUNW27qmbADZNrt4lRBnJPcSg5h6aeL+QwLpyPfJvVPcDjVzMCsDs4RvifWDdcuCFHjqrXmBHzXaDWT+doX8EdY4amzMKJe7gSe8xHGepW0bqhl5KeKMJxRSoGh3+fmkRRno8sgA0tLTbnc9Y8y7HJHQXTur1vjajdbXzvFWbubvqp9AOS132uJWxeoVKyUd0Om+50AewEgi5XPEjv2eEUIBt7wLt6QbOgxAlfqwtZReHYu460jiKdkVNgMVYJH4l7trS9uiQiCL1Lj4Tk1fxcT0t+3fhybrXyvFNGDsaDLemBIezCB1mtXWX4mSKSwcOeuhtst1L+O4nbhmwggRDyVbHB2s42TuFjd/J5vFr8YmyPhJm5qQOLP0cF45xiLTBAlmRCH3HnfvdAFpXAXohKBjXBPT+9TNrVobwzoaAtwe5W+O5QlUsWQiPG6ImOjLl50RlNmdrmsQWkM0cCLVr4zQuavyRGL3vBNxh5PJa76K7g+eu9XJ7URloU/aop9siQ8AHrDlYgKXdLD3RduG0ja+og== 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:(13230031)(1800799015)(376005)(36860700004)(7416005)(82310400014)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 12:06:00.3035 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a5e2bcd0-53ba-4093-79e9-08dc60691424 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: SJ1PEPF00001CDD.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7108 Add optional reset device-tree property to the uartps controller. Signed-off-by: Manikanta Guntupalli --- Documentation/devicetree/bindings/serial/cdns,uart.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml b/Documentation/devicetree/bindings/serial/cdns,uart.yaml index 2129247d7c81..d7f047b0bf24 100644 --- a/Documentation/devicetree/bindings/serial/cdns,uart.yaml +++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml @@ -46,6 +46,9 @@ properties: power-domains: maxItems: 1 + resets: + maxItems: 1 + required: - compatible - reg From patchwork Fri Apr 19 12:05:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Guntupalli X-Patchwork-Id: 790445 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2061.outbound.protection.outlook.com [40.107.93.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84B0A81724; Fri, 19 Apr 2024 12:06:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713528376; cv=fail; b=kalUAgjcScEwypIX/kdijcoB/ngfRrhJYMNfBmZgvkHdaw0kwm4mIzR1LIivlR7DvovPaFjIwWq8thfd6qjrOmqHwu5vd/Jm/N0Ohl2pgMBlVGl/n1IMWjCEApViA3cYJxf2Ed8o5T6n94abiwOqZ5hP3j4YmGuUQ5sbvSMHlTM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713528376; c=relaxed/simple; bh=NtqNTVVG5Os233tgHAEW1zQfLn7isbVl3AA/FMVxX6Y=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uoXXClOFeNDaNKVxfByUiiyPJvvLpdqADoTRrcR7F4FuYiaNbr1cUTBxP8Us1XDshrUrHyug8Fn91ZTB7MgeyLn44koE+H1zKnPEEVDMjUa2h8dHn7ES/CpoEj8qNVUD0eFLXEOqLf3UMQusFEda07S8/hWvzglnRxd8v7s9eDA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=pQyf83Ik; arc=fail smtp.client-ip=40.107.93.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="pQyf83Ik" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KpnFuWRw9kp8JTmeweYB5Pd9M9GwqGf2usYETm/X8Xyo0SM9YvgCG5k10eNStvrwFgh8sCsToC/AQchBAs2UbAaPo5yeQ8Z1F6WshQN1uMHLfSAnC1u2Vy9E1Du/R24NfT0VkZj9u0rbI8vsqWiNLLY87eOKc+ikuEhGK+TTc8JSCojUZ6xG34zBxs6xT7vRtPKvC2rZLesozwXEYU904MiVSEZIM7HaAOisORE6hrFOkWT7+ZvFQoca5eLpvJ5fFW0Ikkrl9JPsK7k5nwE0m5hotDfQa/x7XJYTmOJ0i3n+ric/jB0z2rykSpKALRhlZT2GPlENC+CXdhiM1xXt/w== 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=2weJpxDajwLicia7zjgC3fOxN4bAk2/khpCT/w5STIs=; b=C3szsPoQwJzIY+l8GwMVCt0cga9WQ82hWgM4+JJcIs01qwDfMe49pFYvO00x5bwLD58ZxFYpa4NrQtYK92CsFY7c//81k57Spoyri2j1tRCuzAsKxqyrQVwQCiJdHPm1pRCgTTPJIhexYv9TCrke6feYV5X7kO+oFl5ZIBXRfTTgUERZ7QPEvMhv2MWSCIwz8x4mfR3qL6WyMV5Fx5AdNhrmV/hcwAQHOb4w21t4VnzCqIlHm+wF6+uqsubLgXt+3DrJ7n7jzUjgd0P4yXnt59Htv1eC33iv8G+5uql9/d5+KdvT78ZiTdOPtysamhyj8+e6GDq+5j+10pq8zLz9xQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.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 (0) 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=2weJpxDajwLicia7zjgC3fOxN4bAk2/khpCT/w5STIs=; b=pQyf83Ik5GakSteN+HyfS2Yw0HhTUpnJKIK9V4HTYDem+uigjmTGa265Nuu57I+lp9qgPRHnEubMn3pN4OsTwcoP3n/bh2z8FIKXTiJqCc3odXGPGW+kYBj+G67y5Xu2YJ4Ezh26+YzjHy1Njlt2cgHsNCvaFytPzPn/P3vO+6E= Received: from PH8PR05CA0005.namprd05.prod.outlook.com (2603:10b6:510:2cc::14) by SJ2PR12MB7799.namprd12.prod.outlook.com (2603:10b6:a03:4d3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.43; Fri, 19 Apr 2024 12:06:10 +0000 Received: from SN1PEPF00036F3E.namprd05.prod.outlook.com (2603:10b6:510:2cc:cafe::3a) by PH8PR05CA0005.outlook.office365.com (2603:10b6:510:2cc::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.16 via Frontend Transport; Fri, 19 Apr 2024 12:06:10 +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 SN1PEPF00036F3E.mail.protection.outlook.com (10.167.248.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7452.22 via Frontend Transport; Fri, 19 Apr 2024 12:06:09 +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.2507.35; Fri, 19 Apr 2024 07:06:07 -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.2507.35 via Frontend Transport; Fri, 19 Apr 2024 07:06:02 -0500 From: Manikanta Guntupalli To: , , , , , , , , , , , , , , , , , , CC: , , , Manikanta Guntupalli Subject: [PATCH 2/3] arm64: zynqmp: Add resets property for UART nodes Date: Fri, 19 Apr 2024 17:35:30 +0530 Message-ID: <20240419120531.3775919-3-manikanta.guntupalli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240419120531.3775919-1-manikanta.guntupalli@amd.com> References: <20240419120531.3775919-1-manikanta.guntupalli@amd.com> Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB03.amd.com: manikanta.guntupalli@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF00036F3E:EE_|SJ2PR12MB7799:EE_ X-MS-Office365-Filtering-Correlation-Id: 94212e1e-f179-4a50-28d4-08dc606919b7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RHWvt96uGqRxgL9RyC9BlvlwFMvE34WMD43MDwot5jUeRzyM/+eQ+CmaGP5alLJ9MIkBJ2Xatrz6Ka24GDiOG/Cn2Sthp1CKCiq9ckwiVA6wcy1uWSultfeTG8zknitlsFyUuJgCONAp7eGN4gF6mFms1Bs1skpxdUaXFgjYz80JaNXrJGWUw9VhhvzFzf3zU6L+YsAG1Rcq6FALHlx3e7FkIplWXHT4IT2p51BlxZoNIwbo74zc+47CqpJIEMSK5kT1MpMcd1k+15tXxhNh6EGTUv/duHxFDw+El90Mc6S4Bz3l91E9RFMPqIfFWtXxHMOznuaKyCYJgJIPbVNuaPxb5x8K23ErfNKao4myUxeFw+IzB8P7jVSergC7lPLPinHcjeZNychQaOoe7IFkqXoy/Xg3xDp9jSv+cNL+OxF3IAuFl/DagOThEPUtXm23XizaGfJtvvKDh/vOx8RgVKBw5oM82DSskA8Z9H68DR9Tau0caJ8ko+Ogj3D47wKVsjV8ZgzghJjFX4nApMGyg58BDpUvROf+GtyGDYWcrYx+7IDmwr/pGChIs03yjlzzSqRcHfL0AZJ1oGobYZKwq/mjF340q1lmXwVkfqU9HkuuT7kPKwlisUyeftMvui2qikgN2iocKC8So11OsbryWZP+HuT+wzIbnJNiY69YggoWAA1Iryd7jWHYuy8+ovyliNc1lkOBp1yU2v0hVkJcsgI92oODvW+Arku8LPvOvgkOvWXA3HjSzN2hi/Pj+hfk6CQP14y6YFn0dMaBJb3JNoC14l2Nx/yH+a+YaiPQ21BnBP7p4nI+0n82D2EAI7hK6bO9ckS510zrLTqCIf19fmXZfq836w0s35nZlKYuUxcWD4k5/e3telTjSUqkdKJLBsvPAJmG3PKPgkyZh85neDOOD4fJ+0ISTh/hc2qJI/awiaki0+RVg3SDLH9V9MUMNnuugAPDuVZtkJRupG7HRFx9x5R36kJszrKIjaeKx/I6XkbAvAJv4uUzoWi13dnv3RKUi2RmakxZCyftMjuq02SB7mf8H47eBGtJKZc8gHAhxSNVdzyQe0vnkcWkXyjwMXe6isXS5ZVFkVRxXhSC6UpyqBtFTm63tY+P7Pz4mFvSn5/PEvb1L5BZx6RrsMGaDB4JJ4Vvj1+X9Af4XNP+UfkkTp3o2Eft36GgXbGxUW0ELH+nT9bS2t+BTBANWJ9OJZ1MwBREDE7ewPV86jB+pDG/F1eHsZ4RzDgChbAqdNeR9SRCjUFLsZg8KCY+WQk9B/56NJIKu3/mOMyaz+5HbaS4MI959lPrfbML8T07tYP01ZTieBC6h5psr7nk49KkaR25OjcvnW/00rrSnXOGLl72AWTzkpXLVeyURiOwhIYvYGnSYfcpjJ40V2aXmpeT 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:(13230031)(7416005)(376005)(82310400014)(36860700004)(1800799015)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 12:06:09.6534 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 94212e1e-f179-4a50-28d4-08dc606919b7 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: SN1PEPF00036F3E.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB7799 Add resets property for UART0 and UART1 nodes Signed-off-by: Manikanta Guntupalli --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 25d20d803230..935504424ec6 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -906,6 +906,7 @@ uart0: serial@ff000000 { reg = <0x0 0xff000000 0x0 0x1000>; clock-names = "uart_clk", "pclk"; power-domains = <&zynqmp_firmware PD_UART_0>; + resets = <&zynqmp_reset ZYNQMP_RESET_UART0>; }; uart1: serial@ff010000 { @@ -917,6 +918,7 @@ uart1: serial@ff010000 { reg = <0x0 0xff010000 0x0 0x1000>; clock-names = "uart_clk", "pclk"; power-domains = <&zynqmp_firmware PD_UART_1>; + resets = <&zynqmp_reset ZYNQMP_RESET_UART1>; }; usb0: usb@ff9d0000 { From patchwork Fri Apr 19 12:05:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Guntupalli X-Patchwork-Id: 790658 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2069.outbound.protection.outlook.com [40.107.244.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13B1780022; Fri, 19 Apr 2024 12:06:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.244.69 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713528384; cv=fail; b=dGrYA/aYD8KzDyT/3u/bfyzYD1p4UTmoq481lM3e4Px+qRlk2lLG6V2Hls4f1fn2Q8X8DtIKd2o45RiqampEmvblbh/+aFdkpqKQORwH9R2VD58Q0DBWd418+pyaVBp3CqKBaNSkdwPF4UrKw0Ne//5VZxXM15PSrkOCqI/1R+4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713528384; c=relaxed/simple; bh=PcwAG5reM9yUVzMXPsaMN+AYVL8KznVJiNHR9pZdBWQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nallpeD451QbpRVn38g6tM8TOuHU6o7Amc57+9gxVS6Vrm3/rYuQndjSUCtfZJin/gXqLX/Sx5b9f0fle85tHNCcoWmCvpKVqHN0RX8yhrQ+6D4OIujcrhJQNBKB9Me+Z30NewnLkFKF44EfPkB1Mckm6YYRFxpS4zCS23iExhk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=D81wAphW; arc=fail smtp.client-ip=40.107.244.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="D81wAphW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h7nCuQHaPbsrbYePDmf/qe0dbRcR0692vQrkmeI8J/qS9G3+Qz0sqNnl4Na1ETFuf6mu4okMMiIkX9QH3q4fL2fH9iuLqZPIBk6HmHSF0GLv6hU3vPtDwG2dNHKba4LTxLvX28RPb9bJ9Sz1a2wtnadm3P150fFBJwhMpjtHiK88Jjded6G4RrwnyJ692i0SY5C85fiDmbxB6YW2DaWguTWA4lsf1hLG/Vz2g3PHMIy+vGqll2KJDZBLSWoKNrL4Z4/qNWxxuk4b4uY9F2xzQ+tBffTc0bvPLZcR1QhUB3o+2VOkSDmmDPt+jil5PN+Bu7LWZqI6XkGDD8ikstSW8g== 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=iUqaiAEvgmCLTbWL3GZlxUe4kuRWcvogV8TWvuOySqM=; b=eGMM6RzmE48IkX77at7n2qatwbK3WKlgWj5xUNuI2jpsZUvyagVk1lfJD9DXFBNmtyDT1cPfQq+J17zdqeuklHeYMiRxhNZ2EKbRLFdoRLC62YOUGmZIGIbUar/4g8NR5B1JFkRd0XjLsyhrs4nIi5WX0kwD+TqsUwmC4m/s60Ddgx9g9WvOZK3wkoXpNSB4hxmQeAnvlgq1EA5olhVYeyr4dQ3ed8jGmrEh67AwEMwWC/Whc3MA7WliPy1X501AaNZa4Hz4/tIktlHahWxnUAJrrfpYhFYJCfpqMs6asgQqig3Xih+5bMvqIX5tVZOlIqqgh3NokuxgJVeq/wWIuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.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 (0) 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=iUqaiAEvgmCLTbWL3GZlxUe4kuRWcvogV8TWvuOySqM=; b=D81wAphWT1Lw8IaSBRerIM/mswx70tM+P4ivNtNULo+6DtngUD2H13KRZuoAOEaVc6w16JeNRgiubDfCGH6hS1fGQzQopU2Efpa8xmWzvXsTSbZLH+NNTtDgeyGMUWYY4Zfc6FUNwQSB6Dd+Yi/gpF0ACdL3YwZWPsyKKZfqCvE= Received: from PH7P220CA0092.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:32d::28) by CH3PR12MB8481.namprd12.prod.outlook.com (2603:10b6:610:157::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.41; Fri, 19 Apr 2024 12:06:20 +0000 Received: from SN1PEPF00036F41.namprd05.prod.outlook.com (2603:10b6:510:32d:cafe::43) by PH7P220CA0092.outlook.office365.com (2603:10b6:510:32d::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.31 via Frontend Transport; Fri, 19 Apr 2024 12:06:20 +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 SN1PEPF00036F41.mail.protection.outlook.com (10.167.248.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7452.22 via Frontend Transport; Fri, 19 Apr 2024 12:06:19 +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.2507.35; Fri, 19 Apr 2024 07:06:15 -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.2507.35 via Frontend Transport; Fri, 19 Apr 2024 07:06:10 -0500 From: Manikanta Guntupalli To: , , , , , , , , , , , , , , , , , , CC: , , , Manikanta Guntupalli Subject: [PATCH 3/3] tty: serial: uartps: Add support for uartps controller reset Date: Fri, 19 Apr 2024 17:35:31 +0530 Message-ID: <20240419120531.3775919-4-manikanta.guntupalli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240419120531.3775919-1-manikanta.guntupalli@amd.com> References: <20240419120531.3775919-1-manikanta.guntupalli@amd.com> Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB03.amd.com: manikanta.guntupalli@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF00036F41:EE_|CH3PR12MB8481:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b5ee15e-3a4c-4a17-c602-08dc60691fd8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rcsD2hO8HsDYjzugygjbpGPCl1b32iLyBe5gOg2dQwtwWEH0KeYES60JWMNrj8+dOUisvEm5c/W/5k9WeWm9pH2nAX8qzRk8Tz7/JYF5OgP7+BXieUh875cUILfdTz/lTFH19uRQ2/X1u/+ifAV/n7lpmQRAhqBOySAYpbO+FGG1Zt5vNnQzom8NRL5u+ZtQIQKjySGN/XXbgDeVr4dkA2Ijge7UwMcp1a+tZUHQqhYuAJQubLgxCi020mA0xgKIFIOe4Q3bzv/NmWlS7lbPOwoLLPDWLrVPtC4v9o9A9tTZYzxQGuZ0AtoIkemuGJg/Xbi7SMoUJZwvjg8c5Am+rl+hx193ssOaXoHSkjqDAjINw98E3guw3h6k0MCmPVS7DX8iM6n/Z2xno0nQDLdZYeWeZwvW+kQ/CvSLdJ73xOwbAt0zk8UZ3siLQ75vMvBE5dK2x4Qra/k5wLVJkydajV2puc7BPm2aOuLLb0RUJYFTEiKanizsKHkalNop/w9j5g0zJG5vuxef8j+eYjPJpoSEE48esPwLxdoUqH8eW0J16EFAbiUbXy1DcEgtrL6D5stf1G4yQqZoimaujpWC5LdgCZWM3nz3oLaJ8uaC9iJrDQHDWvaiQ6vkaM/18iagCfXstuUiJtpasFeyGhRKc7j88JivE4ybPMGyahaGIQDokKdGI77hR66WIPuxZb8YR4+GPboA0pn0EHbi5ckDpWvmDk4PirUjlA6tmUSFvAzm37cghV4qkf2WKGs/MN0XlFE7rF8jCsK6TQBuNcvyHA== 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:(13230031)(1800799015)(7416005)(36860700004)(82310400014)(376005)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 12:06:19.9713 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2b5ee15e-3a4c-4a17-c602-08dc60691fd8 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: SN1PEPF00036F41.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8481 Add support for an optional reset for the uartps controller using the reset driver. If the uartps node contains the "resets" property, then cdns_uart_startup performs uartps controller non-pulse out of reset and reset in exit path. Signed-off-by: Manikanta Guntupalli --- drivers/tty/serial/xilinx_uartps.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index de3487206bcb..e45d6993ba05 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -25,6 +25,7 @@ #include #include #include +#include #define CDNS_UART_TTY_NAME "ttyPS" #define CDNS_UART_NAME "xuartps" @@ -198,6 +199,7 @@ MODULE_PARM_DESC(rx_timeout, "Rx timeout, 1-255"); * @gpiod_rts: Pointer to the gpio descriptor * @rs485_tx_started: RS485 tx state * @tx_timer: Timer for tx + * @rstc: Pointer to the reset control */ struct cdns_uart { struct uart_port *port; @@ -211,6 +213,7 @@ struct cdns_uart { struct gpio_desc *gpiod_rts; bool rs485_tx_started; struct hrtimer tx_timer; + struct reset_control *rstc; }; struct cdns_platform_data { u32 quirks; @@ -948,6 +951,12 @@ static int cdns_uart_startup(struct uart_port *port) is_brk_support = cdns_uart->quirks & CDNS_UART_RXBS_SUPPORT; + if (cdns_uart->rstc) { + ret = reset_control_deassert(cdns_uart->rstc); + if (ret) + return ret; + } + uart_port_lock_irqsave(port, &flags); /* Disable the TX and RX */ @@ -1721,6 +1730,13 @@ static int cdns_uart_probe(struct platform_device *pdev) dev_err(&pdev->dev, "clock name 'ref_clk' is deprecated.\n"); } + cdns_uart_data->rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, NULL); + if (IS_ERR(cdns_uart_data->rstc)) { + rc = PTR_ERR(cdns_uart_data->rstc); + dev_err_probe(&pdev->dev, rc, "Cannot get UART reset\n"); + goto err_out_unregister_driver; + } + rc = clk_prepare_enable(cdns_uart_data->pclk); if (rc) { dev_err(&pdev->dev, "Unable to enable pclk clock.\n"); @@ -1881,6 +1897,7 @@ static void cdns_uart_remove(struct platform_device *pdev) if (console_port == port) console_port = NULL; #endif + reset_control_assert(cdns_uart_data->rstc); if (!--instances) uart_unregister_driver(cdns_uart_data->cdns_uart_driver);