Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board
@ 2026-11-29 17:20 Zunyi Hu
  2026-11-29 17:20 ` [PATCH 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND Zunyi Hu
  2026-11-30 18:38 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Jernej Škrabec
  0 siblings, 2 replies; 3+ messages in thread
From: Zunyi Hu @ 2026-11-29 17:20 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Ripard,
	devicetree, linux-arm-kernel, linux-sunxi, linux-kernel, Zunyi Hu

Add the ailian vendor prefix and document the MR-DHV3 V1.0 board
compatible string.

Signed-off-by: Zunyi Hu <roberhu001@163.com>
---
 Documentation/devicetree/bindings/arm/sunxi.yaml       | 5 +++++
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml
index 28437c47ac01..f91c7f6159f0 100644
--- a/Documentation/devicetree/bindings/arm/sunxi.yaml
+++ b/Documentation/devicetree/bindings/arm/sunxi.yaml
@@ -579,6 +579,11 @@ properties:
           - const: allwinner,mk808c
           - const: allwinner,sun7i-a20
 
+      - description: MR-DHV3 V1.0
+        items:
+          - const: ailian,mr-dhv3
+          - const: allwinner,sun8i-v3s
+
       - description: MSI Primo81 Tablet
         items:
           - const: msi,primo81
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 5471a06f93f1..80315fd860b9 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -76,6 +76,8 @@ patternProperties:
     description: Aeroflex Gaisler AB
   "^aesop,.*":
     description: AESOP Embedded Forum
+  "^ailian,.*":
+    description: AiLian
   "^airoha,.*":
     description: Airoha
   "^al,.*":
-- 
2.17.1



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

* [PATCH 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND
  2026-11-29 17:20 [PATCH 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu
@ 2026-11-29 17:20 ` Zunyi Hu
  2026-11-30 18:38 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Jernej Škrabec
  1 sibling, 0 replies; 3+ messages in thread
From: Zunyi Hu @ 2026-11-29 17:20 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Ripard,
	devicetree, linux-arm-kernel, linux-sunxi, linux-kernel, Zunyi Hu

The AiLian MR-DHV3 V1.0 is an Allwinner V3s network phone with an
onboard Winbond W25N01G 1Gbit SPI NAND on SPI0 (PC0-PC3, standard
4-wire SPI).

Enable UART0, MMC0, EMAC, USB OTG, and describe fixed MTD partitions
for boot0, U-Boot, kernel and rootfs.

Signed-off-by: Zunyi Hu <roberhu001@163.com>
---
 arch/arm/boot/dts/allwinner/Makefile          |   1 +
 .../boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts  | 110 ++++++++++++++++++
 2 files changed, 111 insertions(+)
 create mode 100644 arch/arm/boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts

diff --git a/arch/arm/boot/dts/allwinner/Makefile b/arch/arm/boot/dts/allwinner/Makefile
index 75b2b6a2f7a6..35582b0d8277 100644
--- a/arch/arm/boot/dts/allwinner/Makefile
+++ b/arch/arm/boot/dts/allwinner/Makefile
@@ -273,6 +273,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
 	sun8i-v3s-anbernic-rg-nano.dtb \
 	sun8i-v3s-licheepi-zero.dtb \
 	sun8i-v3s-licheepi-zero-dock.dtb \
+	sun8i-v3s-mr-dhv3.dtb \
 	sun8i-v3s-netcube-kumquat.dtb \
 	sun8i-v40-bananapi-m2-berry.dtb
 sun8i-h2-plus-orangepi-zero-interface-board-dtbs += \
diff --git a/arch/arm/boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts b/arch/arm/boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts
new file mode 100644
index 000000000000..94922f8f8308
--- /dev/null
+++ b/arch/arm/boot/dts/allwinner/sun8i-v3s-mr-dhv3.dts
@@ -0,0 +1,110 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2026 Zunyi Hu <roberhu001@163.com>
+ *
+ * Device Tree for MR-DHV3 V1.0 (Allwinner V3s network phone).
+ * Onboard SPI NAND is Winbond W25N01G on SPI0 (PC0-PC3).
+ */
+
+/dts-v1/;
+#include "sun8i-v3s.dtsi"
+#include "sunxi-common-regulators.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+
+/ {
+	model = "AiLian MR-DHV3 V1.0";
+	compatible = "ailian,mr-dhv3", "allwinner,sun8i-v3s";
+
+	aliases {
+		serial0 = &uart0;
+		ethernet0 = &emac;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led-run {
+			gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */
+			linux,default-trigger = "heartbeat";
+			color = <LED_COLOR_ID_GREEN>;
+			function = LED_FUNCTION_HEARTBEAT;
+		};
+	};
+};
+
+&uart0 {
+	pinctrl-0 = <&uart0_pb_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&mmc0 {
+	broken-cd;
+	bus-width = <4>;
+	vmmc-supply = <&reg_vcc3v3>;
+	status = "okay";
+};
+
+&mmc1 {
+	status = "disabled";
+};
+
+/*
+ * W25N01G 1 Gbit SPI NAND on SPI0 (PC0-PC3). Standard 4-wire SPI only;
+ * the V3s SPI0 pinmux does not expose IO2/IO3 for quad mode.
+ */
+&spi0 {
+	status = "okay";
+
+	flash@0 {
+		compatible = "spi-nand";
+		reg = <0>;
+		spi-max-frequency = <48000000>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			partition@0 {
+				label = "boot0";
+				reg = <0x0 0x200000>;
+			};
+
+			partition@200000 {
+				label = "uboot";
+				reg = <0x200000 0x200000>;
+			};
+
+			partition@400000 {
+				label = "kernel";
+				reg = <0x400000 0x800000>;
+			};
+
+			partition@c00000 {
+				label = "rootfs";
+				reg = <0xc00000 0x7400000>;
+			};
+		};
+	};
+};
+
+&emac {
+	status = "okay";
+};
+
+&usb_otg {
+	dr_mode = "otg";
+	status = "okay";
+};
+
+&usbphy {
+	usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
+	status = "okay";
+};
-- 
2.17.1



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

* Re: [PATCH 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board
  2026-11-29 17:20 [PATCH 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu
  2026-11-29 17:20 ` [PATCH 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND Zunyi Hu
@ 2026-11-30 18:38 ` Jernej Škrabec
  1 sibling, 0 replies; 3+ messages in thread
From: Jernej Škrabec @ 2026-11-30 18:38 UTC (permalink / raw)
  To: Chen-Yu Tsai, Samuel Holland, linux-sunxi
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Ripard,
	devicetree, linux-arm-kernel, linux-sunxi, linux-kernel, Zunyi Hu,
	Zunyi Hu

Dne nedelja, 29. november 2026 ob 18:20:26 Srednjeevropski standardni čas je Zunyi Hu napisal(a):
> Add the ailian vendor prefix and document the MR-DHV3 V1.0 board
> compatible string.

Before going into review, where can I find any info regarding this
board? Google doesn't find anything.

Best regards,
Jernej

> 
> Signed-off-by: Zunyi Hu <roberhu001@163.com>
> ---
>  Documentation/devicetree/bindings/arm/sunxi.yaml       | 5 +++++
>  Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
>  2 files changed, 7 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml
> index 28437c47ac01..f91c7f6159f0 100644
> --- a/Documentation/devicetree/bindings/arm/sunxi.yaml
> +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml
> @@ -579,6 +579,11 @@ properties:
>            - const: allwinner,mk808c
>            - const: allwinner,sun7i-a20
>  
> +      - description: MR-DHV3 V1.0
> +        items:
> +          - const: ailian,mr-dhv3
> +          - const: allwinner,sun8i-v3s
> +
>        - description: MSI Primo81 Tablet
>          items:
>            - const: msi,primo81
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> index 5471a06f93f1..80315fd860b9 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> @@ -76,6 +76,8 @@ patternProperties:
>      description: Aeroflex Gaisler AB
>    "^aesop,.*":
>      description: AESOP Embedded Forum
> +  "^ailian,.*":
> +    description: AiLian
>    "^airoha,.*":
>      description: Airoha
>    "^al,.*":
> 






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

end of thread, other threads:[~2026-11-30 18:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29 17:20 [PATCH 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Zunyi Hu
2026-11-29 17:20 ` [PATCH 2/2] arm: dts: sunxi: Add AiLian MR-DHV3 board with SPI NAND Zunyi Hu
2026-11-30 18:38 ` [PATCH 1/2] dt-bindings: arm: sunxi: Add AiLian MR-DHV3 board Jernej Škrabec

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