nvidia,tegra114-car.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. NVIDIA Tegra114 Clock And Reset Controller
  2. This binding uses the common clock binding:
  3. Documentation/devicetree/bindings/clock/clock-bindings.txt
  4. The CAR (Clock And Reset) Controller on Tegra is the HW module responsible
  5. for muxing and gating Tegra's clocks, and setting their rates.
  6. Required properties :
  7. - compatible : Should be "nvidia,tegra114-car"
  8. - reg : Should contain CAR registers location and length
  9. - clocks : Should contain phandle and clock specifiers for two clocks:
  10. the 32 KHz "32k_in", and the board-specific oscillator "osc".
  11. - #clock-cells : Should be 1.
  12. In clock consumers, this cell represents the clock ID exposed by the
  13. CAR. The assignments may be found in header file
  14. <dt-bindings/clock/tegra114-car.h>.
  15. Example SoC include file:
  16. / {
  17. tegra_car: clock {
  18. compatible = "nvidia,tegra114-car";
  19. reg = <0x60006000 0x1000>;
  20. #clock-cells = <1>;
  21. };
  22. usb@c5004000 {
  23. clocks = <&tegra_car TEGRA114_CLK_USB2>;
  24. };
  25. };
  26. Example board file:
  27. / {
  28. clocks {
  29. compatible = "simple-bus";
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. osc: clock@0 {
  33. compatible = "fixed-clock";
  34. reg = <0>;
  35. #clock-cells = <0>;
  36. clock-frequency = <12000000>;
  37. };
  38. clk_32k: clock@1 {
  39. compatible = "fixed-clock";
  40. reg = <1>;
  41. #clock-cells = <0>;
  42. clock-frequency = <32768>;
  43. };
  44. };
  45. &tegra_car {
  46. clocks = <&clk_32k> <&osc>;
  47. };
  48. };