[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250325141311.758787-5-emil.renner.berthing@canonical.com>
Date: Tue, 25 Mar 2025 15:13:06 +0100
From: Emil Renner Berthing <emil.renner.berthing@...onical.com>
To: Pinkesh Vaghela <pinkesh.vaghela@...fochips.com>,
Pritesh Patel <pritesh.patel@...fochips.com>,
Min Lin <linmin@...incomputing.com>
Cc: Samuel Holland <samuel.holland@...ive.com>,
Linus Walleij <linus.walleij@...aro.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Alexandre Ghiti <alex@...ti.fr>,
Bartosz Golaszewski <brgl@...ev.pl>,
linux-gpio@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org
Subject: [RFC PATCH 4/4] riscv: dts: eswin: Add HiFive Premier UART pin control
Add pin control for UART0 and UART2 in the HiFive Premier P550 device
tree.
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@...onical.com>
---
.../dts/eswin/eic7700-hifive-premier-p550.dts | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts b/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts
index 131ed1fc6b2e..c278695dcb2d 100644
--- a/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts
+++ b/arch/riscv/boot/dts/eswin/eic7700-hifive-premier-p550.dts
@@ -20,10 +20,56 @@ chosen {
};
};
+&pinctrl {
+ uart0_pins: uart0-0 {
+ tx-pins {
+ pins = "UART0_TX";
+ function = "uart";
+ bias-disable;
+ drive-strength-microamp = <6700>;
+ input-disable;
+ input-schmitt-disable;
+ };
+
+ rx-pins {
+ pins = "UART0_RX";
+ function = "uart";
+ bias-disable;
+ drive-strength-microamp = <6700>;
+ input-enable;
+ input-schmitt-disable;
+ };
+ };
+
+ uart2_pins: uart2-0 {
+ tx-pins {
+ pins = "UART2_TX";
+ function = "uart";
+ bias-disable;
+ drive-strength-microamp = <6700>;
+ input-disable;
+ input-schmitt-disable;
+ };
+
+ rx-pins {
+ pins = "UART2_RX";
+ function = "uart";
+ bias-disable;
+ drive-strength-microamp = <6700>;
+ input-enable;
+ input-schmitt-disable;
+ };
+ };
+};
+
&uart0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_pins>;
status = "okay";
};
&uart2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart2_pins>;
status = "okay";
};
--
2.43.0
Powered by blists - more mailing lists