Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v3 0/4] ARM: Add initial support for Novatek NT9856x SoCs
@ 2026-12-03 15:34 Evan Zane
  2026-12-03 15:34 ` [RFC PATCH v3 1/4] dt-bindings: arm: novatek: Document NT98566 EVB 2V3 Evan Zane
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Evan Zane @ 2026-12-03 15:34 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Arnd Bergmann, Alexandre Belloni, Linus Walleij, Drew Fustini,
	soc, linux-kernel, Evan Zane

The Novatek NT98560, NT98562 and NT98566 share a Cortex-A9 CPU, a GIC
and an ARM global timer. This series adds platform support for these
SoCs and a device tree for the NT98566 EVB 2V3. The EVB uses the
existing 8250 driver for its UART0 console at 115200 8N1.

Changes since v2

- Drop the standalone "novatek,nt98560" and "novatek,nt98562" entries
  from the root binding. The NT98566 EVB 2V3 is the only board in this
  series. Its board compatible is followed by "novatek,nt98566".
- Drop "select PM" and use "select PM_GENERIC_DOMAINS if PM" so the
  platform can be enabled with power management turned off.

Changes since v1

- Split the device tree into a shared NT9856x description and one DTSI
  per SoC. Add the NT98566 EVB 2V3 and its DTB build target.
- Consolidate the MAINTAINERS entry, add the SPDX identifier to the DTS
  Makefile, and fix the CPU property order and UART node spacing.

The four patches apply to v7.4-rc5. With MACH_NT9856X=y, the ARM zImage
builds with W=1 under both PM=y and PM=n. PM_GENERIC_DOMAINS follows
PM in both configurations. The root binding passes dt_binding_check,
and the EVB DTB passes dtbs_check.

Previous postings
v2: https://lore.kernel.org/r/cover.1796308246.git.evan.zean@fastmail.com
v1: https://lore.kernel.org/r/cover.1796227386.git.evan.zean@fastmail.com

Evan Zane (4):
  dt-bindings: arm: novatek: Document NT98566 EVB 2V3
  arm: novatek: Add NT9856x SoC support
  arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs
  arm: dts: novatek: Add NT98566 EVB 2V3

 .../devicetree/bindings/arm/novatek.yaml      | 28 +++++++
 MAINTAINERS                                   |  8 ++
 arch/arm/Kconfig                              |  2 +
 arch/arm/boot/dts/Makefile                    |  1 +
 arch/arm/boot/dts/novatek/Makefile            |  2 +
 arch/arm/boot/dts/novatek/nt98560.dtsi        |  7 ++
 arch/arm/boot/dts/novatek/nt98562.dtsi        | 12 +++
 arch/arm/boot/dts/novatek/nt98566-evb-2v3.dts | 21 ++++++
 arch/arm/boot/dts/novatek/nt98566.dtsi        | 11 +++
 arch/arm/boot/dts/novatek/nt9856x.dtsi        | 75 +++++++++++++++++++
 arch/arm/mach-novatek/Kconfig                 | 21 ++++++
 11 files changed, 188 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/novatek.yaml
 create mode 100644 arch/arm/boot/dts/novatek/Makefile
 create mode 100644 arch/arm/boot/dts/novatek/nt98560.dtsi
 create mode 100644 arch/arm/boot/dts/novatek/nt98562.dtsi
 create mode 100644 arch/arm/boot/dts/novatek/nt98566-evb-2v3.dts
 create mode 100644 arch/arm/boot/dts/novatek/nt98566.dtsi
 create mode 100644 arch/arm/boot/dts/novatek/nt9856x.dtsi
 create mode 100644 arch/arm/mach-novatek/Kconfig


base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244


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

* [RFC PATCH v3 1/4] dt-bindings: arm: novatek: Document NT98566 EVB 2V3
  2026-12-03 15:34 [RFC PATCH v3 0/4] ARM: Add initial support for Novatek NT9856x SoCs Evan Zane
@ 2026-12-03 15:34 ` Evan Zane
  2026-12-03 15:34 ` [RFC PATCH v3 2/4] arm: novatek: Add NT9856x SoC support Evan Zane
  2026-12-03 15:34 ` [RFC PATCH v3 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs Evan Zane
  2 siblings, 0 replies; 4+ messages in thread
From: Evan Zane @ 2026-12-03 15:34 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Arnd Bergmann, Alexandre Belloni, Linus Walleij, Drew Fustini,
	soc, linux-kernel, Evan Zane

The EVB root node lists "novatek,nt98566-evb-2v3" followed by the SoC
compatible "novatek,nt98566".

Signed-off-by: Evan Zane <evan.zean@fastmail.com>
---
 .../devicetree/bindings/arm/novatek.yaml      | 28 +++++++++++++++++++
 MAINTAINERS                                   |  6 ++++
 2 files changed, 34 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/novatek.yaml

diff --git a/Documentation/devicetree/bindings/arm/novatek.yaml b/Documentation/devicetree/bindings/arm/novatek.yaml
new file mode 100644
index 000000000000..c9928f051c06
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/novatek.yaml
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/novatek.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Novatek ARM platforms
+
+maintainers:
+  - Evan Zane <evan.zean@fastmail.com>
+
+description:
+  The Novatek NT98560, NT98562 and NT98566 SoCs combine an ARM Cortex-A9
+  processor with integrated peripheral controllers.
+
+properties:
+  $nodename:
+    const: '/'
+
+  compatible:
+    items:
+      - const: novatek,nt98566-evb-2v3
+      - const: novatek,nt98566
+
+required:
+  - compatible
+
+additionalProperties: true
diff --git a/MAINTAINERS b/MAINTAINERS
index 84cb98ef4c49..ab5350eaacc5 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3369,6 +3369,12 @@ F:	drivers/rtc/rtc-ab8500.c
 F:	drivers/rtc/rtc-pl031.c
 F:	drivers/soc/ux500/
 
+ARM/NOVATEK SOC SUPPORT
+M:	Evan Zane <evan.zean@fastmail.com>
+L:	linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
+S:	Maintained
+F:	Documentation/devicetree/bindings/arm/novatek.yaml
+
 ARM/NUVOTON MA35 ARCHITECTURE
 M:	Jacky Huang <ychuang3@nuvoton.com>
 M:	Shan-Chun Hung <schung@nuvoton.com>


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

* [RFC PATCH v3 2/4] arm: novatek: Add NT9856x SoC support
  2026-12-03 15:34 [RFC PATCH v3 0/4] ARM: Add initial support for Novatek NT9856x SoCs Evan Zane
  2026-12-03 15:34 ` [RFC PATCH v3 1/4] dt-bindings: arm: novatek: Document NT98566 EVB 2V3 Evan Zane
@ 2026-12-03 15:34 ` Evan Zane
  2026-12-03 15:34 ` [RFC PATCH v3 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs Evan Zane
  2 siblings, 0 replies; 4+ messages in thread
From: Evan Zane @ 2026-12-03 15:34 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Arnd Bergmann, Alexandre Belloni, Linus Walleij, Drew Fustini,
	soc, linux-kernel, Evan Zane

Add the ARMv7 platform option for NT98560, NT98562 and NT98566.
Select generic power domains when device power management is enabled.

Signed-off-by: Evan Zane <evan.zean@fastmail.com>
---
 MAINTAINERS                   |  1 +
 arch/arm/Kconfig              |  2 ++
 arch/arm/mach-novatek/Kconfig | 21 +++++++++++++++++++++
 3 files changed, 24 insertions(+)
 create mode 100644 arch/arm/mach-novatek/Kconfig

diff --git a/MAINTAINERS b/MAINTAINERS
index ab5350eaacc5..42951d66a72c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3374,6 +3374,7 @@ M:	Evan Zane <evan.zean@fastmail.com>
 L:	linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
 S:	Maintained
 F:	Documentation/devicetree/bindings/arm/novatek.yaml
+F:	arch/arm/mach-novatek/Kconfig
 
 ARM/NUVOTON MA35 ARCHITECTURE
 M:	Jacky Huang <ychuang3@nuvoton.com>
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 0cc289a7184a..051ce5addff9 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -421,6 +421,8 @@ source "arch/arm/mach-mxs/Kconfig"
 
 source "arch/arm/mach-nomadik/Kconfig"
 
+source "arch/arm/mach-novatek/Kconfig"
+
 source "arch/arm/mach-npcm/Kconfig"
 
 source "arch/arm/mach-omap1/Kconfig"
diff --git a/arch/arm/mach-novatek/Kconfig b/arch/arm/mach-novatek/Kconfig
new file mode 100644
index 000000000000..0e0f2f9ad3c5
--- /dev/null
+++ b/arch/arm/mach-novatek/Kconfig
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+menuconfig ARCH_NOVATEK
+	bool "Novatek SoC support"
+	depends on ARCH_MULTI_V7
+	help
+	  Support for Novatek ARMv7 SoCs.
+
+if ARCH_NOVATEK
+
+config MACH_NT9856X
+	bool "Novatek NT9856x SoC support"
+	default ARCH_NOVATEK
+	select ARM_GIC
+	select ARM_GLOBAL_TIMER
+	select CACHE_L2X0
+	select PM_GENERIC_DOMAINS if PM
+	help
+	  Support for the Novatek NT98560, NT98562 and NT98566 SoCs.
+
+endif


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

* [RFC PATCH v3 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs
  2026-12-03 15:34 [RFC PATCH v3 0/4] ARM: Add initial support for Novatek NT9856x SoCs Evan Zane
  2026-12-03 15:34 ` [RFC PATCH v3 1/4] dt-bindings: arm: novatek: Document NT98566 EVB 2V3 Evan Zane
  2026-12-03 15:34 ` [RFC PATCH v3 2/4] arm: novatek: Add NT9856x SoC support Evan Zane
@ 2026-12-03 15:34 ` Evan Zane
  2 siblings, 0 replies; 4+ messages in thread
From: Evan Zane @ 2026-12-03 15:34 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Arnd Bergmann, Alexandre Belloni, Linus Walleij, Drew Fustini,
	soc, linux-kernel, Evan Zane

Describe the shared Cortex-A9 CPU, interrupt controller, timers and
UART0. The NT98560 uses board-specific external DRAM. The NT98562
integrates 64 MiB of DDR2L. The pin-compatible NT98566 reuses its
description with 128 MiB of DDR3.

Signed-off-by: Evan Zane <evan.zean@fastmail.com>
---
 MAINTAINERS                            |  1 +
 arch/arm/boot/dts/Makefile             |  1 +
 arch/arm/boot/dts/novatek/Makefile     |  1 +
 arch/arm/boot/dts/novatek/nt98560.dtsi |  7 +++
 arch/arm/boot/dts/novatek/nt98562.dtsi | 12 +++++
 arch/arm/boot/dts/novatek/nt98566.dtsi | 11 ++++
 arch/arm/boot/dts/novatek/nt9856x.dtsi | 75 ++++++++++++++++++++++++++
 7 files changed, 108 insertions(+)
 create mode 100644 arch/arm/boot/dts/novatek/Makefile
 create mode 100644 arch/arm/boot/dts/novatek/nt98560.dtsi
 create mode 100644 arch/arm/boot/dts/novatek/nt98562.dtsi
 create mode 100644 arch/arm/boot/dts/novatek/nt98566.dtsi
 create mode 100644 arch/arm/boot/dts/novatek/nt9856x.dtsi

diff --git a/MAINTAINERS b/MAINTAINERS
index 42951d66a72c..5351cdc60447 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3374,6 +3374,7 @@ M:	Evan Zane <evan.zean@fastmail.com>
 L:	linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
 S:	Maintained
 F:	Documentation/devicetree/bindings/arm/novatek.yaml
+F:	arch/arm/boot/dts/novatek/
 F:	arch/arm/mach-novatek/Kconfig
 
 ARM/NUVOTON MA35 ARCHITECTURE
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 28fba538d552..5165111e82f9 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -20,6 +20,7 @@ subdir-y += marvell
 subdir-y += mediatek
 subdir-y += microchip
 subdir-y += moxa
+subdir-y += novatek
 subdir-y += nspire
 subdir-y += nuvoton
 subdir-y += nvidia
diff --git a/arch/arm/boot/dts/novatek/Makefile b/arch/arm/boot/dts/novatek/Makefile
new file mode 100644
index 000000000000..a4e40e534e6a
--- /dev/null
+++ b/arch/arm/boot/dts/novatek/Makefile
@@ -0,0 +1 @@
+# SPDX-License-Identifier: GPL-2.0-only
diff --git a/arch/arm/boot/dts/novatek/nt98560.dtsi b/arch/arm/boot/dts/novatek/nt98560.dtsi
new file mode 100644
index 000000000000..ee59c9a964f7
--- /dev/null
+++ b/arch/arm/boot/dts/novatek/nt98560.dtsi
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
+#include "nt9856x.dtsi"
+
+/ {
+	compatible = "novatek,nt98560";
+};
diff --git a/arch/arm/boot/dts/novatek/nt98562.dtsi b/arch/arm/boot/dts/novatek/nt98562.dtsi
new file mode 100644
index 000000000000..7f65ecb975a6
--- /dev/null
+++ b/arch/arm/boot/dts/novatek/nt98562.dtsi
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
+#include "nt9856x.dtsi"
+
+/ {
+	compatible = "novatek,nt98562";
+
+	memory@0 {
+		device_type = "memory";
+		reg = <0x0 0x04000000>;
+	};
+};
diff --git a/arch/arm/boot/dts/novatek/nt98566.dtsi b/arch/arm/boot/dts/novatek/nt98566.dtsi
new file mode 100644
index 000000000000..58bafdb37ec0
--- /dev/null
+++ b/arch/arm/boot/dts/novatek/nt98566.dtsi
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
+#include "nt98562.dtsi"
+
+/ {
+	compatible = "novatek,nt98566";
+
+	memory@0 {
+		reg = <0x0 0x08000000>;
+	};
+};
diff --git a/arch/arm/boot/dts/novatek/nt9856x.dtsi b/arch/arm/boot/dts/novatek/nt9856x.dtsi
new file mode 100644
index 000000000000..c2f1876ab595
--- /dev/null
+++ b/arch/arm/boot/dts/novatek/nt9856x.dtsi
@@ -0,0 +1,75 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/ {
+	#address-cells = <1>;
+	#size-cells = <1>;
+	interrupt-parent = <&gic>;
+
+	periph_clk: clock-periph {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <120000000>;
+	};
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		cpu0: cpu@0 {
+			device_type = "cpu";
+			compatible = "arm,cortex-a9";
+			reg = <0>;
+			next-level-cache = <&l2>;
+		};
+	};
+
+	pmu {
+		compatible = "arm,cortex-a9-pmu";
+		interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-affinity = <&cpu0>;
+	};
+
+	soc {
+		compatible = "simple-bus";
+		ranges;
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		uart0: serial@f0290000 {
+			compatible = "ns16550a";
+			reg = <0xf0290000 0x1000>;
+			clock-frequency = <24000000>;
+			interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
+			reg-io-width = <4>;
+			reg-shift = <2>;
+
+			status = "disabled";
+		};
+
+		timer@ffd00200 {
+			compatible = "arm,cortex-a9-global-timer";
+			reg = <0xffd00200 0x20>;
+			clocks = <&periph_clk>;
+			interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_EDGE_RISING)>;
+		};
+
+		gic: interrupt-controller@ffd01000 {
+			compatible = "arm,cortex-a9-gic";
+			reg = <0xffd01000 0x1000>,
+			      <0xffd00100 0x100>;
+			#address-cells = <0>;
+			#interrupt-cells = <3>;
+			interrupt-controller;
+		};
+
+		l2: cache-controller@ffe00000 {
+			compatible = "arm,pl310-cache";
+			reg = <0xffe00000 0x1000>;
+			cache-level = <2>;
+			cache-unified;
+		};
+	};
+};


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

end of thread, other threads:[~2026-12-03 15:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 15:34 [RFC PATCH v3 0/4] ARM: Add initial support for Novatek NT9856x SoCs Evan Zane
2026-12-03 15:34 ` [RFC PATCH v3 1/4] dt-bindings: arm: novatek: Document NT98566 EVB 2V3 Evan Zane
2026-12-03 15:34 ` [RFC PATCH v3 2/4] arm: novatek: Add NT9856x SoC support Evan Zane
2026-12-03 15:34 ` [RFC PATCH v3 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs Evan Zane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox