From: Sven Peter <sven@svenpeter.dev>
To: devicetree@vger.kernel.org, linux-clk@vger.kernel.org
Cc: Sven Peter <sven@svenpeter.dev>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Hector Martin <marcan@marcan.st>,
Michael Turquette <mturquette@baylibre.com>,
Rob Herring <robh+dt@kernel.org>, Stephen Boyd <sboyd@kernel.org>,
Mark Kettenis <mark.kettenis@xs4all.nl>,
Arnd Bergmann <arnd@kernel.org>
Subject: [PATCH 3/3] arm64: apple: add uart gate clocks
Date: Mon, 24 May 2021 20:27:45 +0200 [thread overview]
Message-ID: <20210524182745.22923-4-sven@svenpeter.dev> (raw)
In-Reply-To: <20210524182745.22923-1-sven@svenpeter.dev>
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@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@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@23b100000 {
interrupt-controller;
reg = <0x2 0x3b100000 0x0 0x8000>;
};
+
+ clock_sio_busif: clock-sio-busif@23b7001c0 {
+ compatible = "apple,t8103-gate-clock";
+ #clock-cells = <0>;
+ reg = <0x2 0x3b7001c0 0x0 0x4>;
+ clock-output-names = "clock_sio_busif";
+ };
+
+ clock_sio: clock-sio@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@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@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
next prev parent reply other threads:[~2021-05-24 18:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-24 18:27 [PATCH 0/3] Apple M1 clock gate driver Sven Peter
2021-05-24 18:27 ` [PATCH 1/3] dt-bindings: clock: add DT bindings for apple,gate-clock Sven Peter
2021-05-24 18:27 ` [PATCH 2/3] clk: add support for gate clocks on Apple SoCs Sven Peter
2021-05-26 3:09 ` Stephen Boyd
2021-05-30 11:17 ` Sven Peter
2021-05-24 18:27 ` Sven Peter [this message]
2021-05-26 3:10 ` [PATCH 3/3] arm64: apple: add uart gate clocks Stephen Boyd
2021-05-30 11:11 ` Sven Peter
2021-05-25 17:41 ` [PATCH 0/3] Apple M1 clock gate driver Rob Herring
2021-05-26 7:18 ` Tony Lindgren
2021-05-30 11:08 ` Sven Peter
2021-06-02 9:26 ` Tony Lindgren
2021-06-03 12:55 ` Sven Peter
2021-06-04 7:43 ` Tony Lindgren
2021-06-05 12:12 ` Sven Peter
2021-06-06 5:59 ` Tony Lindgren
2021-05-30 11:05 ` Sven Peter
2021-06-02 9:28 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210524182745.22923-4-sven@svenpeter.dev \
--to=sven@svenpeter.dev \
--cc=arnd@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcan@marcan.st \
--cc=mark.kettenis@xs4all.nl \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox