Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jun Yan" <jerrysteve1101@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Meibeike BeikeYun P1
Date: Sat, 05 Dec 2026 12:27:42 +0000	[thread overview]
Message-ID: <sashiko-outbox-251492@kernel.org> (raw)
In-Reply-To: <20261205121507.52434-4-jerrysteve1101@gmail.com>

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

      reply	other threads:[~2026-12-05 12:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05 12:15 [PATCH 0/3] arm64: dts: rockchip: Add Meibeike BeikeYun P1 support Jun Yan
2026-12-05 12:15 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Meibeike 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 ` [PATCH 3/3] arm64: dts: rockchip: rk3328: " Jun Yan
2026-12-05 12:27   ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-251492@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jerrysteve1101@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox