Message ID | 20250306053105.41677-4-kylehendrydev@gmail.com (mailing list archive) |
---|---|
State | New |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: phy: bcm63xx: add support for BCM63268 GPHY | expand |
On Wed, 05 Mar 2025 21:31:00 -0800, Kyle Hendry wrote: > Add YAML bindings for BCM63268 internal GPHY > > Signed-off-by: Kyle Hendry <kylehendrydev@gmail.com> > --- > .../bindings/net/brcm,bcm63268-gphy.yaml | 52 +++++++++++++++++++ > 1 file changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm63268-gphy.yaml > My bot found errors running 'make dt_binding_check' on your patch: yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/net/brcm,bcm63268-gphy.yaml: maintainers:0: 'TBD' does not match '@' from schema $id: http://devicetree.org/meta-schemas/base.yaml# doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250306053105.41677-4-kylehendrydev@gmail.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
diff --git a/Documentation/devicetree/bindings/net/brcm,bcm63268-gphy.yaml b/Documentation/devicetree/bindings/net/brcm,bcm63268-gphy.yaml new file mode 100644 index 000000000000..1f91cf0541eb --- /dev/null +++ b/Documentation/devicetree/bindings/net/brcm,bcm63268-gphy.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/brcm,bcm63268-gphy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM63268 GPHY + +description: Broadcom's internal gigabit ethernet PHY on BCM63268 SoC + +maintainers: + - TBD + +allOf: + - $ref: ethernet-phy.yaml# + +properties: + compatible: + const: ethernet-phy-id0362.5f50 + + reg: + maxItems: 1 + + brcm,gpio-ctrl: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the SoC GPIO controller + which contains PHY control registers + +required: + - reg + - brcm,gpio-ctrl + - resets + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/reset/bcm63268-reset.h> + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-phy@4 { + compatible = "ethernet-phy-id0362.5f50"; + reg = <4>; + + resets = <&periph_rst BCM63268_RST_GPHY>; + + brcm,gpio-ctrl = <&gpio_cntl>; + }; + };
Add YAML bindings for BCM63268 internal GPHY Signed-off-by: Kyle Hendry <kylehendrydev@gmail.com> --- .../bindings/net/brcm,bcm63268-gphy.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm63268-gphy.yaml