Devicetree
 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
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ 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] 7+ 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
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ 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] 7+ 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:50   ` sashiko-bot
  2026-12-03 15:34 ` [RFC PATCH v3 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs Evan Zane
  2026-12-03 15:34 ` [RFC PATCH v3 4/4] arm: dts: novatek: Add NT98566 EVB 2V3 Evan Zane
  3 siblings, 1 reply; 7+ 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] 7+ 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
  2026-12-03 15:59   ` sashiko-bot
  2026-12-03 15:34 ` [RFC PATCH v3 4/4] arm: dts: novatek: Add NT98566 EVB 2V3 Evan Zane
  3 siblings, 1 reply; 7+ 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] 7+ messages in thread

* [RFC PATCH v3 4/4] arm: dts: novatek: Add NT98566 EVB 2V3
  2026-12-03 15:34 [RFC PATCH v3 0/4] ARM: Add initial support for Novatek NT9856x SoCs Evan Zane
                   ` (2 preceding siblings ...)
  2026-12-03 15:34 ` [RFC PATCH v3 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs Evan Zane
@ 2026-12-03 15:34 ` Evan Zane
  3 siblings, 0 replies; 7+ 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 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] 7+ messages in thread

* Re: [RFC PATCH v3 2/4] arm: novatek: Add NT9856x SoC support
  2026-12-03 15:34 ` [RFC PATCH v3 2/4] arm: novatek: Add NT9856x SoC support Evan Zane
@ 2026-12-03 15:50   ` sashiko-bot
  0 siblings, 0 replies; 7+ messages in thread
From: sashiko-bot @ 2026-12-03 15:50 UTC (permalink / raw)
  To: Evan Zane, devicetree; +Cc: robh, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ARM: novatek: add Kconfig-only mach-novatek instead of
  Kconfig.platforms
--

commit ba7769f3cbe176b484891f4ef714978151bd6f59
Author: Evan Zane <evan.zean@fastmail.com>

arm: novatek: Add NT9856x SoC support

This commit adds the ARCH_NOVATEK and MACH_NT9856X Kconfig options for
Novatek NT98560, NT98562, and NT98566 ARMv7 SoCs under a new
arch/arm/mach-novatek/ directory and registers the file in MAINTAINERS.

[ ... ]

> diff --git a/arch/arm/mach-novatek/Kconfig b/arch/arm/mach-novatek/Kconfig
> new file mode 100644
> index 0000000000000..0e0f2f9ad3c54
> --- /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

[Severity: Low]
Should ARCH_NOVATEK and MACH_NT9856X be placed in arch/arm/Kconfig.platforms
instead of creating a new arch/arm/mach-novatek/ directory?

This platform has no machine-specific C code or Makefile.  Since commit
20e3ab9ecb37 ("ARM: Kconfig: move platform selection into its own Kconfig
file"), DT-only ARM platforms are consolidated in arch/arm/Kconfig.platforms,
which already hosts menuconfig/if blocks like ARCH_MOXART and ARCH_SUNPLUS.

Moving ARCH_NOVATEK between ARCH_MOXART and ARCH_NSPIRE in
arch/arm/Kconfig.platforms avoids a Kconfig-only mach-* directory, an extra
source line in arch/arm/Kconfig, and a single-file entry in MAINTAINERS.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1796311961.git.evan.zean@fastmail.com?part=2

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

* Re: [RFC PATCH v3 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs
  2026-12-03 15:34 ` [RFC PATCH v3 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs Evan Zane
@ 2026-12-03 15:59   ` sashiko-bot
  0 siblings, 0 replies; 7+ messages in thread
From: sashiko-bot @ 2026-12-03 15:59 UTC (permalink / raw)
  To: Evan Zane, devicetree; +Cc: robh, conor+dt

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] arm: dts: novatek: undocumented nt98560 and nt98562 compatibles
- [Low] arm: dts: novatek: commit message mismatches nodes added in
  nt9856x.dtsi
--

commit ea7d8171271968790bcbba850ddc55a4ea67eaf0
Author: Evan Zane <evan.zean@fastmail.com>

arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs

This commit adds base Devicetree source files for the Novatek NT98560,
NT98562 and NT98566 SoCs and wires the novatek directory into the ARM
DTS Makefile and MAINTAINERS.

> Describe the shared Cortex-A9 CPU, interrupt controller, timers and
> UART0.

[Severity: Low]
Does the commit message match the nodes actually added in nt9856x.dtsi?

nt9856x.dtsi defines only a single timer (timer@ffd00200) rather than
multiple timers, and also adds clock-periph, pmu, and the PL310 L2
cache controller (cache-controller@ffe00000) without mentioning them.

Updating the commit message to list the actual nodes, or adding a second
timer if one was omitted inadvertently, would keep the changelog accurate.

[ ... ]

> diff --git a/arch/arm/boot/dts/novatek/nt98560.dtsi b/arch/arm/boot/dts/novatek/nt98560.dtsi
> new file mode 100644
> index 0000000000000..ee59c9a964f7a
> --- /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 0000000000000..7f65ecb975a61
> --- /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>;
> +	};
> +};

[Severity: Low]
Should "novatek,nt98560" and "novatek,nt98562" be documented in the DT
bindings before being added here?

Documentation/devicetree/bindings/arm/novatek.yaml only lists
novatek,nt98566-evb-2v3 and novatek,nt98566, so checkpatch.pl flags both
compatibles as undocumented and dtbs_check will fail on any board DTS
that includes nt98560.dtsi or nt98562.dtsi.

Also, nt98560.dtsi has no in-tree board user, and nt98566.dtsi overrides
both compatible and memory@0 reg from nt98562.dtsi.  Either document
these compatibles in novatek.yaml with board users, or defer adding the
unused dtsi files until boards using them are added.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1796311961.git.evan.zean@fastmail.com?part=3

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

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

Thread overview: 7+ 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:50   ` sashiko-bot
2026-12-03 15:34 ` [RFC PATCH v3 3/4] arm: dts: novatek: Add NT98560, NT98562 and NT98566 SoCs Evan Zane
2026-12-03 15:59   ` sashiko-bot
2026-12-03 15:34 ` [RFC PATCH v3 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