Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/4] ARM: Add initial support for Novatek NT9856x SoCs
@ 2026-12-03 14:49 Evan Zane
  2026-12-03 14:49 ` [RFC PATCH v2 1/4] dt-bindings: arm: novatek: Document NT9856x platforms Evan Zane
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Evan Zane @ 2026-12-03 14:49 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 v1

- Use the SoC part numbers and split out the shared hardware description.
  The NT98560 leaves external DRAM to the board. The NT98562 describes
  64 MiB of DDR2L, and the NT98566 inherits its DTSI and overrides the
  memory size for its 128 MiB of DDR3.
- Add the EVB DTS and DTB build target in patch 4. The root binding
  requires the board compatible followed by "novatek,nt98566".
- Use one MAINTAINERS entry for the platform, 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. The ARM zImage builds with W=1 and
ARCH_NOVATEK and MACH_NT9856X enabled. The root binding passes
dt_binding_check, and the EVB DTB passes dtbs_check.

Previous posting
https://lore.kernel.org/r/cover.1796227386.git.evan.zean@fastmail.com

Evan Zane (4):
  dt-bindings: arm: novatek: Document NT9856x platforms
  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      | 32 ++++++++
 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                 | 22 ++++++
 11 files changed, 193 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] 5+ messages in thread

* [RFC PATCH v2 1/4] dt-bindings: arm: novatek: Document NT9856x platforms
  2026-12-03 14:49 [RFC PATCH v2 0/4] ARM: Add initial support for Novatek NT9856x SoCs Evan Zane
@ 2026-12-03 14:49 ` Evan Zane
  2026-12-03 14:49 ` [RFC PATCH v2 2/4] arm: novatek: Add NT9856x SoC support Evan Zane
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Evan Zane @ 2026-12-03 14:49 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

Document the NT98560 and NT98562 SoCs and the NT98566 EVB 2V3.
The EVB lists its board compatible followed by the NT98566 SoC.

Signed-off-by: Evan Zane <evan.zean@fastmail.com>
---
 .../devicetree/bindings/arm/novatek.yaml      | 32 +++++++++++++++++++
 MAINTAINERS                                   |  6 ++++
 2 files changed, 38 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..17c7bd69be90
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/novatek.yaml
@@ -0,0 +1,32 @@
+# 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:
+    oneOf:
+      - enum:
+          - novatek,nt98560
+          - novatek,nt98562
+      - 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] 5+ messages in thread

* [RFC PATCH v2 2/4] arm: novatek: Add NT9856x SoC support
  2026-12-03 14:49 [RFC PATCH v2 0/4] ARM: Add initial support for Novatek NT9856x SoCs Evan Zane
  2026-12-03 14:49 ` [RFC PATCH v2 1/4] dt-bindings: arm: novatek: Document NT9856x platforms Evan Zane
@ 2026-12-03 14:49 ` Evan Zane
  2026-12-03 14:49 ` [RFC PATCH v2 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs Evan Zane
  2026-12-03 14:49 ` [RFC PATCH v2 4/4] arm: dts: novatek: Add NT98566 EVB 2V3 Evan Zane
  3 siblings, 0 replies; 5+ messages in thread
From: Evan Zane @ 2026-12-03 14:49 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.

Signed-off-by: Evan Zane <evan.zean@fastmail.com>
---
 MAINTAINERS                   |  1 +
 arch/arm/Kconfig              |  2 ++
 arch/arm/mach-novatek/Kconfig | 22 ++++++++++++++++++++++
 3 files changed, 25 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..f81a07aae316
--- /dev/null
+++ b/arch/arm/mach-novatek/Kconfig
@@ -0,0 +1,22 @@
+# 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
+	select PM_GENERIC_DOMAINS
+	help
+	  Support for the Novatek NT98560, NT98562 and NT98566 SoCs.
+
+endif


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

* [RFC PATCH v2 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs
  2026-12-03 14:49 [RFC PATCH v2 0/4] ARM: Add initial support for Novatek NT9856x SoCs Evan Zane
  2026-12-03 14:49 ` [RFC PATCH v2 1/4] dt-bindings: arm: novatek: Document NT9856x platforms Evan Zane
  2026-12-03 14:49 ` [RFC PATCH v2 2/4] arm: novatek: Add NT9856x SoC support Evan Zane
@ 2026-12-03 14:49 ` Evan Zane
  2026-12-03 14:49 ` [RFC PATCH v2 4/4] arm: dts: novatek: Add NT98566 EVB 2V3 Evan Zane
  3 siblings, 0 replies; 5+ messages in thread
From: Evan Zane @ 2026-12-03 14:49 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] 5+ messages in thread

* [RFC PATCH v2 4/4] arm: dts: novatek: Add NT98566 EVB 2V3
  2026-12-03 14:49 [RFC PATCH v2 0/4] ARM: Add initial support for Novatek NT9856x SoCs Evan Zane
                   ` (2 preceding siblings ...)
  2026-12-03 14:49 ` [RFC PATCH v2 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs Evan Zane
@ 2026-12-03 14:49 ` Evan Zane
  3 siblings, 0 replies; 5+ messages in thread
From: Evan Zane @ 2026-12-03 14:49 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 NT98566 EVB 2V3 and use UART0 on its debug header as
the serial console.

Signed-off-by: Evan Zane <evan.zean@fastmail.com>
---
 arch/arm/boot/dts/novatek/Makefile            |  1 +
 arch/arm/boot/dts/novatek/nt98566-evb-2v3.dts | 21 +++++++++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 arch/arm/boot/dts/novatek/nt98566-evb-2v3.dts

diff --git a/arch/arm/boot/dts/novatek/Makefile b/arch/arm/boot/dts/novatek/Makefile
index a4e40e534e6a..50144caea57f 100644
--- a/arch/arm/boot/dts/novatek/Makefile
+++ b/arch/arm/boot/dts/novatek/Makefile
@@ -1 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0-only
+dtb-$(CONFIG_MACH_NT9856X) += nt98566-evb-2v3.dtb
diff --git a/arch/arm/boot/dts/novatek/nt98566-evb-2v3.dts b/arch/arm/boot/dts/novatek/nt98566-evb-2v3.dts
new file mode 100644
index 000000000000..7293abcdf9e4
--- /dev/null
+++ b/arch/arm/boot/dts/novatek/nt98566-evb-2v3.dts
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/dts-v1/;
+
+#include "nt98566.dtsi"
+
+/ {
+	model = "Novatek NT98566 EVB 2V3";
+	compatible = "novatek,nt98566-evb-2v3", "novatek,nt98566";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&uart0 {
+	status = "okay";
+};


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

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

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

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