From nobody Thu Apr 9 10:33:16 2026 Received: from va-2-30.ptr.blmpb.com (va-2-30.ptr.blmpb.com [209.127.231.30]) (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 DA74837AA88 for ; Sun, 15 Mar 2026 18:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.127.231.30 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773600192; cv=none; b=JVd/VAIQvjOy0jlDG9sU9hZoK4YCDO9A9UlrIaWE/seLuO4qXtLFyc5Vk58U8dXoZWLad4OxwEx0+axZew9XSJpj7yx4Gryz0chFr+nUjuGEEdRKGgydkMOoCWjBDG1+Fxf5EKEKAFvgl6ZUQ/MthmgqTTE6Ss1fYb4MQuGALF0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773600192; c=relaxed/simple; bh=q5xIUKZReGhegwzVm5wpFVFK6UdQUvqkkcucwpyLAKU=; h=To:References:Cc:Date:Message-Id:Content-Type:Mime-Version:From: Subject:In-Reply-To; b=R8HhE6dTUL6Dl+9qDh+Mzq+KJy0foujYDWzACeV0U6m2xi4ylKXExclgFCFdWfrgaKkTeKxyRO+0wR4Ywql/qCdZB5qDGFEkdqpKbL//m8REAC9MaLhMgr9gBjsngwhRlNgjdbFLUyrA4rP8iubSRJzN3dMRzoNo8mG5spnp/lk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.cipunited.com; spf=pass smtp.mailfrom=oss.cipunited.com; dkim=pass (2048-bit key) header.d=oss.cipunited.com header.i=@oss.cipunited.com header.b=EH3pQm2s; arc=none smtp.client-ip=209.127.231.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.cipunited.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.cipunited.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oss.cipunited.com header.i=@oss.cipunited.com header.b="EH3pQm2s" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=feishu2303200042; d=oss.cipunited.com; t=1773600186; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=Mlb8YeoNc+25qTnDUkz1Hsif+FZNdijfFkl8bVFYpk8=; b=EH3pQm2s/vUmyzDBGrCTHbyAaUaqNq+II1oTccDNIWiR0lLeBdVZ+GXFpI5k1vOfDPOm4k YVhX2m/K+bbAGmD7mqrQl/oHaS+m4KTe6VCyzjQkQI42RbNxyj4zx4IJaQqREv9iEzY3xo 2oOaUwExPfFtXVtzK2N5+lasOKTmWoppFv3Bk4MICARsF98pnN94+UAV9NIdVvgxKJ1bYT mXVTEf4LPj9iQoDjWzT4YT5bI18uYnQo3+GhtVLdGCReqyrRLiBkXiy8ofhS3Q0B8ul2Qc pAHsDrfvojJquK58lAfKLqjLYM8ZjFc0QhK8k9WJ7owJjnEWySUcR+mKPDyggg== To: "Greg Kroah-Hartman" , "Jiri Slaby" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Thomas Bogendoerfer" , "Huacai Chen" , "Jiaxun Yang" References: <20260315184301.412844-1-rongrong@oss.cipunited.com> X-Mailer: git-send-email 2.53.0 Cc: "Rong Zhang" , , , , , "Yao Zi" , "Icenowy Zheng" , "Rong Zhang" , "Krzysztof Kozlowski" Date: Mon, 16 Mar 2026 02:42:56 +0800 Message-Id: <20260315184301.412844-2-rongrong@oss.cipunited.com> Received: from tb ([223.88.91.90]) by smtp.feishu.cn with ESMTPS; Mon, 16 Mar 2026 02:43:04 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Lms-Return-Path: Content-Transfer-Encoding: quoted-printable X-Original-From: Rong Zhang From: "Rong Zhang" Subject: [PATCH v2 1/2] dt-bindings: serial: 8250: Add Loongson 3A4000 uart compatible In-Reply-To: <20260315184301.412844-1-rongrong@oss.cipunited.com> Content-Type: text/plain; charset="utf-8" The UART controller on Loongson 3A4000 is compatible with Loongson 2K1500, which is NS16550A-compatible with an additional fractional frequency divisor register. Add loongson,ls3a4000-uart as compatible with loongson,ls2k1500-uart. Acked-by: Krzysztof Kozlowski Signed-off-by: Rong Zhang Reviewed-by: Jiaxun Yang --- Documentation/devicetree/bindings/serial/8250.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/8250.yaml b/Documenta= tion/devicetree/bindings/serial/8250.yaml index 73851f19330d..1d1f2a22776c 100644 --- a/Documentation/devicetree/bindings/serial/8250.yaml +++ b/Documentation/devicetree/bindings/serial/8250.yaml @@ -179,6 +179,7 @@ properties: - const: ns16550a - items: - enum: + - loongson,ls3a4000-uart - loongson,ls3a5000-uart - loongson,ls3a6000-uart - loongson,ls2k2000-uart --=20 2.53.0 From nobody Thu Apr 9 10:33:16 2026 Received: from va-2-36.ptr.blmpb.com (va-2-36.ptr.blmpb.com [209.127.231.36]) (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 86B1637AA9E for ; Sun, 15 Mar 2026 18:43:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.127.231.36 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773600193; cv=none; b=VRurZ1BpiEqL1ktzKq4F/ElOc/LlsaJp3tiyMS4tLF6122VcjSqPzvtAdrw/HMCHBVxyvlyNQCbM33MuCRNZvmpZlvA3bsNFVKhDj5RTEZrD5kemrzek3fFBaHQsppv4BUIA3GqivN65KbUPGOU+2MqaGjbCyiIN2SPz2dp4Wg8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773600193; c=relaxed/simple; bh=jbTjQzTzKLODEEV96JhJ4cxD23a4Xp2o5KR4Cttb9Y0=; h=Content-Type:Message-Id:To:Cc:Date:From:Subject:Mime-Version: In-Reply-To:References; b=JkwoDBimpWRfwZI15AhBM8iXvqvKRS5lh9y0lCzYG5FH4xjubeMwQVvQVWKpVHQkhDuxpOTdqwVCPLD78LsUlkKyZP0OqrSKG1pFoTF8NW9KY0GPb1n+HhXy4FB4B/Mh/RwIqtGGbwH1wfxL7jIR7MHRaUCVIh6Ei/6KJkDYpyE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.cipunited.com; spf=pass smtp.mailfrom=oss.cipunited.com; dkim=pass (2048-bit key) header.d=oss.cipunited.com header.i=@oss.cipunited.com header.b=Stv1qOaN; arc=none smtp.client-ip=209.127.231.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.cipunited.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.cipunited.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oss.cipunited.com header.i=@oss.cipunited.com header.b="Stv1qOaN" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=feishu2303200042; d=oss.cipunited.com; t=1773600188; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=qjwiWQK9ND0M8GvhVewD7xqCAHpseSipYcAsLmniDM0=; b=Stv1qOaN5xlMtVE95n9ewVAkOyOckf7UbG6KCDO2lIN8IuwyUfWZWFUv0G2yl5HByYI3en 9GfaAJhFl4DYKE3z93tcGqlHZ1RIFBCaF1o/LHDoSvQE+STdjug3/PRWQXDa72q5mPpxCl FysC0gw8n9A1e5OKl+wvW31CKV6WJVD9AZA4y1s6scNe5p1FuMiXH5K5RwCBCcTvdgleVU c1xQkckdDcSONEmDcrvBSu2zf4YZ7bv2rlXUzjVDj0MTTvbEYYXC5qXN0NORetnSKJqT0f jt2dnjLfS1+yhi6i0L5KS8RIF7o4ml/5MFOXFb+fo+1wmVOKEDRIyzQ3G6PyeA== Message-Id: <20260315184301.412844-3-rongrong@oss.cipunited.com> X-Lms-Return-Path: X-Original-From: Rong Zhang To: "Greg Kroah-Hartman" , "Jiri Slaby" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Thomas Bogendoerfer" , "Huacai Chen" , "Jiaxun Yang" Cc: "Rong Zhang" , , , , , "Yao Zi" , "Icenowy Zheng" , "Rong Zhang" Date: Mon, 16 Mar 2026 02:42:57 +0800 X-Mailer: git-send-email 2.53.0 Received: from tb ([223.88.91.90]) by smtp.feishu.cn with ESMTPS; Mon, 16 Mar 2026 02:43:05 +0800 From: "Rong Zhang" Subject: [PATCH v2 2/2] serial: 8250: loongson: Enable building on MIPS Loongson64 Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 In-Reply-To: <20260315184301.412844-1-rongrong@oss.cipunited.com> References: <20260315184301.412844-1-rongrong@oss.cipunited.com> Content-Type: text/plain; charset="utf-8" Loongson 3A4000 is a MIPS-based Loongson64 CPU which also supports 8250_loongson (loongson-uart). Enable building on MIPS Loongson64 so that Loongson 3A4000 can benefit from it. Signed-off-by: Rong Zhang Reviewed-by: Jiaxun Yang --- drivers/tty/serial/8250/Kconfig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kcon= fig index fd4e8b6ab60d..fc3e58d62233 100644 --- a/drivers/tty/serial/8250/Kconfig +++ b/drivers/tty/serial/8250/Kconfig @@ -465,11 +465,12 @@ config SERIAL_8250_OMAP_TTYO_FIXUP config SERIAL_8250_LOONGSON tristate "Loongson 8250 based serial port" depends on SERIAL_8250 - depends on LOONGARCH || COMPILE_TEST + depends on LOONGARCH || MACH_LOONGSON64 || COMPILE_TEST help - If you have a machine based on LoongArch CPU you can enable - its onboard serial ports by enabling this option. The option - is applicable to both devicetree and ACPI, say Y to this option. + If you have a machine based on LoongArch CPU or MIPS-based Loongson + 3A4000 CPU you can enable its onboard serial ports by enabling this + option. The option is applicable to both devicetree and ACPI, say Y + to enable this option. If unsure, say N. =20 config SERIAL_8250_LPC18XX --=20 2.53.0