From patchwork Mon Nov 2 19:55:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 450 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 DC55B1C3410 for ; Mon, 2 Nov 2026 21:56:19 +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-27078-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-27078-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 F19EB68605 for ; Mon, 2 Nov 2026 19:56:18 +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=1793649326; b=HRJrXCDNGyZLqwdxXrRh6usZLMXp0xep/RGR2bTKCf82aAT2vxdNt+TqGpXRfv+lEs3C gYsu0rpmUXRRPD27IfYn2mXP9d8+INS6SB4tQ2thu5R0O4iM0rH6ovOjtokCR0Q+SnInE ++VMq7C5xT+c01XdXij37jWmLJ5x9yXS0wF/FH2ZaPNN9P2sOz8KevI6bwYGsDFsktYVa Hu3txk4g7Uo3l+0YqYnE0mpl3/m+ZYP2rf70B+ktM1OPG/g26jdq6XABxAK3RmJRTaWZE UV8wXAOPqR3AwARUg3RuflkfBuWGWgU3VmrxBjguyjvG2OnpMx2y4+14K6wVGsq8Fig== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649326; 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:Subject:Date:Message-Id: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer; bh=0KRhRBW/tJdqO8vlvv8X/WEzikIgPAarAzv+Pyz/Urw=; b=1iS4f0rD9K/xhbZsPhE8HAtBU2Dgf9FVHQj5XMmv7mwVz6OOQa1kvFTDx/8OvDHIYz2P PQgLwU8SoWNjICWCCcDSHR0QAO90/EejOxyLhu4NdROTXQeqoE2jcst/Z9GsHlcNvhmf5 83qvxPxPsBlCDLM35W1mg6d9S6nYfPhROYufkk9kOa07tYjw/5Vx0w4qN7sM/nSCaQ538 +Wkj54EW5zFcz2fp9Gnkk4/65sVNXquzqFZm9Pq4379lGUYEfcdhsGSV0xQEsuqwi9MzI jt5yX9W4K5bVBWqEUylBYsCVIv80zOAPltg8wwhTtS0jwu0L0UkC9WTq0RTgL8MD0Lw== 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=MV3oxifL; 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 70F34606A335; Mon, 2 Nov 2026 19:55:26 +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=MV3oxifL 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=1793649326; b=HeNx2msza2WmB2AilPiNbzBs50ZmlDK7pByjKXv3mukdmaan5puZEH1i4CManMt0pivB jZ3HkpwB93d2Aw5CyYTItgRYTf1z09yy7XfO6xTrO4Aw9na5SWtK63VUEJ4KJn8UBKNyT Dfm4R2wZERpQ/IOxcDsWl5nv6yQMTRTCt9IUDf2VJcgK4yFK+Vxco8xz3VleW+hhjsiQi cnFNRfHK+lZ4yjAmAx+2Bn4X8HY2d4k8ndUyyxj4R/kB4sOI84g/zKWRzecbXOoqUs0LS dNHnMxJCHRgClBsOLiuMRu/wuV/WCWfMutrZYQFz7OVUdEgGvdBp4wa9An3FWYQpV0A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793649326; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer; bh=0KRhRBW/tJdqO8vlvv8X/WEzikIgPAarAzv+Pyz/Urw=; b=JuVIbt5n9EeyDHvggtnImq0g1y4M3HpIhb+v3V6DncEI21+yn7UPaz5TMKEXKJ86HX0t VdTokPFEapx3pfaxKoghUUXTcxkDVn1dDnu/uhY+geElZ07zE/etjbq6WPIKEM7frS20w p5QISx3yPJoi1OM7gYG4ZxLinOPCe46sxx0WETUGkikRu7CPt9Jvi7ZukLxrNRlfqrlIh 65M3hj/QbPj9DTTFjIY6cZ7lOyFgRqG98bQkb20HFYI057+1fOA6QShm2y9J9peWJ1od7 tmeygN2WsmJVFiK3w+xY322+Pnm79E6cYX8dnG3+rn2FWuDQTk268TcR/Pw3VYr829A== 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=MV3oxifL; 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 E1CC6606A32D for ; Mon, 2 Nov 2026 19:55:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E1CC6606A32D 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-48ed188ee81so1739822fac.1 for ; Mon, 02 Nov 2026 11:55:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793649325; x=1794254125; darn=lists.linux.dev; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=0KRhRBW/tJdqO8vlvv8X/WEzikIgPAarAzv+Pyz/Urw=; b=MV3oxifL4GUK89Urh47Ltyo5Wm8fDHUpBRAFyJvtEJGbYnLulydeJhOVqBUQN6f5KX qC30I450PLNj0OM8dRnrbnJPzh9sQ9m2fo1LTfAslq7Xny/M3Ka2cUaPS7qLplgAy2+P f6SAk2t8UxIxJ3tqKlgibL2DO3vRyFZZkAOU2xI2VZ2Lkwpux95Zu+E6yI6VkQH4q4Wn iny4mpesHRP/oad+7mu8AslMv1SC9SitvXb0IdO+I+KHG12WoUezP58n/HqUla2uB6RM gxeMIxXPqQFVBUkUUbFdUidNbU2WDpnMfm3ZCqmvl5lNSKHpR8HjBHPo6xGhw9H6PfrS mPpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793649325; x=1794254125; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=0KRhRBW/tJdqO8vlvv8X/WEzikIgPAarAzv+Pyz/Urw=; b=njdZQQ8waOJrHxfkNIyGVzwX9kAtg3sX1UscsdL7M7PYaZMEb7pwiiJj6kCIVEOfSF 3ET5PnO/iiuZ75H5DbzMfx5v7MgoHYHwcLAw9RCfAOJIITIC6YMk6SRq7QCw9AkdsZSy PG00QG4jrlicA5JdH1Bcbn9+y8YH/UUFZaoYp72GpmBqTl2PSPgP2fDAb/dIAEyyt7Mp HA8ALPJa5gih1klTfRgxT09DUJhrYf9P5Sj9cnzQ5f5LSsPrLIVBeQFtPFprp8feZHrK 1bXy2JpHb+sOJWvdlkpsQZmk220X2gAMx03c/J9HfxjyVF3PRqryiiAnQeHa5k3WIStq YP6g== X-Forwarded-Encrypted: i=1; AKwUvBxDj+HIxXi2H/JjRM9YxVPiTEGZomss90neJvyZZJyS86Uq1i9SBtUETbVADC8l1XxCPnHjq1g1UuwSGA==@lists.linux.dev X-Gm-Message-State: APuU4Z/96swvUITy3/R9N0RdA6qE6Hyc7+N4n8N019BDjhOsSP3vdOBL ulSyLd0pjFSLg2wvwFX1shM9Kz5rfDu5kRhajdl1RTVeThrW7GuT/rMk X-Gm-Gg: AYBFou2g7DyJNyvtGQXoYBd7PLd5SsyulQzJaGAmHTK0/BuqDEx+4nJiUmefjkrFdnh 5pvmE97C2M38wfkE31SdWcSOqRWXan0jerX/52zGN5mp5ynFM43HoAS9yDZlCn+y6Z8sLeYjH07 LsgkaELdiuVc3X1tZ9WZXI/x/Vcal2hjbo6LfbkZ4o1kySP0pJqJ9mJUYUqXDWh9HA0/XnBr8rb 8s3jELd86TBmPyWPy8Ke/Qpqc3LBzP7E5C935+xqBOWmvShoZY3Svm1qdnuOivCrM6ak2JasGsP dv64F80DHGY5C6Eib5eIvA5cdkv+yEjrmqK2Po3Gv6rij0Vxkb8eBh+37MkkBpVJSw4dGcinvlD jg36Ayvi1B4jnZhH+a4Pi5VIdkArK3Pv3mGZaY2mxAj1hHbF6Vr/ruCkX2HEnPl1MJsWKcgF7z0 rhJss+FvdB/5p5F9VXXbPhc4eAeFysi7z/GGMG7HnVjpIpDb1YETTZRuRpTyaaL0+byN7n/xiuU xAXEY9mouAIzgS7ts6IyigkhQeKWsFYzK9lVgEOmJ9bbfS10dNrlgWGxQNXE33T3hDxPCA3hHf0 KAR2/UFCW5D5Va8ghjZH/x4JEuT8whhlbq368m3OTHEah78KpNLCgZVeNsdiPr1uOpy4T7j/O/q pL2jGkxdr5+MKabRljFHJoXQ95tVUGjxvA9UJTcBkiirOTnf1sTPeO9ly2KNtzl9GGY6YR0+JUs ahAHjnTIPCdI8LSrI4k/H3FxrBIc/ohbrrfssE0hkAz3qYSrCIFuQ= X-Received: by 2002:a05:6870:1715:b0:48f:e137:d92f with SMTP id 586e51a60fabf-4a907847e58mr6622301fac.58.1793649324605; Mon, 02 Nov 2026 11:55:24 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 11:55:24 -0800 (PST) From: James Hilliard Subject: [PATCH v6 0/8] serial: 8250_dw: describe the Allwinner H616 and A523 UART configurations Date: Mon, 02 Nov 2026 12:55:15 -0700 Message-Id: <20261102-submit-h616-uart-fifo-v1-v6-0-25afcb346b0c@gmail.com> 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 X-B4-Tracking: v=1; b=H4sIAAAAAAAC/43SX0/CMBAA8K9C9mxN/3cQY/wehodrd4UaxrQdE 0P47t4A4yRKTPpyafu7Xu8OVcGcsFSL2aHKOKSSui0F9m5WhTVsV8hSQ3ElubSCS8nKzrepZ2s rLNtB7llMsWODYMFADE1EEzyv6Pprxpj2J/p5eY7p7guGfvTGE+tU+i5/nHIPYjz3lUb9nYYWZ 6hBeUCJHuqnVQtpcx+6thrTDPK/kCQIIjdzZbi2ylxDagrpG5AiSNY2BuHroIK4hvQUcjcgTVC jHHJRx4aDvYbMFJrfgAxBRnmtFKD38ccfHc+9yPi2o2735wZVHgoy2ieQuu+1N1pFELUzTs4dB Gcs2IgWrY6GW+9qrWFsYoulwGlMFrOH6xrH4YINq6Whwt5Zk2jAunypVTAtnNDgDAoD3098/Iv Vv7F53+e0YpsUsU8tXkZEMKcEPbIxnKtmai+Px09sO8Gv9QIAAA== X-Change-ID: 20261022-submit-h616-uart-fifo-v1-c5afcdfe5cb0 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)[]; ARC_ALLOW(-1.00)[subspace.kernel.org:s=arc20261015:i=2]; DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; R_SPF_ALLOW(-0.20)[+ip4:172.105.105.114:c]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; BLOCKLISTDE_FAIL(0.00)[172.105.105.114:query timed out]; FORGED_SENDER_MAILLIST(0.00)[]; RBL_SEM_FAIL(0.00)[172.105.105.114:query timed out]; FROM_HAS_DN(0.00)[]; DBL_FAIL(0.00)[tor.lore.kernel.org:query timed out]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com,oss.qualcomm.com]; RCPT_COUNT_TWELVE(0.00)[17]; TAGGED_RCPT(0.00)[dt]; SURBL_MULTI_FAIL(0.00)[linux.dev:query timed out,sholland.org:query timed out,infradead.org:query timed out,msgid.link:query timed out,linuxfoundation.org:query timed out,intel.com:query timed out]; SPAMHAUS_FAIL(0.00)[172.105.105.114:query timed out]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[jameshilliard1@gmail.com,linux-sunxi@lists.linux.dev]; RBL_VIRUSFREE_UNKNOWN_FAIL(0.00)[172.105.105.114:query timed out]; FREEMAIL_TO(0.00)[linux.intel.com,linuxfoundation.org,kernel.org,gmail.com,sholland.org]; FREEMAIL_FROM(0.00)[gmail.com]; RBL_SENDERSCORE_FAIL(0.00)[172.105.105.114:query timed out]; TO_DN_SOME(0.00)[]; SEM_URIBL_UNKNOWN_FAIL(0.00)[linux.dev:query timed out,sholland.org:query timed out,intel.com:query timed out,msgid.link:query timed out,linuxfoundation.org:query timed out,infradead.org:query timed out]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-27078-noreply=patchwork.local]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: DC55B1C3410 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX Allwinner UARTs use FIFO-relative receive thresholds and an optional register layout that differs from the generic DesignWare integration. Describe the H616 and A523 integrations through dedicated compatibles and common sunxi setup helpers. H616 has fixed 256-byte FIFOs without a readable FIFO-depth register. A523, A527 and T527 have different depths across their UARTs and report each port's depth in the FIFO Clock Control register. Use a fixed platform-data depth when provided, otherwise read FCC in the sunxi setup callback. Derive the transmit load and receive-trigger table from that depth. This keeps one implementation of the common 1-byte, quarter-full, half-full and depth-minus-two mapping for both fixed-depth and runtime-discovered ports. Keep PORT_16550A, configure automatic flow control, preserve BUSY-safe integer divisor programming and keep the UART clock gate enabled during termios changes. The sunxi setup uses PIO. The series first introduces platform setup callbacks and a shared RX trigger conversion helper, then adds the binding, driver and SoC DTS changes for each integration. Based on tty-next at 6b4b543fa187 with the posted RX trigger callback-lifetime fix [0] and DW BUSY-safe divisor fix v4 [1]. Platform setup runs before installing the BUSY-safe divisor setter. [0] https://lore.kernel.org/r/20261024-submit-serial-8250-rxtrig-lifetime-v1-v1-1-731b78d5003d@gmail.com [1] https://lore.kernel.org/r/20261027-submit-serial-8250-dw-divisor-v1-v4-1-41714a75e15a@gmail.com Assisted-by: Codex:gpt-6-astra Signed-off-by: James Hilliard Tested-by: Arun Iyengar --- Changes in v6: - Export the shared RX trigger conversion in the SERIAL_8250 namespace and explain how driver callbacks avoid new legacy port types. - Lead the H616 trigger description with the FIFO-relative mapping and include array_size.h explicitly. - Name the trigger divisors and full-FIFO margin, reusing them for FCC depth validation. Explain that the upper bound follows the current byte-sized 8250 interface and can be widened with it. - Describe the fixed-depth platform-data field independently of sunxi. - Carry Ilpo's setup/helper review tags and Krzysztof's A523 binding ack. - Link to v5: https://patch.msgid.link/20261029-submit-h616-uart-fifo-v1-v5-0-53b433aebbf8@gmail.com Changes in v5: - Reject FIFO depths that cannot produce positive, byte-sized RX trigger thresholds, report the invalid size and propagate setup errors to probe. - Add the A523 UART compatible and use it for the shared CPUX UART nodes, including those inherited by the A527 and T527 boards. - Read the FIFO depth from FCC when sunxi platform data has no fixed depth, preserving the fixed H616 configuration and FCC clock controls. - Explain why the per-port trigger table is derived from the FIFO depth; use the same sunxi helper for the FCC-discovered A523-family ports. - Move the shared RX trigger conversion helper into 8250_port.c and export it, following Ilpo's review; retain Andy's review tags. - Use FIELD_PREP() and an intermediate trigger value when building the sunxi table, following Ilpo's review. - Select the DMA setup helper directly for the 64-bit-only Octeon platform and match the single-line comment style, following Andy's review. - Carry Krzysztof's Acked-by for the unchanged H616 binding addition. - Link to v4: https://patch.msgid.link/20261027-submit-h616-uart-fifo-v1-v4-0-d37e018fd0a6@gmail.com Changes in v4: - Introduce common Allwinner setup helpers with the fixed FIFO depth supplied by compatible-specific platform data. - Rebase onto tty-next at 6b4b543fa187 and the posted DW divisor v4 fix, installing the BUSY-safe setter after platform setup. - Use an early return for FIFO-less DMA setup, following Andy's review. - Default to generic setup when platform data has no setup callback. - Select Octeon's optional-register discovery with IS_ENABLED() in its setup helper, preserving the existing 32-bit and 64-bit behavior. - Extract the shared 8250 bytes-to-FCR conversion, including the unsupported-table check, into a preparatory patch and use it for H616, following Andy's review. - Set the fixed 256-byte FIFO depth in H616 platform data and omit fifo-size from its binding and DTS, following Krzysztof's review. - Precompute the Allwinner RX thresholds during setup and retain the sunxi FIFO-depth helper for filling the table. Use named FCR encodings in the helper, following Jiri's review. - Share threshold-table initialization and callback assignment through a sunxi RX trigger setup helper. - Group and comment the H616 trigger and RS485 setup. - Link to v3: https://patch.msgid.link/20261024-submit-h616-uart-fifo-v1-v3-0-286fc1b8c3c1@gmail.com Changes in v3: - Introduce a platform-data setup callback in a preparatory patch, replacing skip_autocfg and preserving the existing Octeon setup. - Describe each H616 UART's FIFO capacity with the standard fifo-size DT property and use the value already read by uart_read_port_properties(). - Derive the Allwinner RX trigger thresholds from the FIFO depth. - Use an unsigned trigger index and conditional runtime PM guard, preserving error propagation when the device cannot resume. - Rebase onto tty-next, replacing the earlier DMA prerequisites with the posted RX trigger callback-lifetime fix. - Separate DMA enablement into follow-up work, retaining PIO operation for the H616 FIFO configuration. - Link to v2: https://lore.kernel.org/r/20261023-submit-h616-uart-fifo-v1-v2-0-af0593504635@gmail.com Changes in v2: - Keep PORT_16550A and set the FIFO size, transmit load and capabilities during setup, following Andy's review. - Select H616 setup through the matched platform-data pointer and remove the type and DMA burst-size platform-data members. - Use get_rxtrig/set_rxtrig for the 1/64/128/254-byte receive thresholds, with port locking and runtime PM around register updates. Keep the standard half-full FCR default, selecting 128 bytes on H616. - Advertise UART_CAP_AFE so CRTSCTS enables hardware automatic flow control. - Rebase onto next-20261023 and declare the posted sun6i pause/lifetime fixes and their prerequisites for DMA enablement. - Link to v1: https://lore.kernel.org/r/20261023-submit-h616-uart-fifo-v1-v1-0-e4a3bae2eba8@gmail.com To: Andy Shevchenko To: Ilpo Järvinen To: Greg Kroah-Hartman To: Jiri Slaby To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Chen-Yu Tsai To: Jernej Skrabec To: Samuel Holland Cc: linux-kernel@vger.kernel.org Cc: linux-serial@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-sunxi@lists.linux.dev --- James Hilliard (8): serial: 8250_dw: select port setup through platform data serial: 8250: share the RX trigger conversion helper dt-bindings: serial: snps-dw-apb-uart: add Allwinner H616 serial: 8250_dw: configure the Allwinner H616 UART arm64: dts: allwinner: h616: describe the UART integration dt-bindings: serial: snps-dw-apb-uart: add Allwinner A523 serial: 8250_dw: discover Allwinner A523 FIFO depths through FCC arm64: dts: allwinner: a523: describe the UART integration .../bindings/serial/snps-dw-apb-uart.yaml | 2 + arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 12 +- arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 16 +- drivers/tty/serial/8250/8250.h | 2 + drivers/tty/serial/8250/8250_dw.c | 172 +++++++++++++++++++-- drivers/tty/serial/8250/8250_port.c | 21 ++- 6 files changed, 192 insertions(+), 33 deletions(-) --- base-commit: 6b4b543fa18757297ac756a6fe6e64f506b7844a change-id: 20261022-submit-h616-uart-fifo-v1-c5afcdfe5cb0 prerequisite-message-id: <20261027-submit-serial-8250-dw-divisor-v1-v4-1-41714a75e15a@gmail.com> prerequisite-patch-id: d8219673210dac82d3adab41578ff2f76f5862c9 prerequisite-message-id: <20261024-submit-serial-8250-rxtrig-lifetime-v1-v1-1-731b78d5003d@gmail.com> prerequisite-patch-id: 9a9395c715c2bf7bbcae5bdd16a339d7f2af6269 Best regards, -- James Hilliard