linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Palmer <daniel@0x0f.com>
To: linux-clk@vger.kernel.org, sboyd@kernel.org, devicetree@vger.kernel.org
Cc: w@1wt.eu, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	Daniel Palmer <daniel@0x0f.com>
Subject: [PATCH v2 6/7] ARM: mstar: Add the external clocks to the base dsti
Date: Thu, 11 Feb 2021 14:22:05 +0900	[thread overview]
Message-ID: <20210211052206.2955988-7-daniel@0x0f.com> (raw)
In-Reply-To: <20210211052206.2955988-1-daniel@0x0f.com>

All of the currently known MStar/SigmaStar ARMv7 SoCs have an "xtal"
clock input that is usually 24MHz and an "RTC xtal" that is usually 32KHz.

The xtal input has to be connected to something so it's enabled by default.

The MSC313 and MSC313E do not bring the RTC clock input out to the pins
so it's impossible to connect it. The SSC8336 does bring the input
out to the pins but it's not always actually connected to something.

The RTC node needs to always be present because in the future the nodes
for the clock muxes will refer to it even if it's not usable.

The RTC node is disabled by default and should be enabled at the board
level if the RTC input is wired up.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
---
 arch/arm/boot/dts/mstar-v7.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi
index b0a21b0b731f..889c3804c251 100644
--- a/arch/arm/boot/dts/mstar-v7.dtsi
+++ b/arch/arm/boot/dts/mstar-v7.dtsi
@@ -46,6 +46,21 @@ pmu: pmu {
 		interrupt-affinity = <&cpu0>;
 	};
 
+	clocks: clocks {
+		xtal: xtal {
+			#clock-cells = <0>;
+			compatible = "fixed-clock";
+			clock-frequency = <24000000>;
+		};
+
+		rtc_xtal: rtc_xtal {
+			#clock-cells = <0>;
+			compatible = "fixed-clock";
+			clock-frequency = <32768>;
+			status = "disabled";
+		};
+	};
+
 	soc: soc {
 		compatible = "simple-bus";
 		#address-cells = <1>;
-- 
2.30.0.rc2


  parent reply	other threads:[~2021-02-11  5:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-11  5:21 [PATCH v2 0/7] ARM: mstar: Basic MPLL support Daniel Palmer
2021-02-11  5:22 ` [PATCH v2 1/7] dt-bindings: clk: mstar msc313 mpll binding header Daniel Palmer
2021-02-14 20:31   ` Stephen Boyd
2021-02-11  5:22 ` [PATCH v2 2/7] dt-bindings: clk: mstar msc313 mpll binding description Daniel Palmer
2021-02-14 20:31   ` Stephen Boyd
2021-02-11  5:22 ` [PATCH v2 3/7] clk: fixed: add devm helper for clk_hw_register_fixed_factor() Daniel Palmer
2021-02-14 20:32   ` Stephen Boyd
2021-02-11  5:22 ` [PATCH v2 4/7] clk: mstar: MStar/SigmaStar MPLL driver Daniel Palmer
2021-02-14 20:32   ` Stephen Boyd
2021-02-14 20:48   ` Stephen Boyd
2021-02-15 11:04     ` Daniel Palmer
2021-02-11  5:22 ` [PATCH v2 5/7] ARM: mstar: Select MSTAR_MSC313_MPLL Daniel Palmer
2021-02-11  5:22 ` Daniel Palmer [this message]
2021-02-11  5:22 ` [PATCH v2 7/7] ARM: mstar: Add mpll to base dtsi Daniel Palmer
2021-02-23  1:44 ` [PATCH v2 0/7] ARM: mstar: Basic MPLL support Daniel Palmer
2021-02-23 19:56   ` Arnd Bergmann

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=20210211052206.2955988-7-daniel@0x0f.com \
    --to=daniel@0x0f.com \
    --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=sboyd@kernel.org \
    --cc=w@1wt.eu \
    /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;
as well as URLs for NNTP newsgroup(s).