phy-hi3798cv200-combphy.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. HiSilicon STB PCIE/SATA/USB3 PHY
  2. Required properties:
  3. - compatible: Should be "hisilicon,hi3798cv200-combphy"
  4. - reg: Should be the address space for COMBPHY configuration and state
  5. registers in peripheral controller, e.g. PERI_COMBPHY0_CFG and
  6. PERI_COMBPHY0_STATE for COMBPHY0 Hi3798CV200 SoC.
  7. - #phy-cells: Should be 1. The cell number is used to select the phy mode
  8. as defined in <dt-bindings/phy/phy.h>.
  9. - clocks: The phandle to clock provider and clock specifier pair.
  10. - resets: The phandle to reset controller and reset specifier pair.
  11. Refer to phy/phy-bindings.txt for the generic PHY binding properties.
  12. Optional properties:
  13. - hisilicon,fixed-mode: If the phy device doesn't support mode select
  14. but a fixed mode setting, the property should be present to specify
  15. the particular mode.
  16. - hisilicon,mode-select-bits: If the phy device support mode select,
  17. this property should be present to specify the register bits in
  18. peripheral controller, as a 3 integers tuple:
  19. <register_offset bit_shift bit_mask>.
  20. Notes:
  21. - Between hisilicon,fixed-mode and hisilicon,mode-select-bits, one and only
  22. one of them should be present.
  23. - The device node should be a child of peripheral controller that contains
  24. COMBPHY configuration/state and PERI_CTRL register used to select PHY mode.
  25. Refer to arm/hisilicon/hisilicon.txt for the parent peripheral controller
  26. bindings.
  27. Examples:
  28. perictrl: peripheral-controller@8a20000 {
  29. compatible = "hisilicon,hi3798cv200-perictrl", "syscon",
  30. "simple-mfd";
  31. reg = <0x8a20000 0x1000>;
  32. #address-cells = <1>;
  33. #size-cells = <1>;
  34. ranges = <0x0 0x8a20000 0x1000>;
  35. combphy0: phy@850 {
  36. compatible = "hisilicon,hi3798cv200-combphy";
  37. reg = <0x850 0x8>;
  38. #phy-cells = <1>;
  39. clocks = <&crg HISTB_COMBPHY0_CLK>;
  40. resets = <&crg 0x188 4>;
  41. hisilicon,fixed-mode = <PHY_TYPE_USB3>;
  42. };
  43. combphy1: phy@858 {
  44. compatible = "hisilicon,hi3798cv200-combphy";
  45. reg = <0x858 0x8>;
  46. #phy-cells = <1>;
  47. clocks = <&crg HISTB_COMBPHY1_CLK>;
  48. resets = <&crg 0x188 12>;
  49. hisilicon,mode-select-bits = <0x0008 11 (0x3 << 11)>;
  50. };
  51. };