Commit 7021d122 authored by Joseph Lo's avatar Joseph Lo Committed by Stephen Warren

ARM: tegra: add clock source of PMC to device trees

Adding the bindings of the clock source of PMC in DT.
Signed-off-by: default avatarJoseph Lo <josephl@nvidia.com>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent 7495b2eb
NVIDIA Tegra Power Management Controller (PMC) NVIDIA Tegra Power Management Controller (PMC)
Properties: Required properties:
- name : Should be pmc - name : Should be pmc
- compatible : Should contain "nvidia,tegra<chip>-pmc". - compatible : Should contain "nvidia,tegra<chip>-pmc".
- reg : Offset and length of the register set for the device - reg : Offset and length of the register set for the device
- clocks : Must contain an entry for each entry in clock-names.
- clock-names : Must include the following entries:
"pclk" (The Tegra clock of that name),
"clk32k_in" (The 32KHz clock input to Tegra).
Optional properties:
- nvidia,invert-interrupt : If present, inverts the PMU interrupt signal. - nvidia,invert-interrupt : If present, inverts the PMU interrupt signal.
The PMU is an external Power Management Unit, whose interrupt output The PMU is an external Power Management Unit, whose interrupt output
signal is fed into the PMC. This signal is optionally inverted, and then signal is fed into the PMC. This signal is optionally inverted, and then
...@@ -12,8 +18,29 @@ Properties: ...@@ -12,8 +18,29 @@ Properties:
Example: Example:
/ SoC dts including file
pmc@7000f400 { pmc@7000f400 {
compatible = "nvidia,tegra20-pmc"; compatible = "nvidia,tegra20-pmc";
reg = <0x7000e400 0x400>; reg = <0x7000e400 0x400>;
clocks = <&tegra_car 110>, <&clk32k_in>;
clock-names = "pclk", "clk32k_in";
nvidia,invert-interrupt; nvidia,invert-interrupt;
}; };
/ Tegra board dts file
{
...
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
...
};
...@@ -18,4 +18,17 @@ serial@70006300 { ...@@ -18,4 +18,17 @@ serial@70006300 {
pmc { pmc {
nvidia,invert-interrupt; nvidia,invert-interrupt;
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
}; };
...@@ -18,4 +18,17 @@ serial@70006300 { ...@@ -18,4 +18,17 @@ serial@70006300 {
pmc { pmc {
nvidia,invert-interrupt; nvidia,invert-interrupt;
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
}; };
...@@ -101,6 +101,8 @@ rtc { ...@@ -101,6 +101,8 @@ rtc {
pmc { pmc {
compatible = "nvidia,tegra114-pmc"; compatible = "nvidia,tegra114-pmc";
reg = <0x7000e400 0x400>; reg = <0x7000e400 0x400>;
clocks = <&tegra_car 261>, <&clk32k_in>;
clock-names = "pclk", "clk32k_in";
}; };
iommu { iommu {
......
...@@ -447,6 +447,19 @@ sdhci@c8000600 { ...@@ -447,6 +447,19 @@ sdhci@c8000600 {
cd-gpios = <&gpio 23 1>; /* gpio PC7 */ cd-gpios = <&gpio 23 1>; /* gpio PC7 */
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
sound { sound {
compatible = "nvidia,tegra-audio-wm9712-colibri_t20", compatible = "nvidia,tegra-audio-wm9712-colibri_t20",
"nvidia,tegra-audio-wm9712"; "nvidia,tegra-audio-wm9712";
......
...@@ -451,6 +451,19 @@ sdhci@c8000600 { ...@@ -451,6 +451,19 @@ sdhci@c8000600 {
bus-width = <8>; bus-width = <8>;
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
kbc { kbc {
status = "okay"; status = "okay";
nvidia,debounce-delay-ms = <2>; nvidia,debounce-delay-ms = <2>;
......
...@@ -447,6 +447,19 @@ sdhci@c8000600 { ...@@ -447,6 +447,19 @@ sdhci@c8000600 {
bus-width = <8>; bus-width = <8>;
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
......
...@@ -595,6 +595,19 @@ sdhci@c8000600 { ...@@ -595,6 +595,19 @@ sdhci@c8000600 {
bus-width = <8>; bus-width = <8>;
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
......
...@@ -471,6 +471,19 @@ sdhci@c8000600 { ...@@ -471,6 +471,19 @@ sdhci@c8000600 {
status = "okay"; status = "okay";
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
regulators { regulators {
compatible = "simple-bus"; compatible = "simple-bus";
......
...@@ -330,6 +330,19 @@ sdhci@c8000600 { ...@@ -330,6 +330,19 @@ sdhci@c8000600 {
bus-width = <4>; bus-width = <4>;
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
poweroff { poweroff {
compatible = "gpio-poweroff"; compatible = "gpio-poweroff";
gpios = <&gpio 191 1>; /* gpio PX7, active low */ gpios = <&gpio 191 1>; /* gpio PX7, active low */
......
...@@ -531,6 +531,19 @@ sdhci@c8000600 { ...@@ -531,6 +531,19 @@ sdhci@c8000600 {
bus-width = <8>; bus-width = <8>;
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
regulators { regulators {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
......
...@@ -520,6 +520,19 @@ sdhci@c8000600 { ...@@ -520,6 +520,19 @@ sdhci@c8000600 {
bus-width = <8>; bus-width = <8>;
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
kbc { kbc {
status = "okay"; status = "okay";
nvidia,debounce-delay-ms = <20>; nvidia,debounce-delay-ms = <20>;
......
...@@ -417,6 +417,8 @@ kbc { ...@@ -417,6 +417,8 @@ kbc {
pmc { pmc {
compatible = "nvidia,tegra20-pmc"; compatible = "nvidia,tegra20-pmc";
reg = <0x7000e400 0x400>; reg = <0x7000e400 0x400>;
clocks = <&tegra_car 110>, <&clk32k_in>;
clock-names = "pclk", "clk32k_in";
}; };
memory-controller@7000f000 { memory-controller@7000f000 {
......
...@@ -268,6 +268,19 @@ sdhci@78000600 { ...@@ -268,6 +268,19 @@ sdhci@78000600 {
bus-width = <8>; bus-width = <8>;
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
regulators { regulators {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
......
...@@ -322,6 +322,19 @@ sdhci@78000600 { ...@@ -322,6 +322,19 @@ sdhci@78000600 {
bus-width = <8>; bus-width = <8>;
}; };
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
clk32k_in: clock {
compatible = "fixed-clock";
reg=<0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
regulators { regulators {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
......
...@@ -426,6 +426,8 @@ kbc { ...@@ -426,6 +426,8 @@ kbc {
pmc { pmc {
compatible = "nvidia,tegra30-pmc"; compatible = "nvidia,tegra30-pmc";
reg = <0x7000e400 0x400>; reg = <0x7000e400 0x400>;
clocks = <&tegra_car 218>, <&clk32k_in>;
clock-names = "pclk", "clk32k_in";
}; };
memory-controller { memory-controller {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment