[PATCH 3/3] arm64: apple: add uart gate clocks
Sven Peter
sven at svenpeter.dev
Mon May 24 11:27:45 PDT 2021
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 at svenpeter.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 at 235200000 {
* 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 at 23b100000 {
interrupt-controller;
reg = <0x2 0x3b100000 0x0 0x8000>;
};
+
+ clock_sio_busif: clock-sio-busif at 23b7001c0 {
+ compatible = "apple,t8103-gate-clock";
+ #clock-cells = <0>;
+ reg = <0x2 0x3b7001c0 0x0 0x4>;
+ clock-output-names = "clock_sio_busif";
+ };
+
+ clock_sio: clock-sio at 23b7001c8 {
+ 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 at 23b700220 {
+ 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 at 23b700270 {
+ 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
More information about the linux-arm-kernel
mailing list