[RFC PATCH 04/10] dt-bindings: net: pcs: add rockchip,rk3568-xpcs binding
Coia Prant
coiaprant at gmail.com
Wed Jul 15 13:01:22 PDT 2026
> [ ... ]
>
> > +examples:
> > + - |
> > + #include <dt-bindings/clock/rk3568-cru.h>
> > + #include <dt-bindings/power/rk3568-power.h>
> > +
> > + pcs at fda00000 {
> > + compatible = "rockchip,rk3568-xpcs";
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > + reg = <0x0 0xfda00000 0x0 0x200000>;
>
> [Severity: Low]
> Does this 64-bit register format fail dt_binding_check validation?
>
> The example is extracted into a dummy root node with default
> #address-cells = <1> and #size-cells = <1>. This means the 4 cells here will
> be parsed as two items, which violates the maxItems: 1 constraint defined
> in the schema for the reg property.
I will update the example to use
the correct format that passes `dt_binding_check`. The proper way to
represent this is:
reg = <0xfda00000 0x200000>;
or with explicit address/size cells:
reg = <0x0 0xfda00000 0x0 0x200000>;
I will adjust the example to match what `dt_binding_check` expects.
> [Severity: Low]
> Will this fail to compile during dt_binding_check?
>
> The example uses the PHY_TYPE_SGMII macro, but the required
> <dt-bindings/phy/phy.h> header isn't included in the example.
Yes, you are correct. I will add the missing include:
#include <dt-bindings/phy/phy.h>
to the example section.
Thanks for the review. I'll address both issues in v2.
More information about the linux-phy
mailing list