From patchwork Mon Nov 2 19:55:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 3810 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id 5C37A1C349D for ; Mon, 2 Nov 2026 21:03:02 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-27079-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-27079-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id BE1A760C2DF for ; Mon, 2 Nov 2026 19:55:58 +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=1793649327; b=ClIDo+F0Gw/0yyzsZWujz9xs+ANpUti2wXhGjRPUseApvGXAezxvsFe8rXM3/P37zAbm +xWFD5bGGPou6nABDNdBz9Rki6dhaUfD0RUmWli4mhk3Cuwou7u6kEdbkM2N6PO/PJLXg ElrZYYGhdDgXSY+KFddeZ1snyYmQoBXTo8XHSsgP2CJUlmFwkIEB2hOsf20J8FHzhE3Ge +jLCtGgFreIEGZSmh+K5fJSHkT3+VyE4ReISrbpr3kW2JVC3IHeKld54iSjGvlUBEN3v6 6t3+OPt5JxyvNzMQe+nB6BLO4PlyWtxSiq2YUuwJztW3s7MylbbAnD/1RZ9BerJYoDQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649327; 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=U5hO5zwt5yc5AR2FI7Ugtcs42sAA+kCKb2Q1p1ofynk=; b=z+EFPpfQ9g9d8DdPmskDeREP23GH/xmBgZrnrERmyDOTcFZXcY1IODdWP0AXDwJQUqMM Y0uQYB3M9Mi+0sZxq2+y5oOxeHL7PPw190udoWDU8usGGItoVWuTxYBg8iXx8RPuImfCA EAwWkL65Hqh0wpIo/Qz+RtGthKXljf96TnpJJdpYm3JKK8Vkhn/OyS6SsolGAnV4IQQA4 91c1S/US7zZIfjqN3nCK10ExjG+12fIFx7SWG/wXZ3+0d4PGNgDZdpsuvxjV5I0hPHQsC LQeynbn9xrakLDxOb2zFT0lUHO7Pi2fqALWPoeY+gasPxcCfQObpyLSX9zTDWcfT+uA== 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=x8OsKLQ1; 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 CA9C2606A332; Mon, 2 Nov 2026 19:55:27 +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=x8OsKLQ1 X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793649327; b=cgQX7GH2EOmVH7nmd8As/jYWhZnn7II+oQty3u9EPZVw7sQoXSgioF+hZct1xMI/hdfC ZyWRcrECFosRfoCTFpltdWYzeFU/RePCbTD7Nz04s0XwOM7neggvIosC/aSbV5Fog3SvE epfV+Vn0Lyc8NuudX/tnEbSDpnheX0fODi0lK3hd+EVbx1NPF711vRMx0AmukBA3mgPUj uJFlg+kuw9JeJcVhVcrQLzDnuT9G6ZAQtvMTCQqZXTmwp9XV7a6u8a2Bw5fds79jZAuT+ GOYJKWFF/m4dWryjayYBQ9uzyo7wz0hGQMRpvJAzMZvOUZIDtFkee33SxK+SIEu8Q4A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649327; 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=U5hO5zwt5yc5AR2FI7Ugtcs42sAA+kCKb2Q1p1ofynk=; b=PWUqwbLBnMQakcR0WnmbgeUqUOxNqnPOARQVHD/nLb8lq5IZ7UVmgoBQ9kDphmmTfLxy jLLJTt0anwKSMQ8kLzmfSWATQfO+iwgSJ6b0zqOWkG9QLyyozjLBtztiEzaXhkcTtyqWq a3xzjJOvQTf+7jOKbRiD1iceCWGFkO1RfMWdWrFAh37Zb4kpM5yAXLSXvj2AwX/uVjeE0 8msPmYEPCq4NrG1orQgujit4IE3Bt+3wZHp+X2keLBvE8A9Cdde63VD/wVrgwjsN+X8SD Bvrwi/fw7rAYN/Uh/f+ryafFT9Rz32Qh+9WVeFQ/WrlXG1SEGBXA2/0Oq7ep9HQjXRQ== 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=x8OsKLQ1; arc=none smtp.remote-ip=209.85.160.50 Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (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 DCE1A606D818 for ; Mon, 2 Nov 2026 19:55:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DCE1A606D818 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-oa1-f50.google.com with SMTP id 586e51a60fabf-4a6f2825dd6so669890fac.2 for ; Mon, 02 Nov 2026 11:55:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793649326; x=1794254126; 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=U5hO5zwt5yc5AR2FI7Ugtcs42sAA+kCKb2Q1p1ofynk=; b=x8OsKLQ1t+zIB03RiRkQGmKnvCwB+tp7Pl1Qq+wBDf4gvKWp55FhifDxiuKiw9ynXT Y9XJm/1zYxRSSaWLODTaXE+HpGMDevhXFQX4UQKuK+AOFwCEK1RNZRg7XaMt/IkKkNFu 3bDMblTdmKSLUkjW3yiWmw8jD5uvpxrIijI0u+zdmiyqg/M6iuC7Jz1Zx6gQXUOfWvse aADVu6fYwIOY7SdgX/QlRp/2SP1mncQlGjAyuqrk7CxDIdzdnxLHHndPLZNviOJJG7e6 EHz7awgem4JBqlnGYGef3H54TJUuiXf94NU3nn2fpgaK6pMJj0jiJsnDyd3O1mZNDY5v gqgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793649326; x=1794254126; 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=U5hO5zwt5yc5AR2FI7Ugtcs42sAA+kCKb2Q1p1ofynk=; b=D14LjB5JtzXmAKIymZjoywf0BI8/IlrNb6nkwU5MClb3wbHHsnUL1s5YU82hMh1J6b lZ/il+kWoJ88Dz27EH6MXQU2wNNuxc0KTKoCxpNLj8Q6UYlz4gkL2HB2LsLHBHYSsGL3 FP8vlrTNQ5J4OzFE9nx4qFcjxWD5kF2sBei7DxXKNudIH7VXiGgr303RTxb7VG6sdV0Q im0SJjAIY3NF/aKcRUcgePBbKOd2wcpXxaVQdxcIBSULOehxJI58fckqBS6jTNxq5p75 dM7EqZ876SdYOJRnc+v/CwqGIETHaoi+vuPvwi2dT6jHxj0pkpPljhP++uHJvrb26uGe OOaQ== X-Forwarded-Encrypted: i=1; AKwUvBwwLlkEOlUx6gqXjiPn74BOiDQiz7BbQn+axgRnaunQk1rS5Rl31P0jAQWX4IvDJMRCLFo0V0m6TpPzgA==@lists.linux.dev X-Gm-Message-State: APuU4Z8y/7ofFr4lb1jtAYnAB3VYnjCkxRSWS5n1qbe5WGR4RWdc6tc4 MiFGTxj9p9siTamWDNk6W5wuq/pWXzYEtoYB+17WueExDA4on1BS/qXO X-Gm-Gg: AYBFou1xtNK192wSGkFgk0UABu/6Hci34crgAGkun7iiFc/YH7lMObaO4HNITf4qCS0 brHR/eSWll5yBo4tLV0L0VxJ1ZvRjDaTdE4XhagBvkcRKb34B/tHZOOFD+3Mk373KDtPOeQftlN cgUCiRofvZoNgeXBr0zw7GFl6jJYDA4UmPbCJ4ZO64au5dNvkO21Ht3paU8XfA8HUz2hzNRvk/b 29KcGxJya1nCo8kAC/i/P7l9iNWF7l8QX64+UkE6WYFp6yM7+y6MKwCRDN78fIkXSDibFV5i6YD E7CDol5vBkQ0qVz7mo2lZnv8RKch2w+KMppQRrUwIknVlgxNTYFhTk6137v8ZhjAF/sazXq/Mg3 BtHsq8PDHxx6CPIijIjTBljDOPcPzEbw/Gt77WTKGYBCoNkNo9ojV/Z0c4BFSkQXDlwzSpSoyru x0ZaEJw/jZgpmB7GuC3yUb6YQRU0F9Fa/xmQrg59HOnZAl6FrnOalHzwkyXfR1e6sXfM3GFb7js AfMWGksSmrRqZXsD76AIbSqCqsCqGW01og1tcEz2+tb1UQRrqH5bTEePSIGi6vmsU2zgSNCG33H 8/HjN8lwPzmJBy8I+54F3A0dw9oUAN4KgD0nfdVAEy9LGLoDkPphlg0sFw2tacykVQtIFAt66c6 sD9TQ8Ii7wfhS6GmWFB57vPI3II3tkzVAvbsVfipik7w5sqvx8Oc2lUJZTSdlNTnFTXIQFXhFjQ MOqXeMuCZIc8DsiOhRLNvuCqXLs4QInW2MWIRcP0iMJk6LKMRJHP8= X-Received: by 2002:a05:6870:ac96:b0:48f:e21e:1e7b with SMTP id 586e51a60fabf-4a9077e817fmr6538976fac.59.1793649325629; Mon, 02 Nov 2026 11:55:25 -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 586e51a60fabf-4a921353dcfsm7809249fac.0.2026.11.02.11.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 11:55:25 -0800 (PST) From: James Hilliard Date: Mon, 02 Nov 2026 12:55:16 -0700 Subject: [PATCH v6 1/8] serial: 8250_dw: select port setup through platform data X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261102-submit-h616-uart-fifo-v1-v6-1-25afcb346b0c@gmail.com> References: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> In-Reply-To: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> To: Andy Shevchenko , =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland 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 X-Mailer: b4 0.15.2 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.19 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.232.135.74: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)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DBL_FAIL(0.00)[sto.lore.kernel.org:query timed out]; DBL_BLOCKED_OPENRESOLVER(0.00)[intel.com:email]; RCPT_COUNT_TWELVE(0.00)[16]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com]; SPAMHAUS_FAIL(0.00)[209.85.160.50:query timed out]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; ASN(0.00)[asn:63949, ipnet:172.232.128.0/19, country:SG]; R_SPF_ALLOW(0.00)[+ip4:172.232.135.74]; FREEMAIL_TO(0.00)[linux.intel.com,linuxfoundation.org,kernel.org,gmail.com,sholland.org]; FREEMAIL_FROM(0.00)[gmail.com]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[174.29.1.49:received,100.77.114.92:received]; TO_DN_SOME(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; TAGGED_FROM(0.00)[bounces-27079-noreply=patchwork.local]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.232.135.74:from] X-Rspamd-Queue-Id: 5C37A1C349D X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX Select feature discovery and DMA attachment through a platform-data setup callback. The generic callback probes the optional registers and attaches DMA when a FIFO size is available. Integrations with a fixed configuration can supply their own setup before the port is registered. Allow setup to return an error so integrations can reject invalid configuration before registration. Replace skip_autocfg with the Octeon setup selection. Octeon is a 64-bit platform and continues to skip optional-register probing while retaining its DMA setup. Select the DMA setup helper directly for this integration. Keep generic setup for devices without matched platform data as well. Reviewed-by: Ilpo Järvinen Signed-off-by: James Hilliard Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_dw.c | 41 ++++++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index 9cbe076463e0..a546cf2de7b6 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -64,6 +64,7 @@ struct dw8250_platform_data { u8 usr_reg; u32 cpr_value; unsigned int quirks; + int (*setup)(struct uart_port *p); }; struct dw8250_data { @@ -76,7 +77,6 @@ struct dw8250_data { struct clk *pclk; struct reset_control *rst; - unsigned int skip_autocfg:1; unsigned int uart_16550_compatible:1; unsigned int in_idle:1; @@ -596,7 +596,6 @@ static void dw8250_quirks(struct uart_port *p, struct dw8250_data *data) p->serial_out = dw8250_serial_outq; p->flags = UPF_SKIP_TEST | UPF_SHARE_IRQ | UPF_FIXED_TYPE; p->type = PORT_OCTEON; - data->skip_autocfg = true; } #endif @@ -631,6 +630,28 @@ static void dw8250_shutdown(struct uart_port *port) d->no_int_count = 0; } +static int dw8250_setup_dma(struct uart_port *p) +{ + struct dw8250_data *data = to_dw8250_data(p->private_data); + struct uart_8250_port *up = up_to_u8250p(p); + + /* DMA setup requires a FIFO */ + if (!p->fifosize) + return 0; + + data->data.dma.rxconf.src_maxburst = p->fifosize / 4; + data->data.dma.txconf.dst_maxburst = p->fifosize / 4; + up->dma = &data->data.dma; + + return 0; +} + +static int dw8250_setup(struct uart_port *p) +{ + dw8250_setup_port(p); + return dw8250_setup_dma(p); +} + static int dw8250_probe(struct platform_device *pdev) { struct uart_8250_port uart = {}, *up = &uart; @@ -765,19 +786,16 @@ static int dw8250_probe(struct platform_device *pdev) dw8250_setup_dma_filter(p, data); - if (!data->skip_autocfg) - dw8250_setup_port(p); + if (data->pdata && data->pdata->setup) + err = data->pdata->setup(p); + else + err = dw8250_setup(p); + if (err) + return err; /* Use the BUSY-safe sequence for both integer and fractional divisors. */ p->set_divisor = dw8250_set_divisor; - /* If we have a valid fifosize, try hooking up DMA */ - if (p->fifosize) { - data->data.dma.rxconf.src_maxburst = p->fifosize / 4; - data->data.dma.txconf.dst_maxburst = p->fifosize / 4; - up->dma = &data->data.dma; - } - data->data.uport = serial8250_register_8250_port(up); if (IS_ERR(data->data.uport)) return PTR_ERR(data->data.uport); @@ -860,6 +878,7 @@ static const struct dw8250_platform_data dw8250_dw_apb = { static const struct dw8250_platform_data dw8250_octeon_3860_data = { .usr_reg = OCTEON_UART_USR, .quirks = DW_UART_QUIRK_OCTEON, + .setup = dw8250_setup_dma, }; static const struct dw8250_platform_data dw8250_armada_38x_data = { From patchwork Mon Nov 2 19:55:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 3823 Return-Path: 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 F1F3F1C1EC4 for ; Mon, 2 Nov 2026 22:41:12 +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-27080-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-27080-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 4BD0D14366E for ; Mon, 2 Nov 2026 19:56:02 +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=1793649329; b=U13WInrZHOApxtYEFbhsziwehUf6HFVZu6It2wxIJ2jcqCY4hx+qEerkxy0a5k4A2m8n j2iMTwC0RSmF7dKaiMbAojDa6iM34VExmWG4EIz/LI2qYeKwiJoXhmXBerdnzg6PB1bJ9 JiAbrseQrIfbjI8g6YoZLYF9y1/dy5QmoYNNeDKgeXe0dLD1afoPKSybBAeQcG/HfzGL7 T2963K7Nr8z6W4J7izgfUZqsZMbtk2LtL1rpHDhgKklTWmFF22Re5G7FqlQMUHpq4pBBD 3aBjKKDb96rZ6NRt4u6Bas7Ppy4lQNZVjxu+QPMEsp0/3dgvjaGoEFPtRQjI2RAWE+Q== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649329; 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=N6NaCr2YqwIe/GreNxQyGPwW88t11Y+r+IlcKQCQW48=; b=pg2sbCPDgqXDzLUV5at7JxriEoqC7wUKAFwDGvoMg6BY9lVGT+YTaY/IZlyExy26x6AT dSqFGaGl7xLCmFo08xki4wfxyjc9wldg4LbMbd/4DKuzdOkaic/M7LPIiBClaWYPF1sqC UvJeW6dnpGJo1mi0r50SUU/pgE433LreFUWc+aRyg3Ebogh16R4dwAJ++OLQyYDqsPi+0 pZm3+WnjIQu8nFqCEdeVwNkeNkGlWUdaSb4sPUpfhlU+9X04iLvRlla8KPVhvn1pZhnDx 2lLuwsagVbs2+NtMVr6VDARzfVaus/ymXwD639NhaRTVT92B8omdBoGAC3PSZomPDhg== 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=zUo3+Bxb; 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 21292606EEAD; Mon, 2 Nov 2026 19:55:29 +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=zUo3+Bxb X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793649329; b=4DKHt+BqkLikralCMcpzjlD9vXDzswPd2NF0VKXdt8MFFu98oRjIIKmP0ve6SKEVTFaJ DbNiBBIhS15o2UV8ferDaLeLnWC6BIfDy6ZjWns5oacbv/WwOeu9yermJUqG9OCUFXJ2s AeM2LCG0CqrvL7IIKL48AuweybuYqgDc5Y7YrNw0tfcnDHfIPyvjSO1z3Catob40yK0Tv oLLy45mGp1OgjLjJdarmSFtEFh0s2uVCTzXoDlt7Y1PNo8jNt+GdRfQ6NNnUI2tKWz6oT n0hK3IQNyJONldt/9+uLTXXVT0T6utweGyD/0+K897Yk5htDkMODpeIhyhsVHdm5t0A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649329; 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=N6NaCr2YqwIe/GreNxQyGPwW88t11Y+r+IlcKQCQW48=; b=Ohy1XxfQS/mjgULYs4ihNrHpL3X2jcnjvZranTb0+xn3CikOyfJGhVusbufWfiZY25us 4U0tWVrwzFUf+ALdHxSXjRORuK8WJHY6qAPmwRpzz/Z5FNmru+eFVhaefGlWc2dM6oAbz B4LOHUVkszjjaZ8BlsBkx+EA2dY0SVtD2Mxk/vEE2Yvn9CfJDVAow0qYqGCHd6LxmBDd/ XO5n8DrQ7c0TB/uKAUO9iDp9RA2HTU0Ue473UhxEoX8ZciH0dfG6fmqZTjQiHUW6COvhr 0o9cJ/XMngE0kvfKjfWi0enQFQexVOx1PoYabJ8uWj2T20vBf6upqpLY5A7u8AsOZnQ== 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=zUo3+Bxb; arc=none smtp.remote-ip=209.85.160.42 Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) (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 A3575606D82A for ; Mon, 2 Nov 2026 19:55:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A3575606D82A 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-oa1-f42.google.com with SMTP id 586e51a60fabf-49e1251674cso1557987fac.2 for ; Mon, 02 Nov 2026 11:55:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793649328; x=1794254128; 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=N6NaCr2YqwIe/GreNxQyGPwW88t11Y+r+IlcKQCQW48=; b=zUo3+BxbGmph0/ngbSCyt8hqKAYLuJTRHgqKbZ4LC0dOXlk5tSd6Qx5njD/iLFBvor fEVWGwhP6bzKQmInfBdx9gGxPDhpPDSSnXLuctUFS3QoT7TmJWoalhsb0ppW54qXnoh2 +DmeZEU0selL4ZqrPHcGVBYwgauQqXsTaUuUsxKv6VZgLItLO30je7sRis3crtyb0RZL qiQL9ILGJwPCdpN7QgfAMdmmdxXniRJ1kr+rvh9KsmgKc9dOm+zpS9cxj3oQW+EzsPMj XbPRN2xLkDdyKyuZD6V3Go/t9xBnT4bJjmlOk4/DB4b9SR5abVg5fcJGnHd5kjYg28LV +5Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793649328; x=1794254128; 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=N6NaCr2YqwIe/GreNxQyGPwW88t11Y+r+IlcKQCQW48=; b=NfcJ4V8NiTJTrsQe1aNx3V4GDhaqBXPwnCz21iMsK03r53SHkRbCZUEfoSk+GfCOfY WkE/o2B7b/Vcyj625w8/b+y9gDd/8+xFpGENVUTA34u3qUKinZyY7BDjNxxcroaFmdvo SJ0ew/TNrk4yhpmmcXozVinWeDSuxvy09wVcTRY3mh0f+oRIQLqepqwaok0gJAqWfgP/ 1xRiH6+bl4q9qBlMnZMEbzLglVlVIkC5rk3EXmThoEMFWKPOEMmXLNeCiQeLoYf+8CBb qd1hHUmob+kJ5K7cj9FoOYTJA3iCSqeHQ+W+OE85IXdqOdBq6XzBb7xg0XLf2IAMMer6 /KEg== X-Forwarded-Encrypted: i=1; AKwUvBwJ/sMV7j1J8ew4IKHoHO8LfrrSSzImKBfc0uPWY+pIDcx//L74tjY4kbUS39iPkrTv5xhGyUEkK2NRJQ==@lists.linux.dev X-Gm-Message-State: AFq9FYJeoOHGzfu8SA6gmS2E4pPvuFN9jMqC5MsBhZs3tElWFO1bxVZY Luj9WvAjw79QPrMLKD8STkABYtY3PrvbIiCMScGuGTkbtEKJbCTjBOHp X-Gm-Gg: AYBFou1P5D19XguoSDRLt7WRxA+cj1J/eLDyaNha33OO3yGmMZSQ71xB763lLjSfNLx 95ZkbCwpgoDPG975SEnla6qOKPpfkqGbBDPsKWR7LAZaoAg7/e+8W8wwSuvM2/rnoWZp9pceybe /VXjEGlCXTyaes3E7YdCAC7RBNiWlNWPvR3Ahnppn3hOwdIaBO+dK9VDGRrKxAJwgB9hLB3eXjI 04krKfDuSQ3mM6SBmTh1orsByWLQlVm8c0pRmiJxcBPQwK/LzrBuLaYx7Bpv81ha8P5yC5ibuKG mejT2tsZG8arrPYKu6W1SAn5Y5z+8rlXiSruedC3hCEArwtBJY5e51tFotE+DHWLpjM9aqTmL1r RAoHADowNRAFm8deb0Y9eMgBBoNsXzqTe6xkyVs8q4KtfDSdvbJ6bbjUbXNvFlAAcdOdqIntJQb 1UkCuBWrw+CW/HqtwwkrfscB9eayY8m6uZiJ7VSNSq9okCj/h8PiV+P/f7SKu8YcAMCAveLD/SF 6fcwdvZhK2RgT4XjfvdFnb3Qlg1smnXdW1bA6o+mFJwamLOYPviQFr6h+Dbk3Jr8hRFoCRH7SWQ qSfT4BWuln6av4DeiPrQij3Oyu5fotdKgi2bbBHfzlRBNcKr5Uo+vwUEQzUQboC6QKy5u4QnC6Y RJ8WoSHvuSWFy3eaGeHMNDEfaydaM+yxzQ2ina7ibRholwlmxh7ojVhxlRHe5m1/UfbFER8bwF9 MD4u0B4rqijkwjhARXsajJk23OQiS8cFv65OrmcufMOYxRcacYYCw= X-Received: by 2002:a05:6871:e41b:b0:4a6:f610:87eb with SMTP id 586e51a60fabf-4a90729a753mr6897453fac.3.1793649326753; Mon, 02 Nov 2026 11:55:26 -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 586e51a60fabf-4a921353dcfsm7809249fac.0.2026.11.02.11.55.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 11:55:26 -0800 (PST) From: James Hilliard Date: Mon, 02 Nov 2026 12:55:17 -0700 Subject: [PATCH v6 2/8] serial: 8250: share the RX trigger conversion helper X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261102-submit-h616-uart-fifo-v1-v6-2-25afcb346b0c@gmail.com> References: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> In-Reply-To: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> To: Andy Shevchenko , =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland 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 X-Mailer: b4 0.15.2 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.19 / 15.00]; BAYES_HAM(-5.50)[100.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)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[dt]; RCPT_COUNT_TWELVE(0.00)[16]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[intel.com:email,sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns]; FORGED_SENDER_MAILLIST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; 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)[209.85.160.42:received,100.77.114.92:received,174.29.1.49:received]; RCVD_COUNT_FIVE(0.00)[6]; FREEMAIL_TO(0.00)[linux.intel.com,linuxfoundation.org,kernel.org,gmail.com,sholland.org]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-27080-noreply=patchwork.local]; 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: F1F3F1C1EC4 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX Drivers can supply receive-trigger thresholds through the RX trigger callbacks without adding a legacy port type to uart_config[]. Extract the threshold search into serial8250_bytes_to_fcr() so those drivers can use the same conversion as the generic 8250 implementation. Keep the implementation in 8250_port.c and export it in the SERIAL_8250 namespace. Include the unsupported-table check and preserve the existing nearest-lower selection and highest-encoding fallback. Suggested-by: Andy Shevchenko Reviewed-by: Andy Shevchenko Reviewed-by: Ilpo Järvinen Signed-off-by: James Hilliard --- drivers/tty/serial/8250/8250.h | 2 ++ drivers/tty/serial/8250/8250_port.c | 21 +++++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/tty/serial/8250/8250.h b/drivers/tty/serial/8250/8250.h index 21ed9c41b751..1600f2e45d76 100644 --- a/drivers/tty/serial/8250/8250.h +++ b/drivers/tty/serial/8250/8250.h @@ -73,6 +73,8 @@ struct serial8250_config { unsigned int flags; }; +int serial8250_bytes_to_fcr(const unsigned char *rxtrig_bytes, unsigned char bytes); + enum uart_port_type { /* Internal 8250 only */ UART_PORT_AIROHA = 124, diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index 36b2b0a2c05c..4a25badad3c5 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -3015,22 +3015,27 @@ static int fcr_get_rxtrig_bytes(struct uart_8250_port *up) return bytes ? bytes : -EOPNOTSUPP; } -static int bytes_to_fcr_rxtrig(struct uart_8250_port *up, unsigned char bytes) +int serial8250_bytes_to_fcr(const unsigned char *rxtrig_bytes, unsigned char bytes) { - const struct serial8250_config *conf_type = &uart_config[up->port.type]; - int i; - - if (!conf_type->rxtrig_bytes[UART_FCR_R_TRIG_BITS(UART_FCR_R_TRIG_00)]) + if (!rxtrig_bytes[UART_FCR_R_TRIG_BITS(UART_FCR_R_TRIG_00)]) return -EOPNOTSUPP; - for (i = 1; i < UART_FCR_R_TRIG_MAX_STATE; i++) { - if (bytes < conf_type->rxtrig_bytes[i]) + for (unsigned int i = 1; i < UART_FCR_R_TRIG_MAX_STATE; i++) { + if (bytes < rxtrig_bytes[i]) /* Use the nearest lower value */ - return (--i) << UART_FCR_R_TRIG_SHIFT; + return (i - 1) << UART_FCR_R_TRIG_SHIFT; } return UART_FCR_R_TRIG_11; } +EXPORT_SYMBOL_NS_GPL(serial8250_bytes_to_fcr, "SERIAL_8250"); + +static int bytes_to_fcr_rxtrig(struct uart_8250_port *up, unsigned char bytes) +{ + const struct serial8250_config *conf_type = &uart_config[up->port.type]; + + return serial8250_bytes_to_fcr(conf_type->rxtrig_bytes, bytes); +} static int do_get_rxtrig(struct tty_port *port) { From patchwork Mon Nov 2 19:55:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 3821 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mxe881.netcup.net (Postfix) with ESMTPS id 0C2BA1C419E for ; Mon, 2 Nov 2026 22:30:05 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-27081-noreply=patchwork.local@lists.linux.dev smtp.helo=tor.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.105.105.114 as permitted sender) client-ip=172.105.105.114; envelope-from=linux-sunxi+bounces-27081-noreply=patchwork.local@lists.linux.dev; helo=tor.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 36A21672EC for ; Mon, 2 Nov 2026 19:56:06 +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=1793649329; b=Kr6EfxiK/38BOaVTRCb4RefECr1MeQN9m/VkPRH00WwZ+yF78T/qBqgz+olutGqVCI8a PAnAmWRDKhw7HZ9iG7yE5469xK6PKPKsZjC3rmopZJS7toRQ4CKjqREzcR4wNLsLN95G5 S8/bjcGmPDume3YUtuamxOA6iqrF4IoPxQxAfkgJNKnMFbV6lCL9gP04MI1IeFljU8bm7 PT6Tga4j1Bch1j6exmvSZMjv5cMEUg5Vcv3r1+3vWyRiYtOuUvHOn5B8Xgte1tT95wa/Y 4erRhCz/8AybVcSf9AkrLERaGiRhts9zYOKVe7AyJQ03XOnZ7/wyC8L8TixGToBnkgQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649329; 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=Oo9jiEVGGougtMQIWT3K5gGdz1GWlAWW4/V0T/TbXzuhg0PeX6ggBVI6nzCiMnsDhJui lbgv2iDFHHafWGUFyOHd00rLnpnLvQYjAXR7QICn/IV9JGeC0XXfJaU2fBnfNEykOwzeS tLTWWi7Yx3h3LCnvVOa1yDO4lTGeqCnSOkkuK7iPZ+AyvSXUW8eZeJzNktDbehgKRDJj9 ucSZC8rdiAiHpdjTuMqhAecAcFUJej5BJxuOtkrthtZA7qbP2YwjRMrqW81IAnkWYPvrw Q99p+h6v7DMOkvHyKxvBdSIkOfhmE9bBl4nqDkSxVdGEZ0JFdVetXwr/6cRzpK8Utmg== 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=rpeHMOZz; 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 D96DB606EEB7; Mon, 2 Nov 2026 19:55:29 +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=rpeHMOZz X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793649329; b=OyGgXN1vFq67WUEiNOgPlDSBT1B1JdGxX+ZVBEu4K2y+LXGMz3qNWzVlEVU2CLuHc60H OGeyu3JLyXoNWclFfBP3Ffu0RBrT4heBuSzx+8Ofeft62jGXUQjhxtuwcpg5DewJap4GO KHdv5HQQg6Ob2rln26sVBC2A30DCJyE6kJ4NLAfffW0rm9wfqqC+ujYGICPiYM0PqzWT0 o3z7w+hCXzg27Hh5PSlMw0VmYOOyhxc9x9dRLTnwz4TeLeVZCGyMvdzgwVFGei2N+3PWT a6J/CYRt4VnVSK1Pc2z3lb8Mr+rD+0mZPp6fPQppAUWgBwyWVWw4cwi70TIB86RyIIQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649329; 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=oeaxEAGyfTWmv/Hg1/uI1jVL7g2PUTN89wZ/0wZ/FIg3hEE9c/qwuFMBjYrIRAGOAzM+ IzDDBPqfnWwsZFLxmg9x6lRCZa7dweITblqglYGrGfsg2+8VSV4mBxLHW2fuZ/yveTYFi Y0rbYBE+/UMInFLzqzL7tELuOROBKmKkQv1dnMgNoxIx9tCyDrXS83I0z81IaXp6xe4gn 8XOasOSehnsH4FpDRyB1/pCpI3HZFXvVd9ILeXarXRcOoQlIvcbH1G2gaJ09DP5ZiYspn qDXiijiAUDd6ma0AQ0uuzXNRI8I2x6e00Wfhmlwg34d1Hl+297DWgkqYzxlREJehR7g== 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=rpeHMOZz; arc=none smtp.remote-ip=209.85.160.48 Received: from mail-oa1-f48.google.com (mail-oa1-f48.google.com [209.85.160.48]) (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 6EB75606EEB2 for ; Mon, 2 Nov 2026 19:55:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6EB75606EEB2 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-oa1-f48.google.com with SMTP id 586e51a60fabf-483c607ccb4so2025755fac.0 for ; Mon, 02 Nov 2026 11:55:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793649328; x=1794254128; 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=rpeHMOZzgAcVHs0RB1gfkB7BTRk6iy2mbeTygZ61H2EG3TRVfYJO6ze99+qqwOOFzD pNvGB0ImVyrgkCwzy77dC0nRcEge3nU7uOYVCD7AhSJb0F4Lzk8mSp2QAQKhBxSBUUSd Xe1oX3SLqrFMGs3nfMTG2Zf01o/Q2bKtfq+OwtVzKz7b2S/3EuwLC7d8FXFpQTZalmRc VyO7uCxPPKA/4E8GE2C96pE0KxOnftw9WifGuVuSjxcwmt+LyT+9gCpvM+GdGQPOsJDF 9/LUmrqbHSQ57jVKmNa9TzIJD5sZZSAJfHDSwft+/Hk0s5DzvbOWKWOibyhA/u18whTb guoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793649328; x=1794254128; 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=0QpihTSurz6wGEBMfi+hGBc0uwdcaKL67Y2ZG+V5OqFxOzRf34RNKGe0pWjlWBTYJy dqivcqUgMYEBBDDWnJ3mZymYvQ8aAeC4l16JkZzMqp7aMXaZ1EmO/twis9KNdVokIw4y DdlUlvA7n2IBHDlvZ4R74uwYu5Q7EH+TEEa8U1A1je62Be+C5NB9TrGCm49tdNQn3pWB xBhMuBFRBoPt1pBXP33v2F5ruhXHwlw19JPgKtbTsytSx/54gg9NuZ4t15ij6LfErE73 PeG561lNUrJ+HmpUBb4JGzKTYl4l8Jkn/OgIrogXcRAKehpx7nOqilpl5hc9jVhs5NEb tOkA== X-Forwarded-Encrypted: i=1; AKwUvBwRCjW7Q3hilyuGIMjXQ6Bh1x6xZlJq0fyFZ0JGH9YG1QI+0x49Hx4TXtsOr2CncrFklO3C8L9Jd9Sh9A==@lists.linux.dev X-Gm-Message-State: APuU4Z8G93f0sgOpWuoyBsHXLeevEzHG5HfaBXtngxzU8NEFcfvtfSlT OofF7VBqaHtPWra3D2NdinWGUhGhJKYjRcpT2Ul14NKkhVj0ap6DBx88 X-Gm-Gg: AYBFou2lpA3I4rSQUBU4EUdzz6QKGPU3FWbdzolDDes0HgQTKmAAORFJCMj5FpU0O3F EONXNZMXT/1SwfrIOS6mxCltK08vVbWJFoKrHVsvH9jInF1Yx5f7U3vQE8LZIL0Oxr/fLnozUf1 +GmrBJkeWfLCDbxsBxILXAdbz1rJMIlfgQfrYiL9CBkV+gjPyAMvCZ8JaaFXTRTf/yEo0ERidhw OG3/L5+iZEI3GDXgkuTnJMuAkZLqJdYJoh4L+cMP4qo4Gs7Iitp+tKGZoSZza4YL6ykjnROg1Et s5TwgDzWGp/3+35T0OSULdsI+wQqQuMqUAfzKQBAR4D9lQlipoCau1YZ1I0gS+99sPtI87cUybN +ahprwA9kEOOdkuKneI8jgD4DD7KyX0pkNP/GCRWQ6iK30bX3dM0uFT24ftHBHRybkDfwhMusg8 XwfIayLXcQA1GWLzdW0/mSmBhDxt9gNv4WLe9+7mikflPlnHIO2gMVOp+onGSFFAJWNe/EMkNlb d+OPoExQUrwKch8Mz+4geXMTzZ/As+YWeK79Ymr96cHMWoRSkN0C1g00RjmdyrCfJoZzsGz2nMt OwowNQSDb/+zuAJuzajV2fRLa73DhpxLGXc4BRoo9tTF5QdQtThTohg0zHAYwyxenrcp+Nnv3Y1 TuDrM+b4cuJJfCQVv+K1F/T4PgzWu6ec8pAysqHwfNhGRXIIR5BbabILTrD4vGFKO5GFCSz8sKR X1KXNmsceeuMNZvMXiOMEz8/zfNqLuCmOpbr8ZGEgT6X82tAGCt+Y= X-Received: by 2002:a05:6871:580e:b0:475:e2e9:4f4a with SMTP id 586e51a60fabf-4a9076b7508mr7711963fac.24.1793649328190; Mon, 02 Nov 2026 11:55:28 -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 586e51a60fabf-4a921353dcfsm7809249fac.0.2026.11.02.11.55.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 11:55:27 -0800 (PST) From: James Hilliard Date: Mon, 02 Nov 2026 12:55:18 -0700 Subject: [PATCH v6 3/8] dt-bindings: serial: snps-dw-apb-uart: add Allwinner H616 X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261102-submit-h616-uart-fifo-v1-v6-3-25afcb346b0c@gmail.com> References: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> In-Reply-To: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> To: Andy Shevchenko , =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland 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 , Krzysztof Kozlowski X-Mailer: b4 0.15.2 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.19 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.105.105.114:from]; SUSPICIOUS_RECIPS(1.50)[]; DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[qualcomm.com:email,tor.lore.kernel.org:helo,tor.lore.kernel.org:rdns]; FORGED_SENDER_MAILLIST(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; RCPT_COUNT_TWELVE(0.00)[17]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com,oss.qualcomm.com]; TAGGED_RCPT(0.00)[dt]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[209.85.160.48:received,100.77.114.92:received,174.29.1.49:received]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.105.105.114:from]; TAGGED_FROM(0.00)[bounces-27081-noreply=patchwork.local]; R_SPF_ALLOW(0.00)[+ip4:172.105.105.114]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2]; FREEMAIL_TO(0.00)[linux.intel.com,linuxfoundation.org,kernel.org,gmail.com,sholland.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 0C2BA1C419E X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX 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 Acked-by: Krzysztof Kozlowski --- 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 From patchwork Mon Nov 2 19:55:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 3809 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id 35B251C349D for ; Mon, 2 Nov 2026 21:02:05 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-27082-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-27082-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 19B0E60C66D for ; Mon, 2 Nov 2026 19:56:17 +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=1793649331; b=FifEIq3/Gy5lnIUCRVsprbU4vtQAYsXtKNp9vYp/fQnmqlmOeorIklKQSRvBeAh0GiiR hpUkB6Vp2bQBMB4ca5jS/bWOCLu/BF9cG2jqaw8wothItg8g3dU9pJRmpwDI09g3E8Wfm Dff9TYNNAwk3RxOYAo9mT/oTqJq8TVVDqScEkyMy2oBjmMfioMgA/LB6gVuiGSAv4d0Fw ThdRSwEUfiWHFnN5RUjlwrTUGqOqx8URjqX3gqfnBKaJGzq4YJ9g47p0wzRvsXejOjHbB PJtbsf3v5dk1VF3p5NTj8CArb7X2AOze6Jqdy742Be3MJbxxyrdAE3jEOriTEsqWrag== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649331; 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=37idryY/a/htHBbpIdMpV4QXCrwUTlQBCm2nQ8PKPDc=; b=g065OJgztVRoVQKDrBd8Z+b6rXdMWVZD841gO38OyhSEMJsSsP/BcVDkg3ofIsYe1RhO SG1fFDrLiOojI/dQUZjLirSQ3YJLn/UpH+oyC9TsK1itfXh8HC+ItEKNCQwC1r+c4iBUd gy15EKZ0FZsebS+wbtNWMqABFC1VdQ4qBZ8040PZubieyVj8INVrN3tCKm1NJsegTzwAp 0GUm64p1uIIBOS0O8c3wY7/LkjV+h/i2woMRSGJCH01tHqGqFcmfEK1YqVdu0iDHr0B5e kSpfU9iziLPcqJyeUuD6X9XP3iiHnuwisIqgf2lGEiDnMIutgWVZ9gCOqvNNAg0cVTQ== 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="e16wor5/"; 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 1ADC96082BD7; Mon, 2 Nov 2026 19:55:31 +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=e16wor5/ X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793649331; b=Rw6LB4kq1+0V6XHcLX4awSeiMQLWD3tYHG2VRvtVhuUIPHGGQnUFgKOC8CPBg7NJXVHn 1/NJqNiE/Ynox1nituIB9/Gvw9yC2HfQb41KW9VuSLD75ZhCpOTD+LGxUYxAVNG0reb8y l6LsVPzI01G+bukim00mkqW14mOo+Q42QX6oNm9NdpRAG5qrTlFdmOWZ7PYp0gCUnuSrj EgwadDCEeRiVbJYfkaxNNMM2ctuK7XdS/6cKW5YyEkyRFW44b4xffHKJ+43IC6Fmw9poN HkLmhoKrQ7c/8eqFC38Qc/ZfUPeCDoju+Aagq5fVjhe/i9btBfjGaFht51u15ncSl/w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649331; 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=37idryY/a/htHBbpIdMpV4QXCrwUTlQBCm2nQ8PKPDc=; b=QqK5wUzzoqpIRzAbVwJib6PxoXO3L8adqaZPnpPnlVQLtt1WnJiq2RJ/s5AgvoGo32xC vOaSXflsqomM0TCYcUCDeLskj1bT0XidErwkv3S154uk6XwtiRrcnHVSIfXFFcW+Z/dR0 mnZ/qqyUFGD73+xq6QC4rAxif9/MO9rDuJIaFV/fHsis6CDoN+S6R2cwDaKKL7nlKUokI vlZcse1AUM5Y3B6MywcwaJVhnwV8bE/dPTa/wiXCKn6g23qQro0w4VeGvR7iJ/2mc+UrU gV1CvFfUAPjcWPl60g2bREke6NxaCf1zT8HAHzs0rqB5fqTjhEV3+1mZA08bavnpN4Q== 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="e16wor5/"; arc=none smtp.remote-ip=209.85.160.54 Received: from mail-oa1-f54.google.com (mail-oa1-f54.google.com [209.85.160.54]) (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 4AC526082BC3 for ; Mon, 2 Nov 2026 19:55:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4AC526082BC3 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-oa1-f54.google.com with SMTP id 586e51a60fabf-499f20c7054so1969898fac.0 for ; Mon, 02 Nov 2026 11:55:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793649329; x=1794254129; 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=37idryY/a/htHBbpIdMpV4QXCrwUTlQBCm2nQ8PKPDc=; b=e16wor5//PGxPI2Jb2G8r4sW2k03ZztdDItByNEwlfm2s05YaknpXheTdCuC2BoVbl SJOoGWWS2DaoIwjGNHuIJeMzVlnxXmD1mq47xNzsOtZib6B6OKH4S2aNAScObGs5sQPQ FXa9so+DfxTBRwNiDaSzLH3CAmkRC2YYzI/4oUfvIWkdaGTv1T5MbczsL5cpU9xHKXeh UKz0zmD5JxGWuDLH090VrURayJuCxjR27fMzCt9AMTrxAV8a3/LtsuvuatskFn+hFji3 dZLatj9KapK9do980Zq7z6SrNOKaTtxoL8CWZ4ShGwsrhomy+vO83KRwOu2DA2uIxDr7 D3Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793649329; x=1794254129; 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=37idryY/a/htHBbpIdMpV4QXCrwUTlQBCm2nQ8PKPDc=; b=LyxoBMSDM/J2ziwzUUtmTzosYhdv/UqT7eAi+IKbXNku3oO3pwo3/Msr12i0mZq4bt Lbcz8Q9DzEslL5t8p9HESbet36OiN/vOUQWtceYM0QdnaJibunB3UlQCvNEJEagHtHPB kkuIlSfsthM76lC9NqGOGtnJC+EBktOxGL/hVErA7Ihyn0FxNVaMHLNM+wzi+B1plqqI Czez1469CyvFmFCfTkSLw9gn3Xqg7YKdni9ybFf7uCNgcRsA0CC/5uTQSdvWLYfCTJWC baKvll2suUw3vFR1giGvEnOvGHD2FEWMWlCGBjN2tTjK059TN+v1mhe4h39gIJ60hpjZ asGg== X-Forwarded-Encrypted: i=1; AKwUvBzG5b+CtQxnYF99XbfHL4Ch382WcUeVvfwW0UTK+tioEa53ipPRQngtRDrfWewN4jTpHsbuMmTqGn0YkA==@lists.linux.dev X-Gm-Message-State: AFq9FYL95/KWf6exo3yoJyIHY2UWhmza5wwN72d1jRR08ESzxpT0pBaF 1t7VzzD91zUs0Rf1OT7Ly4T76Yia/obQEsbQjBil6KdoKVHznDWUNVQs X-Gm-Gg: AYBFou2+d69EEbqn+zlZ5L1Rle+usll/QExFJm1V70LHosHtuG5gjD9zizhCEN3hbkr u6azDOArXTfsRdfbrSCcXgLxZ14UDPX21AbeXNQyG80uSxHa65UE1UAGXBUMBX56aPk6oRhyIda tDsLwGQ1c/NhLtcVJW0+gWxA8NXYcIuHXA45afWaUtVUXSiUzRNNjLMWmzrnQD/u0FXxBao+nRz UfDRMYQmnUtUwtsJp5vm/7EazdEByJWQg43bWuVIIIHujH9zIYYxa3GdijderwWxY3PUpF+q7Wk eEIXQZOy7jE3SATwzKb0wviFy//9Y8H4x2zUAj+g6hD/ZE08K8vkf2yqDFCmaiTEb9EZ/9h2xID hkkjZ+kx1UEDchr6wzEbuI8MkU5zhDHciFn59SCoIZc0mdGUUY+Ihifu5ynHN91zBalXeNq1Hlk XG5eozyBzFpEW4v7MREcns8jiMpO3aoczQn7paVDelf5iADD9iihlU/fU6kIXCk4JCpAXVRkNBT ekWuX6OjqBz6qSZd0DLbOb9vOZuh0Iplg++n6/rgKzmWWuRiKKeh9ZlhblbCRXRnmPRsfe8PpK4 VrxqtYaIoJNnwVSs6LchntrF3SW2pNUH/o+7ZJ+Z6UXx1D2ajsNfwxnkU/a0WOJhoy2dYBJFmoN LllX8CI7gy+1B0ra97jZ+QAqekfuE69QEtpkDMBqWVzqi+oXOXLLGppFmKa4xtD4SXy2Fjm8PhC 1EZPqQcUA1/rIFXBfZCThrvkcLSjbstbkyikXyiBuxTZN6GQA6Nb1S X-Received: by 2002:a05:6870:8242:b0:456:5d8b:5681 with SMTP id 586e51a60fabf-4a9072d45b8mr7344269fac.1.1793649329174; Mon, 02 Nov 2026 11:55:29 -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 586e51a60fabf-4a921353dcfsm7809249fac.0.2026.11.02.11.55.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 11:55:28 -0800 (PST) From: James Hilliard Date: Mon, 02 Nov 2026 12:55:19 -0700 Subject: [PATCH v6 4/8] serial: 8250_dw: configure the Allwinner H616 UART X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261102-submit-h616-uart-fifo-v1-v6-4-25afcb346b0c@gmail.com> References: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> In-Reply-To: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> To: Andy Shevchenko , =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland 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 X-Mailer: b4 0.15.2 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.19 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.232.135.74: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)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[dt]; RCPT_COUNT_TWELVE(0.00)[16]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[sto.lore.kernel.org:helo,sto.lore.kernel.org:rdns]; FORGED_SENDER_MAILLIST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; ASN(0.00)[asn:63949, ipnet:172.232.128.0/19, country:SG]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(0.00)[+ip4:172.232.135.74]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,209.85.160.54:received,174.29.1.49:received]; RCVD_COUNT_FIVE(0.00)[6]; FREEMAIL_TO(0.00)[linux.intel.com,linuxfoundation.org,kernel.org,gmail.com,sholland.org]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-27082-noreply=patchwork.local]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.232.135.74:from] X-Rspamd-Queue-Id: 35B251C349D X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX H616 has 256-byte transmit and receive FIFOs, but its optional DesignWare component parameter register reads as zero. Generic 16550 probing leaves the port using the 16-byte FIFO configuration and its trigger-level table. Keep PORT_16550A and supply H616's fixed FIFO depth through platform data. The 8250 core derives the transmit load from that depth. Allwinner encodes receive thresholds relative to the FIFO depth: one byte, quarter-full, half-full and depth minus two. Construct the RX trigger threshold array on the fly so other FIFO sizes can reuse the same mapping. For H616 the thresholds are 1, 64, 128 and 254 bytes, with the normal half-full FCR setting selecting 128 bytes. Use this array for both RX trigger callbacks and the shared bytes-to-FCR conversion. Serialize trigger changes with termios through the port mutex. Hold a runtime PM reference for the register access and the UART port lock while updating the FCR shadow and hardware. Changing only the trigger field preserves the FIFO contents; a runtime resume failure leaves both the shadow and hardware unchanged. Advertise automatic flow control so CRTSCTS enables MCR.AFCE, matching the DesignWare termios path's hardware CTS handling. Select this configuration through the platform setup callback. H616's debug-divisor and RS485 control registers overlap offsets used to detect generic DesignWare features. Use the fixed configuration with BUSY-safe integer divisor programming and software RS485 handling. Keep the UART clock enabled during termios changes with SKIP_SET_RATE. Its clock is a gate on the shared APB2 source rather than an independent baud-rate generator. Signed-off-by: James Hilliard --- drivers/tty/serial/8250/8250_dw.c | 104 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index a546cf2de7b6..0b0156464af6 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -9,6 +9,7 @@ * LCR is written whilst busy. If it is, then a busy detect interrupt is * raised, the LCR needs to be rewritten and the uart status register read. */ +#include #include #include #include @@ -19,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -44,6 +46,11 @@ #define RZN1_UART_xDMACR_8_WORD_BURST (2 << 1) #define RZN1_UART_xDMACR_BLK_SZ(x) ((x) << 3) +/* Allwinner FIFO-relative receive thresholds */ +#define SUNXI_UART_RXTRIG_QUARTER_DIV 4 +#define SUNXI_UART_RXTRIG_HALF_DIV 2 +#define SUNXI_UART_RXTRIG_FULL_MARGIN 2 + /* Quirks */ #define DW_UART_QUIRK_OCTEON BIT(0) #define DW_UART_QUIRK_ARMADA_38X BIT(1) @@ -63,6 +70,7 @@ struct dw8250_platform_data { u8 usr_reg; u32 cpr_value; + unsigned int fifo_size; unsigned int quirks; int (*setup)(struct uart_port *p); }; @@ -81,6 +89,7 @@ struct dw8250_data { unsigned int in_idle:1; u8 no_int_count; + u8 rxtrig_bytes[UART_FCR_R_TRIG_MAX_STATE]; }; static inline struct dw8250_data *to_dw8250_data(struct dw8250_port_data *data) @@ -652,6 +661,93 @@ static int dw8250_setup(struct uart_port *p) return dw8250_setup_dma(p); } +/* The trigger is the masked FCR receive trigger field, in register position */ +static unsigned int dw8250_sunxi_rxtrig_bytes(struct uart_port *p, unsigned int trigger) +{ + switch (trigger) { + case UART_FCR_TRIGGER_1: + return 1; + case UART_FCR_TRIGGER_4: + return p->fifosize / SUNXI_UART_RXTRIG_QUARTER_DIV; + case UART_FCR_TRIGGER_8: + return p->fifosize / SUNXI_UART_RXTRIG_HALF_DIV; + default: + return p->fifosize - SUNXI_UART_RXTRIG_FULL_MARGIN; + } +} + +static int dw8250_sunxi_get_rxtrig(struct uart_port *p) +{ + struct dw8250_data *data = to_dw8250_data(p->private_data); + struct uart_8250_port *up = up_to_u8250p(p); + + guard(uart_port_lock_irqsave)(p); + + return data->rxtrig_bytes[UART_FCR_R_TRIG_BITS(up->fcr)]; +} + +static int dw8250_sunxi_set_rxtrig(struct uart_port *p, unsigned char bytes) +{ + struct dw8250_data *data = to_dw8250_data(p->private_data); + struct uart_8250_port *up = up_to_u8250p(p); + int fcr, ret; + + fcr = serial8250_bytes_to_fcr(data->rxtrig_bytes, bytes); + if (fcr < 0) + return fcr; + + guard(mutex)(&p->state->port.mutex); + + PM_RUNTIME_ACQUIRE_IF_ENABLED(p->dev, pm); + ret = PM_RUNTIME_ACQUIRE_ERR(&pm); + if (ret) + return ret; + + guard(uart_port_lock_irqsave)(p); + + up->fcr &= ~UART_FCR_TRIGGER_MASK; + up->fcr |= fcr; + /* Changing the trigger alone preserves the FIFO contents */ + serial_port_out(p, UART_FCR, up->fcr); + + return 0; +} + +static void dw8250_sunxi_setup_rxtrig(struct uart_port *p) +{ + struct dw8250_data *data = to_dw8250_data(p->private_data); + + /* Allwinner RX thresholds differ from the standard 16550A table */ + for (unsigned int i = 0; i < ARRAY_SIZE(data->rxtrig_bytes); i++) { + unsigned int trigger = FIELD_PREP(UART_FCR_TRIGGER_MASK, i); + + data->rxtrig_bytes[i] = dw8250_sunxi_rxtrig_bytes(p, trigger); + } + p->get_rxtrig = dw8250_sunxi_get_rxtrig; + p->set_rxtrig = dw8250_sunxi_set_rxtrig; +} + +static int dw8250_sunxi_setup(struct uart_port *p) +{ + struct dw8250_data *data = to_dw8250_data(p->private_data); + struct uart_8250_port *up = up_to_u8250p(p); + + p->type = PORT_16550A; + p->flags |= UPF_FIXED_TYPE; + p->fifosize = data->pdata->fifo_size; + up->capabilities = UART_CAP_FIFO | UART_CAP_NOTEMT | UART_CAP_AFE; + + dw8250_sunxi_setup_rxtrig(p); + + /* Use software RS485 with the Allwinner register layout */ + p->rs485_config = serial8250_em485_config; + p->rs485_supported = serial8250_em485_supported; + up->rs485_start_tx = serial8250_em485_start_tx; + up->rs485_stop_tx = serial8250_em485_stop_tx; + + return 0; +} + static int dw8250_probe(struct platform_device *pdev) { struct uart_8250_port uart = {}, *up = &uart; @@ -875,6 +971,13 @@ static const struct dw8250_platform_data dw8250_dw_apb = { .usr_reg = DW_UART_USR, }; +static const struct dw8250_platform_data dw8250_h616_data = { + .usr_reg = DW_UART_USR, + .fifo_size = 256, + .quirks = DW_UART_QUIRK_SKIP_SET_RATE, + .setup = dw8250_sunxi_setup, +}; + static const struct dw8250_platform_data dw8250_octeon_3860_data = { .usr_reg = OCTEON_UART_USR, .quirks = DW_UART_QUIRK_OCTEON, @@ -926,6 +1029,7 @@ static const struct dw8250_platform_data dw8250_tda54 = { static const struct of_device_id dw8250_of_match[] = { { .compatible = "snps,dw-apb-uart", .data = &dw8250_dw_apb }, + { .compatible = "allwinner,sun50i-h616-uart", .data = &dw8250_h616_data }, { .compatible = "cavium,octeon-3860-uart", .data = &dw8250_octeon_3860_data }, { .compatible = "marvell,armada-38x-uart", .data = &dw8250_armada_38x_data }, { .compatible = "renesas,rzn1-uart", .data = &dw8250_renesas_rzn1_data }, From patchwork Mon Nov 2 19:55:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 3817 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mxe881.netcup.net (Postfix) with ESMTPS id CF05F1C419E for ; Mon, 2 Nov 2026 21:46:46 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-27083-noreply=patchwork.local@lists.linux.dev smtp.helo=tor.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.105.105.114 as permitted sender) client-ip=172.105.105.114; envelope-from=linux-sunxi+bounces-27083-noreply=patchwork.local@lists.linux.dev; helo=tor.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 2F60D68667 for ; Mon, 2 Nov 2026 19:56:19 +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=1793649331; b=4UK/ztgESfaNYcBE7afGmxiaabReAESxADCuMMQXRnp+j8aWq5Uo1bcoEYaepx4Dbwwd 4Ycn+a8s0NtACHqRByrE2u5DJwMlV3Lly6fCaU8ASLDoZnqrdvsV1YQJlyc4QuqfMsLec DFSB4e69ZxEIOkOLa9JtBIVcYDWP8dIc70KC4ZVQbTW9tHq95jpUTgvWietuxSXF/cLjO 7XosyTgt3AUbg2CxrltxkRd+Kh46guXamr4nqNhlXp1LHs7hFoUCWToJZvJlb3XJA23lN IYdElSdM7oPzxHJ/plYNaTD/Ld+yfoVHWkWFEqFzx7uJinSp/Efwjk/2FqzoKO6BGhw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649331; 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=DRBWX4J/Ak94TbpMM7HoAnpLEmSCyB3p+1+fdXZAg3w=; b=Gq8pqlwp4OFZaVBkIgVIqjmc764iAViASwotrA9gOYog6BYwktO/6ZfNF7GLTonjQkNf haG5gMTwQBjQ5C3mhgQ7zPAFIstIfsAxnU45tSqpzH7wtqofqt3mYoHI6N+oCWBjeBKvt SOZZ+/lciWnkeYplcRidKcDHYShjOaV4qL9cXOi1yIt5Hu+3++SlOKg+KCnHw/MTiH/RF 7usXh7r4rTO63syNtiB/VWJETyiE/SnU/LoY10t6XLzbitO585ld3Wb/9+yUiAVVTSnhp CnrWOfiP3UNGQpc0btAfNcnBygK4+nyRLkKIKidx6e/IQAkZLamYGbivj4QDoBYHQig== 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="Af5a/vAH"; 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 73E436082BDF; Mon, 2 Nov 2026 19:55:31 +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=Af5a/vAH X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793649331; b=0UyVztCSe7Uy4zjwG7SBNVE68TXT3ilRPZOngc88TKUZQtnGU6vqJ/T4fKCez/MUDgkO H753RbLMSrA7oM39oqgA/fFShGZ+5bBtq8dUtjyury6Q9Fdn/TLMsCb0lTbNf31Mr7HuC PcZahF+xsQoXSuDW7uZicN7YHgYO/9dIFdl5AwmevkPxlP4cjn9sm9S4JUEEego/7N5bs VWQv3hXRJ0cLamsLsZi+GYL32GDAWLlxFQlezVzW9yW5a9mMmXOmyH3UCZH7rWG7EDWkV n4aVafqC0qwnk7uCRkdMamM5mgfaj2HJJthaE9UtIkYIqmL3xV603sAoqo932Pwh5GA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649331; 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=DRBWX4J/Ak94TbpMM7HoAnpLEmSCyB3p+1+fdXZAg3w=; b=D+lJ1vGEGJSjVavLpZwWKmVSJKcqzzq6CaXGxa7HbY6g1IHtwOe6XnHlRYJgpYUkvrAh JeWvEfqnNYqPqW1/mXWBI8fAEFZr1Qo51lyYXezDvh9JYZRy8ap+bY6kLRU/LwJhsFRgo 351AeeSR+oU4Flc/pXxK73T59yeWwdSPhPS67/D+wlE+9HMUUhrM0sH4NwnNgirjfwiCu P+japVthvq1YuyFh0AlkB93u1xjHXmFKB7hyFS5ssBOXM/1xU1skqXYxcvsIwOKe0ZMnp UzK5npto36jp+nlAI1eZM2T9TBmDdv6EULIYJykQwYsLwWZDQPkQ5/ZTeeeDmhKiBug== 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="Af5a/vAH"; arc=none smtp.remote-ip=209.85.160.41 Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (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 06EBF6082BD3 for ; Mon, 2 Nov 2026 19:55:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 06EBF6082BD3 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-oa1-f41.google.com with SMTP id 586e51a60fabf-43bf9548df4so3294311fac.0 for ; Mon, 02 Nov 2026 11:55:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793649330; x=1794254130; 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=DRBWX4J/Ak94TbpMM7HoAnpLEmSCyB3p+1+fdXZAg3w=; b=Af5a/vAHQyxVbtMS7M4YFT3ap66GLXiNs8tZhzksVYLSETDD0AzYtyw0w2InSDyQSF /KSglRnflvs5Q8uq4dFZ9k2hVRDqs2GMjaWDANjePaff36Dr4Tr8XunzUolVTW/k7RiT fqN8yKuWIiv4YbAML4E8mNy2NWafWj7cZQkidlE2+OhRXdGtyZvoxwtRL0UsJB3SRAmz fQArR50FMyuYEI7/WrjOBxvAWX4PzdOMtP3Zm8uCWoOlxHV8R8rHpeXDbdYBefp7LKqz SL1iKLxhD2tztZggReHSC/by7bVaHDzJlqLMPNwxMEZkeS6ZuoS3Q0d3O9xvjGSZ9nC7 M5aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793649330; x=1794254130; 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=DRBWX4J/Ak94TbpMM7HoAnpLEmSCyB3p+1+fdXZAg3w=; b=ksH9oCa5M3JQpUnQ9anQaug89+fsGXWEBCF6gtaUxKeIRSPVTUSa0Zf8l2yI5zyZZ+ Wky/f7jEOTRyfsnDIB35haiXetje7SIiOsTN1D10ZI1vpgLaBButhf+PULN6pJYlu5Ob dV12TcNmhQlAnlmJlNXJzRTdMhhVnsSZtduI/NoVqgl2ZkfBaP3Gl7Sax1SYKLqQtmoc DjzXB4vuuE5DDGqq4NifjAOIhCQ1e+NBtnWGszHYC+46obZF1WiTdSHS+UWJEhUkYEgO jXRDM8TzOyFEIUd3jPXp6MxOXeEso24rddRnfiCofnm90+9b8L/B4WUMKlNqoSB86hj6 5NlA== X-Forwarded-Encrypted: i=1; AKwUvBxy7T+vVMuFcH2c4bFp6zpPbYiG06QJVt34Jj4esRtvgWp+KSFNrULtPkl0bHqdXxIpze+/xk17XERAlA==@lists.linux.dev X-Gm-Message-State: APuU4Z8JNWYYvB3bPZXaOQ/ngbTwHrRqTBsZJ8F/SAM9B1S/6gB8umE5 sic8k4xlSXb2RK9o84LMPw7TKam6Kta8OT76Z2DsJ/UwDFul74uZDjVT X-Gm-Gg: AYBFou2s1m0tPG5v/NqdbaAT5bMVEAMCS4Sj39NnrE9C4sqSFp7srU8avAnn/mNuRWh AaodetJqIy2kD50CEe1Uv4d5SmzQj6cOfJyBdjpwuIUuaaL6j5AIMyfcCWDU4wfgCpeXfID198r fuIpoQGrGG2zi/EAD0/3oQU9WY5bIK3LAuKMF3Cxm+HvXoa74OArnM1CPrxkshH5FUoZpJ7Mcjv QCTuThcc1f8Lyae/FpvtabY8+nvzFKSNjyAc3ogVXI78A2+GIGJUPnAyXnxCCmQojKnTs28YR28 KV52d79gvujuZ+2Lr35IihfZFu0blq8z+YFNf0hMN0hQJgcOdWYsGwUgVMZSBnWxjciEK/jgLwQ x0/KHZn+n79hYiEmjd0MFQpzNvujUJm6BzLZG0uOUzOoAYgfTgumuKJaSfdKGCo1h0qCq1F134W iXVuWHatSZEeIIVe5XYXYrp/EpJK1KFwpqpvKEF0ShrParMGPG+df4KAK0Pzgo7WeRmgNjeekfM E2FcBhsIRrk0KrxUdv7iEbgHszDgJ9mERUPAbwJL7oHSS2w7xVPZa32M7le+AswZ/uxAOw3oqO3 RyTexA306R1Y4YqEZG/owE9LKqCtlGM8cb2GTD07YVzOW0xFvKbONmFZAk/XpiW4R+8Y3A5xntt 5zuSovGD7gKRS8SF3OgiyRxoT3OXPI7YbH8H7gN7+Cku4jNj89JF9i5mA3IB08iIFcnjCKekaxS U7coLBzRuiTMKpcLkHQuAmUn3ODybj8SrD43qHVP5YYrFd2clRv3NRWApJZ5B+D1QtxhKGxWlJ X-Received: by 2002:a05:6870:3d86:b0:4a7:4cd1:6f37 with SMTP id 586e51a60fabf-4a90764ba69mr6695598fac.19.1793649330169; Mon, 02 Nov 2026 11:55:30 -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 586e51a60fabf-4a921353dcfsm7809249fac.0.2026.11.02.11.55.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 11:55:29 -0800 (PST) From: James Hilliard Date: Mon, 02 Nov 2026 12:55:20 -0700 Subject: [PATCH v6 5/8] arm64: dts: allwinner: h616: describe the UART integration X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261102-submit-h616-uart-fifo-v1-v6-5-25afcb346b0c@gmail.com> References: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> In-Reply-To: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> To: Andy Shevchenko , =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland 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 X-Mailer: b4 0.15.2 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.19 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.105.105.114:from]; SUSPICIOUS_RECIPS(1.50)[]; DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[dt]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2]; DBL_BLOCKED_OPENRESOLVER(0.00)[tor.lore.kernel.org:helo,tor.lore.kernel.org:rdns,0.76.78.96:email,0.76.76.208:email,0.76.79.40:email,0.76.80.184:email]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com]; RCPT_COUNT_TWELVE(0.00)[16]; DBL_PROHIBIT(0.00)[0.61.94.240:email,0.76.75.64:email]; RCVD_COUNT_FIVE(0.00)[6]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; R_SPF_ALLOW(0.00)[+ip4:172.105.105.114:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.105.105.114:from]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; FREEMAIL_TO(0.00)[linux.intel.com,linuxfoundation.org,kernel.org,gmail.com,sholland.org]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-27083-noreply=patchwork.local]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: CF05F1C419E X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX Identify the H616 UART integration on each of the six controllers. The specific compatible describes the fixed FIFO capacity, register layout and receive-trigger mapping. Retain snps,dw-apb-uart as the generic fallback. H618 includes this DTSI and uses the same UART integration. Signed-off-by: James Hilliard --- arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi index c6b3a3f8359a..b4b2f85726e0 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi @@ -550,7 +550,7 @@ mmc2: mmc@4022000 { }; uart0: serial@5000000 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun50i-h616-uart", "snps,dw-apb-uart"; reg = <0x05000000 0x400>; interrupts = ; reg-shift = <2>; @@ -563,7 +563,7 @@ uart0: serial@5000000 { }; uart1: serial@5000400 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun50i-h616-uart", "snps,dw-apb-uart"; reg = <0x05000400 0x400>; interrupts = ; reg-shift = <2>; @@ -576,7 +576,7 @@ uart1: serial@5000400 { }; uart2: serial@5000800 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun50i-h616-uart", "snps,dw-apb-uart"; reg = <0x05000800 0x400>; interrupts = ; reg-shift = <2>; @@ -589,7 +589,7 @@ uart2: serial@5000800 { }; uart3: serial@5000c00 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun50i-h616-uart", "snps,dw-apb-uart"; reg = <0x05000c00 0x400>; interrupts = ; reg-shift = <2>; @@ -602,7 +602,7 @@ uart3: serial@5000c00 { }; uart4: serial@5001000 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun50i-h616-uart", "snps,dw-apb-uart"; reg = <0x05001000 0x400>; interrupts = ; reg-shift = <2>; @@ -615,7 +615,7 @@ uart4: serial@5001000 { }; uart5: serial@5001400 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun50i-h616-uart", "snps,dw-apb-uart"; reg = <0x05001400 0x400>; interrupts = ; reg-shift = <2>; From patchwork Mon Nov 2 19:55:21 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 3812 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id A9B411C349D for ; Mon, 2 Nov 2026 21:03:17 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-27084-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-27084-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 1730B60C8E7 for ; Mon, 2 Nov 2026 19:56:33 +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=1793649333; b=nYLaLDSgB/eLddIDw9UmxlUDcqo73Jg0PzKC+0bWMLMb1Bnot+tCQb5o6dPV/dfj2Z3g Nz1Vqgbq54y6QtiSxY3fwMeMJaDq0uR8HYHTHjfWpOhoaIWug1NL95/4MrPoAlrXQnAx3 2Pr5TNvEdurmg4hIefixZvFNiwzzrLfL0r/8E9YByraoTbbJ9L1t/17KGjJp8qBZK5UnR wWW0Cz7N5Y51O8BAE5/TktZ4danYZ5cTX/wY4xt3Rn4G16erzYqS3TkGJfpsKDQgWSZ4s hRXpWu1O7ZnO5HzyX4V3/64BnfK1OIgUBuYVedDGDprKVannXtixlCjlMR5bxpZD9/A== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649333; 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=QlRh548rr3RZodybaeLisbTTWEcq7cqJLOra+2wCfg4=; b=aaHPiHd/hrTJbYkL1GZMT05LOheDhLqRWRpDLzZW2Ksx3+KgYzuqMU5P/68vk6BlkgP6 NvyjHNhKg2tFV6SZ92NHxukmMwSE8FLRFYiT7GVQ27PTQMB2LO+9cw3aDitt9rqTbPJma v1b9eYATO/Ikh0dBowsXfQkZYosXqGTq9krteRirk7jz0efqGn8TC2Yeh8CYlUQ6lsZFA xCEemGLA6Y5jCWlTVs2yTrAD5txr8R0XZGk+4bDEO8l6BBqSxyLrzrYSekg6NZ+T7m0je ULKk/VDrHU2nx82LdyygGyLuTe0PgE/B0Am6vrUXXXq6+xEG/AfRo5ey0sG0t/oPUGg== 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=VBr6rZM2; 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 690F1606D83A; Mon, 2 Nov 2026 19:55:33 +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=VBr6rZM2 X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793649333; b=jkbwKKI3SuZGqcya852sGkfts51lUdmxYA2h4HHsntNWBXlbHbh/5i7iv2xbUiKnVzLb lmVxIVxkwP1CXxG1Z1ce2JV3Y6kK74JZVnlFDnlWsf8uxc0Mdj+CCwkzRlPIC+UW/lcQ6 thVK3di6h/MODmBMayif8lyHHnDQFQI50iJ3zoRsiBh/Usy6GDI5cbd5F9TkKvE0qRtRj gNA4c+FTHvQLEQcNjlVm8kwVUXFuEk54UbkQ6AaqdU84TpqhqMe+G/x5xUliV+wrdK2Qi g+E9FPQPXcm4kuzv5rrZ7h3aB09pd3bZnEH3aN+JAKmh49c98uisOlUcI8nBjGkHwZg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649333; 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=QlRh548rr3RZodybaeLisbTTWEcq7cqJLOra+2wCfg4=; b=QrFF8vqUheaATe6I0Hs21CNSov1uifrWOun5KwjcANBuO/VM6UE/nqqN7EHYJTE+xxYm Wu4B5cJE4Axu6jt+payJ44F5ERhgtacTqB+a+Dn8vb4PLrpcgj1OYYX7VRc9F8FmHr0Lo FgkqLxGNo0MjAGMADzwJSW9ARAlASmGrFL174h8A60LNWY+lw2VxinMzDz8WZFPuxDVDJ RovZr2m4FWw6ZmuE4tWK0e4S5MAsh9WEFJ87uu1KxzjvGfpEjTjFSwe8SoDXeLJ/Vv1+r 0m2VSCs6MkzPeuisljWvtQu/RwMVckMfVhNcxAQP9aTKtdRjiSai7erWjbN8OGhYDbg== 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=VBr6rZM2; arc=none smtp.remote-ip=209.85.160.53 Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com [209.85.160.53]) (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 53ABA6082BF2 for ; Mon, 2 Nov 2026 19:55:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 53ABA6082BF2 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-oa1-f53.google.com with SMTP id 586e51a60fabf-4a76f63b243so7350fac.0 for ; Mon, 02 Nov 2026 11:55:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793649331; x=1794254131; 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=QlRh548rr3RZodybaeLisbTTWEcq7cqJLOra+2wCfg4=; b=VBr6rZM28tsoLW7rN1LIScnjLdZ/OhvRqS19opEJPHHMJAqKsnWeUj+YaGTrLqrwNK pyhgOzZvxKPvFH0IQYL+L86j78XWRnVxmtMfS5T2OnNv/yQWxrHDavSN3waXZq+nYR2d 2wn0n/fph4qKmoym2AaHN8eXH4QRVk8B0LUX08bZ4wQh9ruJ6rVh/tGMvFOCc0bkd3Qb PeAJmQtttflV7tOiQCbzHgvJmOgD82t5m9QOWcEwA4SbsaxSffKhFxQ8/PXvZApqeQpM e5PhyY0qZzfxKn0CaPwmEBsMvYlrqRpYPmXLRAkIK3Pcvi26fxLe+4rQW5FQH1h7unaJ G4UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793649331; x=1794254131; 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=QlRh548rr3RZodybaeLisbTTWEcq7cqJLOra+2wCfg4=; b=UnsidtgI4B6Y/AQJoBtJmxYKJ3HtGDGEUC/zcjMH+Azowgme1W66R78gOqTwnohWPD MteVA2kfrc5o3JpKhTI/Z2hIAGplngtyItSZmat4t1pt3+l6lSnk54JvEPgWle0gUJd6 MALAxQOsUw3CB3YqSoXAMom2lNw3mGblaVws4r9NhxHsRNt5CKnNCv96rI/GGloyzgBr PYhmGVmrIIAQ/g44m8bnm7aHhg6uqt/8x1YxsWx+2yFK3F9cp/iVBg4kKh4uP39pAY/f pIvJZMzbSwUjUL0QDx8aZLFOnDtS84olK8Vz8FTxEIxn8HZPi6Nh24bHyELK0d+bK0Np he+w== X-Forwarded-Encrypted: i=1; AKwUvBy2POhBzpl1CxjjAu6pZtl+A7c92Gg8dHnMVj9Yv0PY8lq3OGWAAZ4cIeGjs01zhoSi3so/YHFaoc7/HQ==@lists.linux.dev X-Gm-Message-State: AFq9FYKRyngcXy/oZAkusOaguTva62Mn3360dqT+FhFt+gQctovhvwrq 1hlTgRpNPxixJ0ZP43TTy5z+Gjf37kCkBBm87V0d+zTrBZWGohlu/1ok X-Gm-Gg: AYBFou23JgMgNMwNzU9plwBK6Uzva/q5uI74mnioxcOpDeg/zrKx+ikEL7zM5u2SsBY cSpZWRhPjrYvr78/YuOcE2KPepjP9Bw2/nUHCcH1Kqd3yaUBVtwryffOCWFnuTSf+IAM+AtXdRA EFkkg+z2Uwinn5/hQeH8qauH4kVZpvkZs6tACvHOeI7yeC6WWS5dMKhZS4TQsfqB0uADl58oxi3 K3N+LZwYtObcZCT8+fPXMcZO+NHpAUxhQM9MXo9rZgu/Vxguz8GHp7R7OwHUvZ1gxqhhPzbd9ZG avHot7sk0YS+78haBtAhzyg5j5QXIh8WYacp28KmWYCfke75wq33EIjjgBkxbGeAYe0RpBXaK8g bqBrDn/0sxsSV6EesFU9VJmeWdvJ2t/R/RBNKcfcvhrxwFb+HrclDN6/ZuJWWsNc5Cmi24PRzd+ z0gRmxzj+JHGG8fG7BfEAamyHZJJT+4MyXRyva0lunnI08upCVzA/jCBahGIuXqqLTFiwEpxWQV X+jfQ2q7ogbJlIU33lx1T+ZrrXmzsmKj5r8GNPB7wnJFIVaO0l7MqEgV0EgZzApH19KYHKm5upu nY1Q3gmYfbCv8+Jh/WwDlfslL//ZmhOWRSo+Jz1mMXCOnpTzgwDERRhUcpmhfQR/enckDIe3mr+ ZqY5lBNYzsoJcgrGkjkS1iSbGhGWzMwHn92hSBNgIZm45JCn9ZdplMpYZ/Lqq6CGRmHSUtBHNEd Z2K35SoTIXB5Gq9kqRc+AItuTpAtyAId/Nh5DxyVAFaaltAFr2YPk= X-Received: by 2002:a05:6870:f150:b0:48f:e0f6:bd51 with SMTP id 586e51a60fabf-4a8e0ac1b8emr6815144fac.38.1793649331212; Mon, 02 Nov 2026 11:55:31 -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 586e51a60fabf-4a921353dcfsm7809249fac.0.2026.11.02.11.55.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 11:55:30 -0800 (PST) From: James Hilliard Date: Mon, 02 Nov 2026 12:55:21 -0700 Subject: [PATCH v6 6/8] dt-bindings: serial: snps-dw-apb-uart: add Allwinner A523 X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261102-submit-h616-uart-fifo-v1-v6-6-25afcb346b0c@gmail.com> References: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> In-Reply-To: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> To: Andy Shevchenko , =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland 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 , Krzysztof Kozlowski X-Mailer: b4 0.15.2 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-4.49 / 15.00]; BAYES_HAM(-5.50)[100.00%]; SUSPICIOUS_RECIPS(1.50)[]; DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; ARC_ALLOW(-1.00)[subspace.kernel.org:s=arc20261015:i=2]; R_SPF_ALLOW(-0.20)[+ip4:172.232.135.74:c]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; BLOCKLISTDE_FAIL(0.00)[172.232.135.74:query timed out,174.29.1.49:query timed out,209.85.160.53:query timed out,100.77.114.92:query timed out]; FORGED_SENDER_MAILLIST(0.00)[]; RBL_SEM_FAIL(0.00)[172.232.135.74:query timed out]; FROM_HAS_DN(0.00)[]; DBL_FAIL(0.00)[qualcomm.com:query timed out,sto.lore.kernel.org:query timed out]; RSPAMD_URIBL_FAIL(0.00)[qualcomm.com:query timed out]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com,oss.qualcomm.com]; TAGGED_RCPT(0.00)[dt]; RCPT_COUNT_TWELVE(0.00)[17]; SURBL_MULTI_FAIL(0.00)[qualcomm.com:query timed out]; SPAMHAUS_FAIL(0.00)[172.232.135.74:query timed out,174.29.1.49:query timed out,209.85.160.53:query timed out,100.77.114.92:query timed out]; SEM_URIBL_UNKNOWN_FAIL(0.00)[qualcomm.com:query timed out]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; RBL_VIRUSFREE_UNKNOWN_FAIL(0.00)[172.232.135.74:query timed out]; URIBL_MULTI_FAIL(0.00)[qualcomm.com:query timed out]; SEM_URIBL_FRESH15_UNKNOWN_FAIL(0.00)[qualcomm.com:query timed out]; FREEMAIL_FROM(0.00)[gmail.com]; RBL_SENDERSCORE_FAIL(0.00)[172.232.135.74:query timed out]; TO_DN_SOME(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FREEMAIL_TO(0.00)[linux.intel.com,linuxfoundation.org,kernel.org,gmail.com,sholland.org]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:63949, ipnet:172.232.128.0/19, country:SG]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; TAGGED_FROM(0.00)[bounces-27084-noreply=patchwork.local]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: A9B411C349D X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX The A523 UART integration has different FIFO depths across its controllers and reports each controller's depth in the FIFO Clock Control register. Its receive thresholds are fractions of that depth, and its optional register layout differs from the generic DesignWare integration. Add a compatible for this integration, also used by A527 and T527, with snps,dw-apb-uart as a fallback. Acked-by: Krzysztof Kozlowski Signed-off-by: James Hilliard --- 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 fc1289073241..ea6ce99178e3 100644 --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml @@ -61,6 +61,7 @@ properties: - items: - enum: - allwinner,sun50i-h616-uart + - allwinner,sun55i-a523-uart - anlogic,dr1v90-uart - brcm,bcm11351-dw-apb-uart - brcm,bcm21664-dw-apb-uart From patchwork Mon Nov 2 19:55:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 3811 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id 164B91C4218 for ; Mon, 2 Nov 2026 21:03:09 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-27085-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-27085-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 43C5760C96B for ; Mon, 2 Nov 2026 19:56:37 +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=1793649334; b=E6I84uEm1Sn/q8Z8GiQ9x6jg/7junRHfq1vg0A7168S76Z1dZ77TKpZv5dvoUJhyfCZ5 yyWG2TcnD2MXQ5AW/m+hYKrvxsySXAnHrF5YXxpuQDickFodvjaF2WtuziMEyybgW0214 9VoQdMOqMB7dytQhVqIxsOsdKTkT2/RsQPWuHUu0nWX27sIrUZjhSk584FGE1JiMkiBgC sauV5lSVQ1bx3K1Mki+2mtRRgKXpfHrfbOkAByDIvQPMfcVv3YwBvTu/LFnxTf8gTciZU GcAqOO+/MDjb4zcrW2ksXmcv5ngD2Zsziz+o2JAcfQKxgMVHtSEbPMY7j0bqtY2t0ZQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649334; 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=e5pG2x2D0CE8fAouwsfujGjEJUqfkPlGvTlxhvkEIu4=; b=jS5DfI89hywtnZ9wHQWcKrctgITiJGnCcq0h/kSg0LLduazt5h62u1yWWXlFwvPgpWqm MJkXzkNkPRK5qnBCDTdlQb+eYIEkD/ngndUtX0f4ATTSJLC/9f4Vi9TCJQxZiSDsKQdne 2VAWYrqw/lNo0Gm45A74OBjdFG3XzYbSRejOLn4y+iCvtE5HIif/B1tw2+pMPHmy9C94U VFjUBZiVn8uLWMCv97IL+YWWwLq0ErpQExayHUsy3/mRKofHdZ1ZrX6SWS8sbW0pn1f+t eSTTznpwjVQjq3VWUSrC+eorZw3Gq4SDIHq41cuizYirA+OfdOaQnXQnOwSUea8BfWQ== 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=eJXHB88c; 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 0E22B6082BF7; Mon, 2 Nov 2026 19:55:34 +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=eJXHB88c X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793649334; b=4uGHDLm91CLBq4RiuSI36s0t/LZQLjs2NWo7OwyiWglRcIlxPI+DibW76t9A/w5L4HQu 6B22GmPKrzZ092Se+JYa6smsek4VPHXt1bqLbuKdPHFEpebnKpqyizXD5BQNwxlmi+oOE tGqvvL9vcXxYmGAdI8tRJFxgII4HLHnWcjU0lKdYadTM2diuqiyvfBJZsX9/eWRRT5ADp kLijGNpX1rdeKvxrRDTNVrIlWsLyptaSn0Fl2kS75FGgjWQf/bTzgakH28Vj6nLQ9aEYu GRUmstMMwbPioQsK1NTbSMbqKAOyRPLCLypfuHFZ6IB7qEQow0BUNS6PFdz784MFiCA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649334; 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=e5pG2x2D0CE8fAouwsfujGjEJUqfkPlGvTlxhvkEIu4=; b=sH+XhyYF8GwZD7EhOWey7B7EbTAX5P0Opp02xFMBTuR0XgiAwARMxwws4B5Y+TW1cSvY v+QpWwifuB9dlXs7b/wDO73A+KIclZ4dmAScK74yBST4yQDpP+Fg47xCs8B73VtBJ/bja ef8abAo2l56Ao3xUUkriWfsS8x7TpOXtHT9CfNx1ZataZGFZ8qe3RXh1hQS6pL9vcCXzt mcJvlYPTUQHoTfiYE2S3+OofIXvBbUtkcrxwJWTAFCfFydxFjBUXpXiGx6fDHju1KuIWt wQfwABfHE/IhaM6U4pZfTuvcsjrpwDfr3q4AlYKMt8ef/oTwldN1KqVa6jMHUiUSaxQ== 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=eJXHB88c; arc=none smtp.remote-ip=209.85.160.43 Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) (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 95559608360F for ; Mon, 2 Nov 2026 19:55:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 95559608360F 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-oa1-f43.google.com with SMTP id 586e51a60fabf-43bf9548df4so3294338fac.0 for ; Mon, 02 Nov 2026 11:55:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793649332; x=1794254132; 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=e5pG2x2D0CE8fAouwsfujGjEJUqfkPlGvTlxhvkEIu4=; b=eJXHB88ceXPJ/3L6Jbg1jctGMyIkLHS+wQPy5gkkgSjvRPnxwvxD91pCn8enE9Krgg JXwn5Zfng4M04cse85fscy5Z98sBTr6xe7yGHkaEQQuKPZGnwWY8y2N0PsLplLjhJJbg XSf97mVL4JxLq7yMqD63J4Lg9XDjaNTTJKqmuNR45g1XN4WPT04MwiU3NsctVz926SBO 1FaLVBgG9NeOxz9VhwGaGOrFTQCWf0JUxACBznz7rZKhrfaosouvoB9kekNTFnpnrtko I30Ak9dlnz8cTTpN2PnC9lzi4PPaHvK31v608Bv3NKtEIhKBYbE3XhS+NJdrLMUJua5L pm2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793649332; x=1794254132; 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=e5pG2x2D0CE8fAouwsfujGjEJUqfkPlGvTlxhvkEIu4=; b=B6VY5jUiPAqX8ePtcJsTE5H5Gh5NS3hjIIOIVPML/wGSKFXN0ACHuzD1id+k3I1v0t ffMdd+G/NaMVRF/BTxcdYc4ckdccCsmfRREBGdYaibZTFxryjkTUnkK43xyyFOA3yPOR RWNMzoyKAv7xicMMZ632XUt2Tvyy1BIaj8RvPqgWXLgLXZ4qELBRwvu+CUYThcb/bZ7c p4cLZ10v4LDQzHw4mU1bG2JIPlbMrMHB3DJ5nIPgR2z48lIiMFG8MKDiEJatVaydDwTt Kt02s86GhQwnQ0HXOkV4F/1Yk+0ESvzS1g9ZO8H63OoBO2l+X8JgY/BhzKl+Ig52raG7 h9vw== X-Forwarded-Encrypted: i=1; AKwUvBzB76+kHZTthJh5ukAAJjbCHfqDXSvygx/4G1CTqDIbQxlVFL50Tlstu8/iy+3vRun48UycfzjRKTM+dQ==@lists.linux.dev X-Gm-Message-State: AFq9FYK3iyNaSvBMh1Lfy0jGQkkAn9JqFyS1n6/oxqWqSBP3tCXBaiYo RgQYm/WG3Yx4dOG6DkVTetsjY07kYl9FGao7Fn7jIf8PRg6qpx/lTCGL X-Gm-Gg: AYBFou2T0/oBFOik3AZh8SdHKv2uEswUWpKg4SfWGRiNJ/MjDkwRD4hspnnw3qFPa2k GXV2iaViON8BHoycOxCKNFxn2bv5yrePuE3rLtEgOc9bIRNFRm3jiTDqkASiDfAf3+Ruim3jeYY 8QnGf2dmKrtJRSPrahqSFlrvHVmI9xyQtDlamE13ExPLHCMnILNZU3xgEN9i0dB45S/Hm3uzNms 3RXL3jjpmNFVBlreWmzCwyYVdRLStY0xmmfVrCSvCKMgIUU37K4fqaJfgex/4vSoMddiAlNtell ayLhgWc59nqDvhVU8V4o3zwZYtFTYZC1Z7bOqn32HNIMdJm43vZ7MWEntNxDiV4ifqpDos9NWhd Uij/eumjHLNknhKIogMU0hIQO8KRNITt0ZpIF75tIuJnLsCnsZEQxhj+q4KkQ4ON8HKAVJwVUgn aOxyx6do+Ituj2FT9e9BrCCToWaeY4xR3iA4xqeAz3xSqX5Ry/0ifwCGaO2seC4SiFB2SZ5MssY bcQAlCyWMU/SNpOvecumqvWaXhO7kdbUW04EWFzYa3P0mwGvGehWxhyP9grHfi/nle6YtrU0cBw 66DHYUhptgUElkfkSO19Ecm1ZU2PuVUB4jDGQSGP9CdNtNuS+Yv9Sg2/5CsM3XiU75Lrn7JKwyn sONkQ8a+KXnymqXqBpfLDE87WuRtmYsfl9ug+C5eGXERG/WDxIxQc5Vo1hIH7KbWDPqim4VnIiH vBLOwOjfD2JjhNSDCGmHpCqacfsdbyF93tQh06jLCsDSzaZdAzxTI= X-Received: by 2002:a05:6870:960e:b0:48f:e21d:1a30 with SMTP id 586e51a60fabf-4a9078421f2mr5974885fac.59.1793649332410; Mon, 02 Nov 2026 11:55:32 -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 586e51a60fabf-4a921353dcfsm7809249fac.0.2026.11.02.11.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 11:55:32 -0800 (PST) From: James Hilliard Date: Mon, 02 Nov 2026 12:55:22 -0700 Subject: [PATCH v6 7/8] serial: 8250_dw: discover Allwinner A523 FIFO depths through FCC X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261102-submit-h616-uart-fifo-v1-v6-7-25afcb346b0c@gmail.com> References: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> In-Reply-To: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> To: Andy Shevchenko , =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland 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 X-Mailer: b4 0.15.2 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.19 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.232.135.74:from]; SUSPICIOUS_RECIPS(1.50)[]; DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; TAGGED_RCPT(0.00)[dt]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com]; RCPT_COUNT_TWELVE(0.00)[16]; FORGED_SENDER_MAILLIST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; ASN(0.00)[asn:63949, ipnet:172.232.128.0/19, country:SG]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(0.00)[+ip4:172.232.135.74]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[174.29.1.49:received,100.77.114.92:received,209.85.160.43:received]; TAGGED_FROM(0.00)[bounces-27085-noreply=patchwork.local]; 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)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2]; RCVD_TLS_LAST(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.232.135.74:from] X-Rspamd-Queue-Id: 164B91C4218 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX The A523 UART integration, also used by A527 and T527, has 64-byte FIFOs on UART0 and 128-byte FIFOs on UART1 through UART7. Each controller reports its TX/RX FIFO depth in bits 31:8 of the FIFO Clock Control register at offset 0xf0. The field holds a byte count, not a logarithmic encoding. Read this field in the sunxi setup callback when platform data does not provide a fixed FIFO size. A fixed size takes precedence, so H616 retains its 256-byte configuration without accessing FCC. The probe has already enabled the clocks and deasserted reset before invoking the callback. Leave the FIFO clock-control bits untouched. Validate the depth before generating the RX trigger table or setting the transmit load. The quarter-full threshold must be positive and the FIFO-depth-minus-two threshold must fit in the byte-sized table and RX trigger API. Report an invalid depth and fail probe instead of generating zero or truncated thresholds. This bound follows the current 8250 table and callback types, not a hardware FIFO-capacity limit; support for larger thresholds would require widening that interface. Select this setup for the A523 compatible. Derive the transmit load and RX threshold table from the discovered depth using the common sunxi helpers. This handles the different FIFO sizes with one compatible and one receive-trigger mapping. Like H616, this integration has Allwinner-specific debug-divisor and RS485 registers overlapping the generic DesignWare feature probes. Use the common sunxi PIO setup, BUSY-safe integer divisor programming and software RS485 handling. Keep the APB clock gate enabled during termios updates with SKIP_SET_RATE. Signed-off-by: James Hilliard --- drivers/tty/serial/8250/8250_dw.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index 0b0156464af6..0ed50d9515e7 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -51,6 +52,10 @@ #define SUNXI_UART_RXTRIG_HALF_DIV 2 #define SUNXI_UART_RXTRIG_FULL_MARGIN 2 +/* Allwinner FIFO Clock Control register */ +#define SUNXI_UART_FCC 0xf0 +#define SUNXI_UART_FCC_FIFO_DEPTH GENMASK(31, 8) + /* Quirks */ #define DW_UART_QUIRK_OCTEON BIT(0) #define DW_UART_QUIRK_ARMADA_38X BIT(1) @@ -70,6 +75,7 @@ struct dw8250_platform_data { u8 usr_reg; u32 cpr_value; + /* Fixed FIFO depth; zero selects discovery during setup */ unsigned int fifo_size; unsigned int quirks; int (*setup)(struct uart_port *p); @@ -735,6 +741,20 @@ static int dw8250_sunxi_setup(struct uart_port *p) p->type = PORT_16550A; p->flags |= UPF_FIXED_TYPE; p->fifosize = data->pdata->fifo_size; + if (!p->fifosize) { + u32 fcc = dw8250_readl_ext(p, SUNXI_UART_FCC); + + p->fifosize = FIELD_GET(SUNXI_UART_FCC_FIFO_DEPTH, fcc); + } + /* + * The byte-sized 8250 RX trigger interface requires positive, + * representable thresholds. Larger thresholds require widening it. + */ + if (p->fifosize < SUNXI_UART_RXTRIG_QUARTER_DIV || + p->fifosize - SUNXI_UART_RXTRIG_FULL_MARGIN > U8_MAX) + return dev_err_probe(p->dev, -EINVAL, + "invalid FIFO size %u\n", p->fifosize); + up->capabilities = UART_CAP_FIFO | UART_CAP_NOTEMT | UART_CAP_AFE; dw8250_sunxi_setup_rxtrig(p); @@ -978,6 +998,12 @@ static const struct dw8250_platform_data dw8250_h616_data = { .setup = dw8250_sunxi_setup, }; +static const struct dw8250_platform_data dw8250_a523_data = { + .usr_reg = DW_UART_USR, + .quirks = DW_UART_QUIRK_SKIP_SET_RATE, + .setup = dw8250_sunxi_setup, +}; + static const struct dw8250_platform_data dw8250_octeon_3860_data = { .usr_reg = OCTEON_UART_USR, .quirks = DW_UART_QUIRK_OCTEON, @@ -1030,6 +1056,7 @@ static const struct dw8250_platform_data dw8250_tda54 = { static const struct of_device_id dw8250_of_match[] = { { .compatible = "snps,dw-apb-uart", .data = &dw8250_dw_apb }, { .compatible = "allwinner,sun50i-h616-uart", .data = &dw8250_h616_data }, + { .compatible = "allwinner,sun55i-a523-uart", .data = &dw8250_a523_data }, { .compatible = "cavium,octeon-3860-uart", .data = &dw8250_octeon_3860_data }, { .compatible = "marvell,armada-38x-uart", .data = &dw8250_armada_38x_data }, { .compatible = "renesas,rzn1-uart", .data = &dw8250_renesas_rzn1_data }, From patchwork Mon Nov 2 19:55:23 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 3813 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mxe881.netcup.net (Postfix) with ESMTPS id C32381C4218 for ; Mon, 2 Nov 2026 21:08:22 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=gmail.com; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-27086-noreply=patchwork.local@lists.linux.dev smtp.helo=tor.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.105.105.114 as permitted sender) client-ip=172.105.105.114; envelope-from=linux-sunxi+bounces-27086-noreply=patchwork.local@lists.linux.dev; helo=tor.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id ED00C82104 for ; Mon, 2 Nov 2026 19:56:44 +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=1793649335; b=Z+IghjVAj1gTHDx6w+Z4a5MWTHsCcJK6j/L96Vqx5nHa1XiR0FI2oDMaiFcrvHa208z0 N84+PE6xL1iZ+J+tNpxSNw/vfMbVodRK49E9naaAgykcjfe/bz5p7/3qv5emv/5FIBxaE abyYF66x9Ofbbc//c30wesqAhj96Su5thrSuph03df/lkjjIUyTAPjczS9z24qBjJF+If t5QuLoNWsGPStR8VrAnLya9toeXVhvMtrmZG2WdqT8+Wfgyit+JZ/6Bgeddt+Uvnhx35O AGJELWRRGDdXiJmkTqH33BrtWi/Mt3VZvyc8B1njEGpFcikhyS5kx1zIjs65h6zzPLg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649335; 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=NCqbgiCveDVRhli2P2PmmtvKmmMz/nrumey9OJpxfP4=; b=FqSQxBrhnLJcnXfWfeouRgcywSSUsdETWwQL7IMEcIgDTOH5jYbHvboB1ONFqwVaE3D5 /B3yqDu+vi9FCnt1edrWi4/vQTgtdygQ3lBo6htfraJybz0iLF+YDOM/aCpE9M0x1b7iC mzhNA4WycW8JGR9OyNEdZrNOKbLUuRlpgMoOmiqdevuswWcLFIiIhQWDEpdbQWcD8JnyT z7SH0XAyBQW1dtGOrr5Mtq3fuZgzg46oStM6zwBIPRaX8gCQWjDK0H8PzREwXZxY6KCEI uK6Tt0MPRh/ouFDkN2gexQ0arfMDF8KsmPIH3abIAK0WCIgMihgHdNKOr+v0UaMVlnQ== 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=t8IfxWl7; 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 5E83E6083632; Mon, 2 Nov 2026 19:55:35 +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=t8IfxWl7 X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793649335; b=rk0wYAG0eU3XsDRZkOx5e0/bTY0h85MJLIDfVvcZOb4T8Xddb77Nb8ps9PLpetNBXRjn 9Y5eoWRdBvga6nw6frgyG7J7JyosV2lE5WPK5/2kVNFpygs2GrwdaHsOIg+V7Jlc6/mNp m5DiB0zbX33ddkIZaU3EXUIh98+IqRJq3k/LyFRE0El9uEyT32StDOQFcQepyZjM8ePJM FcZStaWbwXD35NQACq/FSQ1wNWpo9ntwWXPD8UcODn0+MIJjJZ/aPbZV4AZ41RvHZx6U2 IS1R6InLJkwRLa9XyNGTPBkZ54vZsWRr6GQ+o4w45wcwZCY25VAk6jrqRLButncGPdg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649335; 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=NCqbgiCveDVRhli2P2PmmtvKmmMz/nrumey9OJpxfP4=; b=kNacItjH9+Mcb6FGQXNRnCr1nD+6AMKWzTaAOZNsNiCHgqKH8BwKCgoPqk6Mdt/MbHaL s1qz3vct2ZBaAP4LmmyPqDGBNQ1ApvmvwfmrX0YUUNyHJxsfhkFx73rDjGn7fYUcCV/8B Mb427crFT8H0EtkAMRpfV4y+a+uPje9byq9qr4/kaPxmUondW9Rf3n+2yLu2a8yKso+7Q fxMHDL+iVT6VEHiTjGWhwv8CHSaevxCoi0mhJoJuu1QMUdtJtHr2AlbNg84xL9R+j8Dik F9ESK4NvF+a5OKgYJU2QeQiKbEWTva51OgEgiCmJD2Gb4+HP0VjTLSf9dTDpJEm/9Pw== 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=t8IfxWl7; arc=none smtp.remote-ip=209.85.160.50 Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (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 EB3D1606D806 for ; Mon, 2 Nov 2026 19:55:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EB3D1606D806 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-oa1-f50.google.com with SMTP id 586e51a60fabf-49429181ce9so2132686fac.0 for ; Mon, 02 Nov 2026 11:55:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793649334; x=1794254134; 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=NCqbgiCveDVRhli2P2PmmtvKmmMz/nrumey9OJpxfP4=; b=t8IfxWl7zBRGHba5ZSBWc/ijy84pAULKlQfx3k+uJubjdRU+G60cgoF2s7vyz3W2ze kPF+56B8XWfuXAqRYTIfPd8vnt0IiqExaZY3pdAiVyIYUN7rYwgYMDdzYmidOKLNKYu+ I/rV/s1epY/ivz1qRAu3z1QaN/gws6s6BibdHqEalcidZhVwh6TM3Rq5UqN3NJ/ycsNY 7+fMDI/DnXVPnRPOaS/u3QBSM1ryJ8pEEifvd13Bb2LjSmCK0KwvbDdj4l5V43H6dgFN NWD2racgiORAUsMHtJvPrJMT123lsRKxFLnlt+sbf+CuGzVymrL7VNetO+1+avX7HTCK fIpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793649334; x=1794254134; 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=NCqbgiCveDVRhli2P2PmmtvKmmMz/nrumey9OJpxfP4=; b=Sc8iiyqmYNFS10E9pKCXWJ34G5lapDzM7Z6i8nUyZ/fj5cMEcIW3Ic1IqIm8PlMMa1 OgaBcrFauG2fD0WbQi3Nyp8VoLjmBjM70aXr0TuW4URGesjPkbpseUA705hqFztb1SjL K67jXTm77yWRAfKQThxwWwpgmB4BQV8mxOPrXouVq5s4IU9neIiMeQijX3WUc9MStrir MhpaWVXYtk4yOb9iSThPPGj3avv1LZeefY1BT/DGYX5+vp2K6a1An70ZjAhjNyOE7iAr j3x/ks4acYmcgisn4BZeOGOUpAogH4a2Lf74zdQZe34biYpIJ6ztobvoHzHoH9Z1IJPj Wu+A== X-Forwarded-Encrypted: i=1; AKwUvBxkgQdB8XI2XNYPUOYoBIhGgUBw7mQ261EwS8HvJW9HmzLk8mDe/zGYlt9YDWD7rMWEmWDgU1LfZvfj0w==@lists.linux.dev X-Gm-Message-State: APuU4Z8D8ZjU96tFgKgkmwHmbaTdUUWMF+e1armehXr6vTWH3Qm4EzG+ Ff6WVXSOFagXRC3noSrtyzWMDqr1ErKBFICT4yT3Dfm1UwQBALDoXc4T X-Gm-Gg: AYBFou2jcf+PziLzXaMEdwfLA6lvniVYnIeNLEiGUdnvRlMV1ZJgZ9kMSUM94wh1u5i ID54fb5VxI1EMgTwgUCFnDKj/2fAkOK3ppz1/RrpUGM2i5NV4Qt7xB+94qt8AhCN5vPxOt+95H/ TTbmmKc8EkfDAY+w6g7c0ZYbPTbAXh7qXeVgn/rgVUZgMIJEBaMulX7/DeO7PZwr7ExTQhxX8zN nmOf6VqQzQ+/viW7GH/0tUTto84reExjmdlqWkVswcUSHByEjHSxoJ8oTgyLN1lH0YkxzV7y4zq YtC1Gu0v/7cFC2c+S7iN/SzD1FZTWLOZCbG41qEl0Y/U2Z4FsGBnNCCGzj98C+5FmLyafJOyMp4 w5tdqlVDLXJ0k7iDqWR6u1dB69Xszvt9GxLkft0mXeISdWE2A3mIZQ1/bHJQKTl36v06Hs0THNe K2/LhdBB7HHMBqCwsjICDKffZ1gtTjD1gQp17OoPUhhmTsHGKs2kAoQ0WumjFjO1gFdesj1SqMa yqyiW+nNfeyPpjN0EfmKgC0cGUDFeMqeVBI/N/dLfxoKRgmyS3fVR9uB1+B2uIN3vhOHx+6KIDo eUiZeGwlBjebDQBoDdvttF+IjIrKrxNfOdZi5yrGtosSJEtLCUCuTARSwFxmpM8a3OrqhgzflDE DYu6iCSepDojWdr740UUCFruft+8ILQ/W5z2HflfIJ65t+kkijEHor0nd7aZLNIlQZ0XURsxEhX W4oPh6DZn1z+pD83HOjGfMNWlVZ+7bs8jra8WjFd455M/Zn4NE2HIbKOpyFYQapqjh3jUly354 X-Received: by 2002:a05:6871:6687:b0:439:a524:a29d with SMTP id 586e51a60fabf-4a9072ccffamr6663890fac.1.1793649333719; Mon, 02 Nov 2026 11:55:33 -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 586e51a60fabf-4a921353dcfsm7809249fac.0.2026.11.02.11.55.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 11:55:33 -0800 (PST) From: James Hilliard Date: Mon, 02 Nov 2026 12:55:23 -0700 Subject: [PATCH v6 8/8] arm64: dts: allwinner: a523: describe the UART integration X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: <20261102-submit-h616-uart-fifo-v1-v6-8-25afcb346b0c@gmail.com> References: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> In-Reply-To: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> To: Andy Shevchenko , =?utf-8?q?Ilpo_J?= =?utf-8?q?=C3=A4rvinen?= , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland 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 X-Mailer: b4 0.15.2 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.19 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.105.105.114: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)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2]; TAGGED_RCPT(0.00)[dt]; RCVD_VIA_SMTP_AUTH(0.00)[]; DBL_PROHIBIT(0.00)[0.38.41.136:email]; DBL_BLOCKED_OPENRESOLVER(0.00)[tor.lore.kernel.org:helo,tor.lore.kernel.org:rdns,0.38.39.48:email,0.38.37.160:email,0.38.44.168:email,0.31.71.208:email,0.38.40.192:email,0.38.43.24:email]; RCPT_COUNT_TWELVE(0.00)[16]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; R_SPF_ALLOW(0.00)[+ip4:172.105.105.114]; FREEMAIL_TO(0.00)[linux.intel.com,linuxfoundation.org,kernel.org,gmail.com,sholland.org]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-27086-noreply=patchwork.local]; MID_RHS_MATCH_FROM(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.105.105.114:from] X-Rspamd-Queue-Id: C32381C4218 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX Identify the Allwinner UART integration on all eight CPUX controllers. The specific compatible selects FIFO-depth discovery through FCC and the Allwinner receive-trigger mapping. Each controller supplies its own depth, so the same compatible covers the different FIFO capacities. Retain snps,dw-apb-uart as a fallback. The common SoC description supplies these UART nodes to the A527 and T527 boards as well. Signed-off-by: James Hilliard --- arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi index 85ef492ffeae..23340b9f58cb 100644 --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi @@ -390,7 +390,7 @@ wdt: watchdog@2050000 { }; uart0: serial@2500000 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun55i-a523-uart", "snps,dw-apb-uart"; reg = <0x02500000 0x400>; interrupts = ; reg-shift = <2>; @@ -403,7 +403,7 @@ uart0: serial@2500000 { }; uart1: serial@2500400 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun55i-a523-uart", "snps,dw-apb-uart"; reg = <0x02500400 0x400>; interrupts = ; reg-shift = <2>; @@ -416,7 +416,7 @@ uart1: serial@2500400 { }; uart2: serial@2500800 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun55i-a523-uart", "snps,dw-apb-uart"; reg = <0x02500800 0x400>; interrupts = ; reg-shift = <2>; @@ -429,7 +429,7 @@ uart2: serial@2500800 { }; uart3: serial@2500c00 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun55i-a523-uart", "snps,dw-apb-uart"; reg = <0x02500c00 0x400>; interrupts = ; reg-shift = <2>; @@ -442,7 +442,7 @@ uart3: serial@2500c00 { }; uart4: serial@2501000 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun55i-a523-uart", "snps,dw-apb-uart"; reg = <0x02501000 0x400>; interrupts = ; reg-shift = <2>; @@ -455,7 +455,7 @@ uart4: serial@2501000 { }; uart5: serial@2501400 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun55i-a523-uart", "snps,dw-apb-uart"; reg = <0x02501400 0x400>; interrupts = ; reg-shift = <2>; @@ -468,7 +468,7 @@ uart5: serial@2501400 { }; uart6: serial@2501800 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun55i-a523-uart", "snps,dw-apb-uart"; reg = <0x02501800 0x400>; interrupts = ; reg-shift = <2>; @@ -481,7 +481,7 @@ uart6: serial@2501800 { }; uart7: serial@2501c00 { - compatible = "snps,dw-apb-uart"; + compatible = "allwinner,sun55i-a523-uart", "snps,dw-apb-uart"; reg = <0x02501c00 0x400>; interrupts = ; reg-shift = <2>;