About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / clock / nvidia,tegra124-car.txt




Custom Search

Based on kernel version 4.1. Page generated on 2015-06-28 12:08 EST.

1	NVIDIA Tegra124 and Tegra132 Clock And Reset Controller
2	
3	This binding uses the common clock binding:
4	Documentation/devicetree/bindings/clock/clock-bindings.txt
5	
6	The CAR (Clock And Reset) Controller on Tegra is the HW module responsible
7	for muxing and gating Tegra's clocks, and setting their rates.
8	
9	Required properties :
10	- compatible : Should be "nvidia,tegra124-car" or "nvidia,tegra132-car"
11	- reg : Should contain CAR registers location and length
12	- clocks : Should contain phandle and clock specifiers for two clocks:
13	  the 32 KHz "32k_in", and the board-specific oscillator "osc".
14	- #clock-cells : Should be 1.
15	  In clock consumers, this cell represents the clock ID exposed by the
16	  CAR. The assignments may be found in the header files
17	  <dt-bindings/clock/tegra124-car-common.h> (which covers IDs common
18	  to Tegra124 and Tegra132) and <dt-bindings/clock/tegra124-car.h>
19	  (for Tegra124-specific clocks).
20	- #reset-cells : Should be 1.
21	  In clock consumers, this cell represents the bit number in the CAR's
22	  array of CLK_RST_CONTROLLER_RST_DEVICES_* registers.
23	
24	Example SoC include file:
25	
26	/ {
27		tegra_car: clock {
28			compatible = "nvidia,tegra124-car";
29			reg = <0x60006000 0x1000>;
30			#clock-cells = <1>;
31			#reset-cells = <1>;
32		};
33	
34		usb@c5004000 {
35			clocks = <&tegra_car TEGRA124_CLK_USB2>;
36		};
37	};
38	
39	Example board file:
40	
41	/ {
42		clocks {
43			compatible = "simple-bus";
44			#address-cells = <1>;
45			#size-cells = <0>;
46	
47			osc: clock@0 {
48				compatible = "fixed-clock";
49				reg = <0>;
50				#clock-cells = <0>;
51				clock-frequency = <112400000>;
52			};
53	
54			clk_32k: clock@1 {
55				compatible = "fixed-clock";
56				reg = <1>;
57				#clock-cells = <0>;
58				clock-frequency = <32768>;
59			};
60		};
61	
62		&tegra_car {
63			clocks = <&clk_32k> <&osc>;
64		};
65	};
Hide Line Numbers
About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Information is copyright its respective author. All material is available from the Linux Kernel Source distributed under a GPL License. This page is provided as a free service by mjmwired.net.