From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Jimmy Hon <honyuenkwun@gmail.com>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org,
Algea Cao <algea.cao@rock-chips.com>,
Andy Yan <andy.yan@rock-chips.com>,
Cenk Uluisik <cenk.uluisik@googlemail.com>,
Conor Dooley <conor+dt@kernel.org>,
Cristian Ciocaltea <cristian.ciocaltea@collabora.com>,
Heiko Stuebner <heiko@sntech.de>,
Kever Yang <kever.yang@rock-chips.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Maxime Ripard <mripard@kernel.org>,
Muhammed Efe Cetin <efectn@6tel.net>, Ondrej Jirman <megi@xff.cz>,
Rob Herring <robh@kernel.org>, Sandy Huang <hjc@rock-chips.com>
Subject: Re: [PATCH 3/3] arm64: dts: rockchip: Add rk3588s-orangepi-cm5-base device tree
Date: Fri, 3 Oct 2025 05:39:55 +0300 [thread overview]
Message-ID: <20251003023955.GA1492@pendragon.ideasonboard.com> (raw)
In-Reply-To: <CALWfF7Lhz2brif4xepWZ71mRqMmXKzxqd=0_hO_b6aF6_GkffQ@mail.gmail.com>
Hi Jimmy,
On Thu, Oct 02, 2025 at 07:01:53PM -0500, Jimmy Hon wrote:
> A few nitpicks below
>
> [ snip ]
> > +
> > +#include "rk3588s-orangepi-cm5.dtsi"
> > +
> > +/ {
> > + model = "Xunlong Orange Pi CM5 Base";
> > + compatible = "xunlong,orangepi-cm5-base", "xunlong,orangepi-cm5", "rockchip,rk3588s";
> > +
> > + aliases {
> > + ethernet0 = &gmac1;
> > + mmc0 = &sdhci;
>
> Since sdhci is enabled in the SoM.dtsi, this alias should probably go
> there instead.
Good point, I'll do that.
> > + mmc1 = &sdmmc;
> > + };
> > +
>
> [ snip ]
>
> > +
> > + vbus_5v0: vbus-5v0 {
> > + compatible = "regulator-fixed";
> > + regulator-name = "vbus_5v0";
> > + regulator-min-microvolt = <5000000>;
> > + regulator-max-microvolt = <5000000>;
> > + enable-active-high;
> > + gpio = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
> > + vin-supply = <&vcc5v0_sys>;
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&vbus_5v0_en_pin>;
>
> The property names in these regulators are not as organized as the
> regulators for the CPU/NPU.
Which properties in particular ? There are more properties in these
regulators, but otherwise the order seem to match.
> > + };
> > +
> > + vcc_3v3: regulator-vcc-3v3 {
> > + compatible = "regulator-fixed";
> > + regulator-name = "vcc_3v3";
> > + regulator-min-microvolt = <3300000>;
> > + regulator-max-microvolt = <3300000>;
> > + startup-delay-us = <50000>;
> > + enable-active-high;
> > + gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>;
> > + vin-supply = <&vcc5v0_sys>;
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&vcc_3v3_en_pin>;
> > + };
> > +
> > + vcc5v0_sys: regulator-vcc-5v0 {
> > + compatible = "regulator-fixed";
> > + regulator-name = "vcc5v0_sys";
> > + regulator-always-on;
> > + regulator-boot-on;
> > + regulator-min-microvolt = <5000000>;
> > + regulator-max-microvolt = <5000000>;
> > + };
> > +};
>
> [ snip ]
>
> > +
> > +&gmac1 {
> > + clock_in_out = "output";
> > + phy-handle = <&rgmii_phy>;
> > + phy-mode = "rgmii-id";
> > + phy-supply = <&vcc_3v3>;
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&gmac1_miim
> > + &gmac1_rx_bus2
> > + &gmac1_tx_bus2
> > + &gmac1_rgmii_clk
> > + &gmac1_rgmii_bus>;
> > + tx_delay = <0x42>;
>
> When using "rgmii-id", tx_delay will be ignored. Does the ethernet
> work without this property?
I have to confess this was blindly copied from the BSP :-/ I'll drop the
property and test.
> See the comment by Jonas in another review.
> https://lore.kernel.org/linux-rockchip/da752790-da17-4d26-b9b2-8240b38b3276@kwiboo.se/
>
> > + status = "okay";
> > +};
> > +
> > +&gpu {
> > + mali-supply = <&vdd_gpu_s0>;
> > + status = "okay";
> > +};
>
> This is a feature in the SoC itself, so it's not board specific and
> can be put into the SoM.dtsi.
I'm a bit in two minds here. If a carrier board doesn't have a display
output, the GPU isn't very useful (although in theory the GPU can be
used without a display). That's why I decided to enable it in the
carrier board. I suppose it doesn't hurt to enable it in the SoM, worst
case it won't be used and so won't be powered up. I'll move it to the
SoM.
> [ snip ]
>
> > +
> > +&pd_gpu {
> > + domain-supply = <&vdd_gpu_s0>;
> > +};
>
> Same comment regarding moving to the SoM.dtsi
OK.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2025-10-03 2:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-02 3:47 [PATCH 0/3] arm64: dts: rockchip: Add device tree for the Orange Pi CM5 Base board Laurent Pinchart
2025-10-02 3:47 ` [PATCH 1/3] dt-bindings: arm: rockchip: Add Orange Pi CM5 Base Laurent Pinchart
2025-10-02 18:30 ` Conor Dooley
2025-10-02 3:47 ` [PATCH 2/3] dt-bindings: display: rk3588-dw-hdmi-qp: Document enable-gpios property Laurent Pinchart
2025-10-02 18:30 ` Conor Dooley
2025-10-02 3:47 ` [PATCH 3/3] arm64: dts: rockchip: Add rk3588s-orangepi-cm5-base device tree Laurent Pinchart
2025-10-03 0:01 ` Jimmy Hon
2025-10-03 2:39 ` Laurent Pinchart [this message]
2025-10-04 2:47 ` Jimmy Hon
2025-10-04 22:12 ` Laurent Pinchart
2025-10-06 16:06 ` Andrew Lunn
2025-10-06 16:24 ` Laurent Pinchart
2025-10-02 19:24 ` [PATCH 0/3] arm64: dts: rockchip: Add device tree for the Orange Pi CM5 Base board Cristian Ciocaltea
2025-10-02 20:52 ` Laurent Pinchart
2025-10-02 21:56 ` Cristian Ciocaltea
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=20251003023955.GA1492@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=algea.cao@rock-chips.com \
--cc=andy.yan@rock-chips.com \
--cc=cenk.uluisik@googlemail.com \
--cc=conor+dt@kernel.org \
--cc=cristian.ciocaltea@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=efectn@6tel.net \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=honyuenkwun@gmail.com \
--cc=kever.yang@rock-chips.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=megi@xff.cz \
--cc=mripard@kernel.org \
--cc=robh@kernel.org \
/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