fsl,imx8-pcie-phy.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/phy/fsl,imx8-pcie-phy.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Freescale i.MX8 SoC series PCIe PHY
  7. maintainers:
  8. - Richard Zhu <hongxing.zhu@nxp.com>
  9. properties:
  10. "#phy-cells":
  11. const: 0
  12. compatible:
  13. enum:
  14. - fsl,imx8mm-pcie-phy
  15. - fsl,imx8mp-pcie-phy
  16. reg:
  17. maxItems: 1
  18. clocks:
  19. maxItems: 1
  20. clock-names:
  21. items:
  22. - const: ref
  23. resets:
  24. minItems: 1
  25. maxItems: 2
  26. reset-names:
  27. oneOf:
  28. - items: # for iMX8MM
  29. - const: pciephy
  30. - items: # for IMX8MP
  31. - const: pciephy
  32. - const: perst
  33. fsl,refclk-pad-mode:
  34. description: |
  35. Specifies the mode of the refclk pad used. It can be UNUSED(PHY
  36. refclock is derived from SoC internal source), INPUT(PHY refclock
  37. is provided externally via the refclk pad) or OUTPUT(PHY refclock
  38. is derived from SoC internal source and provided on the refclk pad).
  39. Refer include/dt-bindings/phy/phy-imx8-pcie.h for the constants
  40. to be used.
  41. $ref: /schemas/types.yaml#/definitions/uint32
  42. enum: [ 0, 1, 2 ]
  43. fsl,tx-deemph-gen1:
  44. description: Gen1 De-emphasis value (optional).
  45. $ref: /schemas/types.yaml#/definitions/uint32
  46. default: 0
  47. fsl,tx-deemph-gen2:
  48. description: Gen2 De-emphasis value (optional).
  49. $ref: /schemas/types.yaml#/definitions/uint32
  50. default: 0
  51. fsl,clkreq-unsupported:
  52. type: boolean
  53. description: A boolean property indicating the CLKREQ# signal is
  54. not supported in the board design (optional)
  55. power-domains:
  56. description: PCIe PHY power domain (optional).
  57. maxItems: 1
  58. required:
  59. - "#phy-cells"
  60. - compatible
  61. - reg
  62. - clocks
  63. - clock-names
  64. - fsl,refclk-pad-mode
  65. additionalProperties: false
  66. examples:
  67. - |
  68. #include <dt-bindings/clock/imx8mm-clock.h>
  69. #include <dt-bindings/phy/phy-imx8-pcie.h>
  70. #include <dt-bindings/reset/imx8mq-reset.h>
  71. pcie_phy: pcie-phy@32f00000 {
  72. compatible = "fsl,imx8mm-pcie-phy";
  73. reg = <0x32f00000 0x10000>;
  74. clocks = <&clk IMX8MM_CLK_PCIE1_PHY>;
  75. clock-names = "ref";
  76. assigned-clocks = <&clk IMX8MM_CLK_PCIE1_PHY>;
  77. assigned-clock-rates = <100000000>;
  78. assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_100M>;
  79. resets = <&src IMX8MQ_RESET_PCIEPHY>;
  80. reset-names = "pciephy";
  81. fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
  82. #phy-cells = <0>;
  83. };
  84. ...