Skip to contentSkip to conversation

ARM: dts: sun8i-h3: Add support for the RerVision H3-DVK board

PATCH Superseded Paul Kocialkowski 2 participants 3 messages Mar 14, 2019 – Mar 15, 2019

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: sun8i-h3: Add support for the RerVision H3-DVK board

This is an H3-based board that sticks close to the reference design.

Supported features:
* UART
* DRAM
* MMC
* eMMC
* Ethernet
* USB host
* USB peripheral
* HDMI

---
 arch/arm/boot/dts/Makefile                   |   1 +
 arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts | 119 +++++++++++++++++++
 2 files changed, 120 insertions(+)
 create mode 100644 arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts
arch/arm/boot/dts/Makefile +1 -0
index bd40148a15b2..8db275b75214 100644
@@ -1078,6 +1078,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
 	sun8i-h3-orangepi-plus.dtb \
 	sun8i-h3-orangepi-plus2e.dtb \
 	sun8i-h3-orangepi-zero-plus2.dtb \
+	sun8i-h3-rervision-dvk.dtb \
 	sun8i-r16-bananapi-m2m.dtb \
 	sun8i-r16-nintendo-nes-classic.dtb \
 	sun8i-r16-nintendo-super-nes-classic.dtb \
arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts new file +119 -0

119 lines not on this page · raw message

Signature · 1 line
2.21.0
#1 lore raw
Quoted 60 lines · Paul Kocialkowski

This is an H3-based board that sticks close to the reference design.

Supported features:
* UART
* DRAM
* MMC
* eMMC
* Ethernet
* USB host
* USB peripheral
* HDMI

---
 arch/arm/boot/dts/Makefile                   |   1 +
 arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts | 119 +++++++++++++++++++
 2 files changed, 120 insertions(+)
 create mode 100644 arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts
arch/arm/boot/dts/Makefile +1 -0
index bd40148a15b2..8db275b75214 100644
@@ -1078,6 +1078,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
 	sun8i-h3-orangepi-plus.dtb \
 	sun8i-h3-orangepi-plus2e.dtb \
 	sun8i-h3-orangepi-zero-plus2.dtb \
+	sun8i-h3-rervision-dvk.dtb \
 	sun8i-r16-bananapi-m2m.dtb \
 	sun8i-r16-nintendo-nes-classic.dtb \
 	sun8i-r16-nintendo-super-nes-classic.dtb \
arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts new file +23 -0
new file mode 100644
index 000000000000..94b71e064eb6
@@ -0,0 +1,119 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2019 Bootlin
+ * Author: Paul Kocialkowski <[email protected]>
+ */
+
+/dts-v1/;
+#include "sun8i-h3.dtsi"
+#include "sunxi-common-regulators.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+	model = "RerVision H3-DVK";
+	compatible = "rervision,h3-dvk", "allwinner,sun8i-h3";
+
+	aliases {
+		ethernet0 = &emac;
+		serial0 = &uart0;
+	};
+
+	chosen {

arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts line 33

Quoted 10 lines
arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts new file +10 -0
+		stdout-path = "serial0:115200n8";
+	};
+
+	connector {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_connector_input: endpoint {
+				remote-endpoint = <&hdmi_connector_output>;

Those are pretty long labels, how would you feel about hdmi_con_in and hdmi_out_con, as we've used on all the other boards?

arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts line 92

Quoted 4 lines
arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts new file +4 -0
+&mmc2_8bit_pins {
+	drive-strength = <40>;
+	bias-pull-up;
+};

bias-pull-up is already set by default, and a 30mA drive strength should cover what the spec asks for. Did you encounter any issue with this?

Maxime

Signature · 3 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

Hi,

Quoted 66 lines · Maxime Ripard
Quoted 65 lines · Paul Kocialkowski

This is an H3-based board that sticks close to the reference design.

Supported features:
* UART
* DRAM
* MMC
* eMMC
* Ethernet
* USB host
* USB peripheral
* HDMI

---
 arch/arm/boot/dts/Makefile                   |   1 +
 arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts | 119 +++++++++++++++++++
 2 files changed, 120 insertions(+)
 create mode 100644 arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts
arch/arm/boot/dts/Makefile +1 -0
index bd40148a15b2..8db275b75214 100644
@@ -1078,6 +1078,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
 	sun8i-h3-orangepi-plus.dtb \
 	sun8i-h3-orangepi-plus2e.dtb \
 	sun8i-h3-orangepi-zero-plus2.dtb \
+	sun8i-h3-rervision-dvk.dtb \
 	sun8i-r16-bananapi-m2m.dtb \
 	sun8i-r16-nintendo-nes-classic.dtb \
 	sun8i-r16-nintendo-super-nes-classic.dtb \
arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts new file +28 -0
new file mode 100644
index 000000000000..94b71e064eb6
@@ -0,0 +1,119 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2019 Bootlin
+ * Author: Paul Kocialkowski <[email protected]>
+ */
+
+/dts-v1/;
+#include "sun8i-h3.dtsi"
+#include "sunxi-common-regulators.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+	model = "RerVision H3-DVK";
+	compatible = "rervision,h3-dvk", "allwinner,sun8i-h3";
+
+	aliases {
+		ethernet0 = &emac;
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	connector {
+		compatible = "hdmi-connector";
Quoted 8 lines

arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts line 33

Quoted 5 lines
arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts new file +5 -0
+		type = "a";
+
+		port {
+			hdmi_connector_input: endpoint {
+				remote-endpoint = <&hdmi_connector_output>;

Those are pretty long labels, how would you feel about hdmi_con_in and hdmi_out_con, as we've used on all the other boards?

Sure, let's go with label names that match what is done on other boards!

Quoted 8 lines

arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts line 92

Quoted 4 lines
arch/arm/boot/dts/sun8i-h3-rervision-dvk.dts new file +4 -0
+&mmc2_8bit_pins {
+	drive-strength = <40>;
+	bias-pull-up;
+};

bias-pull-up is already set by default, and a 30mA drive strength should cover what the spec asks for. Did you encounter any issue with this?

You're right, I don't need to set this in particular and the eMMC works just as well with the defaults.

Cheers,

Paul

Signature · 3 lines
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com