Skip to contentSkip to conversation

RFC: Pine64 Pinetab-V dts Device Tree File

RFC PATCH Superseded anoduck 2 participants 2 messages Jul 18 RISC-V

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

anoduck

author
#0 lore raw

RFC PATCH 1/1 RFC: Pine64 Pinetab-V dts Device Tree File

Added compilable PineTab-V device-tree dts file derived from pine64 community distributed dts and additional parameters Community provided definitions:
- Audio Codec
- Accelerometer

Additional parameters include:
- Definitions for sd-card and on board EMMC devices
- Definitins for power supply to sd-card

---
Provide support for the Pine64 Pinetab-V Risc-V 64bit Tablet

---
 .../src/riscv/starfive/jh7110-pine64-pinetabv.dts  | 116 +++++++++++++++++++++
 1 file changed, 116 insertions(+)
dts/upstream/src/riscv/starfive/jh7110-pine64-pinetabv.dts new file +116 -0
new file mode 100644
index 00000000000..1115b0be4cc
@@ -0,0 +1,116 @@
+// SPDX-License-Identifier: GPL-2.0 OR MIT
+/*
+ * Copyright (C) 2026 T Anoduck <[email protected]>
+ * Through the Graces of: E Shattow <[email protected]>
+ * REV-DATE: July 18, 2026
+ */
+
+/dts-v1/;
+#include "jh7110-common.dtsi"
+
+/ {
+	compatible = "pine64,pinetabv", "starfive,jh7110";
+	model = "Pine64 PinetabV";
+
+	soc {
+		i2c@10030000 {
+			compatible = "snps,designware-i2c";
+			reg = <0x00 0x10030000 0x00 0x10000>;
+			clocks = <0x03 0x8a>;
+			clock-names = "ref";
+			resets = <0x03 0x4c>;
+			interrupts = <0x23>;
+			#address-cells = <0x01>;
+			#size-cells = <0x00>;
+			status = "okay";
+			clock-frequency = <0x186a0>;
+			i2c-sda-hold-time-ns = <0x12c>;
+			i2c-sda-falling-time-ns = <0x1fe>;
+			i2c-scl-falling-time-ns = <0x1fe>;
+			pinctrl-names = "default";
+			pinctrl-0 = <0x17>;
+
+			audio-codec@11 {
+				compatible = "everest,es8316";
+				reg = <0x11>;
+				clocks = <0x18>;
+				clock-names = "mclk";
+				#sound-dai-cells = <0x00>;
+				papower-gpio = <0x19 0x32 0x00>;
+				hp-det-gpio = <0x19 0x24 0x00>;
+				phandle = <0x64>;
+			};
+
+			accelerometer@18 {
+				compatible = "silan,sc7a20";
+				reg = <0x18>;
+				mount-matrix = "0", "0", "-1", "1", "0", "0", "0", "-1", "0";
+			};
+		};
+	sd_vcc: sd-vcc {
+		compatible = "regulator-fixed";
+		regulator-name = "sd_vcc";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <0x19 0x23 0x00>;
+		enable-active-low;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+		mmc@16010000 {
+			compatible = "starfive,jh7110-mmc";
+			reg = <0x00 0x16010000 0x00 0x10000>;
+			clocks = <0x03 0x5b 0x03 0x5d>;
+			clock-names = "biu", "ciu";
+			resets = <0x03 0x40>;
+			reset-names = "reset";
+			interrupts = <0x4a>;
+			fifo-depth = <0x20>;
+			fifo-watermark-aligned;
+			data-addr = <0x00>;
+			starfive,sysreg = <0x1f 0x14 0x1a 0x7c000000>;
+			status = "okay";
+			max-frequency = <0x5f5e100>;
+			assigned-clocks = <0x03 0x5d>;
+			vmmc-supply = <&sd_vcc>;
+			assigned-clock-rates = <0x2faf080>;
+			bus-width = <0x08>;
+			cap-mmc-highspeed;
+			mmc-ddr-1_8v;
+			mmc-hs200-1_8v;
+			non-removable;
+			cap-mmc-hw-reset;
+			post-power-on-delay-ms = <0xc8>;
+			pinctrl-names = "default";
+			pinctrl-0 = <0x3c>;
+			vqmmc-supply = <&sd_vcc>;
+		};
+
+		mmc@16020000 {
+			compatible = "starfive,jh7110-mmc";
+			reg = <0x00 0x16020000 0x00 0x10000>;
+			clocks = <0x03 0x5c 0x03 0x5e>;
+			clock-names = "biu", "ciu";
+			resets = <0x03 0x41>;
+			reset-names = "reset";
+			interrupts = <0x4b>;
+			fifo-depth = <0x20>;
+			fifo-watermark-aligned;
+			data-addr = <0x00>;
+			starfive,sysreg = <0x1f 0x9c 0x01 0x3e>;
+			status = "okay";
+			max-frequency = <0x5f5e100>;
+			assigned-clocks = <0x03 0x5e>;
+			assigned-clock-rates = <0x2faf080>;
+			bus-width = <0x04>;
+			no-sdio;
+			no-mmc;
+			cd-gpios = <0x19 0x29 0x01>;
+			cap-sd-highspeed;
+			post-power-on-delay-ms = <0xc8>;
+			pinctrl-names = "default";
+			pinctrl-0 = <0x3e>;
+		};
+	};
+};

---
base-commit: 605d72111224172381a2a94d734183222d5b8952
change-id: 20260718-develop-1e9fbc9b4fe0

Best regards,

Signature · 1 line
anoduck <[email protected]>
#1 lore raw
Quoted 9 lines · anoduck

Added compilable PineTab-V device-tree dts file derived from pine64 community distributed dts and additional parameters Community provided definitions:
- Audio Codec
- Accelerometer

Additional parameters include:
- Definitions for sd-card and on board EMMC devices
- Definitins for power supply to sd-card

Quoted 8 lines

---
Provide support for the Pine64 Pinetab-V Risc-V 64bit Tablet

---
 .../src/riscv/starfive/jh7110-pine64-pinetabv.dts  | 116 +++++++++++++++++++++
 1 file changed, 116 insertions(+)

So per the documentation at
https://docs.u-boot-project.org/en/latest/develop/devicetree/control.html#resyncing-with-devicetree-rebasing
we only take modifications in dts/upstream that are strict cherry-pick's from the upstream source. This needs to be done under arch/riscv/ instead, and you should split the additional changes in to a -u-boot.dtsi suffixed file, so that it's easier to replace this with the upstream file when ready. Thanks.

Signature · 1 line
Tom