rockchip,dfi.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/devfreq/event/rockchip,dfi.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Rockchip DFI
  7. maintainers:
  8. - Sascha Hauer <s.hauer@pengutronix.de>
  9. properties:
  10. compatible:
  11. enum:
  12. - rockchip,rk3399-dfi
  13. - rockchip,rk3568-dfi
  14. - rockchip,rk3588-dfi
  15. clocks:
  16. maxItems: 1
  17. clock-names:
  18. items:
  19. - const: pclk_ddr_mon
  20. interrupts:
  21. minItems: 1
  22. maxItems: 4
  23. reg:
  24. maxItems: 1
  25. rockchip,pmu:
  26. $ref: /schemas/types.yaml#/definitions/phandle
  27. description:
  28. Phandle to the syscon managing the "PMU general register files".
  29. required:
  30. - compatible
  31. - interrupts
  32. - reg
  33. if:
  34. properties:
  35. compatible:
  36. contains:
  37. enum:
  38. - rockchip,rk3399-dfi
  39. then:
  40. required:
  41. - clocks
  42. - clock-names
  43. additionalProperties: false
  44. examples:
  45. - |
  46. #include <dt-bindings/interrupt-controller/arm-gic.h>
  47. #include <dt-bindings/clock/rk3308-cru.h>
  48. bus {
  49. #address-cells = <2>;
  50. #size-cells = <2>;
  51. dfi: dfi@ff630000 {
  52. compatible = "rockchip,rk3399-dfi";
  53. reg = <0x00 0xff630000 0x00 0x4000>;
  54. interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH 0>;
  55. rockchip,pmu = <&pmugrf>;
  56. clocks = <&cru PCLK_DDR_MON>;
  57. clock-names = "pclk_ddr_mon";
  58. };
  59. };