Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1452236lqj; Tue, 4 Jun 2024 01:49:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIMJ6i+s9FLN9eNBJ549EJT2cVkPuNcRlpSiSvntyziKaSKwILgoICQrD6F/mACWrdRvgC5hr220HdkeSpyML/qt4XbzRUz+j0AGxS+A== X-Google-Smtp-Source: AGHT+IGGJsv+CrXIKW2UtNRvv039WAunLIqdbySXdYxgOt1nMcq8x8DOPvuD/GJis1c1ueXU4H6y X-Received: by 2002:a05:6808:6091:b0:3c5:f62a:435 with SMTP id 5614622812f47-3d1e35c40fbmr9972919b6e.48.1717490952356; Tue, 04 Jun 2024 01:49:12 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f318a2e2si1059474785a.459.2024.06.04.01.49.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 01:49:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-200268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200268-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B83971C22B21 for ; Tue, 4 Jun 2024 08:48:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 05E80142E66; Tue, 4 Jun 2024 08:47:54 +0000 (UTC) Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2128.outbound.protection.partner.outlook.cn [139.219.17.128]) (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 1C4ED22066; Tue, 4 Jun 2024 08:47:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.17.128 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717490873; cv=fail; b=SRAN/Zrriv4Bcvprg2qX0yXog/77+gJm6W/Fn2lTqZ9bPUC7Qd4z1NFldarhmLak1iPYFN1463voYvem8fl0ZFtk4ACmZ2lkBJgIpG+FM2CDT0ZT2pBtKukUmQvUPcuAtimnyyLCwoSGwt8QzsBDjcKi32WjKRpH92wlh1O4K04= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717490873; c=relaxed/simple; bh=EUneVbnc1wqRcborKTRmi2eEi+leglE0brAHhyxZvEM=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=VMhM8LdCDKzcv0BKnD7ORwP4iSzTVa/RTaP7yo1MIcuuIJHK3bBcSVCywpb8U+iXI6Mui21H5xB2eDYfi1Dmn80uCWFAkTkFx/Hr5maVwBnTBkB0smBuhLOEs44+L9JjRD+Zf2MipSJXkKiASWizh6EDVBbmxMVFBjeuYMGnYt4= 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.128 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=OpkglBCpCKXxHehG93BjEpQ42mMJtD6MVb1/2YRG/GZuvf6TyCzXwz88bhzuOexH1cd5q1LgclJ+ea8wB2aU2KdNDRryhEluN0iO+mVOtgwSVba/vLoRPHTEt5qwwm8aYbicTEs/jeNF+GOR9i4HggLq3NtheVQ7sSYMnqZU1fN/FU4gHIhXDVzmDMyt1KUJu7H1h7xrKwCSLwOYiagX62Dkz1U7RVOjDeJwCE3vq5BHr5TqSWkwy1vNorwmFYhdbDnkmDQFCHkIvnnTKmqWZXvrsEMW4w5NeOShV5D39OAHAX5hqL/Rbj5F0iS+JleARPTdS09mLsn7ZGmZL5EHSw== 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=yDlaLfDYlpsBXxz5UFaLXzLNxKlLNZklMfzj7Ht/HL8=; b=DORhBOcodbopFNQW5npIQb/X0SSNipBjm5cJWfs/UIuODUYjPRqm0pyAx1OqYTnSBsxdbns5tkGOdieEvO50WNGE4yT81as/AXsUywmvDx5Jwmf7nYuYePa7egVUP0jV1jvZT0iR/raIhxNjItjAlZml14trTkxGEv7mtzg4xWzx9CYAny+cper/ZtS70PUnPh6DXiJ+7Qf8AsH5rsyNKeLIoSsWsjyE6+eKDI5T+eSxVOtEWHTQwynaQGx90Wl6GOa2uRghNKBHWiglMucL9ZnvAavu2RMnqSTiTZ3v+EWp04yBtcg+m6MEK+svwXkZG7q55ECUBnXY1/Wu4foOFA== 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:37 +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:37 +0000 From: Hal Feng To: Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Jiri Slaby , =?UTF-8?q?Ilpo=20J=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 0/3] Add the core reset for UARTs of StarFive JH7110 Date: Tue, 4 Jun 2024 16:47:26 +0800 Message-ID: <20240604084729.57239-1-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.43.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ2PR01MB1307:EE_|ZQ2PR01MB1324:EE_ X-MS-Office365-Filtering-Correlation-Id: 7143d69a-3776-4f6e-5856-08dc8472fc09 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|41320700004|366007|1800799015|52116005|38350700005|921011; X-Microsoft-Antispam-Message-Info: jZsIBKL7F5UExSJMPVN2DWCtOjTLhkqfh5BoL8kp0PbPCjfStr+F47b7Tqf5pt8wZS8W4lRxDeWLqnP/OjxDnE5gaf0etdDXNmVbpGP0Al5R0MdE0RBM4BrAWMkMLyrSBjjNgLwAj05Z32yW6A8NpLXlYbQguFOpVP+9AFrJmT2hRuGKTNWHp8SA2p2/xscaJtV5u53+QM+ifRgGEwPESd6cZfrXiYuKc/E6CdeqICpIHNf/1W7SX8SvZ/i/1NcdzR04xhtsks3RzGjcoYYVujbi8BuFFm4SFRnRSBPEY/BDweRsyXkt4v18JFvjeAu91+CtQEe4auLzCbw841Q6vjshw68npyy6e9i/LHWC3mAvgBANed9jhQzT/6jiwcvNlOyyoVSiCA+Sfs+/QvaaHl8JRLGpyC6QvcrMOnq1nzsfinvP3YToE2gMBvGaNJdiCRmMuQDKfnVREdTXT+vb/8Fh2WRiIswLFnI0QWQt8LX0uK6Nwq74fgCwUmZl+pQZC7jOii6iRrDRd836e7oV2gPt8cZE9V+rbv+gc4R2lAXwE5jSISqx8S/IfvJLpdGY0dG7YUGVw1x0EF9+el9kBC6+SordtUgH102PeWfqqq7pmHcByD+yHzBZRFBhGtCGkvvilU/ybZKCB/9H/kLLPA== 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: =?us-ascii?Q?WVqrYtQJbq53EBXuDd1YVrYN/4cwR/O583LbfB54ryhxqLCu740UhYkQYOXu?= =?us-ascii?Q?CaV8OUx/pJ04TU0wbPSXXDJM+1AY9g230+FRtLXEUivj26ewwPsACZkpqXet?= =?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YeyU7BZuswNIRB4EuxNc6/?= =?us-ascii?Q?O1A6V5WaBRF5Gr3tCc8t43eVDqneTIQC1v7zCRNw+AxpCmwIeudXHPX6tZ5W?= =?us-ascii?Q?7TNgrZ4avXQYrZfcCO2xDcwvqQcGqyJEjPc1oh78Swkrqlp2JwWs1GQ3RZDL?= =?us-ascii?Q?0UplGzl9JDCuu77qUU6aF6VNjlC7BqVAB/zhHxsZWwpf0R/EIrylOdXJp8OJ?= =?us-ascii?Q?wSM6YYctRm+fJ0ZryPRSx2YT9s4jgK37eQq4Q8I3DxmJxOqpAU4d1zfVaLS2?= =?us-ascii?Q?+M65nxi+sQsaFWd6qbj72HI+EpvG/xobWKzJATKzQnuv7XkWLcLj0omNQUY4?= =?us-ascii?Q?ww1kwnFjiFHmdXVKZYIG/HR9jetlggCZFJ390hD+bTlevBCL437MqRfCoZR5?= =?us-ascii?Q?+qx4VEitoiPz3SxB+fdV065Q9Js4E9IM0HDqu55MLR7lT8mBbhXgajxArVSz?= =?us-ascii?Q?w0aYZn0d7/Y6Jm9sLncXShk471/ZX1rw23X9wk4VBBf6umYGs/TYOEp2RYdG?= =?us-ascii?Q?XK5eiICT/VGHXgCbgCH7b2uG2ws+EFXUKumZ2jDIe2LmbwMGUx2edrHvh9bn?= =?us-ascii?Q?QnPaFpiyUiDmSfbBMarJvTZw6CSPY7CJG4AehZuaAg1yizNNnCtWDBGDDXVd?= =?us-ascii?Q?hg=3D=3D?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7143d69a-3776-4f6e-5856-08dc8472fc09 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:37.0937 (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: wlECXyOO4wUHD6VFsEP+ZbrPGZr6vS2FK3jjLkvRVIHJymJhe/sjHqkRZtlO2PStDY4LHTXx+BfnlWmnEaqWMKfqBRHP0QAOHoga9QEZ2Aw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ2PR01MB1324 The UART of StarFive JH7110 needs two reset signals (apb, core) to initialize. This patch series adds the missing core reset. Changes since v1: - Set maxItems to 1 for resets from other platforms. History: v1: https://lore.kernel.org/all/20240517061713.95803-1-hal.feng@starfivetech.com/ Hal Feng (3): dt-bindings: serial: snps-dw-apb-uart: Add one more reset signal for StarFive JH7110 SoC serial: 8250_dw: Use reset array API to get resets riscv: dts: starfive: jh7110: Add the core reset and jh7110 compatible for uarts .../bindings/serial/snps-dw-apb-uart.yaml | 18 ++++++++++- arch/riscv/boot/dts/starfive/jh7110.dtsi | 30 +++++++++++-------- drivers/tty/serial/8250/8250_dw.c | 2 +- 3 files changed, 36 insertions(+), 14 deletions(-) base-commit: c3f38fa61af77b49866b006939479069cd451173 -- 2.43.2