rockchip.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Device Tree Clock bindings for arch-rockchip
  2. This binding uses the common clock binding[1].
  3. [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
  4. == Gate clocks ==
  5. These bindings are deprecated!
  6. Please use the soc specific CRU bindings instead.
  7. The gate registers form a continuos block which makes the dt node
  8. structure a matter of taste, as either all gates can be put into
  9. one gate clock spanning all registers or they can be divided into
  10. the 10 individual gates containing 16 clocks each.
  11. The code supports both approaches.
  12. Required properties:
  13. - compatible : "rockchip,rk2928-gate-clk"
  14. - reg : shall be the control register address(es) for the clock.
  15. - #clock-cells : from common clock binding; shall be set to 1
  16. - clock-output-names : the corresponding gate names that the clock controls
  17. - clocks : should contain the parent clock for each individual gate,
  18. therefore the number of clocks elements should match the number of
  19. clock-output-names
  20. Example using multiple gate clocks:
  21. clk_gates0: gate-clk@200000d0 {
  22. compatible = "rockchip,rk2928-gate-clk";
  23. reg = <0x200000d0 0x4>;
  24. clocks = <&dummy>, <&dummy>,
  25. <&dummy>, <&dummy>,
  26. <&dummy>, <&dummy>,
  27. <&dummy>, <&dummy>,
  28. <&dummy>, <&dummy>,
  29. <&dummy>, <&dummy>,
  30. <&dummy>, <&dummy>,
  31. <&dummy>, <&dummy>;
  32. clock-output-names =
  33. "gate_core_periph", "gate_cpu_gpll",
  34. "gate_ddrphy", "gate_aclk_cpu",
  35. "gate_hclk_cpu", "gate_pclk_cpu",
  36. "gate_atclk_cpu", "gate_i2s0",
  37. "gate_i2s0_frac", "gate_i2s1",
  38. "gate_i2s1_frac", "gate_i2s2",
  39. "gate_i2s2_frac", "gate_spdif",
  40. "gate_spdif_frac", "gate_testclk";
  41. #clock-cells = <1>;
  42. };
  43. clk_gates1: gate-clk@200000d4 {
  44. compatible = "rockchip,rk2928-gate-clk";
  45. reg = <0x200000d4 0x4>;
  46. clocks = <&xin24m>, <&xin24m>,
  47. <&xin24m>, <&dummy>,
  48. <&dummy>, <&xin24m>,
  49. <&xin24m>, <&dummy>,
  50. <&xin24m>, <&dummy>,
  51. <&xin24m>, <&dummy>,
  52. <&xin24m>, <&dummy>,
  53. <&xin24m>, <&dummy>;
  54. clock-output-names =
  55. "gate_timer0", "gate_timer1",
  56. "gate_timer2", "gate_jtag",
  57. "gate_aclk_lcdc1_src", "gate_otgphy0",
  58. "gate_otgphy1", "gate_ddr_gpll",
  59. "gate_uart0", "gate_frac_uart0",
  60. "gate_uart1", "gate_frac_uart1",
  61. "gate_uart2", "gate_frac_uart2",
  62. "gate_uart3", "gate_frac_uart3";
  63. #clock-cells = <1>;
  64. };