[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210524182745.22923-4-sven@svenpeter.dev>
Date: Mon, 24 May 2021 20:27:45 +0200
From: Sven Peter <sven@...npeter.dev>
To: devicetree@...r.kernel.org, linux-clk@...r.kernel.org
Cc: Sven Peter <sven@...npeter.dev>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Hector Martin <marcan@...can.st>,
Michael Turquette <mturquette@...libre.com>,
Rob Herring <robh+dt@...nel.org>,
Stephen Boyd <sboyd@...nel.org>,
Mark Kettenis <mark.kettenis@...all.nl>,
Arnd Bergmann <arnd@...nel.org>
Subject: [PATCH 3/3] arm64: apple: add uart gate clocks
Now that we have a driver for gate clocks add the proper topology for the
UART. These are already enabled by the bootloader but are part of the
clock topology used by devices yet to be implemented.
Signed-off-by: Sven Peter <sven@...npeter.dev>
---
arch/arm64/boot/dts/apple/t8103.dtsi | 36 +++++++++++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/apple/t8103.dtsi b/arch/arm64/boot/dts/apple/t8103.dtsi
index a1e22a2ea2e5..b7c85b800efd 100644
--- a/arch/arm64/boot/dts/apple/t8103.dtsi
+++ b/arch/arm64/boot/dts/apple/t8103.dtsi
@@ -120,7 +120,7 @@ serial0: serial@...200000 {
* TODO: figure out the clocking properly, there may
* be a third selectable clock.
*/
- clocks = <&clk24>, <&clk24>;
+ clocks = <&clock_uart0>, <&clk24>;
clock-names = "uart", "clk_uart_baud0";
status = "disabled";
};
@@ -131,5 +131,39 @@ aic: interrupt-controller@...100000 {
interrupt-controller;
reg = <0x2 0x3b100000 0x0 0x8000>;
};
+
+ clock_sio_busif: clock-sio-busif@...7001c0 {
+ compatible = "apple,t8103-gate-clock";
+ #clock-cells = <0>;
+ reg = <0x2 0x3b7001c0 0x0 0x4>;
+ clock-output-names = "clock_sio_busif";
+ };
+
+ clock_sio: clock-sio@...7001c8 {
+ compatible = "apple,t8103-gate-clock";
+ #clock-cells = <0>;
+ reg = <0x2 0x3b7001c8 0x0 0x4>;
+ clocks = <&clock_sio_busif>;
+ clock-names = "clock_sio_busif";
+ clock-output-names = "clock_sio";
+ };
+
+ clock_uart_p: clock-uart-p@...700220 {
+ reg = <0x2 0x3b700220 0 4>;
+ compatible = "apple,t8103-gate-clock";
+ #clock-cells = <0>;
+ clock-output-names = "clock_uart_p";
+ clocks = <&clock_sio>;
+ clock-names = "clock_sio";
+ };
+
+ clock_uart0: clock-uart0@...700270 {
+ reg = <0x2 0x3b700270 0 4>;
+ compatible = "apple,t8103-gate-clock";
+ #clock-cells = <0>;
+ clock-output-names = "clock_uart0";
+ clocks = <&clock_uart_p>;
+ clock-names = "clock_uart_p";
+ };
};
};
--
2.25.1
Powered by blists - more mailing lists