All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arm64: dts: rockchip: Add Meibeike BeikeYun P1 support
@ 2026-12-06  3:45 ` Jun Yan
  0 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-06  3:45 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.

Changes in v2:
- Add the new DTB to the Rockchip Makefile.
- Add the ethernet0 alias and drop the redundant serial2 alias.
- Use generic node names for the fixed clock and fixed regulators.
- Add vin-supply for vccio_1v8 and vccio_3v3.
- Drop regulator-ramp-delay from vdd_arm and vdd_logic, their settling
  times are already described by regulator-settling-time-up-us.
- Add compatible = "ethernet-phy-id001c.c916" to the PHY node.

Link to v1: https://lore.kernel.org/linux-rockchip/20261205121507.52434-1-jerrysteve1101@gmail.com/

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 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3328-beikeyun-p1.dts  | 258 ++++++++++++++++++
 4 files changed, 266 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts


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

* [PATCH v2 0/3] arm64: dts: rockchip: Add Meibeike BeikeYun P1 support
@ 2026-12-06  3:45 ` Jun Yan
  0 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-06  3:45 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.

Changes in v2:
- Add the new DTB to the Rockchip Makefile.
- Add the ethernet0 alias and drop the redundant serial2 alias.
- Use generic node names for the fixed clock and fixed regulators.
- Add vin-supply for vccio_1v8 and vccio_3v3.
- Drop regulator-ramp-delay from vdd_arm and vdd_logic, their settling
  times are already described by regulator-settling-time-up-us.
- Add compatible = "ethernet-phy-id001c.c916" to the PHY node.

Link to v1: https://lore.kernel.org/linux-rockchip/20261205121507.52434-1-jerrysteve1101@gmail.com/

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 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3328-beikeyun-p1.dts  | 258 ++++++++++++++++++
 4 files changed, 266 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 v2 1/3] dt-bindings: vendor-prefixes: Add Meibeike
  2026-12-06  3:45 ` Jun Yan
@ 2026-12-06  3:45   ` Jun Yan
  -1 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-06  3:45 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 v2 1/3] dt-bindings: vendor-prefixes: Add Meibeike
@ 2026-12-06  3:45   ` Jun Yan
  0 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-06  3:45 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 v2 2/3] dt-bindings: arm: rockchip: Add Meibeike BeikeYun P1
  2026-12-06  3:45 ` Jun Yan
@ 2026-12-06  3:45   ` Jun Yan
  -1 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-06  3:45 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 v2 2/3] dt-bindings: arm: rockchip: Add Meibeike BeikeYun P1
@ 2026-12-06  3:45   ` Jun Yan
  0 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-06  3:45 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 v2 3/3] arm64: dts: rockchip: rk3328: Add Meibeike BeikeYun P1
  2026-12-06  3:45 ` Jun Yan
@ 2026-12-06  3:45   ` Jun Yan
  -1 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-06  3:45 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>
---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3328-beikeyun-p1.dts  | 258 ++++++++++++++++++
 2 files changed, 259 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts

diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
index 9cbe2730e116..346700d2ff9d 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -28,6 +28,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2-v11.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go3.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-a1.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-beikeyun-p1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-evb.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2c-plus.dtb
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..0748ee148d8a
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts
@@ -0,0 +1,258 @@
+// 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 {
+		ethernet0 = &gmac2io;
+		mmc0 = &emmc;
+	};
+
+	chosen {
+		stdout-path = "serial2:1500000n8";
+	};
+
+	gmac_clkin: clock-125m {
+		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: regulator-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: regulator-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: regulator-1v8 {
+		compatible = "regulator-fixed";
+		regulator-name = "vccio_1v8";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		vin-supply = <&vcc_sys_5v>;
+		regulator-always-on;
+	};
+
+	vccio_3v3: regulator-3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "vccio_3v3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&vcc_sys_5v>;
+		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-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-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 {
+			compatible = "ethernet-phy-id001c.c916";
+			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

* [PATCH v2 3/3] arm64: dts: rockchip: rk3328: Add Meibeike BeikeYun P1
@ 2026-12-06  3:45   ` Jun Yan
  0 siblings, 0 replies; 9+ messages in thread
From: Jun Yan @ 2026-12-06  3:45 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>
---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3328-beikeyun-p1.dts  | 258 ++++++++++++++++++
 2 files changed, 259 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts

diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
index 9cbe2730e116..346700d2ff9d 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -28,6 +28,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2-v11.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go3.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-a1.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-beikeyun-p1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-evb.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2c-plus.dtb
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..0748ee148d8a
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts
@@ -0,0 +1,258 @@
+// 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 {
+		ethernet0 = &gmac2io;
+		mmc0 = &emmc;
+	};
+
+	chosen {
+		stdout-path = "serial2:1500000n8";
+	};
+
+	gmac_clkin: clock-125m {
+		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: regulator-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: regulator-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: regulator-1v8 {
+		compatible = "regulator-fixed";
+		regulator-name = "vccio_1v8";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		vin-supply = <&vcc_sys_5v>;
+		regulator-always-on;
+	};
+
+	vccio_3v3: regulator-3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "vccio_3v3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&vcc_sys_5v>;
+		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-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-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 {
+			compatible = "ethernet-phy-id001c.c916";
+			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

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

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] arm64: dts: rockchip: non-generic node names for pwm-regulator
  nodes
--

commit 8bb07140d254e6908863fc0ab0faf94d9d045227
Author: Jun Yan <jerrysteve1101@gmail.com>

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

This commit adds the devicetree for the Meibeike BeikeYun P1, an RK3328
based set-top box, and wires it into the rockchip dts Makefile.

> 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..0748ee148d8aa
> --- /dev/null
> +++ b/arch/arm64/boot/dts/rockchip/rk3328-beikeyun-p1.dts
> @@ -0,0 +1,258 @@

[ ... ]

> +	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-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-always-on;
> +		regulator-boot-on;
> +	};

[Severity: Low]
Should vdd-arm and vdd-logic use generic regulator-* node names, such as
regulator-vdd-arm and regulator-vdd-logic?  Devicetree conventions require
generic node names, which the fixed regulator nodes earlier in this file and
other Rockchip pwm-regulator nodes already follow.

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

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

end of thread, other threads:[~2026-12-06  3:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-06  3:45 [PATCH v2 0/3] arm64: dts: rockchip: Add Meibeike BeikeYun P1 support Jun Yan
2026-12-06  3:45 ` Jun Yan
2026-12-06  3:45 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Meibeike Jun Yan
2026-12-06  3:45   ` Jun Yan
2026-12-06  3:45 ` [PATCH v2 2/3] dt-bindings: arm: rockchip: Add Meibeike BeikeYun P1 Jun Yan
2026-12-06  3:45   ` Jun Yan
2026-12-06  3:45 ` [PATCH v2 3/3] arm64: dts: rockchip: rk3328: " Jun Yan
2026-12-06  3:45   ` Jun Yan
2026-12-06  3:54   ` 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.