003-dt-bindings-net-add-RTL8152-binding-documentation.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. From 3ee05f4aa64fc86af3be5bc176ba5808de9260a7 Mon Sep 17 00:00:00 2001
  2. From: David Bauer <mail@david-bauer.net>
  3. Date: Sun, 26 Jul 2020 15:30:33 +0200
  4. Subject: [PATCH] dt-bindings: net: add RTL8152 binding documentation
  5. Add binding documentation for the Realtek RTL8152 / RTL8153 USB ethernet
  6. adapters.
  7. Signed-off-by: David Bauer <mail@david-bauer.net>
  8. ---
  9. .../bindings/net/realtek,rtl8152.yaml | 36 +++++++++++++++++++
  10. 1 file changed, 36 insertions(+)
  11. create mode 100644 Documentation/devicetree/bindings/net/realtek,rtl8152.yaml
  12. --- /dev/null
  13. +++ b/Documentation/devicetree/bindings/net/realtek,rtl8152.yaml
  14. @@ -0,0 +1,36 @@
  15. +# SPDX-License-Identifier: GPL-2.0
  16. +%YAML 1.2
  17. +---
  18. +$id: http://devicetree.org/schemas/net/realtek,rtl8152.yaml#
  19. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  20. +
  21. +title: Realtek RTL8152/RTL8153 series USB ethernet
  22. +
  23. +maintainers:
  24. + - David Bauer <mail@david-bauer.net>
  25. +
  26. +properties:
  27. + compatible:
  28. + oneOf:
  29. + - items:
  30. + - enum:
  31. + - realtek,rtl8152
  32. + - realtek,rtl8153
  33. +
  34. + reg:
  35. + description: The device number on the USB bus
  36. +
  37. + realtek,led-data:
  38. + description: Value to be written to the LED configuration register.
  39. +
  40. +required:
  41. + - compatible
  42. + - reg
  43. +
  44. +examples:
  45. + - |
  46. + usb-eth@2 {
  47. + compatible = "realtek,rtl8153";
  48. + reg = <2>;
  49. + realtek,led-data = <0x87>;
  50. + };
  51. \ No newline at end of file