From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0813A3845B0 for ; Fri, 24 Jul 2026 18:30:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784917824; cv=none; b=gIdlz/LbwS7pTNcaTRSa5D7S67HhpLvZa7DKmVQLgDp9HxP/nRlgQvwdEJlnIqXiSFoAhBAZVMSRqVG+Wmc1JSejtdoRKTlrdA7IemI02MlblPslZHDDDR/i1JjBG5ukbLVyU7DLyA7jEuEInhMgI98oo5QlYm4/Z2HOzgSI3SE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784917824; c=relaxed/simple; bh=vEWLGKEjbPeqn+JrSclqs8A/PUv6oQMDepAljrMFR6U=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=KaUR8NondZXjLnk1VfUMZTbmjNbZuZP/wwERcvdsvYc3BxQ88OxDsuJsLgIaZjy7A9+bu8JIuOZlc6o7JUqDJOOMOVrN7o5TIvwltQfpTv95bH6Yns3VOlPYhKKuOoN9JekxmHiL3LNSGPrRf3tcWgPTQsX0xb++yu3WWZ00t4w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nKJSC4VV; arc=none smtp.client-ip=209.85.221.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nKJSC4VV" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-47ddf7b09e5so775845f8f.1 for ; Fri, 24 Jul 2026 11:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784917821; x=1785522621; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=CTyim+3+s6xPpPDNa8YNRWmvmeAtgAU4Rem7Wi+YNIE=; b=nKJSC4VVJOM+PX+u2WuKHRtUTtO4ViJl1WUzQe6csRI+6g4WBphkDDTZpLrWplgaMD S4O8oiFmI4UnXvuImNckyu+UIpEE9GyatVWeOH6ONd9Xje9zI2j1lrLLqQz/vf5AnqnJ x7Ta3rx9uFKEqj7lkp5qoQtko8Q3cCeG32vH2qy1RR8PAdGV8luDAZaaIfYEGABi4kxb xK+ZRfzUMn5Aa8ph/gCNI5n4ejRPss3bz2eFlRE5ahxcQkjYIpra3eZ/IN4yG4/jcBDt IXphoinIIDWNP3DVnv0lKv+D3yJwdNAmyBAxJIIJxok/wEXrRaC5E6qxBlrh+DbqEIkg I81w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784917821; x=1785522621; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=CTyim+3+s6xPpPDNa8YNRWmvmeAtgAU4Rem7Wi+YNIE=; b=m0HucteNRcPZuBbiLIUq9RyBKot4u+of0v2BmTkpl8VGRq6bSr4prpwUsPKDAMdfS9 nmdaPNNIR1fUmEvoV+7E2GOlfeeutToT3+5ODg972Lxcm+1tTOUWyE3PJQu49KN8Q16d jgHNdzbT39PEKBJqzyLXFIjVLu8n0YiUjG+LvJwqQW4BT80Gl8jLIsHC+n8QKd5CmE3Y ozx1XzPdE/OmlE+sxqx7/1T3FTZz9rw0snrfDv6MtsN5WymHiBBf0F2M757TJwy3k87c nrOw/DTSNoYgrcgL81KGP1h0MOOkNqtu5OtERmZ0KWYwy54XhjQRdf3uKgQTyJqfccVq tfgA== X-Forwarded-Encrypted: i=1; AHgh+Rq+ZKR5Y4WKx5SZUjfB7oOlyIPFKOrG6U8ar0qxj0f4NxN5j2ZtDKCBwmhDggFTDpiKR3emnD/sHnA1QD8=@vger.kernel.org X-Gm-Message-State: AOJu0YxazSJjrfOnPwvGGiMXBeoKF14I91FiQEruBli9G54FREbZe6Mx ql3PeZHWtCWYqszK84POdv4X6mg/KYv4wiEfWGPgazqx3F9tG8AcfsUL X-Gm-Gg: AR+sD115Zj0Z1hN9nKNDkOFhGsBr4WSSwOW3LaDzKS58g2KXXtWzt+p79/BDEz9xxBk lxlMPgzYpywPFNBVV3wxTdlfvC6uQxN1Fk2vuLmXcFPqaDdWZ5qqPFOVZ79hCQ0EyOZ3zkfhgmv cNLNK/uHiCs3Efv6cd/AczamAYlWsqhKJxzFMxt/joMWSDXrPsfP8rb7CmhRMAPle3DlNtuyZrp BcilLBvRMs4m56QO5NngahOkqQk4KPffR5uFnlu9ad8fXKjwx6+SE7IOX+IIcYCngb4yIPkZBTM bD2fGtRVZyc0gcIMGhUhHp0Uk7e8nlnM65rEWKwhXOsAhcuFsoU85Xz0eE6+2HVJGRoQNg2lajC Er6teRPj0siPwtG4N5TCOer4NinJ/OZ8Tf3xRlCWQ/tpYx1fO/slUeZpvw0sO3bXpinGlwduucD DP9l9l1sej+jqau+gvyDktrNngncNjBnkqgmePhNeT2ZL5ZdMGrTeWYmQ/gnCfnEdRG9IRsAKIf HI= X-Received: by 2002:a05:6000:1ac5:b0:47f:81c4:36b4 with SMTP id ffacd0b85a97d-47f8da6b7e7mr11367085f8f.14.1784917821051; Fri, 24 Jul 2026 11:30:21 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-87-3-249-180.retail.telecomitalia.it. [87.3.249.180]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-47f85c531afsm26396571f8f.24.2026.07.24.11.30.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2026 11:30:20 -0700 (PDT) From: Christian Marangi To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Andy Shevchenko , Benjamin Larsson , Christian Marangi , John Ogness , Peng Zhang , Jacques Nilo , Rong Zhang , Gerhard Engleder , Jiaxun Yang , Randy Dunlap , Binbin Zhou , Lubomir Rintel , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v2 0/2] serial: 8250: Add AN7581 UART support Date: Fri, 24 Jul 2026 20:30:04 +0200 Message-ID: <20260724183007.188172-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is a new version of [1] to support UART driver for Airoha SoC. One additional function was needed serial8250_get_baud_rate() for the driver to work correctly for baud rate calculation. While at it also try to clarify a long standing issue with new UART driver when adding new ids for uart_config[]. [1] https://lore.kernel.org/all/20250209210241.2622309-1-benjamin.larsson@genexis.eu/ Changes v2: - Drop intermediate patch - Use .set_divisor OPs - Use div_u64 instead of / 40 for 32 bit overflow - Drop dedicated match table and use compatible for type Changes compared to [1]: - Fix all formal error - Use better compatible names - Drop unneeded header - Drop usage of irq (it's filled by the generic function) - General code cleanup and reorg - Split to patch and add the UAPI map patch Benjamin Larsson (1): dt-bindings: serial: 8250: Add Airoha compatibles Christian Marangi (1): serial: 8250: Add Airoha SoC UART and HSUART support .../devicetree/bindings/serial/8250.yaml | 5 + drivers/tty/serial/8250/8250.h | 6 + drivers/tty/serial/8250/8250_airoha.c | 190 ++++++++++++++++++ drivers/tty/serial/8250/8250_port.c | 16 ++ drivers/tty/serial/8250/Kconfig | 11 + drivers/tty/serial/8250/Makefile | 1 + 6 files changed, 229 insertions(+) create mode 100644 drivers/tty/serial/8250/8250_airoha.c -- 2.53.0