Skip to contentSkip to conversation

Add support for rk3399 industry evaluation board

PATCH Superseded Chaoyi Chen 5 participants 12 messages Apr 27, 2025 – Apr 30, 2025

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Add support for rk3399 industry evaluation board

From: Chaoyi Chen <[email protected]>

General feature for rk3399 industry evaluation board:
- Rockchip RK3399
- 4GB LPDDR4
- emmc5.1
- SDIO3.0 compatible TF card
- 1x HDMI2.0a TX
- 1x HDMI1.4b RX with TC358749XBG HDMI to MIPI CSI2 bridge chip
- 1x type-c DisplayPort
- 3x USB3.0 Host
- 1x USB2.0 Host
- 1x Ethernet / USB3.0 to Ethernet

Tested with HDMI/GPU/USB2.0/USB3.0/Ethernet/TF card/emmc.

Chaoyi Chen (2):
dt-bindings: arm: rockchip: Add rk3399 industry evaluation board
arm64: dts: rockchip: Add rk3399-evb-ind board

 .../devicetree/bindings/arm/rockchip.yaml     |   5 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3399-evb-ind.dts      | 222 ++++++++++++++++++
 3 files changed, 228 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts

--
2.49.0

#1 lore raw

PATCH 1/2 dt-bindings: arm: rockchip: Add rk3399 industry evaluation board

From: Chaoyi Chen <[email protected]>

Add devicetree binding for the rk3399 industry evaluation board.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
index 650fb833d96e..684d48ba20fc 100644
@@ -1047,6 +1047,11 @@ properties:
           - const: rockchip,rk3399-evb
           - const: rockchip,rk3399
 
+      - description: Rockchip RK3399 Industry Evaluation board
+        items:
+          - const: rockchip,rk3399-evb-ind
+          - const: rockchip,rk3399
+
       - description: Rockchip RK3399 Sapphire standalone
         items:
           - const: rockchip,rk3399-sapphire
Signature · 1 line
2.49.0
Acked-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: arm: rockchip: Add rk3399 industry evaluation board

Quoted 8 lines · Chaoyi Chen

From: Chaoyi Chen <[email protected]>

Add devicetree binding for the rk3399 industry evaluation board.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)

Best regards,
Krzysztof

#3 lore raw

PATCH 2/2 arm64: dts: rockchip: Add rk3399-evb-ind board

In reply to Chaoyi Chen

From: Chaoyi Chen <[email protected]>

General feature for rk3399 industry evaluation board:
- Rockchip RK3399
- 4GB LPDDR4
- emmc5.1
- SDIO3.0 compatible TF card
- 1x HDMI2.0a TX
- 1x HDMI1.4b RX with TC358749XBG HDMI to MIPI CSI2 bridge chip
- 1x type-c DisplayPort
- 3x USB3.0 Host
- 1x USB2.0 Host
- 1x Ethernet / USB3.0 to Ethernet

Tested with HDMI/GPU/USB2.0/USB3.0/Ethernet/TF card/emmc.

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3399-evb-ind.dts      | 222 ++++++++++++++++++
 2 files changed, 223 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 3e8771ef69ba..8a3adb7482ca 100644
@@ -40,6 +40,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-px5-evb.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-eaidk-610.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-evb.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-evb-ind.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-ficus.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-firefly.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-bob.dtb
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +222 -0

222 lines not on this page · raw message

Signature · 1 line
2.49.0
#4 lore raw

Re: [PATCH 2/2] arm64: dts: rockchip: Add rk3399-evb-ind board

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 60

Quoted 8 lines

+&gmac {

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +7 -0
+	assigned-clocks = <&cru SCLK_RMII_SRC>;
+	assigned-clock-parents = <&clkin_gmac>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmii_pins>;
+	clock_in_out = "input";
+	phy-supply = <&vcc_phy>;
+	phy-mode = "rgmii";

Does the PCB have extra long clock lines to implement the RGMII 2ns delay?

Andrew

#5 lore raw

Re: [PATCH 2/2] arm64: dts: rockchip: Add rk3399-evb-ind board

Hi Andrew,

Quoted 10 lines · Andrew Lunn

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 60

Quoted 8 lines

+&gmac {

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +7 -0
+	assigned-clocks = <&cru SCLK_RMII_SRC>;
+	assigned-clock-parents = <&clkin_gmac>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmii_pins>;
+	clock_in_out = "input";
+	phy-supply = <&vcc_phy>;
+	phy-mode = "rgmii";

Does the PCB have extra long clock lines to implement the RGMII 2ns delay?

The 2ns delay of RGMII is implemented inside the RK3399 chip instead of PCB lines, and there are also additional delayline configurations.

Quoted 4 lines

Andrew

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#6 lore raw

Re: [PATCH 2/2] arm64: dts: rockchip: Add rk3399-evb-ind board

Quoted 13 lines · Chaoyi Chen

Hi Andrew,

Quoted 10 lines · Andrew Lunn

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 60

Quoted 8 lines

+&gmac {

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +7 -0
+	assigned-clocks = <&cru SCLK_RMII_SRC>;
+	assigned-clock-parents = <&clkin_gmac>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmii_pins>;
+	clock_in_out = "input";
+	phy-supply = <&vcc_phy>;
+	phy-mode = "rgmii";

Does the PCB have extra long clock lines to implement the RGMII 2ns delay?

Quoted 2 lines

The 2ns delay of RGMII is implemented inside the RK3399 chip instead of PCB lines, and there are also additional delayline configurations.

If the PCB does not implement the delay, rgmii is wrong.

If the MAC/PHY pair is implementing the delay, you need to use rgmii-id. You can then use additional properties to fine tune the delay the MAC/PHY is adding. And the Linux preference is that the PHY adds the delay.

Andrew

#7 lore raw

Re: [PATCH 2/2] arm64: dts: rockchip: Add rk3399-evb-ind board

Hi Andrew,

Quoted 14 lines · Andrew Lunn
Quoted 13 lines · Chaoyi Chen

Hi Andrew,

Quoted 10 lines · Andrew Lunn

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 60

Quoted 8 lines

+&gmac {

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +7 -0
+	assigned-clocks = <&cru SCLK_RMII_SRC>;
+	assigned-clock-parents = <&clkin_gmac>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmii_pins>;
+	clock_in_out = "input";
+	phy-supply = <&vcc_phy>;
+	phy-mode = "rgmii";

Does the PCB have extra long clock lines to implement the RGMII 2ns delay?

Quoted 8 lines
Quoted 2 lines

The 2ns delay of RGMII is implemented inside the RK3399 chip instead of PCB lines, and there are also additional delayline configurations.

If the PCB does not implement the delay, rgmii is wrong.

If the MAC/PHY pair is implementing the delay, you need to use rgmii-id. You can then use additional properties to fine tune the delay the MAC/PHY is adding. And the Linux preference is that the PHY adds the delay.

The signal path of RK3399 is as follows:

MAC <---> IO <---> PHY

In fact, the delay is added to the path between the MAC and the IO, rather than being implemented in the MAC itself. These delay value is controlled by the GRF register[0] . These paths are implemented inside the SoC and have not yet reached the board level.

According to the document[1], use "rgmii" when "RX and TX delays are added by the MAC when required". In addition, currently we can see that all RK3399 boards use "rgmii".  Is there anything I missed? Thank you.

[0]: https://lore.kernel.org/netdev/[email protected]/

[1]: https://www.kernel.org/doc/Documentation/devicetree/bindings/net/ethernet-controller.yaml

Quoted 4 lines

Andrew

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#8 lore raw

Re: [PATCH 2/2] arm64: dts: rockchip: Add rk3399-evb-ind board

Quoted 26 lines · Chaoyi Chen

Hi Andrew,

Quoted 14 lines · Andrew Lunn
Quoted 13 lines · Chaoyi Chen

Hi Andrew,

Quoted 10 lines · Andrew Lunn

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 60

Quoted 8 lines

+&gmac {

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +7 -0
+	assigned-clocks = <&cru SCLK_RMII_SRC>;
+	assigned-clock-parents = <&clkin_gmac>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmii_pins>;
+	clock_in_out = "input";
+	phy-supply = <&vcc_phy>;
+	phy-mode = "rgmii";

Does the PCB have extra long clock lines to implement the RGMII 2ns delay?

Quoted 8 lines
Quoted 2 lines

The 2ns delay of RGMII is implemented inside the RK3399 chip instead of PCB lines, and there are also additional delayline configurations.

If the PCB does not implement the delay, rgmii is wrong.

If the MAC/PHY pair is implementing the delay, you need to use rgmii-id. You can then use additional properties to fine tune the delay the MAC/PHY is adding. And the Linux preference is that the PHY adds the delay.

Quoted 8 lines

The signal path of RK3399 is as follows:

MAC <---> IO <---> PHY

In fact, the delay is added to the path between the MAC and the IO, rather than being implemented in the MAC itself. These delay value is controlled by the GRF register[0] . These paths are implemented inside the SoC and have not yet reached the board level.

'rgmii' implies that the PCB is implementing the delay. Since this is not the case here, you should be using rgmii-id.

Quoted 3 lines

According to the document[1], use "rgmii" when "RX and TX delays are added by the MAC when required". In addition, currently we can see that all RK3399 boards use "rgmii".  Is there anything I missed? Thank you.

What you are missing is that they are all wrong. Quite a few systems get is wrong at the moment, and i'm being more strict. Ideally i want to stop more examples of wrong rgmii being added. There is also a discussion going on to clarify the documentation.

Implementing delays via the IO is also reasonably common. The MAC should have control over the GRF register, normally via syscon. So the MAC can implement correct behaviour. The default is that the MAC, including IO, adds 0 delay, passes phy-mode to the PHY and the PHY adds the delay.

Please consider how you can fix the MAC driver without breaking all the boards using the wrong rgmii value. There are a few discussion about this on the mailing list if you go searching.

Andrew

#9 lore raw

Re: [PATCH 2/2] arm64: dts: rockchip: Add rk3399-evb-ind board

Hi Andrew,

Quoted 3 lines · Andrew Lunn

Please consider how you can fix the MAC driver without breaking all the boards using the wrong rgmii value. There are a few discussion about this on the mailing list if you go searching.

Thanks for the clarification. I'll fix the problems in the RK3399 gmac driver in a separate patch series. In v2 of this patch, I'll remove the ethernet device tree content for now.

#10 lore raw

Re: [PATCH 2/2] arm64: dts: rockchip: Add rk3399-evb-ind board

In reply to Chaoyi Chen

Hi Chaoyi,

Quoted 14 lines · Chaoyi Chen

From: Chaoyi Chen <[email protected]>

General feature for rk3399 industry evaluation board:
- Rockchip RK3399
- 4GB LPDDR4
- emmc5.1
- SDIO3.0 compatible TF card
- 1x HDMI2.0a TX
- 1x HDMI1.4b RX with TC358749XBG HDMI to MIPI CSI2 bridge chip
- 1x type-c DisplayPort
- 3x USB3.0 Host
- 1x USB2.0 Host
- 1x Ethernet / USB3.0 to Ethernet

Are there publicly available schematics by any chance?

Quoted 100 lines

Tested with HDMI/GPU/USB2.0/USB3.0/Ethernet/TF card/emmc.

---
  arch/arm64/boot/dts/rockchip/Makefile         |   1 +
  .../boot/dts/rockchip/rk3399-evb-ind.dts      | 222 ++++++++++++++++++
  2 files changed, 223 insertions(+)

create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts

arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 3e8771ef69ba..8a3adb7482ca 100644
@@ -40,6 +40,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-px5-evb.dtb
  dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb
  dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-eaidk-610.dtb
  dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-evb.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-evb-ind.dtb
  dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-ficus.dtb
  dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-firefly.dtb
  dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-bob.dtb
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +73 -0
new file mode 100644
index 000000000000..a995d4ff202d
@@ -0,0 +1,222 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2025 Rockchip Electronics Co., Ltd.
+ */
+
+/dts-v1/;
+#include "rk3399-base.dtsi"
+
+/ {
+	model = "Rockchip RK3399 EVB IND LPDDR4 Board";
+	compatible = "rockchip,rk3399-evb-ind", "rockchip,rk3399";
+
+	aliases {
+		ethernet0 = &gmac;
+		mmc0 = &sdhci;
+		mmc1 = &sdmmc;
+	};
+
+	chosen {
+		stdout-path = "serial2:1500000n8";
+	};
+
+	clkin_gmac: external-gmac-clock {
+		compatible = "fixed-clock";
+		clock-frequency = <125000000>;
+		clock-output-names = "clkin_gmac";
+		#clock-cells = <0>;
+	};
+
+	vcc5v0_sys: regulator-vcc5v0-sys {
+		compatible = "regulator-fixed";
+		enable-active-high;
+		gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
+		regulator-name = "vcc5v0_sys";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-max-microvolt = <5000000>;
+		regulator-min-microvolt = <5000000>;
+	};
+
+	vcc_phy: regulator-vcc-phy {
+		compatible = "regulator-fixed";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-name = "vcc_phy";
+	};
+};
+
+&emmc_phy {
+	status = "okay";
+};
+
+&gmac {
+	assigned-clocks = <&cru SCLK_RMII_SRC>;
+	assigned-clock-parents = <&clkin_gmac>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmii_pins>;
+	clock_in_out = "input";
+	phy-supply = <&vcc_phy>;
+	phy-mode = "rgmii";
+	snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
+	snps,reset-active-low;
+	snps,reset-delays-us = <0 10000 150000>;
+	tx_delay = <0x22>;
+	rx_delay = <0x23>;
+	status = "okay";
+};
+
+&gpu {
+	mali-supply = <&vdd_gpu>;
+	status = "okay";
+};
+

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 83

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +10 -0
+&hdmi {
+	pinctrl-names = "default";
+	pinctrl-0 = <&hdmi_i2c_xfer>, <&hdmi_cec>;
+	status = "okay";
+};
+
+&hdmi_in_vopl {
+	status = "disabled";
+};
+

Why disabled?

Quoted 19 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +19 -0
+&hdmi_sound {
+	status = "okay";
+};
+
+&i2c0 {
+	clock-frequency = <400000>;
+	i2c-scl-falling-time-ns = <4>;
+	i2c-scl-rising-time-ns = <168>;
+	status = "okay";
+
+	vdd_gpu: tcs4526@10 {
+		compatible = "tcs,tcs4525";
+		reg = <0x10>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&vsel2_gpio>;
+		fcs,suspend-voltage-selector = <1>;
+		vin-supply = <&vcc5v0_sys>;
+		vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
+		regulator-compatible = "fan53555-reg";

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 112

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +10 -0
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-initial-state = <3>;
+		regulator-max-microvolt = <1500000>;
+		regulator-min-microvolt = <712500>;
+		regulator-name = "vdd_gpu";
+		regulator-ramp-delay = <1000>;
+		regulator-state-mem {
+			regulator-off-in-suspend;
+		};

No RK80x PMIC on this board?

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 22

Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +3 -0
+	};
+};
+

Missing io_domains here no? I guess it'll rely on the addition of the RK80x PMIC for this to work?

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 122

Quoted 7 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +7 -0
+&sdmmc {
+	bus-width = <4>;
+	cap-mmc-highspeed;
+	cap-sd-highspeed;
+	cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
+	disable-wp;
+	max-frequency = <150000000>;

It's already defaulting to that frequency in rk3399-base.dtsi so no need to duplicate the info here.

Quoted 90 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +90 -0
+	pinctrl-names = "default";
+	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
+	status = "okay";
+};
+
+&sdhci {
+	bus-width = <8>;
+	keep-power-in-suspend;
+	mmc-hs400-1_8v;
+	mmc-hs400-enhanced-strobe;
+	no-sdio;
+	no-sd;
+	non-removable;
+	status = "okay";
+};
+
+&tcphy0 {
+	status = "okay";
+};
+
+&tcphy1 {
+	status = "okay";
+};
+
+&u2phy0 {
+	status = "okay";
+};
+
+&u2phy0_host {
+	status = "okay";
+};
+
+&u2phy0_otg {
+	status = "okay";
+};
+
+&u2phy1 {
+	status = "okay";
+};
+
+&u2phy1_host {
+	status = "okay";
+};
+
+&u2phy1_otg {
+	status = "okay";
+};
+
+&uart2 {
+	status = "okay";
+};
+
+&usbdrd_dwc3_0 {
+	status = "okay";
+};
+
+&usbdrd3_0 {
+	status = "okay";
+};
+
+&usbdrd3_1 {
+	status = "okay";
+};
+
+&usbdrd_dwc3_1 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&usb_host0_ehci {
+	status = "okay";
+};
+
+&usb_host0_ohci {
+	status = "okay";
+};
+
+&usb_host1_ehci {
+	status = "okay";
+};
+
+&usb_host1_ohci {
+	status = "okay";
+};
+
+&pinctrl {
+	pmic {
+		vsel2_gpio: vsel2-gpio {
+			rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
+		};

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 222

Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +10 -0
+	};
+};
+
+&vopb {
+	status = "okay";
+};
+
+&vopb_mmu {
+	status = "okay";
+};

Why no vopl?

Cheers,
Quentin

#11 lore raw

Re: [PATCH 2/2] arm64: dts: rockchip: Add rk3399-evb-ind board

Hi Quentin,

Quoted 18 lines · Quentin Schulz

Hi Chaoyi,

Quoted 14 lines · Chaoyi Chen

From: Chaoyi Chen <[email protected]>

General feature for rk3399 industry evaluation board:
- Rockchip RK3399
- 4GB LPDDR4
- emmc5.1
- SDIO3.0 compatible TF card
- 1x HDMI2.0a TX
- 1x HDMI1.4b RX with TC358749XBG HDMI to MIPI CSI2 bridge chip
- 1x type-c DisplayPort
- 3x USB3.0 Host
- 1x USB2.0 Host
- 1x Ethernet / USB3.0 to Ethernet

Quoted 1 line

Are there publicly available schematics by any chance?

Sorry, there is no publicly available information at present.

Quoted 105 lines
Quoted 105 lines

Tested with HDMI/GPU/USB2.0/USB3.0/Ethernet/TF card/emmc.

---
  arch/arm64/boot/dts/rockchip/Makefile         |   1 + .../boot/dts/rockchip/rk3399-evb-ind.dts      | 222 ++++++++++++++++++

  2 files changed, 223 insertions(+)

  create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts

arch/arm64/boot/dts/rockchip/Makefile +0 -0
index 3e8771ef69ba..8a3adb7482ca 100644
@@ -40,6 +40,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-px5-evb.dtb

  dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3368-r88.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-eaidk-610.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-evb.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-evb-ind.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-ficus.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-firefly.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-bob.dtb

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +77 -0
new file mode 100644
index 000000000000..a995d4ff202d
@@ -0,0 +1,222 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2025 Rockchip Electronics Co., Ltd.
+ */
+
+/dts-v1/;
+#include "rk3399-base.dtsi"
+
+/ {
+    model = "Rockchip RK3399 EVB IND LPDDR4 Board";
+    compatible = "rockchip,rk3399-evb-ind", "rockchip,rk3399";
+
+    aliases {
+        ethernet0 = &gmac;
+        mmc0 = &sdhci;
+        mmc1 = &sdmmc;
+    };
+
+    chosen {
+        stdout-path = "serial2:1500000n8";
+    };
+
+    clkin_gmac: external-gmac-clock {
+        compatible = "fixed-clock";
+        clock-frequency = <125000000>;
+        clock-output-names = "clkin_gmac";
+        #clock-cells = <0>;
+    };
+
+    vcc5v0_sys: regulator-vcc5v0-sys {
+        compatible = "regulator-fixed";
+        enable-active-high;
+        gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
+        regulator-name = "vcc5v0_sys";
+        regulator-always-on;
+        regulator-boot-on;
+        regulator-max-microvolt = <5000000>;
+        regulator-min-microvolt = <5000000>;
+    };
+
+    vcc_phy: regulator-vcc-phy {
+        compatible = "regulator-fixed";
+        regulator-always-on;
+        regulator-boot-on;
+        regulator-name = "vcc_phy";
+    };
+};
+
+&emmc_phy {
+    status = "okay";
+};
+
+&gmac {
+    assigned-clocks = <&cru SCLK_RMII_SRC>;
+    assigned-clock-parents = <&clkin_gmac>;
+    pinctrl-names = "default";
+    pinctrl-0 = <&rgmii_pins>;
+    clock_in_out = "input";
+    phy-supply = <&vcc_phy>;
+    phy-mode = "rgmii";
+    snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
+    snps,reset-active-low;
+    snps,reset-delays-us = <0 10000 150000>;
+    tx_delay = <0x22>;
+    rx_delay = <0x23>;
+    status = "okay";
+};
+
+&gpu {
+    mali-supply = <&vdd_gpu>;
+    status = "okay";
+};
+
+&hdmi {
+    pinctrl-names = "default";
+    pinctrl-0 = <&hdmi_i2c_xfer>, <&hdmi_cec>;
+    status = "okay";
Quoted 8 lines

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 83

Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +6 -0
+};
+
+&hdmi_in_vopl {
+    status = "disabled";
+};
+

Why disabled?

Will fix this on v2.

Quoted 24 lines
Quoted 24 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +23 -0
+&hdmi_sound {
+    status = "okay";
+};
+
+&i2c0 {
+    clock-frequency = <400000>;
+    i2c-scl-falling-time-ns = <4>;
+    i2c-scl-rising-time-ns = <168>;
+    status = "okay";
+
+    vdd_gpu: tcs4526@10 {
+        compatible = "tcs,tcs4525";
+        reg = <0x10>;
+        pinctrl-names = "default";
+        pinctrl-0 = <&vsel2_gpio>;
+        fcs,suspend-voltage-selector = <1>;
+        vin-supply = <&vcc5v0_sys>;
+        vsel-gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_HIGH>;
+        regulator-compatible = "fan53555-reg";
+        regulator-always-on;
+        regulator-boot-on;
+        regulator-initial-state = <3>;
+        regulator-max-microvolt = <1500000>;
Quoted 8 lines

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 112

Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +6 -0
+        regulator-min-microvolt = <712500>;
+        regulator-name = "vdd_gpu";
+        regulator-ramp-delay = <1000>;
+        regulator-state-mem {
+            regulator-off-in-suspend;
+        };

No RK80x PMIC on this board?

It has a RK809 PMIC on this board.  I will add this on v2.

Quoted 6 lines

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 22

Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +3 -0
+    };
+};
+

Missing io_domains here no? I guess it'll rely on the addition of the RK80x PMIC for this to work?

Yes, I will add this on v2.

Quoted 10 lines

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 122

Quoted 8 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +7 -0
+&sdmmc {
+    bus-width = <4>;
+    cap-mmc-highspeed;
+    cap-sd-highspeed;
+    cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
+    disable-wp;
+    max-frequency = <150000000>;

It's already defaulting to that frequency in rk3399-base.dtsi so no need to duplicate the info here.

Will fix this on v2.

Quoted 95 lines
Quoted 95 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +94 -0
+    pinctrl-names = "default";
+    pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
+    status = "okay";
+};
+
+&sdhci {
+    bus-width = <8>;
+    keep-power-in-suspend;
+    mmc-hs400-1_8v;
+    mmc-hs400-enhanced-strobe;
+    no-sdio;
+    no-sd;
+    non-removable;
+    status = "okay";
+};
+
+&tcphy0 {
+    status = "okay";
+};
+
+&tcphy1 {
+    status = "okay";
+};
+
+&u2phy0 {
+    status = "okay";
+};
+
+&u2phy0_host {
+    status = "okay";
+};
+
+&u2phy0_otg {
+    status = "okay";
+};
+
+&u2phy1 {
+    status = "okay";
+};
+
+&u2phy1_host {
+    status = "okay";
+};
+
+&u2phy1_otg {
+    status = "okay";
+};
+
+&uart2 {
+    status = "okay";
+};
+
+&usbdrd_dwc3_0 {
+    status = "okay";
+};
+
+&usbdrd3_0 {
+    status = "okay";
+};
+
+&usbdrd3_1 {
+    status = "okay";
+};
+
+&usbdrd_dwc3_1 {
+    dr_mode = "host";
+    status = "okay";
+};
+
+&usb_host0_ehci {
+    status = "okay";
+};
+
+&usb_host0_ohci {
+    status = "okay";
+};
+
+&usb_host1_ehci {
+    status = "okay";
+};
+
+&usb_host1_ohci {
+    status = "okay";
+};
+
+&pinctrl {
+    pmic {
+        vsel2_gpio: vsel2-gpio {
+            rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
+        };
+    };
+};
+
+&vopb {
Quoted 8 lines

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts line 222

Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts new file +6 -0
+    status = "okay";
+};
+
+&vopb_mmu {
+    status = "okay";
+};

Why no vopl?

Will enable vopl in v2.

Quoted 5 lines

Cheers,
Quentin