From patchwork Wed Apr 24 11:29: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: 13641753 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 4C691C4345F for ; Wed, 24 Apr 2024 11:30:26 +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=93wliG3MbrooI3sHiEJuolXcPksojOZ2HTMNtd7Hows=; b=nqN07WeDvVCEd3 m579iSH/n2f6j4YpicrqzIOApxxfPp8FGAj//7JdxhxUNG+NQUxsUE2C+cc4fprZq4yDig4yrLr/E 8IrM+BnWhKvTTfIupNy6NPgbbkkmgFlakxRblpEkpYvLb/tsFy3Eg/qQAI/A1YUfX9+6fP54Z3JT4 ZQ1N1qOzTcLhJMc5g65+Kl/ef1EElLD30HgW8tQOvTK9cMqU3wswioNrqiGtKU0O/7QC52BY2aysb CAlHh+pv/1yASLRVq28/1DRkQBxgTT8R6r+HJmHBi+CX6QqI8YOvT8Ywov7EBX8Hu5I69tzJTcLno cWpX9iegmW9yipv7cjbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzapE-00000003uWo-0PZr; Wed, 24 Apr 2024 11:30:08 +0000 Received: from mail-bn7nam10on20600.outbound.protection.outlook.com ([2a01:111:f403:2009::600] helo=NAM10-BN7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzap8-00000003uUI-1ONu for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2024 11:30:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HhziOywqlzwTg3LxUQOA/77mfTvonNu1F906kZPSutNftWnQuAK5GyEOkQNSzXPzF6kzvXnfrXot4jUT5Gt4onC60pS/YqDAwv3xN7XpPLCVYbiHAxuRcn0GRaTmP8c8NbH4k6R5aIKOP37/cKxE3R/fxo2GgSMdkJbanEjzDFIyzATCi6I7YgM47L/Bq/T8kO1MVDzwNumMwgwIwmfir2itsjo1x7Jc5ZQdQixt3uu/OFZBJIN2pgzPVzABguU8cFVD0omRv8h+TSlejFkGl30L8UiL2TviXglo/9jtVwjJn9hvTz6ZhqZPvrQW4XTm2VppAvCpXZeesg7B6IDYnQ== 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=SGU6cRRPtQ5MQmeNtpRTpQD1WatfujfgSh+grfQ6S8Q=; b=DXNoOs+sqLTntk7Hx3L86ZBE+vMV9QumPbTKbOmF+e3G+7JJGTOjT7Y3Dn3RsaUyMQBIt/CuA+CPKIo7bbEq1Ar8jRFAGb3ahO0gAtSzlhyPqrmSQ4Dn0oMOqxWr9UySY6RDJ30UL0RNjDHCQmSWM73oIEEe97iP3RbpDg45f/XesuYYLStdRsYIqG0P7sWNHf/Z5G7Hvd1BgRDHDPxXYnYuzi8b2YrzTcexUWHOuUQNR+rieDzcTiKUb/6z4OEPMZ75aT4R4v6zWeHbr/OXGrB3+4PLy3i1yTtI8NiDz4TD3611VVPpaQlZ0qacjWOT9RFHKoLqCE/oO4PVMc+XXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.infradead.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=SGU6cRRPtQ5MQmeNtpRTpQD1WatfujfgSh+grfQ6S8Q=; b=ZypzHpKDEeOqoFCTSnzk5sJ6fLCiXG09w33T1VH2Be2B5zdXNK82J1NRnBHr/M/DIWXyjAt5/NaEd20MOrBv/gT8wQiUbBtHVLgVh5eJ0XDZ7YHKRLbbkGe+mtrjr38zhfcVYfAf8Q8V1/WPKpLcKez4nYaFVFlzLnVV1ckJwNQ= Received: from BLAPR03CA0064.namprd03.prod.outlook.com (2603:10b6:208:329::9) by LV8PR12MB9264.namprd12.prod.outlook.com (2603:10b6:408:1e8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.23; Wed, 24 Apr 2024 11:29:52 +0000 Received: from BN2PEPF000044AC.namprd04.prod.outlook.com (2603:10b6:208:329:cafe::4a) by BLAPR03CA0064.outlook.office365.com (2603:10b6:208:329::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.36 via Frontend Transport; Wed, 24 Apr 2024 11:29:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN2PEPF000044AC.mail.protection.outlook.com (10.167.243.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7519.19 via Frontend Transport; Wed, 24 Apr 2024 11:29:51 +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.2507.35; Wed, 24 Apr 2024 06:29:51 -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; Wed, 24 Apr 2024 06:29:45 -0500 From: Manikanta Guntupalli To: , , , , , , , , , , , , , , , , , , CC: , , , Manikanta Guntupalli , Krzysztof Kozlowski Subject: [PATCH V2 1/3] dt-bindings: serial: cdsn,uart: Add optional reset property Date: Wed, 24 Apr 2024 16:59:31 +0530 Message-ID: <20240424112933.3528590-2-manikanta.guntupalli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240424112933.3528590-1-manikanta.guntupalli@amd.com> References: <20240424112933.3528590-1-manikanta.guntupalli@amd.com> MIME-Version: 1.0 Received-SPF: None (SATLEXMB04.amd.com: manikanta.guntupalli@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000044AC:EE_|LV8PR12MB9264:EE_ X-MS-Office365-Filtering-Correlation-Id: eabbba89-f9d0-41a9-514b-08dc6451db9e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|36860700004|7416005|82310400014|921011; X-Microsoft-Antispam-Message-Info: m3K6uzs5Mtn3cf/zbGmblBKFB/9AB3tbZnE8jOjeA8R2sI2mFDF6onzx3J/vdl4BaaNqe+7TnvnTRc9j3e4La1DlasNEvNh+4VAx5+WtSrH6tBjQFYBVaSDxkdsXbvjKenXYYn/aRb5ffQ4fFpcAjTjcIfRKCclQ/C/4juFrgFCrGeL6shIjr2HwZmNXO09NaPiPGwA2GSOfEjFtS/Rj8Cv8DlKQUadM0ChQ7YRQ1xiPIwKL69HVhE7t6Iojo3auU9ecG8CPBTIbwJlu/pE6W0aZUnJi5pQ8Rz8fIm7AsiwjVbukIrgOgbt0BePxTUbCBtTvpQHNbQvSvKlmNE/oKygvB8jpqWVK2gjPd/qsT9zR0+KVz9v7YD9zX0hN+TVBjY8z+YS2KfIXGU3yDOO7Kcclo7uG1UPgG2CQT+8MyiOfRGHQIuFo0ZWdCv0QuRHld94GFVdXNqR58zIy0qGXhWck4ddFWKcp7LQwff4MVgfmDKYqo7ofWv9I47/3OKFg3X3SPVaagtF8ofEniVrwlR0lHrIXQIX5dSpwNX+SNbpLPUX/pHp+a/PGof+dYwSFUG6Ei5v9BSu2CW5UgM/FyTTfW5NEjc+LhgMRk7t7wraWtCVupHh5cB0lv5WbkFqzYJ4r/jrFapPH7dhteLX0Cl5GOvGrP0N7qCchAUxxyqLB3NHELE2XAeX251uqVgUDFEkrWPhUUiJPHNg4XoAi+E+3WhEax7IufcGmE/koyAAxYp1ZmvyDk7iy/RyIvu80wDLPz8d+YsW7ISa1YEA+el5rLmCS37kB0WvFnsxfSqyYN92uqX2gvh0a4LJJaWqlmESd4zUuJcjBTPhbkOgcnO1flMC0Rw8EoXWq0j4YCVQUXVZ+cPIu4wKCGlGL/5leN6+C+owwpQfaQjU3DH0j5OoSwr9QwCgebU8lw3KWatYpV50mKoKTAG40vbidPYUZoeeZQEvXHbC6p0pSsOWtdE2Nk3rgEev4vViUXAfUXFAiNd0+rzfeNndUYz7opf62sCY6VAgPr9kTBIkDDi9R6FrsV1siWo3GZuSao1Ct1VnL2HBxHZgadBNwVw9r1CEvH1D+E8IgN8W3XkF1S6Ea11y9jdHs6gqCsBx/i9DsAVjXTjhmkBBb6SMS+puS6HiLFWv3hp1jXFWdrDTDvm3Smf90uhWckaPhs1CNJzDkQ3Ogn53ZStM65XZIb098vN1UqVD1z01BK25uM78mSI0RZoE/PqFq/Zr91EqzwHgqnLfmL+ue2TBCqf0YemB5jWjyYsTGsGir4LhjB64DBWkSSpnKr1jreVH1UxOB9fIXdpbCXs9/YIQvFeqS4kxGKVeJu0vmvufr6knxTdIdzrL1TQFA/EtUgI6a9JBUuKIPMN4vg1GFMQSu+Be+lI6AzF5k 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:(13230031)(376005)(1800799015)(36860700004)(7416005)(82310400014)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2024 11:29:51.9013 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eabbba89-f9d0-41a9-514b-08dc6451db9e 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: BN2PEPF000044AC.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9264 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240424_043002_583687_C0F72A9A X-CRM114-Status: UNSURE ( 9.97 ) 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 --- Changes for V2: Added ack signature. --- 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 Wed Apr 24 11:29:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Guntupalli X-Patchwork-Id: 13641754 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 85BB1C4345F for ; Wed, 24 Apr 2024 11:30:39 +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=8cp1PeXZ/GC1Bdt+W6L+bmFXSp82joJWLRid4BTvZLE=; b=I8O4Sb8rsKJD6Q V3fw92OPDpWjT+pa74zR6jO/DAmDeRRp00D2T8R9bhvkWfpfF/iUcNrhoxXLJkTyHpVFUBloQzNpp hRL88leEOz9ERi6syTECed47YavHgHrRjmxZJq0E+5qePM1ZS1ByEcpW/14bPGy6nAOktFG/b9S8e PEiS31h5hj9xlmiOd7LGHWI8ZFpwqw7GJFEfS+zDC+GbmeIC9QzhB6J6BGMxVNjV+LrUU91n2lQMH xAFjbkmHr74466oHH9Sj50162UDadCYA1yxyoFtFHKuTcPCUUhuZcTnkbCxEZsO9nVSEqTZFry4l2 ubrp2pVuri8KM71v8YIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzapZ-00000003uh0-0cJm; Wed, 24 Apr 2024 11:30:29 +0000 Received: from mail-bn8nam11on20601.outbound.protection.outlook.com ([2a01:111:f403:2414::601] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzapB-00000003uVB-0zkT for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2024 11:30:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UTZIdSEbAaHNg8mcYP4NyajNMVsAb/QHwZDm+Cv1Nv+ygkhNvWskXWAyEMp8mGHv5ThSYNmGOlAswbvq18ImMM1OrSfwg+B6LOjwKZzTHg+ppbMNsSMWaT3xDE9wdNpf5xEsc9d40O9wRV2oGM1fY1l8an0i7qXl2mOSjW9TSHqrnTpfm5Ppumxg7PV81PpgAlDrGc68t3P7WD4WVy458Lfi4YdF8vEobC5Ljo4hA71I5UsD9Gqogp5bTjl8DuFDKpPC4mX8m4M/mGS/Nsix06ZtlRdin/4m6cnkxvu1MAZIT3Q+38gjujcCALqXgHvS8v6OlsPYJQ0EXKS7yNr/nQ== 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=OCBGOmeUyq6IRlbQEjM/TLjwZ2CsFiZK+xL3v76/+Pg=; b=iYPUsXqZlYpv/NCHuCLZutJQWcwBbQv7kZ9IXg5sd2VhJeNMrQ49Qt+pZ3zitsAV21CpRUFnKrSWvB3QT8mMsyHl+Fmul0zDoOZYvJdH8Ja/80U6GsQi9hlOVkj20xdInjQGB266U4JcFoOgNm0CYvHPziH8gmDHW2wVfagwbis5ZYXsBV6YT1fJQLmcqg1lXbjKvCgoWYUk1K7gPCCR6VWgNhOqEw4/kQhdSUff52MA6nK/w4E3JV6FAINXs8UafBwaQaWhb9j5rgpKJ1gQdwyN4UJJuli13nFt6IDF3QL44jLTseVE4Dwkaxrt0eztNXERnVcTtBGc6rqkWwKspQ== 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=OCBGOmeUyq6IRlbQEjM/TLjwZ2CsFiZK+xL3v76/+Pg=; b=RDt5I5gVic8tEqSkumcuYN7Erl1Z4r3ctT1waT7Gcuozo+ybGnnT+NlS5nmecz35wKUJ0k3eBLrLYSW60STYQ/quTbA3wdnv002YeOrKnm130b++TEqr3qG87TClli1E1kBrzF+fiB8bUSW9i4dFyMv0MJwHFSeeaiK/KnmnGnA= Received: from BLAPR03CA0078.namprd03.prod.outlook.com (2603:10b6:208:329::23) by CH3PR12MB8536.namprd12.prod.outlook.com (2603:10b6:610:15e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.45; Wed, 24 Apr 2024 11:29:59 +0000 Received: from BN2PEPF000044AC.namprd04.prod.outlook.com (2603:10b6:208:329:cafe::39) by BLAPR03CA0078.outlook.office365.com (2603:10b6:208:329::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.23 via Frontend Transport; Wed, 24 Apr 2024 11:29:59 +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 BN2PEPF000044AC.mail.protection.outlook.com (10.167.243.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7519.19 via Frontend Transport; Wed, 24 Apr 2024 11:29:59 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) 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.2507.35; Wed, 24 Apr 2024 06:29:59 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 24 Apr 2024 04:29:58 -0700 Received: from xhdsneeli40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 24 Apr 2024 06:29:53 -0500 From: Manikanta Guntupalli To: , , , , , , , , , , , , , , , , , , CC: , , , Manikanta Guntupalli Subject: [PATCH V2 2/3] arm64: zynqmp: Add resets property for UART nodes Date: Wed, 24 Apr 2024 16:59:32 +0530 Message-ID: <20240424112933.3528590-3-manikanta.guntupalli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240424112933.3528590-1-manikanta.guntupalli@amd.com> References: <20240424112933.3528590-1-manikanta.guntupalli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000044AC:EE_|CH3PR12MB8536:EE_ X-MS-Office365-Filtering-Correlation-Id: 445f1f55-0553-4269-6cae-08dc6451e027 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lSvaTj0zEv2dmcUrUQRys1ymXED5EUF917Z99eZ1jzM43CajgOHeWhYaohkIPgVuX0+5pFWVC5NSI4sh+rXiviUn2UxZxaxQicaI6JTy+d6QZDi5X2hUM4QiK4mYHmyKIUrQ+GIcpeWba/dovHGvfOHLbOmzmhe4M/VxUWMo0nqakEnVaKBacVHHrvWdjZL3aQ4BG2ZZp5+uV5YQsS2SQyeKg0p9Z37OVCQnooBQ4WQ1Dix6Xnm33LCQalg4HHbb1SCdJljH2RZZiZ2MakD6dov1S288C24Thm4+ZUjll30g8r5s4Jyp7UowmBqwIlyJf3YQwUBRQkyP4Y3NxUr/SC3pWgFgwy0PQEGYd2TIC5NmK7MrJ9TSpqw4tZxN5ZpUztVvmXrE8AKQ7jmZH4GxnyqNEFQyynfF9e1iYOU6Fpk/1xIx1BM0AkfCm6jL4594uddw79mw0z3djMSy6xxRQsYsb0kU7WnSw7qwmfx17IBfl8iKXdX92AB4pdntzFMsuhhbLcy7MAHVOT8TtTeVJgwIHDd2HlvoZ7laRmAAZmJFUgV9LrvVitOmdacCgKI0D7ITcRUXHfb1pLl8CtGMjp+ATMeihkWmkSVJpj6FKXShyMtw4usvy1MF1+30yXbI5cDynmznw2gJRNEvExwQQtytl9xX1FFVqoRsbxGkw1FmV7qHYlIVIwb8Pm8owlZKc8wn6oJfi/gelqBLSo2BoSfF6rSlwu8QiknxFl3FXiTTgekg8GbVb9owq5QggTyZPe2s307b5IxzQejnzPPAf3aw7Pet9XHBm0Tb/S5VZs+Up1eeJwHsH92ZW5iYFw6W8dqRg+AaqRm0H70874NP3v6R3Y6UWMO+D4mA8IlAL+DYcANm9J5f4Cz1RrjGysaqNhWz/7yZkAQW5am8CyUbuWeEl1dfTfp6LZeavMo8+tc/qamQdfO49cAPq0ocEKZCv0peNB75HYVFdvySsnSMxaDl42kaQngSdpGDxKf6P/OyIFnQIP/9R8W4svydyQ/+Upk9v+XK8jroLA81bDzv3rpUTjHSfqShMbPGPgSBpPgagNsQucZPvfs5tuV5qwuxfL4it2+vPyPYWSQHg20RLoKpy30yuSxYq27Pbytg4BOmZX19SzGM2fkvvTLxVa1CJT58XLiG1jiyHNdPT7ZtbkGDRyK9+NFchH9ZjCycWuQt8PswJoL9Bzn1xNZWxnSzZcsfO7wsxg5ocLjZ+8FDj2P2cMFVMRKYHxom6hLI3WwXpbPflNL2EqA+RM8oOXypnYMKj8q4INjQmB0pYuLNZgG0bm6g4ymZ/yX15kAPYyPshj8KweDKMTPP7noA4tUVNfrAytBlkaVU/QUGk4mp1SYgF8y7b+6Mvjv5PuORR1cv1Zp9PJl/Q9P0OC15V4SX 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:(13230031)(1800799015)(82310400014)(376005)(7416005)(36860700004)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2024 11:29:59.5107 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 445f1f55-0553-4269-6cae-08dc6451e027 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: BN2PEPF000044AC.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8536 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240424_043005_304541_5636361F X-CRM114-Status: GOOD ( 10.70 ) 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 --- Changes for V2: None. --- 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 Wed Apr 24 11:29:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Guntupalli X-Patchwork-Id: 13641755 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 5B210C4345F for ; Wed, 24 Apr 2024 11:30:43 +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=nEJFODGqzWxPKRt7bqNgz2pIqsNOhijICTWad3gD4hM=; b=MhVv2YPOQ+JOLW Rsdu9YkyGzqsQ3tgxFjnvzojNOV6Hwxq8NVPQTb0U9qpgjiT/0E/NoY6CmWkH8B2WxTNgBRTVRGnK 939jXR6csdyZz/gGuYy+NGn9e+2t8+PY8DUPhsYUENEUPnrdIiy7L2REQ44A7f3LxSriFN48ZRevi PuZ83FY4Xy9xi0517vxA24BCD2WGcu77Qdd2Ayn5JeYs0Ypy55hcKjxN2cWtVM1sGN3G0h8a4kY28 bjSEzllreY1DnH8UUJliF37RwC66Ci0sSTzonHZlrS+/hRfccqhPeJCGyDOYRB6ybfxiG3X/VrxU3 fktgvsrM548jLmBIugAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzapa-00000003uhd-0PGx; Wed, 24 Apr 2024 11:30:30 +0000 Received: from mail-dm6nam12on20601.outbound.protection.outlook.com ([2a01:111:f403:2417::601] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzapO-00000003uaY-3uX6 for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2024 11:30:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lieEsGdC0YMKO4ClhrHHuxJnEIbujFFqgmVYnltRv6wXFIr4nMO+srlE7/e4Nx3dr/yILchE4BtKMciIGAggHMvsgUMvBDQ+fDXZvHFjvhNxQ/8RHEYZHAB2jihm40HebiGa+D0vCs26xqfaie1klGXtPD5tfnHIOzehea4H0rqpAuCaGS4oiFNv/4fZVXBOcZ2J6oimcCTNXPrLFCNx8q33DaiB9tDL8o1c4MALzQjyh6ZOk97Kkx4oAT4rNqrEF5rmzyYb5JuKIvUdain5Di+QYL66MEfR0cb4a1f/YsyDfQpsOEJtLNpyOj/oVCPnVc2iaRaQZ+6JtHAAfpOp8Q== 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=41mm7Ynu02O+l4vOLQCaDhLiskSdxYA0WeiRpEEnxsw=; b=lMsCu+Zq3pLthbJgKEbLz95uRUAs2cART1X970PJroD3gUwyxTNyYEJ9JSTo7zTlM/BYBcFLz9BqTSeINWD8PKhOQppLJpWK4jOeSyamytiZmoaB13Bm2DpMPRvEeBMMDuYDZcAb3CmBglwcmwxiudKr/q77jtsTZ3N0DsbwTNUd9CVNyR+ph8ssR27Ci7XrH84hvM0G+5X8nVhe6oXUWpMMq+UG8AICotWSAc3vN9oLOcQTnGftTHdAA5ilufj9/uaT0SA4O9vwu7EHKMlkvv6HpUfwbDzieU6pufr9g9tbUNWjZY+L6HNS26zi4IAxd+SMU7ssQMelWvH3aqIBfw== 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=41mm7Ynu02O+l4vOLQCaDhLiskSdxYA0WeiRpEEnxsw=; b=FaHY5AETZnPemk6t1a4chco7e39OYs1dzG3j9kiRnOkJ6tmjmbwaSPvtlIqQljjt1a4s4q6C4wr1nFXZ2RMyaqKgRNe91cVY83zg8hZdtU3EELTDjJM9U2BBA4NRgtScNZDpJYaYgeIWtZUUD0Ze+PiyxPBAjXGmiFoR8EPjCLg= Received: from DM6PR06CA0010.namprd06.prod.outlook.com (2603:10b6:5:120::23) by DS7PR12MB5743.namprd12.prod.outlook.com (2603:10b6:8:72::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22; Wed, 24 Apr 2024 11:30:12 +0000 Received: from DS3PEPF000099DA.namprd04.prod.outlook.com (2603:10b6:5:120:cafe::f4) by DM6PR06CA0010.outlook.office365.com (2603:10b6:5:120::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.34 via Frontend Transport; Wed, 24 Apr 2024 11:30:12 +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 DS3PEPF000099DA.mail.protection.outlook.com (10.167.17.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7519.19 via Frontend Transport; Wed, 24 Apr 2024 11:30:10 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) 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; Wed, 24 Apr 2024 06:30:08 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 24 Apr 2024 04:30:07 -0700 Received: from xhdsneeli40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 24 Apr 2024 06:30:02 -0500 From: Manikanta Guntupalli To: , , , , , , , , , , , , , , , , , , CC: , , , Manikanta Guntupalli Subject: [PATCH V2 3/3] tty: serial: uartps: Add support for uartps controller reset Date: Wed, 24 Apr 2024 16:59:33 +0530 Message-ID: <20240424112933.3528590-4-manikanta.guntupalli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240424112933.3528590-1-manikanta.guntupalli@amd.com> References: <20240424112933.3528590-1-manikanta.guntupalli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099DA:EE_|DS7PR12MB5743:EE_ X-MS-Office365-Filtering-Correlation-Id: 8276e823-117a-4945-bbdc-08dc6451e6e3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|36860700004|376005|82310400014|1800799015|921011; X-Microsoft-Antispam-Message-Info: acIkmBbgM2OmqhAUMJv/QiEtfdb9l6heP5ehE+GKzzbpyoKecp1dqm8peivvCU2CXtsOT+SDJoFmIekGBXIAYc9IHC9WZbIDBCvvdYpYL/H7u53dermIzfOl01a3QL5T/2syzDg4zxvLHG3qPFW/I6bPJ95ffPuh0gqlF/xDHucW3Q4f3/TC72EmiLUM38LvF+00Xy7xOfAhTXCYAljIV1XxIQy2fogfozUIDc0bqEvy2d54KCLCvLL2cjmF+6jcFA83NZFGtm/vHEEI84uKnxbJNIjPSU5dY6Wp5U+gkUwEWFwaYY8eiEYmIZeMpS8+76M8mgJ14s7Mk3+59cyCcJ7/5TSQFKpOwPac3odtGYk2kMwCLKfqaXuNbh2jcTV+6zwEUmBGOTk8QWMYOjogvIsZCa3TLczBlVYF9EKiUEW5KJjLxoEjWf4M5wNZLUSPkTmd33yBfijVdAwHSm0uLe93nY09Kh9YaBP+Ghk3nDcvBJ8BbZzjxez4YJgcxBDWSp3/vrEhwael8gRo3FLQERjo4z9ydvLYydT3W8mXLffqzV6jZPLgyCVsQZzywMy6alcs/Z5LdplCMpCv+GNULgzY7KIHCKUxdxIUt7smRRJvY2esxQ2VQdbgbmQmYyAeuAnrygHGCxJK7KG2jI9zLZjr6/I3EFT05Jp/sEWk88qRpV6u3zcXjT/ytz8TO8TGp3v5QfrPQq3QJkeIjEscm+MZH7mXnIXzyGEbTwQgtpgvv/UTSb1rsx2fZtYEQZ5vpZluVETe7F1s7dRmg60F3wjpBiJQWujtaW/Lz2Oo6eOS1LifaF1nWP1US6y1DMQHjkMEq8566o6EMwkwzq//mL6ZTb2Rms/EMqQb/9i6fr5HBLi8mFRubQIWRHhUTKWrbEp61Fqu/9DMR0xDChmy/xGqUPxy/ZD4HOO+NWd2OpM4psSqrvsawpAPG46c1qqeYN8XolSDFw0a8C2efMeQJn9h0hOr6i+47MIi8vvW6p1sr9SyO1GAN8RntNtxo6P7WjfgZKFW4MRKBTMHmFqsZZBnooOQefW/1oe9XLG8TKejx8TfE6BqGdeT2teS2qs34JhZOM+aS64d1Fa8mVycRmLXCZNVaO4oLg2JADLb+8OfhrrcqyB9olf05f26+ch99xL4BMWhRPdEh0521tQh1TqXtsVEPhfQKk8dQSbuTHdi9nurMQr4EAws2zjvGxnU1jL6g+EUBMuS4gW6nwuXtF+JzyILo70pUyBD7ldyk9HgajJhXwWruAAPP3OLoMSc7I0EERD+ajBz6dHBN2/h4lsSI3vibrIpIEO3udCec0x/hLs9vbf4eKmkBSUUHZhRe8fPKjfNeWn/0JZ2s5L+CbbWxAuPYgOioNE76qTl3L4IlgZk98ChGn6MSiA76N0x 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:ErrorRetry;CAT:NONE;SFS:(13230031)(7416005)(36860700004)(376005)(82310400014)(1800799015)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2024 11:30:10.7799 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8276e823-117a-4945-bbdc-08dc6451e6e3 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: DS3PEPF000099DA.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5743 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240424_043020_618896_8679B363 X-CRM114-Status: GOOD ( 17.38 ) 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 --- Changes for V2: Remove check for reset_control_deassert, as reset_control_deassert function internally has NULL check --- drivers/tty/serial/xilinx_uartps.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index de3487206bcb..2acfcea403ce 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,10 @@ static int cdns_uart_startup(struct uart_port *port) is_brk_support = cdns_uart->quirks & CDNS_UART_RXBS_SUPPORT; + ret = reset_control_deassert(cdns_uart->rstc); + if (ret) + return ret; + uart_port_lock_irqsave(port, &flags); /* Disable the TX and RX */ @@ -1721,6 +1728,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 +1895,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);