From patchwork Tue Jun 4 08:47:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 13684898 X-Patchwork-Delegate: mail@conchuod.ie 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 2D3FBC27C52 for ; Tue, 4 Jun 2024 08:47:58 +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=yxpjyzwj1qnSAPmslZiNebKl+o6lttIhcQ2bnEWJozM=; b=R6/cSZufRKLV4+ rARhvZhwR5LbToOuRAp4wRzuGhAXJqGVVaZ0Yf7rTizoXq28WNp2cQscvXKlDBhuYZFfHtMKF1JZr dKVmWO0hSwEAazOH6XNHIINQKzuenk2VeKIsPdDWznngv+H20PUs5J9mqFQVJVhciSJH3ZEzXjOqo OEM/ynCk8f2k6RlK/Fk7U9Z2r6tlAd03BcEg6PoSWEbt+EA3NpN09sHZ7oos4JgC/0gav5lCxAMF7 zbP85RADBv8VKUlTbI2YnWRxzf4g2VRz2yr1WS9Xr28tSRVxWSpZ1nSbm/nKNdHwrMuIvZBpl4C4d D5n3+StNBJlZiKsELY9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEPpe-00000001ipi-2TSm; Tue, 04 Jun 2024 08:47:50 +0000 Received: from mail-bjschn02on2072b.outbound.protection.partner.outlook.cn ([2406:e500:4440:2::72b] helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEPpc-00000001ilc-2Ldv for linux-riscv@lists.infradead.org; Tue, 04 Jun 2024 08:47:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bdS21vbxGCfO+8ZQ7jE2w9tkLbLOYBBkzntingv1VUjpxlQq76PUEg74QWtQz54riZD0SJRmVNvL9204pjcDTJrMzxRqyM4Ssf2JGT4Dt3n3RheOvLt+JcIr5P8OUqniZMkGIEAijLCUwBQgtsOeoaOfMTD/Ojk42nImLthLWLZZ+CHNOZBBfw0/lnWr2QodoyCXyQTiz7AsHVX0K57mKzMhX+7cX29lsyZix3LfL+fibBZNhIlY7UH+3Wjf++kfN2x/q91ysv26KQLXFCP8CnXTErrtmlNAg7KmjhdAVuR1UjHsB2hcdVtING0TaKpc19EHKxsN0lInQXJ2AVfLVA== 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=F5ZtSD0XZ7E7OT7Fkx++/LR+5p51ryVZk7LhVjMw2XM=; b=n9itA2WTZbAJJ199c3U4NRLbgZk8aqlNWZB7liLmMQlNf5wTAxiG2w5HuucLPZyT0Bkc9YLDKMZp7+uPFdCNN0BPgjsUhFELr0xcPz4GHx0aN80r2pH1XlQJ8bv7pIP1zk5ewHCdLxcPTPC4zXvIwN5Nf0rzJ/s5J8or0ibnKzEfoq2iSKpjro1DidHLc3Qt0Nl02ETA20qD3HUydMvrWU2rRN3WeAm0qggjs22V8PL3kkQtEHfVE1XNvb3AcfRwl7ftzPDwjO0XGCrBNFJ+hXSe3QqD9qS1HcxuvYfjxBelIpkWKTMRBLtwnZWlUOkYR0x2sCX71cJBG9CJv6oaDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:7::14) by ZQ2PR01MB1324.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:12::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.42; Tue, 4 Jun 2024 08:47:38 +0000 Received: from ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::61c0:a8fc:1462:bc54]) by ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::61c0:a8fc:1462:bc54%6]) with mapi id 15.20.7587.043; Tue, 4 Jun 2024 08:47:38 +0000 From: Hal Feng To: Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Jiri Slaby , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Philipp Zabel , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou Cc: Emil Renner Berthing , Hal Feng , devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: serial: snps-dw-apb-uart: Add one more reset signal for StarFive JH7110 SoC Date: Tue, 4 Jun 2024 16:47:27 +0800 Message-ID: <20240604084729.57239-2-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240604084729.57239-1-hal.feng@starfivetech.com> References: <20240604084729.57239-1-hal.feng@starfivetech.com> X-ClientProxiedBy: BJXPR01CA0055.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:12::22) To ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:7::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ2PR01MB1307:EE_|ZQ2PR01MB1324:EE_ X-MS-Office365-Filtering-Correlation-Id: 07a4075c-d3ab-4666-ead3-08dc8472fcc6 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|41320700004|366007|1800799015|52116005|38350700005|921011; X-Microsoft-Antispam-Message-Info: gKFYE3szBuMQ6IDWvE53WTvKoI7ET262NE9nFrh8brxg1xBpT5xA/FHcNtMOL5v+PQsD0YrlZP5hwQJTgkFnq3Hx3V/PMZDutK3mHLt9tTC3rxptizOKIVwxBbR2JPUxEZohhRU+N0a0oirmNPCC3PL1jVehZiNoEAd5uGbbBuee1W3OZhnwcrwYUoMrjOtawo7Vl/1REyNFXNPCMOCY9P9Hg1ZMAts4k+Fs9M2cIJWGJTkwokqeBWjxxweG6bLwC0ETfU9oD5AArXOlr54UZtshW/nr2CD+hx1pkW69/JxZha12zF72Zm4HU8tczCH2uI40o27f3FV2XneaKCigtOZa9coS1liCP7Fr4HJue07boT+Rci8dKWFTdraPdafKiYlCIu0VslAUNZU49CCoRbSzip/9XaOdYfwbIWKKzhz3156KVRzvvGh56hGFEvpswIK3WB+DejDWYFNwMg+8pQxr57i4ss13sKRiDqq26Tq+a94of09K1qTKt9oTb4lvQhZx450M4u605OgrH5+TMRYA4zgP4CsuYm6o7AlTzP3/3hjmP8F7os6eRdbL6V04cyubVldgcsfczt0h9nBRQcHLip7o3cx4I4gTHUVvJrX+pbRLebIMZTqmxaKQpvMlMrX5jfb7mV3fH2weegdjlA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(7416005)(41320700004)(366007)(1800799015)(52116005)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Vk+89XakTVVrRV49Asus6LGL9pQCdQ7dlawOXqwCJeG2WOg6OrvGXj1i7c/+cssyBAR+kueCLNjdaxu36mIgAXD7pOhkd4bc04yCpAWIO4+HpVefHN2Zzo8+1auDO1W5VzF+vlgXrldakYKBeNXxhf16la3WJgSipyS+s7pLeGDnxX0Bbk+faWpsFS39OkDJSw0QFTA22ylcCWMR79OUX+WjTBhWKO1okYE2cwaS8mSDULB7emozOIc3o5LuiZuOna0ZfqfATz/5vwoFDySdP4KaCNQH8wg3xE4dZToktSwSCg4vm4cMh2BQ1pIyUtvAhepkJ4wDKflHNM4QexuOiHhEoK8TBvlDFMWuwwWQEEDshyT/W9kUcDRVgT+pt4+SomhSTO+6zu16RXlIU8Ar2ygk28Rre3BJof6jbyYugg4QO4QP021H6ZmySQ3bMT+uuAL0O0OQy4dMWTdmo1Kb7EpKgoGzanfNHWMpJNyns4XmDglIUBw0IXJ0jCcrjabK2ZLQSjFb8rtLzudOSTgSDqa6suig8aHxMWhnDCENustAOuayj+LyrB/eR+e4x5iw5yPXvPIQdNEj4dd71DKPyd57yHwkz1L8X1sYyAkipMtyvEgpbS1KfrVJk05EHKeiq88ofTSXShrBZ5WQ3o4kmsSTjE6AcUEHDAk2CotjqnVMC+r3cc4vQBBAWQ6pBe1oUYsnaI8Sc8gq2yMgHaXHGSFC2dYE4r8XeoyrPDCg95vU6lE9HRtDAmJEnMBD8xBMfW7+KabOWKWGOsvpczhOeLBmhll0i/umoaEinX66EAk9Li2fONVzMAqt2WCbgHbKwCx2T1NGUSLUsU2b4wsZuVtAkERb9R5kFllSX5SrQfQZRwtfTJbSY8OvNbfmjCpgulU89rjQUTVSwsq4mVcdtUCVGtjdSCb0BeLuolzDuQ5vmryEfAKDd9fdb5+sWhKDwA+6zED4M1kM0FAGPcQEXPOcS2k/V4s85Z6mnsffe/+hBFB3IzNPbpz6/Mw4Fp4RsRk0hRRJPfPkSmCpXlrdjLv9bBxBTVIi5P9d4tx7hgPFwkRrpkef6btoma71OydFasowuj4RqkfxuAJ46TJFsJn12b+tZotiVuyKXZAGjDP71+R3nGSvsFzQoQ52IRU7jnX32DREjzojRhKDCANn5n+OgaBsVm98SumncZMGpMMslERUORvycHU/CKRxdzp7ztFMxE+cqpYItbjCqQ03MeLf2xSda0kX1EdwVeykKgh5qfehsI2SzT1F8nr5ZEloWQsMK00lrKJxw7FMyf8obJVU10ZLUfSwvPlOh528m8xA/11/jW/aNK8gZiaFqnAEUgpuYakuXMTvk3CowcCdmGML1KQHiKPC3x7euWEWkM9fc/+frmHe3bJOhpsCNx47QKRs7zAiOAaJU4RA7vnp8BHmTVKSvb0fUbheiCkxSBT9fnuiIi2qxt/ZKK8w6VZENYhAEkT48IcSwWCOBwij6favmLc8boAhfs4SAllmO9G25RpRiZIjZ/jDE3vOLCaCJ8uDqQ1OG7EY/iTo6vfEfpKHmN1+MVJPBeclm9vTh4e/Of/I1VNGUgrI818x73RXLq+b+xdVG/jdTUIvntooDw== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07a4075c-d3ab-4666-ead3-08dc8472fcc6 X-MS-Exchange-CrossTenant-AuthSource: ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 08:47:38.2751 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wpIKJmUIKC1SmMEQJzl/redXBg9JP3qz89LDnkwNJOLRLfkWWn9IuwxgXTcOrTzBX8Cbq+pUv77IfdBxsS9ZVeV0El2sYvIUiYMl/9cTipg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ2PR01MB1324 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_014748_623504_17284061 X-CRM114-Status: UNSURE ( 8.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org The UART of StarFive JH7110 has two reset signals. Both of them are necessary for JH7110 to initialize UART. Signed-off-by: Hal Feng Reviewed-by: Conor Dooley --- .../bindings/serial/snps-dw-apb-uart.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml index 1001d2a6ace8..4cdb0dcaccf3 100644 --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml @@ -13,6 +13,20 @@ allOf: - $ref: serial.yaml# - $ref: rs485.yaml# + - if: + properties: + compatible: + contains: + const: starfive,jh7110-uart + then: + properties: + resets: + minItems: 2 + else: + properties: + resets: + maxItems: 1 + properties: compatible: oneOf: @@ -48,6 +62,7 @@ properties: - enum: - starfive,jh7100-hsuart - starfive,jh7100-uart + - starfive,jh7110-uart - const: snps,dw-apb-uart - const: snps,dw-apb-uart @@ -82,7 +97,8 @@ properties: type: boolean resets: - maxItems: 1 + minItems: 1 + maxItems: 2 reg-shift: true From patchwork Tue Jun 4 08:47:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 13684899 X-Patchwork-Delegate: mail@conchuod.ie 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 2D43BC27C53 for ; Tue, 4 Jun 2024 08:47:58 +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=EPQHRnSsRXvTr/zZR091aiOSwYB94mFNmKWYGEWZVYw=; b=UVYM4vem59V8Dr Fbhz4ta/Q7IfAFj1QgTgnAaqDMOO1mrhQfY39uU3JipNm3Z3XZnsrexMMGCHd/WDDLls5aF2C7GYD qD8zzERaKHdQ5nVeQOmG1SwvNiabR3NcHFPZgCFrfp7xmetITvI9p/mA5U3075V4AO9mjxVR4KDS9 dogBCPqyoGbzk0zi3wkms7edrrtbqDJzKg2KKelhLNdd/7bNAi4aeoy9RylVTmAvMtpp465lWEH92 WkDWOoAIfdEHiZ7hjofCaED8wjoBdz7EcKmeHsyNgoOWjzpdHeRpLrtld09mMYtM7pOM6PgqLKH7f PIhVO7xjXkBOzTdcC+tg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEPph-00000001iqk-2aJY; Tue, 04 Jun 2024 08:47:53 +0000 Received: from mail-bjschn02on2072b.outbound.protection.partner.outlook.cn ([2406:e500:4440:2::72b] helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEPpe-00000001ilc-0ua2 for linux-riscv@lists.infradead.org; Tue, 04 Jun 2024 08:47:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QsNuV6YPKr7c863xQz8mvPMhhoqmLDPC1h0K0x26RYkzXSexACLIY4Gb6drKBvWgPjl6wqbwLpWaEZKXd0K5f4VRiEUbKMCjUtvKUu4YweFo78LcCltcCKXLf33H6nBHQAvsD3CQdri6YCWmp+01ABSf/Ru61cqbXVwx0vthFkoGeNMz/M4fBXsug1LT3WSDJ5uPNTIosCHZFfjgQ4R305B8rrjOhahFjBCVe9dngu75a3ESirCZPWOQKmn5zGHzFDCGkv7QqrCs0FfdhdA13wgLU8hTNcdtZQte2eTzjU6FXyFe+BIumdZll6H/RRPsuJnUdrkCtWOmkCtzqnaiaA== 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=TQF2m83Ffd7qNLe6s919DvfNOvVVrFq7PZAn11pmlVA=; b=HjA5qOWASm9TBVK7+BFD8ByPOCliayAYPn4sx839LCK+4z5Ytw5GLc8g344imh+j7765FlZkCKdvAZCEc5kRSTjw1BUu4QKh6hKHxcRY3nnEVzSNS+Ngw7VWcBT31Kd88lBBnxEJock3Id3K6qqBbVMRDZE2qZfnaRrIN+72DnoPMN2q+BoR3HqlZyyamMTNOZc12MDVUrtZV6cYpBSaiDQGUv/NfJ4MGpxYXLldbXc1F5H3PGigVZOaj77h3U/KIxWWmD92y5WvetZKbC0JuinsUldMsjJIfPYzAV+9fjTUvMCo5w+0/DrmIzzXK+FZWR2K/nQ9lPUVAGp4HsA3iA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:7::14) by ZQ2PR01MB1324.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:12::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.42; Tue, 4 Jun 2024 08:47:39 +0000 Received: from ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::61c0:a8fc:1462:bc54]) by ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::61c0:a8fc:1462:bc54%6]) with mapi id 15.20.7587.043; Tue, 4 Jun 2024 08:47:39 +0000 From: Hal Feng To: Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Jiri Slaby , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Philipp Zabel , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou Cc: Emil Renner Berthing , Hal Feng , devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] serial: 8250_dw: Use reset array API to get resets Date: Tue, 4 Jun 2024 16:47:28 +0800 Message-ID: <20240604084729.57239-3-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240604084729.57239-1-hal.feng@starfivetech.com> References: <20240604084729.57239-1-hal.feng@starfivetech.com> X-ClientProxiedBy: BJXPR01CA0055.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:12::22) To ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:7::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ2PR01MB1307:EE_|ZQ2PR01MB1324:EE_ X-MS-Office365-Filtering-Correlation-Id: 136bc39e-9cea-4899-7c99-08dc8472fd75 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|41320700004|366007|1800799015|52116005|38350700005|921011; X-Microsoft-Antispam-Message-Info: nB2jKQ+e+snRLU5KXDZFO0nBvwoj1RHHT5gSWWvHHAr7Ni0rYFFkNIX6U/8Cp+IhPCX5wTNOgt5tJlR0+TL5cZGlC9dFlx7oVOuaivXl3H/24pt4FXPQIyXnOZ7Uro4EGGNxak2o+Vx/1YTx0WZSDqpn+ZckmgIR3Hz4FgZmEBxSy8Kydx5nC4P1qr+Pm+3Ls9Y+FCVbCS5SS+/2aUCb8/G1iBkqi8Wmu73l+kJmY2XiXG4ALx3FntfhCkb7671ri0GCXywSaqiqHhUJxKBngY9YkAlpVwqkuQ3zpkMsxL92trIBm7JneDJeZY5mUqCnmxzvZbmRLPV2+MUbB+9pnDlkOYw1bn3zjyB1Nv13NEdw+sxqkNTZVQ36T4Cw52FOvxeqUqS/9glt+qzPBO4GP4hRCa2NmeAsZ1b0GaoL7klZ8UbJn7HhpM5x35zhSV4eVmvrJBDutwmsroVnyGi2MatPn7zVumxi/iRuHUMBSFxwgf7/QgefK/iefGAJsS/ZsFOJy3lulOEqaJaUYcNw5EmdQRbqsBTXs5Dj50WmnB/Iulg7lBYiczcLp1gTm5NZYomwzo2grpj85B1hNEoi+rlWc9++PAtAEzryw53ulrEQQcvu3qhVR92qqb5I8Hv3/prE1i3Rxz/VcSj9d/vwJA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(7416005)(41320700004)(366007)(1800799015)(52116005)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cxrFdzxuz2iHKJStZhLyMep7Bh3Ax8Hwesw3RN6X5oQvCAL2UMZmoHqYvcdfYMJz9aMjynldR/JkvgJMR95a6uyqjCE7vDJa6X9VEbbkrvtFW/k2tyXvRC6GbuiZF/0CWDMC0kCLeFqOdgEiFufU2W+kRX+dWx43IDsLEqnE65hK0+PzbCtRWgOkMfu4v8bhjrkF9y6zW642/5nCt7UzNmXLufGzdgeGvOS8fqnpTCFe03l+9O3vDu19SR9fzspQ7gBGegtsEsvUmRZLex/Kdm0YvliL/zMD9nJ2ULdwfnezkBG0n68a+ajFC5wSL8+LBu3r4dCgOahgT9nKwKwjRnHKJUdOSG16Ek2ofg8iLYskz8WLh5sNUiE3dlTNxUqwEjIoN+Tjd5CtfEptrPVuhQQ4pvosvyPk89qVwSAOX33h1OkGcvnaNltYIMltGcjDJtcU/YMNbSFo/Ojah7k9lbm0SPXN6DZev19QS2LcrJVI8DXvRHTTX1DU8fndrDyRaZSEgx/5nGQWaIXzSTTfIKy9uV+NXMlmkK10BeJaT61rhzwWqqeium8TQJHLNTe18IedQis9h3afSCN7MrqRW9t1IlPtw6eIbhGSNJDsZ6g5zbnTJAAOX+Kbdt8VY2YlZp00lmG79KhNgmThXyWECcEVH3d5SKeSg8JhPtcZXhXXkBv7FOd4PVRw/c+rcJglRmISNdvGRv4T5FWbUwgE38w9/viZuw+aEmyj9Qbubi/LHOpRLHUY4kKcHNBlmwt5pXI3tDB28tk15X2gnuFfvKLMsKhwX0P7zfMBCA0HuxIkb5FwsmFvhQHYtBf/O2N6r1dJTJ/f+MTHZXyTjqgBeV13baZNFPzB4hwY7s9BtIoZwpUdwxw/s0dd8VGtal4g74SOhguh0bQ1AFw2hhUwn7rSTbF7gFOc8hCdRgU8fjhz2inERNqFGuX7rzVr/b/kmvMCP4aat652hJYp51ZDgvbe1S3JwOi651BUkcSwFxWCa55RVWdpVGV526/qc4g4E8tdtAiLo5cbBIGVaTr9AtJhUMGm8+LcLo7Qs7lMeQiznR/a6NHYAu5+bik0oVqY1n7lyRGcZ07Qm38yu8bAC/MT5GWg4uzmJCFvysjTDNM+PD+I+D8r6CGawmVt9Dn/pWi+KFr7ASiI+Tok6vkUxxLHXufmSRTGK/pLaYzMEwMqep8h69Tn/pRy0zUzBgnmxtUAsFvkN/vOkk0msRjrGDT+f+jd/lC1DbDmf42SrxfSSRTLrmONhvadErLrSAzBWVmXO0CKdPP+FBQ+aGAc4h8+9ey43HpXw7M4C4jfYuFwZVu2c2ls/DcO8BIV3R9qRVmkEebS29Bu/34imN1sUn6qXJHyMoY/Xvff3KHf2L6S7/cx5WqZwFyYSKqwZUmVZ4tvFFj8dZhgsROMAhBhUdfBWt7Y9HiLtruH3oT9lOAxypfMqdVefj1aOCX3qjV4V1dSsToCVN8FpFURU5kxj7rJULb7GC9f03YgjH+5PLPuDSO6dozxpuOgGEyepwudOOUbtXuAAiByfmwCIt4NbsNwd3XUHeGuLe6HT/sOiE1S5WDPRYIOd2fXXGp7Ok61jl/XySU0i3ntmfr7NEpX3w== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 136bc39e-9cea-4899-7c99-08dc8472fd75 X-MS-Exchange-CrossTenant-AuthSource: ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 08:47:39.4331 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tnBuw4w/T8xMsyRY6YMCwzo2aIaHWlYXG6jrD3Q/OH+YM2HclRM7w6isZg+TUciqho0SSAfahgWYnVeItjHvimU4W5lKypqy5C2nfjTokyg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ2PR01MB1324 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_014750_293842_D1DC5404 X-CRM114-Status: GOOD ( 11.07 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Some SoCs like StarFive JH7110 require two or more resets. So change to use the reset array API to get resets. Signed-off-by: Hal Feng --- drivers/tty/serial/8250/8250_dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index ba9f4dc4e71d..3b92d496e5b4 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -584,7 +584,7 @@ static int dw8250_probe(struct platform_device *pdev) if (IS_ERR(data->pclk)) return PTR_ERR(data->pclk); - data->rst = devm_reset_control_get_optional_exclusive(dev, NULL); + data->rst = devm_reset_control_array_get_optional_exclusive(dev); if (IS_ERR(data->rst)) return PTR_ERR(data->rst); From patchwork Tue Jun 4 08:47:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 13684900 X-Patchwork-Delegate: mail@conchuod.ie 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 E5003C27C55 for ; Tue, 4 Jun 2024 08:47:58 +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=pJ3GvGIwvApevrA3FGZxUk96oU1+Y6AHZWcHdmwhxTA=; b=tiNbjKhTBSAtv6 vul20if/CfsLv0L0lPFcIdHzfODesPCKReRDrFmbs+7EM0T67b2XeM9QpNe/5T53y6q8fNhAe4l/9 PRqWNPnTiMHp2A+Ds39AbSLrdrqiR1sCVhsxVR8LuKGS/pm94ZYV71++nXFfeQqXBfZFlhIQh9LP+ XGCqgKXBjdeuRC7TuWPFX/Ux5ibI0sAD23WPTU3/QG7SWctKSFLeJ9F8pfhwfr10k+SyWLfaVrrIx LvhTmZ3JNAkxjOo1dTb4q4Z5I6DvqAUm+d6XDgcNjVb6Wx0ZTI9e4cpRnUzK4J5xoqhdjxgm2/p6+ z75lOsuoadnYhI5CSHSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEPpj-00000001irD-1XD6; Tue, 04 Jun 2024 08:47:55 +0000 Received: from mail-bjschn02on2072b.outbound.protection.partner.outlook.cn ([2406:e500:4440:2::72b] helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEPpg-00000001ilc-0mAO for linux-riscv@lists.infradead.org; Tue, 04 Jun 2024 08:47:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IsBQRDC8VnnclIMqQOqKVtnbLdHgYcbL0L1iIkIj2oflAOTkggPVU5Mpm9aKOPj/vt/AARg8Iy8LtfXBCgYYrec1n6C7M9QodROp5hKuGbIssaMrspbw869MmZlUFfpEitCctBzCiOBPOffh6wywqqoxwTQZmgdnpY3FcoMs5VkG4SB4HtnKGlnqbwNKIJqNQHPXDiuwRrNEXx/iNkaAsTwBxJPIcoaMmJJiZtikcN0a3NNsrMlRGMnFdtPDEKOzrUVkNw6XjlUZ9VfzmLPBPffiA8THUtGDzabsNmdXJLiKNlipdc158Oy9WoFlDmcPm8gJoIHIjjl2AuVGDvC26Q== 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=HkvZmyyxgmqyrX3e6z7Witz+u+BdUG2bCDwf5kjjqVc=; b=PgnIn9t69Khezm5t56VXE6CMJL3N6GghQg0z/MEvTeZczIOXNmhigd2TWGx2FM7CBN1MPMjUZbdeE0j3FpPYJhVpfK1BZuZUi7faly9Pb9EWeP9ZDEJLJZ3oVQTnbfOh7OuIV6chcPMvvHdsn5UzLNARQ9z6djfW7XInh2+XwmSAzgZH/5Na7FyF0BTt6R8cPGlo/aPsUpA45vaxM8MIhZONibBaT4EE2Vpadt+9AUjiNsouV3q/EnMIcGlEAgGHMO1+UbIHSEHIjsByRTE22x7+a7pwV4d/J1uNvJpZIKYusiqh1Gx871CZ+xFMcahnJqudjBKuWdlJXpBSx8kw+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:7::14) by ZQ2PR01MB1324.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:12::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.42; Tue, 4 Jun 2024 08:47:40 +0000 Received: from ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::61c0:a8fc:1462:bc54]) by ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::61c0:a8fc:1462:bc54%6]) with mapi id 15.20.7587.043; Tue, 4 Jun 2024 08:47:40 +0000 From: Hal Feng To: Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Jiri Slaby , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Philipp Zabel , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou Cc: Emil Renner Berthing , Hal Feng , devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] riscv: dts: starfive: jh7110: Add the core reset and jh7110 compatible for uarts Date: Tue, 4 Jun 2024 16:47:29 +0800 Message-ID: <20240604084729.57239-4-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240604084729.57239-1-hal.feng@starfivetech.com> References: <20240604084729.57239-1-hal.feng@starfivetech.com> X-ClientProxiedBy: BJXPR01CA0055.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:12::22) To ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:7::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ2PR01MB1307:EE_|ZQ2PR01MB1324:EE_ X-MS-Office365-Filtering-Correlation-Id: cb4ef7bc-6058-4ed8-a7b8-08dc8472fe2a X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|41320700004|366007|1800799015|52116005|38350700005|921011; X-Microsoft-Antispam-Message-Info: 0lfbFGCkYcPAZ85odcy1hmP7lNv9xUu64ANPXuXdZA7vVk1oeKSq/cArLCxfMNcPv613VKSpa+bU2XYeLBo42BwK+20kSg4v1LFhVQPfAMShJwGGV6YUiNOH/FniwFI5OGqe1vreh2HDXy7X5R6Nh9bEQ0hS6q/XhZGRgMuB56mG7G1Go4ds9GRTch9qf5KBDVktgrnVFrWFCg9idCC0Iecv8XFb6tCLUXy5eqwnyWzDHq9OQbFCURfi7TeC+s3lXsaLZhfzT1Wg3wmbD1h+yrFvPZBILDPR9SgQy3371Qb+X60Zsro6y4TzGcux7x4qo/inHM8N+3LGgt/NRW6toL1d81rLxgMvoKryEJ86JspBD55sI7iH1fMtHGV1lLEjyAlGCwEfF/IqEuA1qYp8sH6okLUSWPupgTOB+hpMUzngd3hRF1L4VrGRnJvpP3+T357GAaD9KQdG1fw8NGWuZoPrwz89747wHy/e+dPj91sGPw0w+f9BJgkVDpqWBVZ+0/Nv4Td/B5dyxTLD/yEFRk6+XroEnMEK+bfGT9X7ECe1UnPBNeXrHcu9PluiHCpVDQWhZ9xzSL9UWfD+T6Hdl14vnzdSWpxE1RkWrwr+xpPWxeGseKCd4BKmBTJ0yi0y26opvbYHivE7ZKSmC6DlfQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(7416005)(41320700004)(366007)(1800799015)(52116005)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4VnrpvRKdmo5qngze15IiAUlFs4eXzA/OF7CIQZNXHLo01dzETaDfFSEASrKbfTiqLvNskFbyRd4jzRkJdi2t5HvfCjlEc0MWG8T5cWpbKd8ALLuzz4H1S+t6NU1kIpn9FHrnjeC90E6nsEAfXHzyq3RiQkiVKOLT9VqrjbVCxaNHdufRfvuR4kHznXXNN1kOfY5DlETcEMbJ2ebC/e7NLvqxoEoEg6D1CPjbD5kKcwlyoLsFh39j7trVgB0VGiE5yKvVOwz4rg9PgWSw8XZaNE1GEubuFlLpSdKpRXff5/Ce6pWtjATEZnSaqRwsjxWijRewRP0N3km4Tnrzu92NQzw7eGnNJLOVktjS2JtCnrvBys6bYy4SeQwluurle5iA+a2NLVcveqSHMcUxTddkMOqLbpMEtSUaFXZQDthK4Af0WgTafSZJJy4blHQxTECamUCY2lXOwpP0pU46EYC7sxtSZFqwXSP6q9voQLCdxPYRYwkTw14rvjUAoPSzN4TMoTbOXZMRkcqLPdaLugRsxAhkNDVxL08YNrk3NK+uGtsN80shXWfOJWbnmPw928slnec0NJX7WncOzzDRNyi6VHduIReFjtTTD2HbGHlsS2an2pFmhBV/NwK+VkHXRU+VyB6wRnpA988O8W7OJtfl7HCydLBdxgPQkt4aUZTkxeIZz3hRz5FusqbHSsdxOrKH9KV70HAyIqBeKiRob4o1ZcikCx5/o4xzT60cBhkLrIRRtvkoIqCQovZFW+tPXqfF+ld74oiF3t/oZfGpAE9wP73f63QMl4QSarb/lkGBhRXaQWTQh4iDI3G0dd4o+g1kdfS9OP+ejjGnqEJV5r8YtmTdv6fk3usuBYMpEsEFcIiA04StBjkAb7fCs3KRU8Gw4j2zQ1vLdChDJq0hm0tC/GW9SLH1gas7D5eeG+i6nDuW149eCIBwR11sfZQOxWRJ4XWJtjmisLptbkFzp1YAO/4Z5O6IewjLegxNuqRm45d3wVqED/eeyteyPsHj5xks5Jys2ozuTY6Z38lwVLkhfh/IdqGB8BcOsA+Ecqo832GrxSjE44hk8jMW3FFNOuMrY8MldwGKiTCTl8jW4jltTFu5eh+bSz3Sz9N8ebtxh2nkfipdUjhrXXAPxWU5HX06MylmAkqj89pY5hjSifxTf2NptmFeQ7EUHT7Sw5J65ZTfZfiI9KXmmGs0XkHodfCNOM+YXZB8jNRpXPNmiETs+mGGJRMc5ZPgSiFXK/OESzCc2CVGbh2iCYiANeXxKMjS+eWOvqV6LbShavzjthhbgkwaCkedZKk1YGp7vStiwGk9ug0JfPs8PGMv/Y2nJgvKG+jqJ0vzQGBv7nTXAvLhn06CSOSb8ktQr3uJXuuLHKIBfGYdQEqwnu47PB8R51+0tv3/af+hFFL/BqA66lt1OT4OJR344n4C6KTCRZdMzh6uJXxY3tG+BM3qx/v4n+vB8Qtm+37MZm9IMg6CPdv5PSiqXpexCkJTtcDj1nC8LNIhTvFCepmpfwfMZi010GchPfI43hJHPCMduooGhkI3WoqejHiit3KMoPda3IB9vxyEJ1PbdPqeK2W7KHVG2QMIahAUeqmY7BeLMcQo0CrYA== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb4ef7bc-6058-4ed8-a7b8-08dc8472fe2a X-MS-Exchange-CrossTenant-AuthSource: ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 08:47:40.6357 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xyVLXdX/H2bf+6CLdO+3nekHkMcuSeAv9hTA25RUjguF2ISeWQY5X3OMGJp2ZBj9eZLE/UXqDAQPijkjJP1m4YX3h9ZoTviHZIWSVlQfoN4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ2PR01MB1324 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_014752_251247_6828279F X-CRM114-Status: UNSURE ( 8.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add the core reset for uarts, which is necessary for uarts to work. Signed-off-by: Hal Feng --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 30 ++++++++++++++---------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 18047195c600..7661ccf7406f 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -387,12 +387,13 @@ plic: interrupt-controller@c000000 { }; uart0: serial@10000000 { - compatible = "snps,dw-apb-uart"; + compatible = "starfive,jh7110-uart", "snps,dw-apb-uart"; reg = <0x0 0x10000000 0x0 0x10000>; clocks = <&syscrg JH7110_SYSCLK_UART0_CORE>, <&syscrg JH7110_SYSCLK_UART0_APB>; clock-names = "baudclk", "apb_pclk"; - resets = <&syscrg JH7110_SYSRST_UART0_APB>; + resets = <&syscrg JH7110_SYSRST_UART0_APB>, + <&syscrg JH7110_SYSRST_UART0_CORE>; interrupts = <32>; reg-io-width = <4>; reg-shift = <2>; @@ -400,12 +401,13 @@ uart0: serial@10000000 { }; uart1: serial@10010000 { - compatible = "snps,dw-apb-uart"; + compatible = "starfive,jh7110-uart", "snps,dw-apb-uart"; reg = <0x0 0x10010000 0x0 0x10000>; clocks = <&syscrg JH7110_SYSCLK_UART1_CORE>, <&syscrg JH7110_SYSCLK_UART1_APB>; clock-names = "baudclk", "apb_pclk"; - resets = <&syscrg JH7110_SYSRST_UART1_APB>; + resets = <&syscrg JH7110_SYSRST_UART1_APB>, + <&syscrg JH7110_SYSRST_UART1_CORE>; interrupts = <33>; reg-io-width = <4>; reg-shift = <2>; @@ -413,12 +415,13 @@ uart1: serial@10010000 { }; uart2: serial@10020000 { - compatible = "snps,dw-apb-uart"; + compatible = "starfive,jh7110-uart", "snps,dw-apb-uart"; reg = <0x0 0x10020000 0x0 0x10000>; clocks = <&syscrg JH7110_SYSCLK_UART2_CORE>, <&syscrg JH7110_SYSCLK_UART2_APB>; clock-names = "baudclk", "apb_pclk"; - resets = <&syscrg JH7110_SYSRST_UART2_APB>; + resets = <&syscrg JH7110_SYSRST_UART2_APB>, + <&syscrg JH7110_SYSRST_UART2_CORE>; interrupts = <34>; reg-io-width = <4>; reg-shift = <2>; @@ -642,12 +645,13 @@ stg_syscon: syscon@10240000 { }; uart3: serial@12000000 { - compatible = "snps,dw-apb-uart"; + compatible = "starfive,jh7110-uart", "snps,dw-apb-uart"; reg = <0x0 0x12000000 0x0 0x10000>; clocks = <&syscrg JH7110_SYSCLK_UART3_CORE>, <&syscrg JH7110_SYSCLK_UART3_APB>; clock-names = "baudclk", "apb_pclk"; - resets = <&syscrg JH7110_SYSRST_UART3_APB>; + resets = <&syscrg JH7110_SYSRST_UART3_APB>, + <&syscrg JH7110_SYSRST_UART3_CORE>; interrupts = <45>; reg-io-width = <4>; reg-shift = <2>; @@ -655,12 +659,13 @@ uart3: serial@12000000 { }; uart4: serial@12010000 { - compatible = "snps,dw-apb-uart"; + compatible = "starfive,jh7110-uart", "snps,dw-apb-uart"; reg = <0x0 0x12010000 0x0 0x10000>; clocks = <&syscrg JH7110_SYSCLK_UART4_CORE>, <&syscrg JH7110_SYSCLK_UART4_APB>; clock-names = "baudclk", "apb_pclk"; - resets = <&syscrg JH7110_SYSRST_UART4_APB>; + resets = <&syscrg JH7110_SYSRST_UART4_APB>, + <&syscrg JH7110_SYSRST_UART4_CORE>; interrupts = <46>; reg-io-width = <4>; reg-shift = <2>; @@ -668,12 +673,13 @@ uart4: serial@12010000 { }; uart5: serial@12020000 { - compatible = "snps,dw-apb-uart"; + compatible = "starfive,jh7110-uart", "snps,dw-apb-uart"; reg = <0x0 0x12020000 0x0 0x10000>; clocks = <&syscrg JH7110_SYSCLK_UART5_CORE>, <&syscrg JH7110_SYSCLK_UART5_APB>; clock-names = "baudclk", "apb_pclk"; - resets = <&syscrg JH7110_SYSRST_UART5_APB>; + resets = <&syscrg JH7110_SYSRST_UART5_APB>, + <&syscrg JH7110_SYSRST_UART5_CORE>; interrupts = <47>; reg-io-width = <4>; reg-shift = <2>;