| Message ID | 20261103-submit-h616-uart-fifo-v1-v7-6-c9e248d685c1@gmail.com (mailing list archive) |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-sunxi+bounces-27152-sunxi=pue.re@lists.linux.dev>
X-Original-To: noreply@patchwork.local
Delivered-To: noreply@patchwork.local
Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mxe881.netcup.net (Postfix) with ESMTPS id 577621C735E
for <noreply@patchwork.local>; Tue, 3 Nov 2026 22:44:13 +0100 (CET)
Authentication-Results: mxe881;
dkim=pass header.d=gmail.com;
spf=pass (sender IP is 172.234.253.10)
smtp.mailfrom=linux-sunxi+bounces-27152-noreply=patchwork.local@lists.linux.dev
smtp.helo=sea.lore.kernel.org
Received-SPF: pass (mxe881: domain of lists.linux.dev designates
172.234.253.10 as permitted sender) client-ip=172.234.253.10;
envelope-from=linux-sunxi+bounces-27152-noreply=patchwork.local@lists.linux.dev;
helo=sea.lore.kernel.org;
Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org
[100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 466EF2ECDA
for <noreply@patchwork.local>; Tue, 3 Nov 2026 21:40:16 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793742012;
b=WjzeEWT3aZU9XwjLboynBa/LDY0LqAQx64YPwVazo0L94zFESCRoY/9KYGpHLMsOrA28
hnRol7jUwS5r2GVP44LolEvACV9yNffXw58lgsm6LRenH+cyQFB4+OloJ+X2tS5CeAOPS
6CEJdRy+/IZzIQ1mDBSLutxs9zDma28deallV0fHXtZaL9V8Zz6S+BQ/DkrAyvAdvq2Mr
3+Nt9mV3Uohk960XCMVSeooFfEEOKujzqiP2xO0vmpIG0TFMB7ybu9ncOq3qPKkKJo82A
hOrhuMWpRXw5tjRFXSAYmq+K8gA+Lg2Wj56BjaIEgp4LQpvR2+SiZmH3WMmju7VNVNQ==
ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793742012;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:From:Date:Subject:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding:
Message-Id:References:In-Reply-To:To:Cc:X-Mailer;
bh=HRoIIA2wpujQ0+Dd3LKXeU40GCpk4ukouOoolwO0ux0=;
b=R0cczgz3F4MolbUsFaGPj18AYP5+fT9g2CYzmtbK5wTKzGvc41pt9EHOeT1zN8No434h
ZrtUecmfSL94EgGpmMSfB4UeMprSuyZCKkQAeEYYBCo3nL0EwNGVx/SdkKT4WcQaGRDYW
Bih74TRDhU0TeSy664fmp6lD6OcMCFsE3qbUlvawCqxRVyHNz/Sopo0aS7fmO5MG3Lqhr
hyuSTBMZL7caiHAy3llHRjIWddyc9G8S8fWbybbuVjPHA37z/f0NK4KgVy77pH91fqiBR
S5qBZXqrlPbu78pQIjS//qkx4EvGEEFQnxMOgt4ZpyKK+yUQZDShPDdLPI2bT7kDh6g==
ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20260707 header.b=QMz9CHbG;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id C8D91606D80E;
Tue, 3 Nov 2026 21:40:12 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key,
unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20260707 header.b=QMz9CHbG
X-Original-To: linux-sunxi@lists.linux.dev
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.remote-ip=209.85.210.45
ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793742012;
b=oovD+fRL5hBcYtTXQ/QOmkxr7Ti0aNYSTl0BWdwSvGw9pHTfJxF8RO6FTPlc25xcwJPY
eMg3Rw5+FLO+x8DKG6uiyC6ukRW2qBKBzs7F/Z3aYEN3VeSTgnrH0hlIM8Wzbg5xizikL
VNdrV5lq7szjiqqJNW0jp2Jeyq2es4JZRya5u/XdjRUi0bfKGvquRMx63pz5uQmVdZeQl
7T9CwKd0RZSa/LLWUKX+syZnnvgAKHRQl7ItCOsw5avRHpok3TIwouyxcNkYP/dltGhDn
Su73I/cFNZH0PWXGe6YWW94a7nM1ACtT2SZcodwG0AkteRO2e7BtsJYCoYKURp1V4+w==
ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793742012;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
From:Date:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:
Message-Id:References:In-Reply-To:To:Cc:X-Mailer;
bh=HRoIIA2wpujQ0+Dd3LKXeU40GCpk4ukouOoolwO0ux0=;
b=AgHZ+S+Eksyn8bA4I43DT3YAyQ0LUqn9X8Qn1b3R9HCK6p5OyqI2Yrtf6prLJhOWzyqq
tcJCY9M9iHdCN7Z+RArItd5hBH1K2cJDOXwgpL5MoUvASDkQSlUHsAIhphZlx7RHZ8x5V
/jAwl5qeCsTc/cSIn5EX5NN4bLqXIVkT7qeOC8GPIPKhWQ9UPXR5Dlve7rht36dXf/oBy
iMnGn278KYqrSX9MejLMyL27sal64jEDYUn+l4cukI7jmCHTW0iV0lqkbAt5kOAK+iMTC
QBc+Y+aGT5JoZqM1SQetLVVePz+YfTQQye2ZHz8hUeqvyzivZv7uV94uT703TKmsdMA==
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20260707 header.b=QMz9CHbG;
arc=none smtp.remote-ip=209.85.210.45
Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com
[209.85.210.45])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest
SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58288606D80A
for <linux-sunxi@lists.linux.dev>; Tue, 3 Nov 2026 21:40:12 +0000 (UTC)
DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 58288606D80A
Authentication-Results: smtp.subspace.kernel.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
spf=pass smtp.mailfrom=gmail.com
Received: by mail-ot1-f45.google.com with SMTP id
46e09a7af769-843a4ca671eso19127a34.2
for <linux-sunxi@lists.linux.dev>;
Tue, 03 Nov 2026 13:40:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793742011; x=1794346811;
darn=lists.linux.dev;
h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
:content-type:mime-version:subject:date:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=HRoIIA2wpujQ0+Dd3LKXeU40GCpk4ukouOoolwO0ux0=;
b=QMz9CHbGvzGtVlrB7/xD9oP46wErG2xbCkbLE2fsNnCGAwBHaTirFUKq5ldNb4j9+O
vEQmXVADkU/1SIhT0trRjJWqGbKgGFZ+64wXldr2TLzRKwI5swMAWWyHZwD1lpS1rGo5
ATQJ4aLZHlq+EnsRi7+WZ2yFsG6R6XCWcJ73HtHYmPsWk4lFMaY20LqyGCUYh4GfrZHN
hdwIPyC/IvNzjFk3uIfqfeHnBu912d+w3XeXogBVI7ikOqS0ZJk1pN7z3a0HO5P7lc1W
+R0ObjoyM1OEkCD6o6b3Q2GscNnyqkYF8R+ddKzHSxRSYenDOyYjNoFN6MHW9YbLdanw
2Wjw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793742011; x=1794346811;
h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
:content-type:mime-version:subject:date:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=HRoIIA2wpujQ0+Dd3LKXeU40GCpk4ukouOoolwO0ux0=;
b=JTFcpm5yU5znslhJiUq6PESTY6OIa9+bYjFRflwcbWh8leNtXPeuUWni9TIaJpXjdU
4nkYkFA9j51z9CHEzJ21ma40PlzeofLvV+qRZpnv88uaOaCJfJ0ahgHSF5VIym+ydBZd
It4913WyE0yTAnYMFTdkkAkffp6UJe+9x63lyb+T/MbqrIswuGU5+biN6OYktRXZOyiY
fGurrF/N5Xta5v+2V2ldPhjkyq1mmFq8uAuBIgBLclPdSrPCMdl5J9oD01UgNwNwocKO
xhQs7SRGr7fPRpl2ZL6B/jo/hGihyFh2UeZHmzTZsA9cHegFkMjyrR1tl+TdwvTlkq4l
Aexw==
X-Forwarded-Encrypted: i=1;
AKwUvBx7n8afIe9Rk/nr3Bg8D7JvLsKeRLGBhp2pvASd9vpx1f/9REx+6cKj1o0NTfLvZaCAuDch+PHObRvMuw==@lists.linux.dev
X-Gm-Message-State: APuU4Z+elCjqCW3FbszGOk725SLfKKXA7Sc9exqMx0uAqTmEvxMMVAS1
YsnyUDY4wkRk0VjRFI27PkH/EN9QEI/GY7H/d5jIY5oLztv4kWpNRvYr
X-Gm-Gg: AYBFou0h0dSdGCT3theqWDrBqWMRCBsPFApFTuaWEC5imfxf1wODwR9BPD7Uowq5+Pr
aOjdDkntU5/ZJlI9Naeafu9agLM0msFMRo0TBg+q7wG1sGvJuwNq9cyBUnPjCAWqNxdtb+ycb36
R8fiInIJqtaEu5P3LEQLR4pPPFIy3J8b5NYMeHnEG6OrmA2ASgzcyQa0D29dca8CxlEra0kY8nf
eGbpidQ63gVOgAOkiedZlxXrg2SJBreDdcuR/6V/VAsVQHaozvTkYS/WsNSycWufBdyp33DrBxO
3vpxgtbzDRy/SozcOHsWrqm/oIndI4msSFbAFPY3erGEBbzdPpruYWv9+EQ1odpc9B3AxbMpNRD
uSTW13pe3/U45RPgxfS+qapgldMac6Zx+F+9XODnHiO+K4xBLd8+dWlVCouIOaitSEISgDDc6qV
ZSYsO7rOijuTVOIC/0+L5KAejib+mRPjygqHBGY0YKg9nz7ObaNWkTSBE4kRcT3UCsRdsLhIV4+
GTsB0I/Y81fu8BXBtu4i8ZZ0BAo/Hx/wVpr9geUVdvNapu1Ku0o9pyM+NX8xCtJ4ded2L2HiqHc
XA7lNmpBDVp85UuNR3jtAD4JT/O58QqxqUiwIr3lvw64QdCEqsiVn76BTWWwUwc567pokN4JW+1
L3o2emt5q6dCoL95aMlblnlSofitSV0hj8GbMA06fWJukBDhBjA2Q/cOsE+e9wjI7WhvkpRr379
0r9fFHbffA+dKMvf/fNntqTNGJgZIgPCh9zShNDdkcXxrxBfp5hXMO
X-Received: by 2002:a05:6808:2507:b0:4d6:90d4:6bb with SMTP id
5614622812f47-5640dd9d63emr10403938b6e.45.1793742011356;
Tue, 03 Nov 2026 13:40:11 -0800 (PST)
Received: from [127.0.1.1] (174-29-1-49.hlrn.qwest.net. [174.29.1.49])
by smtp.gmail.com with ESMTPSA id
5614622812f47-567a9f9115csm27060b6e.11.2026.11.03.13.40.10
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 03 Nov 2026 13:40:10 -0800 (PST)
From: James Hilliard <james.hilliard1@gmail.com>
Date: Tue, 03 Nov 2026 14:39:59 -0700
Subject: [PATCH v7 06/12] dt-bindings: serial: snps-dw-apb-uart: add
Allwinner H616
X-Mailing-List: linux-sunxi@lists.linux.dev
List-Id: <linux-sunxi.lists.linux.dev>
List-Post: <mailto:linux-sunxi@lists.linux.dev>
List-Help: <mailto:linux-sunxi+help@lists.linux.dev>
List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev>
List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev>
List-Owner: <mailto:linux-sunxi+owner@lists.linux.dev>
Precedence: list
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id: <20261103-submit-h616-uart-fifo-v1-v7-6-c9e248d685c1@gmail.com>
References: <20261103-submit-h616-uart-fifo-v1-v7-0-c9e248d685c1@gmail.com>
In-Reply-To: <20261103-submit-h616-uart-fifo-v1-v7-0-c9e248d685c1@gmail.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, =?utf-8?q?Ilpo_J?=
=?utf-8?q?=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
Chen-Yu Tsai <wens@kernel.org>, Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>
Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, James Hilliard <james.hilliard1@gmail.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
X-Mailer: b4 0.15.2
X-Rspamd-Server: rspamd-worker-8404
X-Spamd-Result: default: False [4.31 / 15.00];
RBL_SENDERSCORE(2.00)[172.234.253.10:from];
SUSPICIOUS_RECIPS(1.50)[];
DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed),
No valid DKIM,none];
MAILLIST(-0.18)[generic];
BAD_REP_POLICIES(0.10)[];
MIME_GOOD(-0.10)[text/plain];
HAS_LIST_UNSUB(-0.01)[];
TAGGED_RCPT(0.00)[dt];
FROM_HAS_DN(0.00)[];
ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2];
RCVD_VIA_SMTP_AUTH(0.00)[];
RCPT_COUNT_TWELVE(0.00)[17];
FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com,oss.qualcomm.com];
DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns,qualcomm.com:email];
FORGED_SENDER_MAILLIST(0.00)[];
RCVD_COUNT_FIVE(0.00)[6];
TAGGED_FROM(0.00)[bounces-27152-noreply=patchwork.local];
FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev];
FREEMAIL_FROM(0.00)[gmail.com];
R_SPF_ALLOW(0.00)[+ip4:172.234.253.10];
TO_DN_SOME(0.00)[];
RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,209.85.210.45:received,174.29.1.49:received];
ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG];
FREEMAIL_TO(0.00)[linux.intel.com,linuxfoundation.org,kernel.org,gmail.com,sholland.org];
MIME_TRACE(0.00)[0:+];
FORGED_RECIPIENTS_MAILLIST(0.00)[];
MID_RHS_MATCH_FROM(0.00)[];
RCVD_TLS_LAST(0.00)[];
RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from]
X-Rspamd-Queue-Id: 577621C735E
X-MORS-Enabled: yes
X-MORS-DOMAIN: patchwork.local
X-MORS-HOSTING: hosting172546
X-MORS-USER: hosting172546
X-getmail-retrieved-from-mailbox: INBOX
|
| Series |
serial: 8250_dw: share RX trigger setup and describe Allwinner UARTs
|
|
Commit Message
James Hilliard
Nov. 3, 2026, 9:39 p.m. UTC
The H616 UART has 256-byte transmit and receive FIFOs, but its DesignWare component parameter register does not report the FIFO depth. Its optional register layout also differs from the generic DesignWare integration. Add a specific compatible to identify this fixed configuration, retaining snps,dw-apb-uart as a fallback. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> --- Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml | 1 + 1 file changed, 1 insertion(+)
Comments
Hi, On 11/3/26 22:39, James Hilliard wrote: > The H616 UART has 256-byte transmit and receive FIFOs, but its DesignWare > component parameter register does not report the FIFO depth. Its optional > register layout also differs from the generic DesignWare integration. > > Add a specific compatible to identify this fixed configuration, retaining > snps,dw-apb-uart as a fallback. I think we should not focus too much on single SoCs here, all the Allwinner UARTs need some care. We should have had SoC specific compatible strings (plus the fallback) from the beginning, but we didn't, mostly for historic reasons and because it just worked (TM). So just from looking at the Allwinner A10 (the first one really supported mainline, since 2012): the manual reports a FIFO size of 64 bytes, and it has none of the DW config registers. So I'd suggest: - We add compatible strings for *all* Allwinner SoC's UARTs in here, regardless of whether we currently need a quirk for each of them or not. This is now regarded best practise for DT anyway, we just catch up on this. - The FIFO depth is all over the place for the various SoCs, and most of them do not implement the CPR register to announce the size. So we should use the already existing generic DT fifo-size property to describe the size. This is the simplest, yet most flexible solution, and avoids hardcoding implementation specific values in the driver. And it's friendly to other users of the DT nodes, be it U-Boot, the BSDs or whatever else is out there. IIUC, that should already work out of the box with the current Linux driver? Since we need to touch the DTs anyway, I think this is the best way forward. Cheers, Andre > Signed-off-by: James Hilliard <james.hilliard1@gmail.com> > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> > --- > Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml > index e2ca126d58ba..fc1289073241 100644 > --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml > +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml > @@ -60,6 +60,7 @@ properties: > - const: renesas,rzn1-uart > - items: > - enum: > + - allwinner,sun50i-h616-uart > - anlogic,dr1v90-uart > - brcm,bcm11351-dw-apb-uart > - brcm,bcm21664-dw-apb-uart >
On Wed, Nov 4, 2026 at 3:59 AM Andre Przywara <andre.przywara@arm.com> wrote: > > Hi, > > On 11/3/26 22:39, James Hilliard wrote: > > The H616 UART has 256-byte transmit and receive FIFOs, but its DesignWare > > component parameter register does not report the FIFO depth. Its optional > > register layout also differs from the generic DesignWare integration. > > > > Add a specific compatible to identify this fixed configuration, retaining > > snps,dw-apb-uart as a fallback. > > I think we should not focus too much on single SoCs here, all the > Allwinner UARTs need some care. We should have had SoC specific > compatible strings (plus the fallback) from the beginning, but we > didn't, mostly for historic reasons and because it just worked (TM). > > So just from looking at the Allwinner A10 (the first one really > supported mainline, since 2012): the manual reports a FIFO size of 64 > bytes, and it has none of the DW config registers. > > So I'd suggest: > - We add compatible strings for *all* Allwinner SoC's UARTs in here, The current series covers H616 and A523, but the setup is structured to extend to other integrations. FIFO-depth discovery is separate from the shared DesignWare RX-trigger calculation, so adding another compatible does not require duplicating the threshold handling. > regardless of whether we currently need a quirk for each of them or not. > This is now regarded best practise for DT anyway, we just catch up on this. > > - The FIFO depth is all over the place for the various SoCs, and most of > them do not implement the CPR register to announce the size. So we > should use the already existing generic DT fifo-size property to v3 actually used fifo-size for H616. Krzysztof requested removing it because the fixed 256-byte depth is implied by the compatible [0]. That is why subsequent revisions supply the H616 depth through platform data instead. The earlier discussion also covered UART instances with different FIFO depths. The feedback was to introduce the property when an integration requiring it was added, rather than require it for H616 in anticipation of those devices [1]. A523 provides a different way to handle that variation: each UART reports its depth through FCC. The current series reads that value, rather than putting either a per-instance size table in the driver or fifo-size properties in DT. H616 does not rely on FCC and retains its fixed depth. Linux already reads fifo-size into uart_port.fifosize, but supplying the capacity alone does not handle the other integration differences. The H616/A523 setup also avoids generic optional-register probes at offsets used for Allwinner registers, and installs the FIFO-relative RX-trigger table instead of using the static 16550A thresholds. Older integrations with a fixed depth implied by their compatible fit the same model as H616; they do not need a discovery register. Compatible-specific data supplies that fixed depth, while FCC supplies it on integrations that expose it in hardware. Adding fifo-size in those cases would duplicate information already determined by the integration. This is why the current approach uses those two sources for the FIFO depth and shares the remaining setup between them. [0] https://lore.kernel.org/r/20261027-nifty-reliable-octopus-6cbac5@quoll/ [1] https://lore.kernel.org/r/18f1e637-48de-4962-8a13-65f6597eb2dc@kernel.org/ > describe the size. This is the simplest, yet most flexible solution, and > avoids hardcoding implementation specific values in the driver. And it's > friendly to other users of the DT nodes, be it U-Boot, the BSDs or > whatever else is out there. IIUC, that should already work out of the > box with the current Linux driver? > Since we need to touch the DTs anyway, I think this is the best way forward. > > Cheers, > Andre > > > Signed-off-by: James Hilliard <james.hilliard1@gmail.com> > > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> > > --- > > Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml > > index e2ca126d58ba..fc1289073241 100644 > > --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml > > +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml > > @@ -60,6 +60,7 @@ properties: > > - const: renesas,rzn1-uart > > - items: > > - enum: > > + - allwinner,sun50i-h616-uart > > - anlogic,dr1v90-uart > > - brcm,bcm11351-dw-apb-uart > > - brcm,bcm21664-dw-apb-uart > > >
diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml index e2ca126d58ba..fc1289073241 100644 --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml @@ -60,6 +60,7 @@ properties: - const: renesas,rzn1-uart - items: - enum: + - allwinner,sun50i-h616-uart - anlogic,dr1v90-uart - brcm,bcm11351-dw-apb-uart - brcm,bcm21664-dw-apb-uart