747-v5.16-09-dt-bindings-net-dsa-qca8k-Document-qca-led-open-drai.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 924087c5c3d41553700b0eb83ca2a53b91643dca Mon Sep 17 00:00:00 2001
  2. From: Ansuel Smith <[email protected]>
  3. Date: Thu, 14 Oct 2021 00:39:14 +0200
  4. Subject: dt-bindings: net: dsa: qca8k: Document qca,led-open-drain binding
  5. Document new binding qca,ignore-power-on-sel used to ignore
  6. power on strapping and use sw regs instead.
  7. Document qca,led-open.drain to set led to open drain mode, the
  8. qca,ignore-power-on-sel is mandatory with this enabled or an error will
  9. be reported.
  10. Signed-off-by: Ansuel Smith <[email protected]>
  11. Signed-off-by: David S. Miller <[email protected]>
  12. ---
  13. Documentation/devicetree/bindings/net/dsa/qca8k.txt | 11 +++++++++++
  14. 1 file changed, 11 insertions(+)
  15. --- a/Documentation/devicetree/bindings/net/dsa/qca8k.txt
  16. +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.txt
  17. @@ -13,6 +13,17 @@ Required properties:
  18. Optional properties:
  19. - reset-gpios: GPIO to be used to reset the whole device
  20. +- qca,ignore-power-on-sel: Ignore power on pin strapping to configure led open
  21. + drain or eeprom presence. This is needed for broken
  22. + devices that have wrong configuration or when the oem
  23. + decided to not use pin strapping and fallback to sw
  24. + regs.
  25. +- qca,led-open-drain: Set leds to open-drain mode. This requires the
  26. + qca,ignore-power-on-sel to be set or the driver will fail
  27. + to probe. This is needed if the oem doesn't use pin
  28. + strapping to set this mode and prefers to set it using sw
  29. + regs. The pin strapping related to led open drain mode is
  30. + the pin B68 for QCA832x and B49 for QCA833x
  31. Subnodes: