2014-12-16 20:38:29 +00:00
|
|
|
NVIDIA Tegra124 and Tegra132 Clock And Reset Controller
|
2013-09-09 10:23:56 +00:00
|
|
|
|
|
|
|
This binding uses the common clock binding:
|
|
|
|
Documentation/devicetree/bindings/clock/clock-bindings.txt
|
|
|
|
|
|
|
|
The CAR (Clock And Reset) Controller on Tegra is the HW module responsible
|
|
|
|
for muxing and gating Tegra's clocks, and setting their rates.
|
|
|
|
|
|
|
|
Required properties :
|
2014-12-16 20:38:29 +00:00
|
|
|
- compatible : Should be "nvidia,tegra124-car" or "nvidia,tegra132-car"
|
2013-09-09 10:23:56 +00:00
|
|
|
- reg : Should contain CAR registers location and length
|
|
|
|
- clocks : Should contain phandle and clock specifiers for two clocks:
|
|
|
|
the 32 KHz "32k_in", and the board-specific oscillator "osc".
|
|
|
|
- #clock-cells : Should be 1.
|
|
|
|
In clock consumers, this cell represents the clock ID exposed by the
|
2014-12-16 20:38:29 +00:00
|
|
|
CAR. The assignments may be found in the header files
|
|
|
|
<dt-bindings/clock/tegra124-car-common.h> (which covers IDs common
|
|
|
|
to Tegra124 and Tegra132) and <dt-bindings/clock/tegra124-car.h>
|
|
|
|
(for Tegra124-specific clocks).
|
2013-11-07 17:11:27 +00:00
|
|
|
- #reset-cells : Should be 1.
|
|
|
|
In clock consumers, this cell represents the bit number in the CAR's
|
|
|
|
array of CLK_RST_CONTROLLER_RST_DEVICES_* registers.
|
2013-09-09 10:23:56 +00:00
|
|
|
|
|
|
|
Example SoC include file:
|
|
|
|
|
|
|
|
/ {
|
|
|
|
tegra_car: clock {
|
|
|
|
compatible = "nvidia,tegra124-car";
|
|
|
|
reg = <0x60006000 0x1000>;
|
|
|
|
#clock-cells = <1>;
|
2013-11-07 17:11:27 +00:00
|
|
|
#reset-cells = <1>;
|
2013-09-09 10:23:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
usb@c5004000 {
|
|
|
|
clocks = <&tegra_car TEGRA124_CLK_USB2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
Example board file:
|
|
|
|
|
|
|
|
/ {
|
|
|
|
clocks {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
osc: clock@0 {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
reg = <0>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <112400000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
clk_32k: clock@1 {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
reg = <1>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <32768>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&tegra_car {
|
|
|
|
clocks = <&clk_32k> <&osc>;
|
|
|
|
};
|
|
|
|
};
|