ARM: mstar: Add the external clocks to the base dsti
authorDaniel Palmer <daniel@0x0f.com>
Mon, 1 Mar 2021 12:35:41 +0000 (21:35 +0900)
committerArnd Bergmann <arnd@arndb.de>
Thu, 1 Apr 2021 10:40:55 +0000 (12:40 +0200)
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>
Link: https://lore.kernel.org/r/20210301123542.2800643-3-daniel@0x0f.com'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/mstar-v7.dtsi

index b0a21b0b731f06053fd6272c4a612b40e2936d7c..889c3804c2512b1218e24da938b9ed4bf9c73717 100644 (file)
                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>;