From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796473663; b=TTluwqF8MCUVH67bF1+qIZ0urRRrWh1s/nvTr3JUpdYgjOVYOxkCHNUV7kUGe6Z7ZpEl vif125VN6uAub+1R4pA5oW9pG39oBUIhl/UoqxS5yy4FdmTW31J2pkGr2vMiLju2voha2 ZOCexKW15w4wocPAT8ZPj0lKPDuwNzEFqFf1iSrrR6H6+FSC9nDI9MIHO/nw/J4jjuzkC VbidNGbpQr7y2yEI3ephLZXgqPIMheuK0pt539Uzzpq6YGA53hpMqfIdTkUz7ADftFZO5 ScuZLMezjdpkJ48YMv6U5GX+6h6/fDEnUF9IApscY97uNdOBko5iLlPpbY73pgjnPSg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796473663; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=c656YX567zw4obXkp2lM9VLKzYwVe3G15nqW/vOy1PM=; b=dfnzFQGgIlDB9OtqaYLBuX0E1TBC7tqAChbmpVcs6pwC8b1vIRz7UfDF64srHbUlk0UV 3Kzr9YclO3uJhrTuP6sQ15QgOWlSW7PmVKVhWFhVPaZ4ekz2IGbBGjPdVTVWyXadpUcG7 YW7DT+bpnYDejMJocpLf6inFL1+JVQi4IgYLIQtln9XDSRruXOFwMl5ZS+doo2DzvLA9z wwDZnLlGkcbV8Fb/Cx4uhU2b87I6WrNtwuqUcPaxBF9ceqqUg9cIhrg0mlY1/rEbD8dSK lN/sRWF20fDQL7reKcg69gzOy+MnGLm/VdiTFP/w0njzFwevec/oTjrj+x987aCCBrw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DlIQi1vM; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55031606A322 for ; Sat, 5 Dec 2026 12:27:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DlIQi1vM Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC1031F0092B; Sat, 5 Dec 2026 12:27:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796473663; bh=c656YX567zw4obXkp2lM9VLKzYwVe3G15nqW/vOy1PM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=DlIQi1vMIaOmEdjWLnrmV8hmY7skELusnEcm1He3YzaoHoqv0vP/z5o36fNdNlTJ4 9fEsQVivV+ymThxMoNsEVNYnltSrwA9u/1dG7ajJQOWSMfjmqzfSnyLA0lH22xzGDq 4zTV2nfxcNm+14Y6RIeTnw997Z/QxLO+GO+Bvi5hGoI+UQ+t0xPXgXuM3OKi+FEriR 2AzJ/ttJyvEKcT4sL6HiaaOWfLgy86O4xYW2xrIBrgYyUW2JeTfKq3f5oQVr0Gezpk 7iIvBpb9zjgbwJwmglaG/oK0mxA2c0wQzrOD7ffHt8CvJS9AU7Ke8vB63PPECE+si5 AXjP9piGuC2ZA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Meibeike BeikeYun P1 Reply-To: sashiko-reviews@lists.linux.dev To: "Jun Yan" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261205121507.52434-4-jerrysteve1101@gmail.com> References: <20261205121507.52434-1-jerrysteve1101@gmail.com> <20261205121507.52434-4-jerrysteve1101@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 12:27:42 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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/a= rm64/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 =3D "BeikeYun P1"; > + compatible =3D "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 =3D &emmc; > + serial2 =3D &uart2; > + }; [Severity: Low] Should aliases include ethernet0 =3D &gmac2io so bootloaders can apply local-mac-address fixups to the enabled Gigabit Ethernet interface? Also, serial2 =3D &uart2 is already defined in rk3328.dtsi and can be dropped. [ ... ] > + gmac_clkin: external-gmac-clock { > + compatible =3D "fixed-clock"; > + clock-frequency =3D <125000000>; > + clock-output-names =3D "gmac_clkin"; > + #clock-cells =3D <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 =3D "regulator-fixed"; > + regulator-name =3D "vcc_sys_5v"; > + regulator-min-microvolt =3D <5000000>; > + regulator-max-microvolt =3D <5000000>; > + vin-supply =3D <&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 =3D "pwm-regulator"; > + pwms =3D <&pwm0 0 5000 1>; > + regulator-name =3D "vcc_arm"; > + regulator-min-microvolt =3D <950000>; > + regulator-max-microvolt =3D <1400000>; > + regulator-settling-time-up-us =3D <250>; > + regulator-ramp-delay =3D <12500>; > + regulator-always-on; > + regulator-boot-on; > + }; > + > + vdd_logic: vdd-logic { > + compatible =3D "pwm-regulator"; > + pwms =3D <&pwm1 0 5000 1>; > + regulator-name =3D "vcc_log"; > + regulator-min-microvolt =3D <900000>; > + regulator-max-microvolt =3D <1300000>; > + regulator-settling-time-up-us =3D <250>; > + regulator-ramp-delay =3D <12500>; > + regulator-always-on; > + regulator-boot-on; > + }; [Severity: High] Does regulator-ramp-delay =3D <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 =3D rdev->constraints->ramp_delay; else if (rdev->desc->ramp_delay) ramp_delay =3D 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 =3D <0>; > + reset-assert-us =3D <30000>; > + reset-deassert-us =3D <50000>; > + reset-gpios =3D <&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 =3D "ethernet-phy-id001c.c916" avoi= ds probing MDIO before reset is released. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205121507.5243= 4-1-jerrysteve1101@gmail.com?part=3D3