Skip to content

dt-bindings: net: Add network-class.yaml schema

David Heidelberg b4-sent devicetree-spec linux-arm-msm linux-devicetree linux-wireless lkml netdev 5 versions – In review

Get series with b4
b4 am [email protected] change-id 20230203-dt-bindings-network-class-8367edd679d2

Versions newest first

  1. v5 Latest5 patches 16 repliesIn review
  2. v45 patches 1 replySuperseded
  3. v35 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches6 repliesApplied
v1 RFC3 patches6 repliesSuperseded

Changes in v5 from the cover letter

- Incorrect DCO chain, missing SoB. (Krzysztof)
- Improved address-bits description. (Krzysztof)
- Link to v4: https://lore.kernel.org/r/[email protected]

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: net: Add network-class schema for mac-address propertiesDocumentation/devicetree/bindings/net/ethernet-controller.yaml Documentation/devicetree/bindings/net/network-class.yaml+47 -241 reply
2/5dt-bindings: net: Add generic wireless controllerDocumentation/devicetree/bindings/net/wireless/wireless-controller.yaml+23 -00 replies
3/5dt-bindings: wireless: bcm4329-fmac: Use wireless-controller.yaml schemaDocumentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml+1 -19 replies
4/5dt-bindings: wireless: silabs,wfx: Use wireless-controller.yamlDocumentation/devicetree/bindings/net/wireless/silabs,wfx.yaml+1 -40 replies
5/5dt-bindings: wireless: qcom,wcnss: Use wireless-controller.yamlDocumentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml+4 -10 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchRob Herring (Arm)Jérôme Pouiller
1/5R-b
2/5R-b
3/5R-b
4/5R-b R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/5] dt-bindings: net: Add network-class.yaml schema

The Devicetree Specification, Release v0.3 specifies in section 4.3.1 a "Network Class Binding". This covers MAC address and maximal frame size properties. "local-mac-address" and "mac-address" with a fixed "address-size" of 48 bits are already in the ethernet-controller.yaml schema so move those over.

Keep "address-size" fixed to 48 bits as it's unclear if network protocols using 64-bit mac addresses like ZigBee, 6LoWPAN and others are relevant for this binding. This allows mac address array size validation for ethernet and wireless lan devices.

"max-frame-size" in the Devicetree Specification is written to cover the whole layer 2 ethernet frame but actual use for this property is the payload size. Keep the description from ethernet-controller.yaml which specifies the property as MTU.

---
Changes in v5:
- Incorrect DCO chain, missing SoB. (Krzysztof)
- Improved address-bits description. (Krzysztof)
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Changed the mailing list address (Rob)
- Copyied the whole description for the max-frame-size, including the
MTU x max-frame-size contradiction. (Rob)
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Incorporated wireless-controller.yaml suggestion (Andrew)
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Added "max-frame-size" with the description from ethernet-controller.yaml
- Restrict "address-size" to 48-bits
- Fix the mac-address array size to 6 bytes
- Drop duplicate default value from "max-frame-size" description
- Link to v1: https://lore.kernel.org/r/[email protected]

---
David Heidelberg (2):
dt-bindings: net: Add generic wireless controller
dt-bindings: wireless: qcom,wcnss: Use wireless-controller.yaml

Janne Grunau (3):
dt-bindings: net: Add network-class schema for mac-address properties
dt-bindings: wireless: bcm4329-fmac: Use wireless-controller.yaml schema
dt-bindings: wireless: silabs,wfx: Use wireless-controller.yaml

 .../bindings/net/ethernet-controller.yaml          | 25 +-----------
 .../devicetree/bindings/net/network-class.yaml     | 46 ++++++++++++++++++++++
 .../bindings/net/wireless/brcm,bcm4329-fmac.yaml   |  2 +-
 .../bindings/net/wireless/silabs,wfx.yaml          |  5 +--
 .../bindings/net/wireless/wireless-controller.yaml | 23 +++++++++++
 .../devicetree/bindings/soc/qcom/qcom,wcnss.yaml   |  5 ++-
 6 files changed, 76 insertions(+), 30 deletions(-)

---
base-commit: 882a18c2c14fc79adb30fe57a9758283aa20efaa
change-id: 20230203-dt-bindings-network-class-8367edd679d2

Best regards,

Signature · 1 line
David Heidelberg <[email protected]>