public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: "Stefan Dösinger" <stefandoesinger@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Cc: Linus Walleij <linusw@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Rob Herring <robh@kernel.org>
Subject: [PATCH v3 7/8] ARM: dts: Declare UART1 on zx297520v3 boards
Date: Wed, 15 Apr 2026 00:12:14 +0300	[thread overview]
Message-ID: <20260414211215.152850-8-stefandoesinger@gmail.com> (raw)
In-Reply-To: <20260414211215.152850-1-stefandoesinger@gmail.com>

This is the UART that sends Uboot messages and is accessible via pins on
the boards I have seen so far. UART0 and UART2 exist as well, but don't
have pins enabled by the bootloader. They will be added later.

Signed-off-by: Stefan Dösinger <stefandoesinger@gmail.com>
---
 arch/arm/boot/dts/zte/zx297520v3.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm/boot/dts/zte/zx297520v3.dtsi b/arch/arm/boot/dts/zte/zx297520v3.dtsi
index ecd07f3fb8b3..09fbb1d052e3 100644
--- a/arch/arm/boot/dts/zte/zx297520v3.dtsi
+++ b/arch/arm/boot/dts/zte/zx297520v3.dtsi
@@ -6,6 +6,10 @@ / {
 	#address-cells = <1>;
 	#size-cells = <1>;
 
+	aliases {
+		serial1 = &uart1;
+	};
+
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
@@ -57,5 +61,23 @@ timer {
 			 */
 			arm,cpu-registers-not-fw-configured;
 		};
+
+		/* The UART clock defaults to 26 mhz. It will be replaced when the zx29 clock
+		 * framework is added.
+		 */
+		uartclk: uartclk: clock-26000000 {
+			#clock-cells = <0>;
+			compatible = "fixed-clock";
+			clock-frequency = <26000000>;
+		};
+
+		uart1: serial@1408000 {
+			compatible = "arm,pl011", "arm,primecell";
+			arm,primecell-periphid = <0x001feffe>;
+			reg = <0x01408000 0x1000>;
+			interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&uartclk>;
+			clock-names = "apb_pclk";
+		};
 	};
 };
-- 
2.52.0



  parent reply	other threads:[~2026-04-14 21:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-14 21:12 [PATCH v3 0/8] Add support for ZTE zx297520v3 Stefan Dösinger
2026-04-14 21:12 ` [PATCH v3 1/8] ARM: zte: Add zx297520v3 platform support Stefan Dösinger
2026-04-14 21:12 ` [PATCH v3 2/8] dt-bindings: arm: Add zx297520v3 board binding Stefan Dösinger
2026-04-15  6:45   ` Krzysztof Kozlowski
2026-04-14 21:12 ` [PATCH v3 3/8] ARM: dts: Add D-Link DWR-932M support Stefan Dösinger
2026-04-14 21:12 ` [PATCH v3 4/8] ARM: zte: Add support for zx29 low level debug Stefan Dösinger
2026-04-14 21:12 ` [PATCH v3 5/8] ARM: dts: Add an armv7 timer for zx297520v3 Stefan Dösinger
2026-04-14 21:12 ` [PATCH v3 6/8] ARM: zte: Bring back zx29 UART support Stefan Dösinger
2026-04-14 21:12 ` Stefan Dösinger [this message]
2026-04-14 21:12 ` [PATCH v3 8/8] ARM: defconfig: Add a zx29 defconfig file Stefan Dösinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260414211215.152850-8-stefandoesinger@gmail.com \
    --to=stefandoesinger@gmail.com \
    --cc=arnd@arndb.de \
    --cc=krzk+dt@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox