706-dt-bindings-net-add-QCA807x-PHY.patch 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. From c66863c1ba8995b61e6d727d78a241c734f5bb57 Mon Sep 17 00:00:00 2001
  2. From: Robert Marko <[email protected]>
  3. Date: Thu, 1 Oct 2020 15:05:35 +0200
  4. Subject: [PATCH] dt-bindings: net: add QCA807x PHY
  5. Add DT bindings for Qualcomm QCA807x PHY series.
  6. Signed-off-by: Robert Marko <[email protected]>
  7. ---
  8. include/dt-bindings/net/qcom-qca807x.h | 45 ++++++++++++++++++++++++++
  9. 1 file changed, 45 insertions(+)
  10. create mode 100644 include/dt-bindings/net/qcom-qca807x.h
  11. --- /dev/null
  12. +++ b/include/dt-bindings/net/qcom-qca807x.h
  13. @@ -0,0 +1,45 @@
  14. +/* SPDX-License-Identifier: GPL-2.0-or-later */
  15. +/*
  16. + * Device Tree constants for the Qualcomm QCA807X PHYs
  17. + */
  18. +
  19. +#ifndef _DT_BINDINGS_QCOM_QCA807X_H
  20. +#define _DT_BINDINGS_QCOM_QCA807X_H
  21. +
  22. +#define PSGMII_QSGMII_TX_DRIVER_140MV 0
  23. +#define PSGMII_QSGMII_TX_DRIVER_160MV 1
  24. +#define PSGMII_QSGMII_TX_DRIVER_180MV 2
  25. +#define PSGMII_QSGMII_TX_DRIVER_200MV 3
  26. +#define PSGMII_QSGMII_TX_DRIVER_220MV 4
  27. +#define PSGMII_QSGMII_TX_DRIVER_240MV 5
  28. +#define PSGMII_QSGMII_TX_DRIVER_260MV 6
  29. +#define PSGMII_QSGMII_TX_DRIVER_280MV 7
  30. +#define PSGMII_QSGMII_TX_DRIVER_300MV 8
  31. +#define PSGMII_QSGMII_TX_DRIVER_320MV 9
  32. +#define PSGMII_QSGMII_TX_DRIVER_400MV 10
  33. +#define PSGMII_QSGMII_TX_DRIVER_500MV 11
  34. +/* Default value */
  35. +#define PSGMII_QSGMII_TX_DRIVER_600MV 12
  36. +
  37. +/* Full amplitude, full bias current */
  38. +#define QCA807X_CONTROL_DAC_FULL_VOLT_BIAS 0
  39. +/* Amplitude follow DSP (amplitude is adjusted based on cable length), half bias current */
  40. +#define QCA807X_CONTROL_DAC_DSP_VOLT_HALF_BIAS 1
  41. +/* Full amplitude, bias current follow DSP (bias current is adjusted based on cable length) */
  42. +#define QCA807X_CONTROL_DAC_FULL_VOLT_DSP_BIAS 2
  43. +/* Both amplitude and bias current follow DSP */
  44. +#define QCA807X_CONTROL_DAC_DSP_VOLT_BIAS 3
  45. +/* Full amplitude, half bias current */
  46. +#define QCA807X_CONTROL_DAC_FULL_VOLT_HALF_BIAS 4
  47. +/* Amplitude follow DSP setting; 1/4 bias current when cable<10m,
  48. + * otherwise half bias current
  49. + */
  50. +#define QCA807X_CONTROL_DAC_DSP_VOLT_QUARTER_BIAS 5
  51. +/* Full amplitude; same bias current setting with “010” and “011”,
  52. + * but half more bias is reduced when cable <10m
  53. + */
  54. +#define QCA807X_CONTROL_DAC_FULL_VOLT_HALF_BIAS_SHORT 6
  55. +/* Amplitude follow DSP; same bias current setting with “110”, default value */
  56. +#define QCA807X_CONTROL_DAC_DSP_VOLT_HALF_BIAS_SHORT 7
  57. +
  58. +#endif