[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20260117-k230-reset-dt-v1-2-c8cbaef1e1ac@pigmoral.tech>
Date: Sat, 17 Jan 2026 18:06:23 +0800
From: Junhui Liu <junhui.liu@...moral.tech>
To: Philipp Zabel <p.zabel@...gutronix.de>,
Junhui Liu <junhui.liu@...moral.tech>, Conor Dooley <conor@...nel.org>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Paul Walmsley <pjw@...nel.org>, Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>, Alexandre Ghiti <alex@...ti.fr>
Cc: linux-kernel@...r.kernel.org, linux-riscv@...ts.infradead.org,
devicetree@...r.kernel.org
Subject: [PATCH 2/2] riscv: dts: canaan: add reset controller for K230
Add the reset controller node for the K230 SoC. Also add the reset
properties for all UART nodes.
Signed-off-by: Junhui Liu <junhui.liu@...moral.tech>
---
arch/riscv/boot/dts/canaan/k230.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/riscv/boot/dts/canaan/k230.dtsi b/arch/riscv/boot/dts/canaan/k230.dtsi
index 5a1bf8a15abe..45041bd6df1a 100644
--- a/arch/riscv/boot/dts/canaan/k230.dtsi
+++ b/arch/riscv/boot/dts/canaan/k230.dtsi
@@ -4,6 +4,7 @@
*/
#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/reset/canaan,k230-rst.h>
#include "k230-pinctrl.h"
/dts-v1/;
@@ -87,6 +88,12 @@ clint: timer@...000000 {
interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>;
};
+ rst: reset-controller@...01000 {
+ compatible = "canaan,k230-rst";
+ reg = <0x0 0x91101000 0x0 0x1000>;
+ #reset-cells = <1>;
+ };
+
pinctrl: pinctrl@...05000 {
compatible = "canaan,k230-pinctrl";
reg = <0x0 0x91105000 0x0 0x100>;
@@ -99,6 +106,7 @@ uart0: serial@...00000 {
interrupts = <16 IRQ_TYPE_LEVEL_HIGH>;
reg-io-width = <4>;
reg-shift = <2>;
+ resets = <&rst RST_UART0>;
status = "disabled";
};
@@ -109,6 +117,7 @@ uart1: serial@...01000 {
interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
reg-io-width = <4>;
reg-shift = <2>;
+ resets = <&rst RST_UART1>;
status = "disabled";
};
@@ -119,6 +128,7 @@ uart2: serial@...02000 {
interrupts = <18 IRQ_TYPE_LEVEL_HIGH>;
reg-io-width = <4>;
reg-shift = <2>;
+ resets = <&rst RST_UART2>;
status = "disabled";
};
@@ -129,6 +139,7 @@ uart3: serial@...03000 {
interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
reg-io-width = <4>;
reg-shift = <2>;
+ resets = <&rst RST_UART3>;
status = "disabled";
};
@@ -139,6 +150,7 @@ uart4: serial@...04000 {
interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
reg-io-width = <4>;
reg-shift = <2>;
+ resets = <&rst RST_UART4>;
status = "disabled";
};
};
--
2.52.0
Powered by blists - more mailing lists