From patchwork Fri May 17 06:17:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 797780 Received: from CHN02-SH0-obe.outbound.protection.partner.outlook.cn (mail-sh0chn02on2101.outbound.protection.partner.outlook.cn [139.219.146.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2803714A8D; Fri, 17 May 2024 06:33:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.146.101 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715927613; cv=fail; b=U0xvQTZHrY/IEDBh/Jqv7C+nCc5czC3Xm3baar4gfuuVALf8HdNSXzoGSUGJqZ43frfWQRGnKNgrbmVFDKeLJ0d03a1EU5wr4Z57pDz5YF4BKbDBXqA5OS4jblZc91IG1wJCwaDGPBmxOugg1RtO8uvHqKVpSkW9xu9QHGAQW6E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715927613; c=relaxed/simple; bh=jZ1ztcx+2/OLIQ/umOI+WGE2LFrwSZY4s6bMGVmqcQI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=VxJBN1CEfOJa3vT+/DL5Ri8ZRzwJBibSh7NOhoK/25DBaaJ7wflLOumqSA0BT6EivzTZ+sm70kUd+Ni4XKq8hTiPu1S9Ip76CrWmXjKvAscEZfCUY3/QHzjUp8UdrXKdpof4PDKos2VZftG9/KOJ/hEma8u8pdgJtjoODNmdq10= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.146.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=obvvncvqV4to1mD9KlDR+Dn2BodOQexcBdBY2G0aIWdGpI7I+I/7nVs7yhueMzFAATonNQkb1gR25U0uFrnd4BR9J29HrrRuw1I9kADz85Qwy1V+upjlSlahHI/iORQe7+dJd2c3MTtb4WnUdNltZ0Tsg3Sf5teCyoGbNbXKE1rC8IoAdwsWQ2UPJg5POxRf325484SO8SSyWhljyKMQ2SCBOe0UZQkV8+cOvKS7iETzh+7+rcar9jmFnweyRs/ipv6xcwHgKZeZgW/40YpjTFWuxHQRxkCgD4bfYuhronNnW1yI8klRhY2LoQ8buPsnFr0ZBZP05wNPgPELyg8MpA== 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=rd6x/VoBMpqInPKkxtbaXfZMRYiwiU5924jOXmOcVaY=; b=K/3HzueQpoXqdfT46IIH7fMUSUDO8ASr/fKXp7pnCWdcZMRZofLOhqNTZMoXe0I51QkbvjwN0RtqyLaOTlcocWoooJ1weybgaM0gPVxH+duL/ZMjkqzctv2VBuz+36sc3vBwAXjpbF8u3mxKMdWNLD8uVyM1MDijrUd2emyFIg/y4OmOkrSj+rKNKCF+FwYC3UoU8S2xYrFcv6AGqXJr5t4zS6TkSQBMIoHFCWc8ENI/mMxAllnF/dp2hNipOjjRis/RVmcUimzDUAa3o3ewtKnZtb2JxA1+oOPnnGVQZNRoPji3vSbV6CFme8NAVgvF4r+Q+Tc5gCxPAbUNQlliFg== 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 ZQ2PR01MB1164.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:12::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 17 May 2024 06:17:21 +0000 Received: from ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::5de:15b9:3114:4f45]) by ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::5de:15b9:3114:4f45%5]) with mapi id 15.20.7472.044; Fri, 17 May 2024 06:17:21 +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 v1 1/3] dt-bindings: serial: snps-dw-apb-uart: Add one more reset signal for StarFive JH7110 SoC Date: Fri, 17 May 2024 14:17:11 +0800 Message-ID: <20240517061713.95803-2-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240517061713.95803-1-hal.feng@starfivetech.com> References: <20240517061713.95803-1-hal.feng@starfivetech.com> X-ClientProxiedBy: SH0PR01CA0012.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:5::24) To ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:7::14) Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ2PR01MB1307:EE_|ZQ2PR01MB1164:EE_ X-MS-Office365-Filtering-Correlation-Id: e1e2fd66-11c2-4aee-7123-08dc76390325 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QJvU46QM/PrShUnkJaBBmMqYFLzEXPH7GAtfpiJWu7Qt7sAKUflg+0V0fpytrfsbKpgDAIyZl/nfmMdKG7mOQmL0WwFH4EWfV2TTXdyOYO7OLtByZFNQfIbGkgSto6MXt+ihb38amI2gzsWfJWBroKfwgajyJSqM6SDauReivSGtFXVQtcqfG1NKPta9zZa5lDgPghkM7lPwZYqE0OO/1GThJU1SzIzpUf+SWl87pXOOZY1PQOtTio5BZEKa8rV6xKSHR4zesvh75mbxWA47DuGtqPvLXd00EQReOa4gV9qPjnJFELV8wGhRu7pk7bcKctwdezj6CZE09CVBxD9DtstIxqymCgER4Ttb3SUOSpbXJ5aqVnaHHQT8QgR3RRq/savy3p3lVggFFsx5ZB36z4hL5Ii+eHR2gblmTJ1T+GnqEUGpbuu7/s8KEurpssX/m1/EZXNr7DkX8sPjwaiLThungAn06v0mrVqsGLArIjBSAPQIwX2ZKNpRr9ijkhNp2yX7ZGeiQewD9QxBdklf9DzJxH1cS4vXISMpvYKDNPXa/ydg/YV33u5fxR2TbG+oIIVajs4A3i++i3nOFj9Wx6KFp2NVAyfGV6pROmPMTmljwjMZmX4fUPzDqc8IBhDxVsqy6Sxu0vlL3u0d/244Bw== 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)(1800799015)(366007)(41320700004)(52116005)(7416005)(38350700005)(921011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tu6E3Lrl4DAAEfdGKllE44DlCZr8xCSbc9t+m/vu/x1H41/Wr54rhUBq7wWzaHCfOPskfzg+zydHXzuxzPnoazvhNpCLuQ4llpQqUwX2w0N6IGoCS6feD/CdxRinKiq6M/xJUPiN5v9V3DkXH1PVBuyqvH4rkMKdtexy9QbWpY54DyYCQFyfND1IAQsg6EvBZ7NmO398TX81yl0IAijBCGc89P9cHtKJ9k8g5oBeFbQGIMxzDFunYQZl80gS6jJ7D1+CqnmDUPpCJ6PXi+vvmdYqtMYDNly/XK3GTGCqDgpZhuXF41Sk99tdkg/5gCuefNc1Ka05pCz0nIZ2LVfj+1Ej5nkzq0oL+zcRIbQSj0qOuzzlO1zwQwBzFpQBQ6ivcqqSw/GNtImaFatvanzqMkRx481eHstE2LHnzq9+8bW1/pkR/4t91vU6Lv1M8Z5JT5I2mgy9e2oqaQ26FNux3jjLlRHCo8ppsy7Fu2Z7xT0xAOBUPEfkmWnL+tBeXnaiDdEDPfraszV4MKcBUeIsvgTgG7TlCGtwSvIZAvviZybTIMGU9hNaMgaSAgEUNk4OjnbyQ5whRMcpD8l530Cb7i6d5HrkPiqpVQX93LpI7tXhh6kVv/CEOwALd6J88iy636jACsmk7T8C6BrkvX0cWKsPD/QsRr9l825cH08IkVGpA+axoX7sCB6JkhRvs5zqcSvw9cTZf9J7jpK5ygIgzZKpHDHl6sU7SqLDuY3U3mGCMD+ADkDBkw2DhxmC22gzjE6t4cOWHniQn7m2FzahNUve3Yeo9UwpSnLIFxGXzi/yLqDMc4EX4/nFW02u7QGq5DXU+q71eS8L947tPUnWYdW+C4b2aAL0f/ce+arwxqaOg5ywyZehiOiwNSjUOUXQpkPKqrSRgK3scQl85npzBI1Mv61vPnO8r1A+yzj2FlvuHAXBY33+EQybaWN1QPfJ7P4lSh2oQBS7zugTX1Yd/MTvomzwpJ3ZEgAHh3XG1MNu07F9Zz+RE78NP4p1on6I/zP29zfsN1A3sRYbpnPV2UoDwRwpl68wBHWDrAIMDWnocqG1HOJKw3WCLkkOnIfe3EFj88hu3gcXeiWHlvGP8V0c/v9RaeOns8c3z9/dyd3isF+cEsThITk2iKGNFdJXIxTKXg5opzxWNQ4pTMER/AbF60I7QaWjyL8hy7/UT2eM3fHS35fguPnPUpHdOq5ffwOp5J0ith1p86Me1NOJsVvC2VMCuwTInMMgoHL9KZJO/sDm/SUxx4b7sMHp8/AzLh+ATgb7ubHasEW6rCJNzCf6u5q0mxqH0glabua6A/++Ml9fRyctOn6tGF7Ul5Gyg2uYcM/1TKkVw5qzja4P2qbTz0pJPU1wxvURO2aflCqAq7jzcFBbzsfbxGBkcd4Vk8CtGrMEJVcXzWDbAgKuNRUs31ivsVYhIrmxDhwjsXK0tycdXrDKbYN0/37anHx/WAEsPZV/Ewv7Wk8vwme5ch/NLlWZH3DCoIp6sb1R4WGubJQaXUcAQwkgHLmpp2jJJF4/IH9aKr3JDBMUTsoVBI4HhRdVZyXBohZGzzHM4+oXFkSfiBMExp/js2S1S3NM0FIsed0m2rjwdJ6dxErukg== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: e1e2fd66-11c2-4aee-7123-08dc76390325 X-MS-Exchange-CrossTenant-AuthSource: ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2024 06:17:21.9056 (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: Hxv6BNre2BjkiX1InU8+0nh1WpKXeU9ZIsAAlEjWeRErPrwx+7IiUEus0kZr7RmuQ45p84saIFBO952vDjtz5W9eL/Q2CIUKGC9CNbe5f2w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ2PR01MB1164 The UART of StarFive JH7110 has two reset signals. Both of them are necessary for JH7110 to initialize UART. Signed-off-by: Hal Feng --- .../bindings/serial/snps-dw-apb-uart.yaml | 14 +++++++++++++- 1 file changed, 13 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..a6396c5cbfb1 100644 --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml @@ -13,6 +13,16 @@ allOf: - $ref: serial.yaml# - $ref: rs485.yaml# + - if: + properties: + compatible: + contains: + const: starfive,jh7110-uart + then: + properties: + resets: + minItems: 2 + properties: compatible: oneOf: @@ -48,6 +58,7 @@ properties: - enum: - starfive,jh7100-hsuart - starfive,jh7100-uart + - starfive,jh7110-uart - const: snps,dw-apb-uart - const: snps,dw-apb-uart @@ -82,7 +93,8 @@ properties: type: boolean resets: - maxItems: 1 + minItems: 1 + maxItems: 2 reg-shift: true From patchwork Fri May 17 06:17:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 797651 Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2136.outbound.protection.partner.outlook.cn [139.219.17.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B6C7134A6; Fri, 17 May 2024 06:49:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.17.136 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715928587; cv=fail; b=dH3iHBm1cL9ng4UqGzGzaMGYmGzsH4b1u2RCepHXZUtK9Daj1C6LyBZV19BacFEwPJ7FClWNi3JKDNlCP3FsNUyIS0PhUXFNC5aMf5dd6tHqRsKVFlO3g2h2c+VSJd7M2NwcFamZwrLUlRnIHhEYHB9mAndh6/253x728ba9Vyw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715928587; c=relaxed/simple; bh=FBMXryltsDQ0E4UaqttoIfXugHGz4j9DOBZ1Q022AOE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=LRQmbDzpc3OI1rxi4Mc2uBGOCMJx9VHTRPq+WlBFRzz5thNgolXPvZPGVHCf7TVnT0hWzlwSlZlJ8CwwpSumY6h6RhvOCKf5R/UHjzoT6Co32ym5stFQy8IkfojCtnf0RcbL5ApxywDTbh+Q/qCDo9I4qsmjo8vdXhHkMBpnXCA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.17.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NQZfegs6vJo4NrgvyG6dk9Uq5haFR4CsGyGrNvOTBIqYUkDajgHHE2W2u62L6RSNODB32/ieY+JOIX8GbGO6Rk9pyX4cLs5JzswWq8uZyGLGlwf6jFG4tJqmFGJR4Pm2w+ZhBlxM13DGWWwDQHkndhPI3lCFKupv+3h+DmM2OQreSJMdcia31ldQbNs9nMIG7qDal7atdFdZpJKDzJ3kZ8vKjXcWOv91zRa4BqimZI+ROJUHJNLn/BeoA1EFXKFzdzhPOsg2Kb9KC1AU5Qsbpf9ajGZUhLxVRgtrTF8PLDUFN0Msnncw3nj2BEowhz78gH10Cdz6mwdIJieMwyg51A== 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=iywiVcK3AHiHK44mAq4wZFLNpsVPBgocKgFnFtTjkOc=; b=HxBNlyJVA1zRWOzm0F55O6Dogs0p1EyCR7+YffIOBHu8RopFM7ntUW0IV4y3c5WLiTyZg0MhRFYmxP3qfLd+UUmpQ0lV+DAvXswvf90w74SxmLy/KaN/Oey2t2bhjWSpUNlB8TBKT0GNr1KecuEK5N0orT8vQ/66Wmsj1rnVyQ7A9i7WxZIMKX11TgeUBzW6WU+xeVyDbD/oX2km4uzFez3IHj/mnN9EanJQdQl6X0cNjh2FNegH42FAffLuH/12JusO7yan5efEX9GIGez7uMFg3VK4sQo+FEKdJPNhF9Vg850+4ryoLhYC26ki5NorFCwUGtLTM2Q0shFq9OP8QQ== 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 ZQ2PR01MB1164.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:12::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 17 May 2024 06:17:23 +0000 Received: from ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::5de:15b9:3114:4f45]) by ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::5de:15b9:3114:4f45%5]) with mapi id 15.20.7472.044; Fri, 17 May 2024 06:17:23 +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 v1 2/3] serial: 8250_dw: Use reset array API to get resets Date: Fri, 17 May 2024 14:17:12 +0800 Message-ID: <20240517061713.95803-3-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240517061713.95803-1-hal.feng@starfivetech.com> References: <20240517061713.95803-1-hal.feng@starfivetech.com> X-ClientProxiedBy: SH0PR01CA0012.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:5::24) To ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:7::14) Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ2PR01MB1307:EE_|ZQ2PR01MB1164:EE_ X-MS-Office365-Filtering-Correlation-Id: 4bf3d6f1-9d86-498f-0cf8-08dc763903e5 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9qUhFl5xqH2hLvAOBqL3spReauj/x6dugwd+LoXJuSRgaKIJQu0aS4bFIKBBZUIch96FpOilQm7CHBFpordiRBei81EisMytXotJ/PCirrkht7J0es67xS1v6TZAd44+wn2HLFBhO7KOamTJaiMGhrnV/GypZWI3V88jCRYtlnCOKifCWWSlpTcIB/0cBRgDCfBeZzXn0s6loPeaxyHOgDcUWu7+hyN6qwcsnzyR9sgP4+AGVYchO1vj4r6FHhQuk2NNq2JLVr2Uv7H7U8TOYG3nhhJAVEbyk8qS07bJ/zljS3z80zG8DL6SE/bBikegdGyboTyBJVtDraW0Dh9ZnOfNvYTCperpN59kahb71jxCnLvG5h4IthqcVdP/03y/e/6XbZ6r21THDLaY7R4+Ix0hde/4Imw9IRUzHTh5O9sBQHLXXyPENVwQAAfLo4CIUnPZSlTrWG6nw7aOq5KnrBOhz4UkjIkJQgtUE3dZ55uTCBzzGIlHXhq2gefAFN3scNbQoasRZ1npwTycARXMzV94usaEWWekQ2zN+FN5Bf4sqCibIw/ykbOotvC4Qp22e596CKScujuktZVMxhoVU8jO36kxYxWSe4Xz4YWdpXfybDCKbBlXkKZlHZuGY4at9jMlYVFsk4UUwRQfOQZhOw== 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)(1800799015)(366007)(41320700004)(52116005)(7416005)(38350700005)(921011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WwynA1XeOwqYIQlk4bwdz115e9uH7mUg2pjUa04Lsui6HK1kxY1H9qcAV1ftOtW/76xGKT28bYeDfB73+Zi3hHosXWabyw3LxUB1NGQm7y4DoumPXNhgTxb9wxm1W23AtQJl1181CkB9nhZWzy69jCAO1U191BhfEYuiQHKJWmpvy3cKfxqELfj3SyF1hq5sOrFYRVGdnnTeSb90MIbFcBpWfYp/gJvIi5987i3D6KDDTQmg4PhBzVe280frsVg1+KiasOnAy4T5QHjI9j4qGfBLqBvbTLD2T935C7lGev27aNsGmDbKnHWfvlInpklggBAG/tlvrkJlh5JsxhwXA+/fra/KKoCeV76HyPohi+r7S6dJXlt+fCVI1HsWe/snjzSfGAbvubwt963PUW47hMnH8HOQOAkB5BPFasuFz3y1Ff7L0PYxwPCxz0E6b5dtFuTeCoekD66U5R765w4RL+TxNwh0t01boQSEOlhmxckodYkd0UD75sxOxe/VBVBMPsWHOX86SFVoUSgvvqOHgEw0aSgHkh8aHZNq4iG/+yA3zC0PsfDID5yXP9BWcoF3BEcYZoEQF3E/03CUUFh7YDJim218A6qnn4Hd+mhVLT01g/WF1RbEcxURcIkkQ4cva9YvHh9a2y4+BwSC+OZBLrTQiUr+tiIIPv7FSeTbjGDdm1CWO2U9al6zK3ayOUv0sjQWJzaDiPWEHxWxBZwAJwVxa1zT7l8bzlvMCKT7JISbe5bmzs/vfa9l4+KrVSDcFq5h4kbxV0ko8N+1Kux/kkpEjqdOfbJNqyr8RRJVj+ZS043D6BDTDZ+vCesl0LU7p39x+yyANM3bFm1vnRj3EcI5x50rYKZYinQhV0xmi3wL+19GUf1eKoHBm8lCvaSdIr8LGNRXy8x+ZNveey2eD7MhDT1TvalRmxCSkelFxZ0660IdodB2aGtZ1oIlYeuOsvlb1bUFZBvLgBBU9qMVQ/h7Q7EEL5VCflW3HVJJiWANOyNjhMDKIUrpQeZPeSnCrIk2+8nRvyznZDpP40WOEqd77vt+OzzBH5vmsRJDhoFpUcBB4r3T8jAuzqv+KdiWBbmpkB9UzwvS779LBervQJg4R/QkxOJX13oxus8Chf00z6HSrudpO0Lswb1C3qDJ373otdNZ0m9b3la7/Jp186cP7608rCttVEVX+e/1X19+AJJ9vKUAN+G93EWz4LYH194ecVmP6Ut+6viECKqBIXZLOxS9vEvrTG0ffIOGKoWNhErmjin4aN/dSnzDRdC+XsC6g8PFTauvEsDD0HGy5NlCQBuXyrvTvSW7Ba3vZivaHnS5Pwwk/QcCZYu89fciwb54CEKzsFu5v5Flb1A22PBVkrQg+FVTaGeif/otKQ/hEisi6mnna60wIrdT5GC7mHpDJAE4Ii4yCtZ6RyfdirXqkGwoPTrW6l06m7hUy4I41ZPPzgwO5Mbg2NLWzZ4xmHkt9MQCWsyxDa8/oPZFbYZCOuSHm7F8SVhOkJv1YypidACZGrc52cL/Gq9lZbqxFQhmkBOl1KFOame26QoM8RxNq219IcI6Dh2uBSnVrtoGv47Yw5tq2L91Zr8ivDxv6u4EIEMHvneL265YI34yWg== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4bf3d6f1-9d86-498f-0cf8-08dc763903e5 X-MS-Exchange-CrossTenant-AuthSource: ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2024 06:17:23.1810 (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: e93wJEifSYCBgHX61X91B9oY0PIYUOWjuE5HCNBCu+G8V2CBLdklE4au8s01HCOxFKMFZf3jCpCgOMz/B3FIH1e0G/WHvT9RvYMzXz7JmfY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ2PR01MB1164 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 1300c92b8702..425a63b67f1d 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -597,7 +597,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 Fri May 17 06:17:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 797781 Received: from CHN02-SH0-obe.outbound.protection.partner.outlook.cn (mail-sh0chn02on2100.outbound.protection.partner.outlook.cn [139.219.146.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A662A125AE; Fri, 17 May 2024 06:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.146.100 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715926726; cv=fail; b=Tx4Yyv2ajELtyeepLE9Kg+q21bzNUulcRX6qSL7IfbYEFmdaQfX/CUXEaY8uzIQvV5JGIB91ryownIAi7438jxkNLNxsLgmNLRqTn7JIQeLYH/R9OnrCTPsRZYowtyvMV7sEEVCAybByQZ5bGzF/LV4QWUysl7JFbVQHMQYaC2U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715926726; c=relaxed/simple; bh=nVLlZzeC0Us5FkY+nUPc4t+BRTtI++PuZaC+XgC7SB8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=pYLNlJ6Yhlw6A3hZJPEY/Xq2IPsO5DPsb0uyzwCUzIiaVeXab8gqodvltJGhKbbTm5NKgz23jajbTVzyqJvnY4nrBnb/bjvziI07l3ZludanHCoRS8gMsKFJZNNcP9q49U5Ofce2J/R5BYooJUW1ZgH20sRlx+ah7qVyIhzNttY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.146.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Omk2gL9YSbHYX10YsFCgR2wkYDHGJ1Jm6CGzp04XYP3tRZSu124+oPbNFmplZC6Z4WqSeEYWG95CVMbNW4Zr50FRbZHEzyGCv7mOtlTD+Gu4VHvVJJD9+IG5IB3wEQU3mLFHUKdvibeZahNf2EqdXTfZMqVC9qQnDvC5k2ZZ1d9xTKxjonKhoE2GyK41hdehdAfpkuHtd5ZeDBKCuzn5T1MfLqwdizurP2rb437YDkKV89fnVDRrE7Ofo7O819Pq2av/M5G6NL8m2mde4UClE6w21trCEw04T09/UkCkeC3OQVSq5F1EhbJtJyCA93NjF7VF5reOfELrXyhh1RsGtg== 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=IE4zIxAhMRPh9qWj9lE/eBl6HO2y+aTeVuj1F4gxdxQ=; b=XOCsxzoCh6u+u1hiCIrVzVuOkY3HLLShTyxR36g5f7FdQoDT+WVPe2SloHXEIWJq8klLxnYRr+6EUCjPUxKavnKY6np+PJfB9Oya/9gVJMpCHsewX4w7wTgaMRQCAfbIM4eKEJEhQUxW0Ui9fssa2l5A0yAajj8DqJ5H7q+Rk+nW3U+ersWPn1Z2Cv6yqcFMoi8QWVX/kJlKpLj7dBYLAju8T3Y9VBCz8m0tapr6rD+f7lJTPaxQpHnH6zrB0kwJil3g7THxv6tYfab0O9gCbbZwIOL5h/ycrx/oQbc+7ooFxtF9C6qPSiurGoUPO9CC+KCa8q18+EK/Ej6BfZo92w== 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 ZQ2PR01MB1164.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:12::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 17 May 2024 06:17:24 +0000 Received: from ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::5de:15b9:3114:4f45]) by ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::5de:15b9:3114:4f45%5]) with mapi id 15.20.7472.044; Fri, 17 May 2024 06:17:24 +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 v1 3/3] riscv: dts: starfive: jh7110: Add the core reset and jh7110 compatible for uarts Date: Fri, 17 May 2024 14:17:13 +0800 Message-ID: <20240517061713.95803-4-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240517061713.95803-1-hal.feng@starfivetech.com> References: <20240517061713.95803-1-hal.feng@starfivetech.com> X-ClientProxiedBy: SH0PR01CA0012.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:5::24) To ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:7::14) Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ2PR01MB1307:EE_|ZQ2PR01MB1164:EE_ X-MS-Office365-Filtering-Correlation-Id: fde5e8fc-bfec-485e-4ac4-08dc763904ab X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WMY847P/GwP1fHRINUFrMDoBR6ljjcfGnVnYI8s3ORUgpv2CbwjSbs95eCCYR03i6bl4ozXQ/nlGSbQsjl1jOlDnA4ZLjQsdzPH8bKTJAfES4nVRUL3JzqBEknzLQNr+db9bemf8doazSq9pPXP0+ytyLGymBZNAh5PmnC0SIyLtjJwsyMcfAlWEO7WYhj8swn68cztaydCgIweod3d8tnJDZzyFtlO7gw3l3PEAjAhAHhaQwE3V24jrb14L2kvLqbUwVknIuqJ0O0ssv+xYsqXiWum16xxXgtUP4YT8uJB6zHuadpfT47MeA6UJgR41L0dSBOcap9omJRoip6Gcypj5/+FHf8TWTlqHeVkJo9evL05ZR/NoPqTlBsYkL7HYZ3RWcNhXBldNiAOHg0rxWb8ImMflmTD3tC2mcS6jCVRpWXX/xJOHimBf/lFB0FX9Ech2Y5GBg/uYPPsKS+i7W2Yp1McDDOh+6CSB0TbSaKPVqdWw9pn3d3xCWlvuSdIi+Pxpy+nWAvh3OWy2t7zq842ywynwjQITqogZ4dvOWiw7wwFcsP1ffC4EOHi5QY0r4htDI0RiC5tmOyR6Drk20YL/KzKbNrY+OaT6kqztMADGbsHGbFSwlyXfgVHMqdXb5E3nZyPt9GQFhsDjQSoXiA== 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)(1800799015)(366007)(41320700004)(52116005)(7416005)(38350700005)(921011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IaJ+p3XH640YzhI7qK28IjPHQZfTs8ZD827YY6U0AMAtauhFvpD0cOVmQg0Xu+UcYOtHixSS94P3xVVcC0Qdktxbc0JdLBMMGlLxf7IIUg0NoJtO6zx9XWN5OZxmmQWSKCsl4FQGeMJF61aTyy9vQNzFZCLZ79B98KvesVQuZLJtayzewhxcI+g8GuLiCsfXoTm/5QTbhT/tbI+4SODqXng9a389Ri4ftrErXro+vmIZ13C3frhbGDiCCOvYKC1caYEdXZ32QAyGRCphpN63YH8WKoGAdHhLHwFZsMykx7fOkruFSBCkkbgub15IeGT+e84R0FH+wZMgQYAhHC/GhZFqcRmIZHQEl2G6enn1O9DnnT239iP0Bc6600bkzGjARBU3G2v9AJhkPDxbXiBfD4koSVIWrubz/efs6m+c3fyhofUgBtklhjrlwzdNaAmm3pCPl2fAyEIq5j2oLjQVfMz3wmiKmmZOLsZZ1xPp7V8C2lLRVLzdODbIqM1xUeM4K5WjpiDfFV2Pm8HN5QsaJVwxm2TPgopgzvVDaW3PQtYmsEqktNYZGFUoox/OQvN6U1MCPPp+F1bFoSKZwdbgtNwyzxBZdjBc5RwiuhznNGHTzudSIUTPNLLIhLrUZcqgD4s3ULKZDr2AZkUyyComwSY/RWcx5y4r64YTx7T7QHdUxdEOEkmGAOVrzQM+gRteHu/HxRkmRZEVCs0BIw6kVcLZl+5+2zGyaQnhMnkowSGwub0/LbyPvRK+IfAxLTVRFPmRrUyHYhFsVhBsB6EAt/D1OkaiIg8iOSA+PWiUzi//AF2SKMyORYQJlUejVH53fBvw+ivjuInV2aZrKVv5MHSkuCmSyxxCPck15sxHy3Pv3s+E5826y805FMXhLNpT8wJVjXrSAvgkTy+OI4dKIEy+GbO21TAsY5I7TawbNSf/Pm7C73e7RnoXj/5SfS/4GvnP2HDx3USotTHEgZyC5SYUNHjjuG0YaQw3L9KJHkSMvGv0X3twRBYA8LjRrV0fMc8Z/uXLEinPcDYhZ5CCmZ7MFKhHFcd371Q+DGiuZ6m4P3WvzhXZVEC29xmtkmE3Hqz+inrosfab6LIOaonM4gYBGFyjEGBUIvMnI6uEQYEM9PtfmI8Gnz2TXqKpR8rEWXoxsiup1M07hmlIrAwiem+AEdPur24O5xRdHOJ9T9H4/Abq683j52fKdHoRFpy10ir4drBKSCpb+H2cRUrWIJWyz3XYAdBmt4BLgXfy8VMK5WiCgkD/iW49GP3FPP9Flc4LXg1AaBiwH/XqrJ5dCxEp8lkjnCJ90fu7Q+BJ1rrGBxT15P1C0kv2RiJEVGDwHr3PKO85zz1eWz7grybnFe763G50/Mus43zfDNv5gi5d5Uwwj958rSV5ficJqGvrqMYSz8SzlHb5+HwZpmx5unmTuR2CNfNZIUvuA9uVmL2FGePyKTaUFP6GaajpL26it3OwgLf5yBD0PiOrjz6LXNoZUwrbyPcwLekmhESkvdKoXW/bD7ndqu3cGLPw+bVu01+0u8KdXkNxO6fykvYme/e/Vw6kKrbFhCrQ2kEXYdHSNvPU8SIIU2moTS08x8q+l2V3gaTKQkPfIK6LGu3EoA== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: fde5e8fc-bfec-485e-4ac4-08dc763904ab X-MS-Exchange-CrossTenant-AuthSource: ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2024 06:17:24.4392 (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: ZdU+GRXhlw/fRG2nyinryx7R2G2TRexKTC2MlfgfQdbr0B48ZsHPXAoAgWMo8hK4XQctoX8UfF9LQ6V8VN5lhJL7wfaMaeYL9eMqxNWZMh8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ2PR01MB1164 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 4a5708f7fcf7..872f52253a2e 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>;