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: 13636312 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E9DBC04FFE for ; Fri, 19 Apr 2024 12:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WkUsiedbWH1/RTPxrY7eogxacPZw4fb5+BNHO6rud34=; b=UIDbTha4rlatJw 5EjQYlq0qholkHIkQpkmoOgoetmtghoDBaLoQ4GAY7CKs5w7SUV+8XPFYRI3xVk9bNxXZ//v3MDyq ONBSrC7Am46vA1l61dMoMoXa8M2SISXLi+mgZkTfvKaG/xYZocbQ2PFhGesGjDKL5BXyPNdABuI+m 60AoqGj6I7SJj6Z51SYi+f6HEP29LokuItrDLBYZXNZlwKGRuGiekIG+rTNkREPZ0W9QWku4Zn46h QfK/UHXTl+8/DEYNbMtXR+kKxz1lCIBWcqhisj7XK6Ts44gNwmq5KUoobeUTS28vZ261hALFiMFWO LcXoY48X7YsJgmJl55Ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxn0M-00000005XlI-2OH1; Fri, 19 Apr 2024 12:06:10 +0000 Received: from mail-mw2nam12on20601.outbound.protection.outlook.com ([2a01:111:f403:200a::601] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxn0J-00000005Xjz-1pwe for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2024 12:06:08 +0000 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> 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240419_050607_501912_DAEA6CE7 X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add optional reset device-tree property to the uartps controller. Signed-off-by: Manikanta Guntupalli Acked-by: Krzysztof Kozlowski --- 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: 13636314 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8FB7C4345F for ; Fri, 19 Apr 2024 12:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kgkJQNOFA3kg/PInHL86G8y3PsYdI9OLF7GtfvtFL5s=; b=1CrsxXANEg+UsP K8itDJZPempjqd6IdYi+9qJCm2LbDRHl5fpV6Pz18ahBquamZWj/X1s0wXVwLibg+57J2HlwAoO3t vX+EpuSUFR75XeiIqcv2p9v7hG3BEu7eax2p51PbhTdXvY0N+nZoKssCmp/LEvRUXRFfgAPdTezb+ CVKEBCdbAoU4eHcMTk7AbgqhlCBgA8ouhJRET9Qg5lb1loHYOtuJ222rvH94DeRD45s4TCn2rwBtR tjxeFaezZEjtswXWnmRKN5NvoWlm4kSXKsJ2xm9B82oCEEIrQPEor0IFGLEnMSbM2ripzT60K7ncZ bTg4cuPL5NUg5/hBJ5Tw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxn0d-00000005Xty-2e0M; Fri, 19 Apr 2024 12:06:27 +0000 Received: from mail-dm6nam10on20605.outbound.protection.outlook.com ([2a01:111:f400:7e88::605] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxn0X-00000005XqA-16fO for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2024 12:06:24 +0000 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> 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240419_050621_442053_B58A7FF2 X-CRM114-Status: GOOD ( 10.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13636315 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C937C04FF6 for ; Fri, 19 Apr 2024 12:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1iS7TfsoZjsj9DBB30yXT/ZSWOeZ1InTD/yC/sUuTF8=; b=KNjmLGVK/DYH1n Bvkrfh3/tzKeUOCN0oVCrOs7WZ4ToOBREX0Rps5iEAYRyKTh388fHto0CoGCSorsVrRHEh5oH3uKp M/BREQUI9QuhdhJM2hq84O0jB9NAhQ/e89poByd3v4LGUBvMfzxJs25/TkXwYOuxG2Bo6ysic9DTs N+jocYAz5M8ILfCqoawTl+A51kFO4yDDamp0ms4RoGRWZS0LADBa0iv2X3eu58Cv0N4Ys3SU1l+8l VkmaoSF1wuUQxi9/1x8ICtSVZfJd1xwGjA/8yXSr+un0wD1N/Fhlm/HynGjSLtTdhjDizots+f2T/ mOaCKTtNBPUVRe4jw9YA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxn0n-00000005Xzz-1btb; Fri, 19 Apr 2024 12:06:37 +0000 Received: from mail-mw2nam12on20601.outbound.protection.outlook.com ([2a01:111:f403:200a::601] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxn0a-00000005Xs9-3ldK for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2024 12:06:26 +0000 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> 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240419_050624_991515_535BAC9D X-CRM114-Status: GOOD ( 16.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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);