The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] ARM: Add initial support for the Novatek NA51089 SoC
@ 2026-12-02 16:15 Evan Zane
  2026-12-02 16:15 ` [RFC PATCH 1/3] dt-bindings: arm: novatek: Add " Evan Zane
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Evan Zane @ 2026-12-02 16:15 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: arnd, linux, robh, krzk+dt, conor+dt, alexandre.belloni, linusw,
	fustini, soc, linux-kernel

The Novatek NA51089 is a 32-bit Cortex-A9 SoC in the NT9856x family.
This series adds its root compatible, ARM platform selection and a shared
DTSI describing the CPU, PMU, GIC, PL310 cache, global timer and UART0.
A board can enable UART0 using the existing ns16550a driver.

Would you consider taking the shared DTSI before a board DTS is
available upstream, or should the initial series include a board
compatible and a buildable board DTS? The RFC ends at the shared DTSI
and leaves multi_v7_defconfig unchanged.

On v7.4-rc5, the three patches apply with git am. An ARM zImage built
from multi_v7_defconfig with ARCH_NOVATEK and MACH_NA51089 enabled.
The root binding passed dt_binding_check. A temporary DTS that includes
the shared DTSI and enables UART0 compiled with W=1, and dt-validate
reported no diagnostics for the resulting DTB. Hardware boot testing of
this three-patch configuration is still pending.

Assisted-by: Codex:gpt-6

Evan Zane (3):
  dt-bindings: arm: novatek: Add NA51089 SoC
  arm: novatek: Add NA51089 SoC support
  arm: dts: novatek: Add NA51089 SoC

 .../devicetree/bindings/arm/novatek.yaml      | 27 +++++++
 MAINTAINERS                                   | 14 ++++
 arch/arm/Kconfig                              |  2 +
 arch/arm/boot/dts/Makefile                    |  1 +
 arch/arm/boot/dts/novatek/Makefile            |  0
 arch/arm/boot/dts/novatek/na51089.dtsi        | 76 +++++++++++++++++++
 arch/arm/mach-novatek/Kconfig                 | 22 ++++++
 7 files changed, 142 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/na51089.dtsi
 create mode 100644 arch/arm/mach-novatek/Kconfig


base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244

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

* [RFC PATCH 1/3] dt-bindings: arm: novatek: Add NA51089 SoC
  2026-12-02 16:15 [RFC PATCH 0/3] ARM: Add initial support for the Novatek NA51089 SoC Evan Zane
@ 2026-12-02 16:15 ` Evan Zane
  2026-12-02 16:15 ` [RFC PATCH 2/3] arm: novatek: Add NA51089 SoC support Evan Zane
  2026-12-02 16:15 ` [RFC PATCH 3/3] arm: dts: novatek: Add NA51089 SoC Evan Zane
  2 siblings, 0 replies; 4+ messages in thread
From: Evan Zane @ 2026-12-02 16:15 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: arnd, linux, robh, krzk+dt, conor+dt, alexandre.belloni, linusw,
	fustini, soc, linux-kernel

Describe the NA51089 SoC root compatible.

Signed-off-by: Evan Zane <evan.zean@fastmail.com>
---
 .../devicetree/bindings/arm/novatek.yaml      | 27 +++++++++++++++++++
 MAINTAINERS                                   |  6 +++++
 2 files changed, 33 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 0000000000000..6a50c5d7b10a8
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/novatek.yaml
@@ -0,0 +1,27 @@
+# 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 NA51089 SoC
+
+maintainers:
+  - Evan Zane <evan.zean@fastmail.com>
+
+description:
+  The Novatek NA51089 SoC combines an ARM Cortex-A9 processor with integrated
+  peripheral controllers.
+
+properties:
+  $nodename:
+    const: '/'
+
+  compatible:
+    contains:
+      const: novatek,na51089
+
+required:
+  - compatible
+
+additionalProperties: true
diff --git a/MAINTAINERS b/MAINTAINERS
index 84cb98ef4c498..ab5350eaacc5a 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 2/3] arm: novatek: Add NA51089 SoC support
  2026-12-02 16:15 [RFC PATCH 0/3] ARM: Add initial support for the Novatek NA51089 SoC Evan Zane
  2026-12-02 16:15 ` [RFC PATCH 1/3] dt-bindings: arm: novatek: Add " Evan Zane
@ 2026-12-02 16:15 ` Evan Zane
  2026-12-02 16:15 ` [RFC PATCH 3/3] arm: dts: novatek: Add NA51089 SoC Evan Zane
  2 siblings, 0 replies; 4+ messages in thread
From: Evan Zane @ 2026-12-02 16:15 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: arnd, linux, robh, krzk+dt, conor+dt, alexandre.belloni, linusw,
	fustini, soc, linux-kernel

Add ARMv7 platform support for NA51089.

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 ab5350eaacc5a..42951d66a72c0 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 0cc289a7184ab..051ce5addff9e 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 0000000000000..466cfb84f80d8
--- /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_NA51089
+	bool "Novatek NA51089 SoC support"
+	default ARCH_NOVATEK
+	select ARM_GIC
+	select ARM_GLOBAL_TIMER
+	select CACHE_L2X0
+	select PM
+	select PM_GENERIC_DOMAINS
+	help
+	  Support for Novatek NT9856x (NA51089) SoCs.
+
+endif

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

* [RFC PATCH 3/3] arm: dts: novatek: Add NA51089 SoC
  2026-12-02 16:15 [RFC PATCH 0/3] ARM: Add initial support for the Novatek NA51089 SoC Evan Zane
  2026-12-02 16:15 ` [RFC PATCH 1/3] dt-bindings: arm: novatek: Add " Evan Zane
  2026-12-02 16:15 ` [RFC PATCH 2/3] arm: novatek: Add NA51089 SoC support Evan Zane
@ 2026-12-02 16:15 ` Evan Zane
  2 siblings, 0 replies; 4+ messages in thread
From: Evan Zane @ 2026-12-02 16:15 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: arnd, linux, robh, krzk+dt, conor+dt, alexandre.belloni, linusw,
	fustini, soc, linux-kernel

Add the Cortex-A9 CPU, PMU, GIC, global timer, L2 cache and UART0 nodes
for NA51089.

Signed-off-by: Evan Zane <evan.zean@fastmail.com>
---
 MAINTAINERS                            |  7 +++
 arch/arm/boot/dts/Makefile             |  1 +
 arch/arm/boot/dts/novatek/Makefile     |  0
 arch/arm/boot/dts/novatek/na51089.dtsi | 76 ++++++++++++++++++++++++++
 4 files changed, 84 insertions(+)
 create mode 100644 arch/arm/boot/dts/novatek/Makefile
 create mode 100644 arch/arm/boot/dts/novatek/na51089.dtsi

diff --git a/MAINTAINERS b/MAINTAINERS
index 42951d66a72c0..34ed78c13bed1 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3369,11 +3369,18 @@ F:	drivers/rtc/rtc-ab8500.c
 F:	drivers/rtc/rtc-pl031.c
 F:	drivers/soc/ux500/
 
+ARM/NOVATEK NA510XX SOC SUPPORT
+M:	Evan Zane <evan.zean@fastmail.com>
+L:	linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
+S:	Maintained
+F:	arch/arm/boot/dts/novatek/na51089.dtsi
+
 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
+F:	arch/arm/boot/dts/novatek/Makefile
 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 28fba538d5520..5165111e82f98 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 0000000000000..e69de29bb2d1d
diff --git a/arch/arm/boot/dts/novatek/na51089.dtsi b/arch/arm/boot/dts/novatek/na51089.dtsi
new file mode 100644
index 0000000000000..90071e53aee4d
--- /dev/null
+++ b/arch/arm/boot/dts/novatek/na51089.dtsi
@@ -0,0 +1,76 @@
+// 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>
+
+/ {
+	compatible = "novatek,na51089";
+	#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 {
+			compatible = "arm,cortex-a9";
+			reg = <0>;
+			device_type = "cpu";
+			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-02 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 16:15 [RFC PATCH 0/3] ARM: Add initial support for the Novatek NA51089 SoC Evan Zane
2026-12-02 16:15 ` [RFC PATCH 1/3] dt-bindings: arm: novatek: Add " Evan Zane
2026-12-02 16:15 ` [RFC PATCH 2/3] arm: novatek: Add NA51089 SoC support Evan Zane
2026-12-02 16:15 ` [RFC PATCH 3/3] arm: dts: novatek: Add NA51089 SoC Evan Zane

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