rockchip,analogix-dp.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/rockchip/rockchip,analogix-dp.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Rockchip specific extensions to the Analogix Display Port
  7. maintainers:
  8. - Sandy Huang <hjc@rock-chips.com>
  9. - Heiko Stuebner <heiko@sntech.de>
  10. properties:
  11. compatible:
  12. enum:
  13. - rockchip,rk3288-dp
  14. - rockchip,rk3399-edp
  15. clocks:
  16. minItems: 2
  17. maxItems: 3
  18. clock-names:
  19. minItems: 2
  20. items:
  21. - const: dp
  22. - const: pclk
  23. - const: grf
  24. power-domains:
  25. maxItems: 1
  26. resets:
  27. maxItems: 1
  28. reset-names:
  29. const: dp
  30. rockchip,grf:
  31. $ref: /schemas/types.yaml#/definitions/phandle
  32. description:
  33. This SoC makes use of GRF regs.
  34. required:
  35. - compatible
  36. - clocks
  37. - clock-names
  38. - resets
  39. - reset-names
  40. - rockchip,grf
  41. allOf:
  42. - $ref: /schemas/display/bridge/analogix,dp.yaml#
  43. unevaluatedProperties: false
  44. examples:
  45. - |
  46. #include <dt-bindings/clock/rk3288-cru.h>
  47. #include <dt-bindings/interrupt-controller/arm-gic.h>
  48. #include <dt-bindings/interrupt-controller/irq.h>
  49. dp@ff970000 {
  50. compatible = "rockchip,rk3288-dp";
  51. reg = <0xff970000 0x4000>;
  52. interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
  53. clocks = <&cru SCLK_EDP>, <&cru PCLK_EDP_CTRL>;
  54. clock-names = "dp", "pclk";
  55. phys = <&dp_phy>;
  56. phy-names = "dp";
  57. resets = <&cru 111>;
  58. reset-names = "dp";
  59. rockchip,grf = <&grf>;
  60. pinctrl-0 = <&edp_hpd>;
  61. pinctrl-names = "default";
  62. ports {
  63. #address-cells = <1>;
  64. #size-cells = <0>;
  65. edp_in: port@0 {
  66. reg = <0>;
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. edp_in_vopb: endpoint@0 {
  70. reg = <0>;
  71. remote-endpoint = <&vopb_out_edp>;
  72. };
  73. edp_in_vopl: endpoint@1 {
  74. reg = <1>;
  75. remote-endpoint = <&vopl_out_edp>;
  76. };
  77. };
  78. edp_out: port@1 {
  79. reg = <1>;
  80. edp_out_panel: endpoint {
  81. remote-endpoint = <&panel_in_edp>;
  82. };
  83. };
  84. };
  85. };