All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: dts: rockchip: Add Meibeike BeikeYun P1 support
@ 2026-12-05 12:15 ` Jun Yan
  0 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-05 12:15 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Jun Yan

This series adds support for the BeikeYun P1, an RK3328 based set-top
box from Shenzhen Meibeike Technology Co., Ltd.

The first two patches add the Meibeike vendor prefix and the board
compatible string, the last one adds a device tree based on unifreq's
out-of-tree Linux v6.18 tree, reworked to follow mainline bindings and
conventions.

Jun Yan (3):
  dt-bindings: vendor-prefixes: Add Meibeike
  dt-bindings: arm: rockchip: Add Meibeike BeikeYun P1
  arm64: dts: rockchip: rk3328: Add Meibeike BeikeYun P1

 .../devicetree/bindings/arm/rockchip.yaml     |   5 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 .../boot/dts/rockchip/rk3328-beikeyun-p1.dts  | 257 ++++++++++++++++++
 3 files changed, 264 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts


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

* [PATCH 0/3] arm64: dts: rockchip: Add Meibeike BeikeYun P1 support
@ 2026-12-05 12:15 ` Jun Yan
  0 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-05 12:15 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Jun Yan

This series adds support for the BeikeYun P1, an RK3328 based set-top
box from Shenzhen Meibeike Technology Co., Ltd.

The first two patches add the Meibeike vendor prefix and the board
compatible string, the last one adds a device tree based on unifreq's
out-of-tree Linux v6.18 tree, reworked to follow mainline bindings and
conventions.

Jun Yan (3):
  dt-bindings: vendor-prefixes: Add Meibeike
  dt-bindings: arm: rockchip: Add Meibeike BeikeYun P1
  arm64: dts: rockchip: rk3328: Add Meibeike BeikeYun P1

 .../devicetree/bindings/arm/rockchip.yaml     |   5 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 .../boot/dts/rockchip/rk3328-beikeyun-p1.dts  | 257 ++++++++++++++++++
 3 files changed, 264 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 1/3] dt-bindings: vendor-prefixes: Add Meibeike
  2026-12-05 12:15 ` Jun Yan
@ 2026-12-05 12:15   ` Jun Yan
  -1 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-05 12:15 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Jun Yan

Add the "meibeike" vendor prefix for Shenzhen Meibeike Technology
Co., Ltd., a company that develops and trades electronic, smart home
and cloud computing hardware and software.

Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 20a3b24319c4..c27ebf581947 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -1069,6 +1069,8 @@ patternProperties:
     description: Medion AG
   "^megachips,.*":
     description: MegaChips
+  "^meibeike,.*":
+    description: Shenzhen Meibeike Technology Co., Ltd.
   "^mele,.*":
     description: Shenzhen MeLE Digital Technology Ltd.
   "^melexis,.*":

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

* [PATCH 1/3] dt-bindings: vendor-prefixes: Add Meibeike
@ 2026-12-05 12:15   ` Jun Yan
  0 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-05 12:15 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Jun Yan

Add the "meibeike" vendor prefix for Shenzhen Meibeike Technology
Co., Ltd., a company that develops and trades electronic, smart home
and cloud computing hardware and software.

Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 20a3b24319c4..c27ebf581947 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -1069,6 +1069,8 @@ patternProperties:
     description: Medion AG
   "^megachips,.*":
     description: MegaChips
+  "^meibeike,.*":
+    description: Shenzhen Meibeike Technology Co., Ltd.
   "^mele,.*":
     description: Shenzhen MeLE Digital Technology Ltd.
   "^melexis,.*":

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 2/3] dt-bindings: arm: rockchip: Add Meibeike BeikeYun P1
  2026-12-05 12:15 ` Jun Yan
@ 2026-12-05 12:15   ` Jun Yan
  -1 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-05 12:15 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Jun Yan

Document the BeikeYun P1, an RK3328 based set-top box from Meibeike.

Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml
index 887b0ca640af..b06265c02565 100644
--- a/Documentation/devicetree/bindings/arm/rockchip.yaml
+++ b/Documentation/devicetree/bindings/arm/rockchip.yaml
@@ -893,6 +893,11 @@ properties:
           - const: widora,mangopi-m28k
           - const: rockchip,rk3528
 
+      - description: Meibeike BeikeYun P1
+        items:
+          - const: meibeike,beikeyun-p1
+          - const: rockchip,rk3328
+
       - description: mqmaker MiQi
         items:
           - const: mqmaker,miqi

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

* [PATCH 2/3] dt-bindings: arm: rockchip: Add Meibeike BeikeYun P1
@ 2026-12-05 12:15   ` Jun Yan
  0 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-05 12:15 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Jun Yan

Document the BeikeYun P1, an RK3328 based set-top box from Meibeike.

Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml
index 887b0ca640af..b06265c02565 100644
--- a/Documentation/devicetree/bindings/arm/rockchip.yaml
+++ b/Documentation/devicetree/bindings/arm/rockchip.yaml
@@ -893,6 +893,11 @@ properties:
           - const: widora,mangopi-m28k
           - const: rockchip,rk3528
 
+      - description: Meibeike BeikeYun P1
+        items:
+          - const: meibeike,beikeyun-p1
+          - const: rockchip,rk3328
+
       - description: mqmaker MiQi
         items:
           - const: mqmaker,miqi

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Meibeike BeikeYun P1
  2026-12-05 12:15 ` Jun Yan
@ 2026-12-05 12:15   ` Jun Yan
  -1 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-05 12:15 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Jun Yan

Add a device tree for the BeikeYun P1, an RK3328 based set-top box from
Meibeike.

The device tree is based on unifreq's out-of-tree Linux v6.18 device
tree:

https://github.com/unifreq/linux-6.18.y/blob/main/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-1296mhz.dts

It has been reworked to follow the mainline bindings and conventions.

Hardware description:

- SoC: RK3328 (no PMIC)
- RAM: 1G DDR3L
- Storage: 8G eMMC
- Gigabit Ethernet port
- HDMI port
- USB 3.0 via a GL3520 4-port USB hub
- USB 2.0 OTG
- Two GPIO LEDs

Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
---
 .../boot/dts/rockchip/rk3328-beikeyun-p1.dts  | 257 ++++++++++++++++++
 1 file changed, 257 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts

diff --git a/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts b/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts
new file mode 100644
index 000000000000..db4f51b5708f
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts
@@ -0,0 +1,257 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+// Copyright (C) 2026 unifreq
+// Copyright (C) 2026 Jun Yan <jerrysteve1101@gmail.com>
+
+/dts-v1/;
+
+#include <dt-bindings/leds/common.h>
+#include "rk3328.dtsi"
+
+/ {
+	model = "BeikeYun P1";
+	compatible = "meibeike,beikeyun-p1", "rockchip,rk3328";
+
+	aliases {
+		mmc0 = &emmc;
+		serial2 = &uart2;
+	};
+
+	chosen {
+		stdout-path = "serial2:1500000n8";
+	};
+
+	gmac_clkin: external-gmac-clock {
+		compatible = "fixed-clock";
+		clock-frequency = <125000000>;
+		clock-output-names = "gmac_clkin";
+		#clock-cells = <0>;
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led-0 {
+			color = <LED_COLOR_ID_RED>;
+			function = LED_FUNCTION_DISK_ACTIVITY;
+			gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "mmc0";
+		};
+
+		led-1 {
+			color = <LED_COLOR_ID_WHITE>;
+			function = LED_FUNCTION_STATUS;
+			gpios = <&gpio2 RK_PC7 GPIO_ACTIVE_HIGH>;
+			default-state = "on";
+		};
+	};
+
+	vcc_sys_12v: vcc-sys-12v {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_sys_12v";
+		regulator-min-microvolt = <12000000>;
+		regulator-max-microvolt = <12000000>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
+	vcc_sys_5v: vcc-sys-5v {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_sys_5v";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&vcc_sys_12v>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
+	vccio_1v8: vccio-1v8 {
+		compatible = "regulator-fixed";
+		regulator-name = "vccio_1v8";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-always-on;
+	};
+
+	vccio_3v3: vccio-3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "vccio_3v3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+	};
+
+	vdd_arm: vdd-arm {
+		compatible = "pwm-regulator";
+		pwms = <&pwm0 0 5000 1>;
+		regulator-name = "vcc_arm";
+		regulator-min-microvolt = <950000>;
+		regulator-max-microvolt = <1400000>;
+		regulator-settling-time-up-us = <250>;
+		regulator-ramp-delay = <12500>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
+	vdd_logic: vdd-logic {
+		compatible = "pwm-regulator";
+		pwms = <&pwm1 0 5000 1>;
+		regulator-name = "vcc_log";
+		regulator-min-microvolt = <900000>;
+		regulator-max-microvolt = <1300000>;
+		regulator-settling-time-up-us = <250>;
+		regulator-ramp-delay = <12500>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+};
+
+&cpu0 {
+	cpu-supply = <&vdd_arm>;
+};
+
+&cpu1 {
+	cpu-supply = <&vdd_arm>;
+};
+
+&cpu2 {
+	cpu-supply = <&vdd_arm>;
+};
+
+&cpu3 {
+	cpu-supply = <&vdd_arm>;
+};
+
+&emmc {
+	bus-width = <8>;
+	max-frequency = <150000000>;
+	cap-mmc-highspeed;
+	mmc-hs200-1_8v;
+	non-removable;
+	pinctrl-names = "default";
+	pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>;
+	vmmc-supply = <&vccio_3v3>;
+	vqmmc-supply = <&vccio_1v8>;
+	status = "okay";
+};
+
+&gmac2io {
+	assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
+	assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
+	clock_in_out = "input";
+	phy-handle = <&rtl8211f>;
+	phy-supply = <&vccio_3v3>;
+	/* TX and RX delays are applied by the MAC, see tx_delay/rx_delay. */
+	phy-mode = "rgmii";
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmiim1_pins>;
+	snps,aal;
+	snps,pbl = <0x4>;
+	tx_delay = <0x26>;
+	rx_delay = <0x11>;
+	status = "okay";
+
+	mdio {
+		compatible = "snps,dwmac-mdio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		rtl8211f: ethernet-phy@0 {
+			reg = <0>;
+			reset-assert-us = <30000>;
+			reset-deassert-us = <50000>;
+			reset-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_LOW>;
+		};
+	};
+};
+
+&gpu {
+	mali-supply = <&vdd_logic>;
+};
+
+&hdmi {
+	status = "okay";
+};
+
+&hdmi_sound {
+	status = "okay";
+};
+
+&hdmiphy {
+	status = "okay";
+};
+
+&i2s0 {
+	status = "okay";
+};
+
+&io_domains {
+	vccio1-supply = <&vccio_3v3>;
+	vccio2-supply = <&vccio_1v8>;
+	vccio3-supply = <&vccio_3v3>;
+	vccio4-supply = <&vccio_1v8>;
+	vccio5-supply = <&vccio_3v3>;
+	vccio6-supply = <&vccio_3v3>;
+	pmuio-supply = <&vccio_3v3>;
+	status = "okay";
+};
+
+&pwm0 {
+	status = "okay";
+};
+
+&pwm1 {
+	status = "okay";
+};
+
+&tsadc {
+	rockchip,hw-tshut-mode = <0>;
+	rockchip,hw-tshut-polarity = <0>;
+	status = "okay";
+};
+
+&uart2 {
+	status = "okay";
+};
+
+&u2phy {
+	status = "okay";
+};
+
+&u2phy_host {
+	status = "okay";
+};
+
+&u2phy_otg {
+	status = "okay";
+};
+
+/*
+ * The OTG port is routed to through-holes on the board and is used
+ * for factory firmware download, so keep it in peripheral mode.
+ */
+&usb20_otg {
+	dr_mode = "peripheral";
+	status = "okay";
+};
+
+&usb_host0_ehci {
+	status = "okay";
+};
+
+&usb_host0_ohci {
+	status = "okay";
+};
+
+/* A Genesys Logic GL3520 4-port USB 3.0 hub is connected to this port. */
+&usbdrd3 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&vop {
+	status = "okay";
+};
+
+&vop_mmu {
+	status = "okay";
+};

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Meibeike BeikeYun P1
@ 2026-12-05 12:15   ` Jun Yan
  0 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-05 12:15 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Jun Yan

Add a device tree for the BeikeYun P1, an RK3328 based set-top box from
Meibeike.

The device tree is based on unifreq's out-of-tree Linux v6.18 device
tree:

https://github.com/unifreq/linux-6.18.y/blob/main/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-1296mhz.dts

It has been reworked to follow the mainline bindings and conventions.

Hardware description:

- SoC: RK3328 (no PMIC)
- RAM: 1G DDR3L
- Storage: 8G eMMC
- Gigabit Ethernet port
- HDMI port
- USB 3.0 via a GL3520 4-port USB hub
- USB 2.0 OTG
- Two GPIO LEDs

Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
---
 .../boot/dts/rockchip/rk3328-beikeyun-p1.dts  | 257 ++++++++++++++++++
 1 file changed, 257 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts

diff --git a/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts b/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts
new file mode 100644
index 000000000000..db4f51b5708f
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts
@@ -0,0 +1,257 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+// Copyright (C) 2026 unifreq
+// Copyright (C) 2026 Jun Yan <jerrysteve1101@gmail.com>
+
+/dts-v1/;
+
+#include <dt-bindings/leds/common.h>
+#include "rk3328.dtsi"
+
+/ {
+	model = "BeikeYun P1";
+	compatible = "meibeike,beikeyun-p1", "rockchip,rk3328";
+
+	aliases {
+		mmc0 = &emmc;
+		serial2 = &uart2;
+	};
+
+	chosen {
+		stdout-path = "serial2:1500000n8";
+	};
+
+	gmac_clkin: external-gmac-clock {
+		compatible = "fixed-clock";
+		clock-frequency = <125000000>;
+		clock-output-names = "gmac_clkin";
+		#clock-cells = <0>;
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led-0 {
+			color = <LED_COLOR_ID_RED>;
+			function = LED_FUNCTION_DISK_ACTIVITY;
+			gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "mmc0";
+		};
+
+		led-1 {
+			color = <LED_COLOR_ID_WHITE>;
+			function = LED_FUNCTION_STATUS;
+			gpios = <&gpio2 RK_PC7 GPIO_ACTIVE_HIGH>;
+			default-state = "on";
+		};
+	};
+
+	vcc_sys_12v: vcc-sys-12v {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_sys_12v";
+		regulator-min-microvolt = <12000000>;
+		regulator-max-microvolt = <12000000>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
+	vcc_sys_5v: vcc-sys-5v {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc_sys_5v";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&vcc_sys_12v>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
+	vccio_1v8: vccio-1v8 {
+		compatible = "regulator-fixed";
+		regulator-name = "vccio_1v8";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-always-on;
+	};
+
+	vccio_3v3: vccio-3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "vccio_3v3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+	};
+
+	vdd_arm: vdd-arm {
+		compatible = "pwm-regulator";
+		pwms = <&pwm0 0 5000 1>;
+		regulator-name = "vcc_arm";
+		regulator-min-microvolt = <950000>;
+		regulator-max-microvolt = <1400000>;
+		regulator-settling-time-up-us = <250>;
+		regulator-ramp-delay = <12500>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+
+	vdd_logic: vdd-logic {
+		compatible = "pwm-regulator";
+		pwms = <&pwm1 0 5000 1>;
+		regulator-name = "vcc_log";
+		regulator-min-microvolt = <900000>;
+		regulator-max-microvolt = <1300000>;
+		regulator-settling-time-up-us = <250>;
+		regulator-ramp-delay = <12500>;
+		regulator-always-on;
+		regulator-boot-on;
+	};
+};
+
+&cpu0 {
+	cpu-supply = <&vdd_arm>;
+};
+
+&cpu1 {
+	cpu-supply = <&vdd_arm>;
+};
+
+&cpu2 {
+	cpu-supply = <&vdd_arm>;
+};
+
+&cpu3 {
+	cpu-supply = <&vdd_arm>;
+};
+
+&emmc {
+	bus-width = <8>;
+	max-frequency = <150000000>;
+	cap-mmc-highspeed;
+	mmc-hs200-1_8v;
+	non-removable;
+	pinctrl-names = "default";
+	pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>;
+	vmmc-supply = <&vccio_3v3>;
+	vqmmc-supply = <&vccio_1v8>;
+	status = "okay";
+};
+
+&gmac2io {
+	assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
+	assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
+	clock_in_out = "input";
+	phy-handle = <&rtl8211f>;
+	phy-supply = <&vccio_3v3>;
+	/* TX and RX delays are applied by the MAC, see tx_delay/rx_delay. */
+	phy-mode = "rgmii";
+	pinctrl-names = "default";
+	pinctrl-0 = <&rgmiim1_pins>;
+	snps,aal;
+	snps,pbl = <0x4>;
+	tx_delay = <0x26>;
+	rx_delay = <0x11>;
+	status = "okay";
+
+	mdio {
+		compatible = "snps,dwmac-mdio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		rtl8211f: ethernet-phy@0 {
+			reg = <0>;
+			reset-assert-us = <30000>;
+			reset-deassert-us = <50000>;
+			reset-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_LOW>;
+		};
+	};
+};
+
+&gpu {
+	mali-supply = <&vdd_logic>;
+};
+
+&hdmi {
+	status = "okay";
+};
+
+&hdmi_sound {
+	status = "okay";
+};
+
+&hdmiphy {
+	status = "okay";
+};
+
+&i2s0 {
+	status = "okay";
+};
+
+&io_domains {
+	vccio1-supply = <&vccio_3v3>;
+	vccio2-supply = <&vccio_1v8>;
+	vccio3-supply = <&vccio_3v3>;
+	vccio4-supply = <&vccio_1v8>;
+	vccio5-supply = <&vccio_3v3>;
+	vccio6-supply = <&vccio_3v3>;
+	pmuio-supply = <&vccio_3v3>;
+	status = "okay";
+};
+
+&pwm0 {
+	status = "okay";
+};
+
+&pwm1 {
+	status = "okay";
+};
+
+&tsadc {
+	rockchip,hw-tshut-mode = <0>;
+	rockchip,hw-tshut-polarity = <0>;
+	status = "okay";
+};
+
+&uart2 {
+	status = "okay";
+};
+
+&u2phy {
+	status = "okay";
+};
+
+&u2phy_host {
+	status = "okay";
+};
+
+&u2phy_otg {
+	status = "okay";
+};
+
+/*
+ * The OTG port is routed to through-holes on the board and is used
+ * for factory firmware download, so keep it in peripheral mode.
+ */
+&usb20_otg {
+	dr_mode = "peripheral";
+	status = "okay";
+};
+
+&usb_host0_ehci {
+	status = "okay";
+};
+
+&usb_host0_ohci {
+	status = "okay";
+};
+
+/* A Genesys Logic GL3520 4-port USB 3.0 hub is connected to this port. */
+&usbdrd3 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&vop {
+	status = "okay";
+};
+
+&vop_mmu {
+	status = "okay";
+};


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

* Re: [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Meibeike BeikeYun P1
  2026-12-05 12:15   ` Jun Yan
  (?)
@ 2026-12-05 12:27   ` sashiko-bot
  -1 siblings, 0 replies; 9+ messages in thread
From: sashiko-bot @ 2026-12-05 12:27 UTC (permalink / raw)
  To: Jun Yan; +Cc: devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 6 potential
issues to consider:
- [High] arm64: dts: rockchip: missing rk3328-beikeyun-p1.dtb in
  Makefile
- [High] arm64: dts: rockchip: regulator-ramp-delay shadows settling
  time
- [Medium] arm64: dts: rockchip: missing ethernet-phy-id for rtl8211f
  reset
- [Low] arm64: dts: rockchip: non-generic regulator and fixed-clock node
  names
- [Low] arm64: dts: rockchip: missing ethernet0 alias and duplicate
  serial2
- [Low] arm64: dts: rockchip: vcc_sys_5v regulator has no consumers
--

commit 5da83738a588b346d9b23770d35081f911bb026b
Author: Jun Yan <jerrysteve1101@gmail.com>

arm64: dts: rockchip: rk3328: Add Meibeike BeikeYun P1

This commit adds a devicetree source file for the Meibeike BeikeYun P1, an
RK3328-based set-top box.

> diff --git a/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts b/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts
> new file mode 100644
> index 0000000000000..db4f51b5708f6
> --- /dev/null
> +++ b/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts
> @@ -0,0 +1,257 @@

[ ... ]

> +/ {
> +	model = "BeikeYun P1";
> +	compatible = "meibeike,beikeyun-p1", "rockchip,rk3328";

[Severity: High]
Should rk3328-beikeyun-p1.dtb also be added to
arch/arm64/boot/dts/rockchip/Makefile?  Without an entry in
dtb-$(CONFIG_ARCH_ROCKCHIP), Kbuild will not compile, install, or run
dtbs_check on this new board devicetree.

> +
> +	aliases {
> +		mmc0 = &emmc;
> +		serial2 = &uart2;
> +	};

[Severity: Low]
Should aliases include ethernet0 = &gmac2io so bootloaders can apply
local-mac-address fixups to the enabled Gigabit Ethernet interface?  Also,
serial2 = &uart2 is already defined in rk3328.dtsi and can be dropped.

[ ... ]

> +	gmac_clkin: external-gmac-clock {
> +		compatible = "fixed-clock";
> +		clock-frequency = <125000000>;
> +		clock-output-names = "gmac_clkin";
> +		#clock-cells = <0>;
> +	};

[Severity: Low]
Can external-gmac-clock and the six regulator nodes (vcc-sys-12v,
vcc-sys-5v, vccio-1v8, vccio-3v3, vdd-arm, vdd-logic) use generic clock-*
and regulator-* node names?  Non-generic names rely on deprecated $nodename
fallbacks in fixed-clock.yaml and fixed-regulator.yaml.

[ ... ]

> +	vcc_sys_5v: vcc-sys-5v {
> +		compatible = "regulator-fixed";
> +		regulator-name = "vcc_sys_5v";
> +		regulator-min-microvolt = <5000000>;
> +		regulator-max-microvolt = <5000000>;
> +		vin-supply = <&vcc_sys_12v>;
> +		regulator-always-on;
> +		regulator-boot-on;
> +	};

[Severity: Low]
Is vcc_sys_5v missing its downstream consumers?  Nothing in this DTS
references &vcc_sys_5v, leaving vcc_sys_12v and vcc_sys_5v disconnected
from the rest of the power tree.  Consider wiring it to the downstream
regulators (vin-supply or pwm-supply) or dropping the unused nodes.

[ ... ]

> +	vdd_arm: vdd-arm {
> +		compatible = "pwm-regulator";
> +		pwms = <&pwm0 0 5000 1>;
> +		regulator-name = "vcc_arm";
> +		regulator-min-microvolt = <950000>;
> +		regulator-max-microvolt = <1400000>;
> +		regulator-settling-time-up-us = <250>;
> +		regulator-ramp-delay = <12500>;
> +		regulator-always-on;
> +		regulator-boot-on;
> +	};
> +
> +	vdd_logic: vdd-logic {
> +		compatible = "pwm-regulator";
> +		pwms = <&pwm1 0 5000 1>;
> +		regulator-name = "vcc_log";
> +		regulator-min-microvolt = <900000>;
> +		regulator-max-microvolt = <1300000>;
> +		regulator-settling-time-up-us = <250>;
> +		regulator-ramp-delay = <12500>;
> +		regulator-always-on;
> +		regulator-boot-on;
> +	};

[Severity: High]
Does regulator-ramp-delay = <12500> prevent regulator-settling-time-up-us
from taking effect on vdd_arm and vdd_logic?

In continuous-voltage mode, pwm-regulator delegates settling delays to
_regulator_set_voltage_time(), where a non-zero ramp_delay short-circuits
settling_time_up:

drivers/regulator/core.c:_regulator_set_voltage_time() {
	...
	if (rdev->constraints->ramp_delay)
		ramp_delay = rdev->constraints->ramp_delay;
	else if (rdev->desc->ramp_delay)
		ramp_delay = rdev->desc->ramp_delay;
	else if (rdev->constraints->settling_time)
		return rdev->constraints->settling_time;
	else if (rdev->constraints->settling_time_up &&
		 (new_uV > old_uV))
		return rdev->constraints->settling_time_up;
	...
}

At 12500 uV/us, a 50 mV CPU OPP step waits only 4 us (less than one 5 us
PWM period) instead of 250 us, which can raise CPU or GPU clocks before the
rail settles and cause lockups.  Removing regulator-ramp-delay lets
regulator-settling-time-up-us take effect.

[ ... ]

> +		rtl8211f: ethernet-phy@0 {
> +			reg = <0>;
> +			reset-assert-us = <30000>;
> +			reset-deassert-us = <50000>;
> +			reset-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_LOW>;
> +		};

[Severity: Medium]
Can ethernet-phy@0 fail to probe with -ENODEV if the RTL8211F is held in
reset?

Without an ethernet-phy-id compatible string, fwnode_mdiobus_register_phy()
calls get_phy_device() to read the PHY ID over MDIO before
phy_device_register() parses and deasserts reset-gpios.

This breaks Ethernet on cold boots where the bootloader does not bring up
the PHY, as well as after driver unbind/rebind since phy_device_remove()
asserts reset-gpios.  Adding compatible = "ethernet-phy-id001c.c916" avoids
probing MDIO before reset is released.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261205121507.52434-1-jerrysteve1101@gmail.com?part=3

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

end of thread, other threads:[~2026-12-05 12:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 12:15 [PATCH 0/3] arm64: dts: rockchip: Add Meibeike BeikeYun P1 support Jun Yan
2026-12-05 12:15 ` Jun Yan
2026-12-05 12:15 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Meibeike Jun Yan
2026-12-05 12:15   ` Jun Yan
2026-12-05 12:15 ` [PATCH 2/3] dt-bindings: arm: rockchip: Add Meibeike BeikeYun P1 Jun Yan
2026-12-05 12:15   ` Jun Yan
2026-12-05 12:15 ` [PATCH 3/3] arm64: dts: rockchip: rk3328: " Jun Yan
2026-12-05 12:15   ` Jun Yan
2026-12-05 12:27   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.