lkml.org 
[lkml]   [2020]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC 11/11] ARM: dts: sp7021-cpu: Add dummy UART0 clock and interrupt
Date
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
arch/arm/boot/dts/pentagram-sp7021-bpi-f2s.dts | 7 +++++++
arch/arm/boot/dts/pentagram-sp7021-cpu.dtsi | 5 +++++
2 files changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/pentagram-sp7021-bpi-f2s.dts b/arch/arm/boot/dts/pentagram-sp7021-bpi-f2s.dts
index 3c25b6e79fe2..455416ce9d82 100644
--- a/arch/arm/boot/dts/pentagram-sp7021-bpi-f2s.dts
+++ b/arch/arm/boot/dts/pentagram-sp7021-bpi-f2s.dts
@@ -15,8 +15,15 @@
chosen {
stdout-path = "serial0:115200n8";
};
+
+ uart0_clk: clk {
+ compatible = "fixed-clock";
+ clock-frequency = <27000000>;
+ #clock-cells = <0>;
+ };
};

&uart0 {
status = "okay";
+ clocks = <&uart0_clk>;
};
diff --git a/arch/arm/boot/dts/pentagram-sp7021-cpu.dtsi b/arch/arm/boot/dts/pentagram-sp7021-cpu.dtsi
index 7e424baa9214..48c5986a31ed 100644
--- a/arch/arm/boot/dts/pentagram-sp7021-cpu.dtsi
+++ b/arch/arm/boot/dts/pentagram-sp7021-cpu.dtsi
@@ -86,3 +86,8 @@
#interrupt-cells = <2>;
};
};
+
+&uart0 {
+ interrupt-parent = <&intc>;
+ interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
+};
--
2.16.4
\
 
 \ /
  Last update: 2020-03-08 17:33    [W:0.116 / U:2.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site