linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: mstar: MPLL mop up
@ 2021-03-01 12:35 Daniel Palmer
  2021-03-01 12:35 ` [PATCH 1/3] ARM: mstar: Select MSTAR_MSC313_MPLL Daniel Palmer
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Daniel Palmer @ 2021-03-01 12:35 UTC (permalink / raw)
  To: soc; +Cc: arnd, Daniel Palmer, linux-kernel, olof, w, linux-arm-kernel

This series is just 3 small patches that got left behind
when the MPLL driver was merged.

Link: https://lore.kernel.org/linux-arm-kernel/20210211052206.2955988-1-daniel@0x0f.com/

Daniel Palmer (3):
  ARM: mstar: Select MSTAR_MSC313_MPLL
  ARM: mstar: Add the external clocks to the base dsti
  ARM: mstar: Add mpll to base dtsi

 arch/arm/boot/dts/mstar-v7.dtsi | 23 +++++++++++++++++++++++
 arch/arm/mach-mstar/Kconfig     |  1 +
 2 files changed, 24 insertions(+)

-- 
2.30.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] ARM: mstar: Select MSTAR_MSC313_MPLL
  2021-03-01 12:35 [PATCH 0/3] ARM: mstar: MPLL mop up Daniel Palmer
@ 2021-03-01 12:35 ` Daniel Palmer
  2021-03-01 12:35 ` [PATCH 2/3] ARM: mstar: Add the external clocks to the base dsti Daniel Palmer
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Daniel Palmer @ 2021-03-01 12:35 UTC (permalink / raw)
  To: soc; +Cc: arnd, Daniel Palmer, linux-kernel, olof, w, linux-arm-kernel

All of the ARCH_MSTARV7 chips have an MPLL as the source for
peripheral clocks so select MSTAR_MSC313_MPLL.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
---
 arch/arm/mach-mstar/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-mstar/Kconfig b/arch/arm/mach-mstar/Kconfig
index 576d1ab293c8..cd300eeedc20 100644
--- a/arch/arm/mach-mstar/Kconfig
+++ b/arch/arm/mach-mstar/Kconfig
@@ -4,6 +4,7 @@ menuconfig ARCH_MSTARV7
 	select ARM_GIC
 	select ARM_HEAVY_MB
 	select MST_IRQ
+	select MSTAR_MSC313_MPLL
 	help
 	  Support for newer MStar/Sigmastar SoC families that are
 	  based on Armv7 cores like the Cortex A7 and share the same
-- 
2.30.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] ARM: mstar: Add the external clocks to the base dsti
  2021-03-01 12:35 [PATCH 0/3] ARM: mstar: MPLL mop up Daniel Palmer
  2021-03-01 12:35 ` [PATCH 1/3] ARM: mstar: Select MSTAR_MSC313_MPLL Daniel Palmer
@ 2021-03-01 12:35 ` Daniel Palmer
  2021-03-01 12:35 ` [PATCH 3/3] ARM: mstar: Add mpll to base dtsi Daniel Palmer
  2021-04-01 20:15 ` [PATCH 0/3] ARM: mstar: MPLL mop up Arnd Bergmann
  3 siblings, 0 replies; 5+ messages in thread
From: Daniel Palmer @ 2021-03-01 12:35 UTC (permalink / raw)
  To: soc; +Cc: arnd, Daniel Palmer, linux-kernel, olof, w, linux-arm-kernel

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.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] ARM: mstar: Add mpll to base dtsi
  2021-03-01 12:35 [PATCH 0/3] ARM: mstar: MPLL mop up Daniel Palmer
  2021-03-01 12:35 ` [PATCH 1/3] ARM: mstar: Select MSTAR_MSC313_MPLL Daniel Palmer
  2021-03-01 12:35 ` [PATCH 2/3] ARM: mstar: Add the external clocks to the base dsti Daniel Palmer
@ 2021-03-01 12:35 ` Daniel Palmer
  2021-04-01 20:15 ` [PATCH 0/3] ARM: mstar: MPLL mop up Arnd Bergmann
  3 siblings, 0 replies; 5+ messages in thread
From: Daniel Palmer @ 2021-03-01 12:35 UTC (permalink / raw)
  To: soc; +Cc: arnd, Daniel Palmer, linux-kernel, olof, w, linux-arm-kernel

All of the currently known MStar/SigmaStar ARMv7 SoCs have at least
one MPLL and it seems to always be at the same place so add it to
the base dtsi.

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

diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi
index 889c3804c251..075d583d6f40 100644
--- a/arch/arm/boot/dts/mstar-v7.dtsi
+++ b/arch/arm/boot/dts/mstar-v7.dtsi
@@ -6,6 +6,7 @@
 
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/clock/mstar-msc313-mpll.h>
 
 / {
 	#address-cells = <1>;
@@ -124,6 +125,13 @@ l3bridge: l3bridge@204400 {
 				reg = <0x204400 0x200>;
 			};
 
+			mpll: mpll@206000 {
+				compatible = "mstar,msc313-mpll";
+				#clock-cells = <1>;
+				reg = <0x206000 0x200>;
+				clocks = <&xtal>;
+			};
+
 			gpio: gpio@207800 {
 				#gpio-cells = <2>;
 				reg = <0x207800 0x200>;
-- 
2.30.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/3] ARM: mstar: MPLL mop up
  2021-03-01 12:35 [PATCH 0/3] ARM: mstar: MPLL mop up Daniel Palmer
                   ` (2 preceding siblings ...)
  2021-03-01 12:35 ` [PATCH 3/3] ARM: mstar: Add mpll to base dtsi Daniel Palmer
@ 2021-04-01 20:15 ` Arnd Bergmann
  3 siblings, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2021-04-01 20:15 UTC (permalink / raw)
  To: Daniel Palmer, soc
  Cc: Arnd Bergmann, linux-arm-kernel, linux-kernel, w, olof, arnd

From: Arnd Bergmann <arnd@arndb.de>

On Mon, 1 Mar 2021 21:35:39 +0900, Daniel Palmer wrote:
> This series is just 3 small patches that got left behind
> when the MPLL driver was merged.
> 
> Link: https://lore.kernel.org/linux-arm-kernel/20210211052206.2955988-1-daniel@0x0f.com/
> 
> Daniel Palmer (3):
>   ARM: mstar: Select MSTAR_MSC313_MPLL
>   ARM: mstar: Add the external clocks to the base dsti
>   ARM: mstar: Add mpll to base dtsi
> 
> [...]

Applied to arm/dt, thanks!

[1/3] ARM: mstar: Select MSTAR_MSC313_MPLL
      commit: de73b5a97bba1538f065e1e90d8eeac399db7510
[2/3] ARM: mstar: Add the external clocks to the base dsti
      commit: a93cf651df08c370e622c3aea456bc729b352437
[3/3] ARM: mstar: Add mpll to base dtsi
      commit: f374f25aab6f10ba5e442d8f81dd94d960276cb5

       Arnd

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-01 20:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-01 12:35 [PATCH 0/3] ARM: mstar: MPLL mop up Daniel Palmer
2021-03-01 12:35 ` [PATCH 1/3] ARM: mstar: Select MSTAR_MSC313_MPLL Daniel Palmer
2021-03-01 12:35 ` [PATCH 2/3] ARM: mstar: Add the external clocks to the base dsti Daniel Palmer
2021-03-01 12:35 ` [PATCH 3/3] ARM: mstar: Add mpll to base dtsi Daniel Palmer
2021-04-01 20:15 ` [PATCH 0/3] ARM: mstar: MPLL mop up Arnd Bergmann

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).