rockchip,rk3399-cru.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. * Rockchip RK3399 Clock and Reset Unit
  2. The RK3399 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,rk3399-pmucru"
  7. - compatible: CRU should be "rockchip,rk3399-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. Each clock is assigned an identifier and client nodes can use this identifier
  13. to specify the clock which they consume. All available clocks are defined as
  14. preprocessor macros in the dt-bindings/clock/rk3399-cru.h headers and can be
  15. used in device tree sources. Similar macros exist for the reset sources in
  16. these files.
  17. External clocks:
  18. There are several clocks that are generated outside the SoC. It is expected
  19. that they are defined using standard clock bindings with following
  20. clock-output-names:
  21. - "xin24m" - crystal input - required,
  22. - "xin32k" - rtc clock - optional,
  23. - "clkin_gmac" - external GMAC clock - optional,
  24. - "clkin_i2s" - external I2S clock - optional,
  25. - "pclkin_cif" - external ISP clock - optional,
  26. - "clk_usbphy0_480m" - output clock of the pll in the usbphy0
  27. - "clk_usbphy1_480m" - output clock of the pll in the usbphy1
  28. Example: Clock controller node:
  29. pmucru: pmu-clock-controller@ff750000 {
  30. compatible = "rockchip,rk3399-pmucru";
  31. reg = <0x0 0xff750000 0x0 0x1000>;
  32. #clock-cells = <1>;
  33. #reset-cells = <1>;
  34. };
  35. cru: clock-controller@ff760000 {
  36. compatible = "rockchip,rk3399-cru";
  37. reg = <0x0 0xff760000 0x0 0x1000>;
  38. #clock-cells = <1>;
  39. #reset-cells = <1>;
  40. };
  41. Example: UART controller node that consumes the clock generated by the clock
  42. controller:
  43. uart0: serial@ff1a0000 {
  44. compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
  45. reg = <0x0 0xff180000 0x0 0x100>;
  46. clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
  47. clock-names = "baudclk", "apb_pclk";
  48. interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
  49. reg-shift = <2>;
  50. reg-io-width = <4>;
  51. };