rockchip,px30-cru.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. * Rockchip PX30 Clock and Reset Unit
  2. The PX30 clock controller generates and supplies clock to various
  3. controllers within the SoC and also implements a reset controller for SoC
  4. peripherals.
  5. Required Properties:
  6. - compatible: PMU for CRU should be "rockchip,px30-pmu-cru"
  7. - compatible: CRU should be "rockchip,px30-cru"
  8. - reg: physical base address of the controller and length of memory mapped
  9. region.
  10. - #clock-cells: should be 1.
  11. - #reset-cells: should be 1.
  12. Optional Properties:
  13. - rockchip,grf: phandle to the syscon managing the "general register files"
  14. If missing, pll rates are not changeable, due to the missing pll lock status.
  15. Each clock is assigned an identifier and client nodes can use this identifier
  16. to specify the clock which they consume. All available clocks are defined as
  17. preprocessor macros in the dt-bindings/clock/px30-cru.h headers and can be
  18. used in device tree sources. Similar macros exist for the reset sources in
  19. these files.
  20. External clocks:
  21. There are several clocks that are generated outside the SoC. It is expected
  22. that they are defined using standard clock bindings with following
  23. clock-output-names:
  24. - "xin24m" - crystal input - required,
  25. - "xin32k" - rtc clock - optional,
  26. - "i2sx_clkin" - external I2S clock - optional,
  27. - "gmac_clkin" - external GMAC clock - optional
  28. Example: Clock controller node:
  29. pmucru: clock-controller@ff2bc000 {
  30. compatible = "rockchip,px30-pmucru";
  31. reg = <0x0 0xff2bc000 0x0 0x1000>;
  32. #clock-cells = <1>;
  33. #reset-cells = <1>;
  34. };
  35. cru: clock-controller@ff2b0000 {
  36. compatible = "rockchip,px30-cru";
  37. reg = <0x0 0xff2b0000 0x0 0x1000>;
  38. rockchip,grf = <&grf>;
  39. #clock-cells = <1>;
  40. #reset-cells = <1>;
  41. };
  42. Example: UART controller node that consumes the clock generated by the clock
  43. controller:
  44. uart0: serial@ff030000 {
  45. compatible = "rockchip,px30-uart", "snps,dw-apb-uart";
  46. reg = <0x0 0xff030000 0x0 0x100>;
  47. interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
  48. clocks = <&pmucru SCLK_UART0_PMU>, <&pmucru PCLK_UART0_PMU>;
  49. clock-names = "baudclk", "apb_pclk";
  50. reg-shift = <2>;
  51. reg-io-width = <4>;
  52. };