diff options
author | Mikko Perttunen <mperttunen@nvidia.com> | 2015-01-06 05:52:56 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-01-23 09:32:00 -0500 |
commit | f58d47258131aa2d0243fc1dc78e2adc578d5de4 (patch) | |
tree | be75d34fb96897eeb3884e29037503c894214a5c | |
parent | a9a40a4a58bac4ff92d0c7e5aa82043074533a6a (diff) |
of: Add descriptions of thermtrip properties to Tegra PMC bindings
Hardware-triggered thermal reset requires configuring the I2C
reset procedure. This configuration is read from the device tree,
so document the relevant properties in the binding documentation.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.txt b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.txt index 68ac65f82a1c..2fd50511ab4b 100644 --- a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.txt +++ b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.txt | |||
@@ -47,6 +47,23 @@ Required properties when nvidia,suspend-mode=<0>: | |||
47 | sleep mode, the warm boot code will restore some PLLs, clocks and then | 47 | sleep mode, the warm boot code will restore some PLLs, clocks and then |
48 | bring up CPU0 for resuming the system. | 48 | bring up CPU0 for resuming the system. |
49 | 49 | ||
50 | Hardware-triggered thermal reset: | ||
51 | On Tegra30, Tegra114 and Tegra124, if the 'i2c-thermtrip' subnode exists, | ||
52 | hardware-triggered thermal reset will be enabled. | ||
53 | |||
54 | Required properties for hardware-triggered thermal reset (inside 'i2c-thermtrip'): | ||
55 | - nvidia,i2c-controller-id : ID of I2C controller to send poweroff command to. Valid values are | ||
56 | described in section 9.2.148 "APBDEV_PMC_SCRATCH53_0" of the | ||
57 | Tegra K1 Technical Reference Manual. | ||
58 | - nvidia,bus-addr : Bus address of the PMU on the I2C bus | ||
59 | - nvidia,reg-addr : I2C register address to write poweroff command to | ||
60 | - nvidia,reg-data : Poweroff command to write to PMU | ||
61 | |||
62 | Optional properties for hardware-triggered thermal reset (inside 'i2c-thermtrip'): | ||
63 | - nvidia,pinmux-id : Pinmux used by the hardware when issuing poweroff command. | ||
64 | Defaults to 0. Valid values are described in section 12.5.2 | ||
65 | "Pinmux Support" of the Tegra4 Technical Reference Manual. | ||
66 | |||
50 | Example: | 67 | Example: |
51 | 68 | ||
52 | / SoC dts including file | 69 | / SoC dts including file |
@@ -69,6 +86,15 @@ pmc@7000f400 { | |||
69 | / Tegra board dts file | 86 | / Tegra board dts file |
70 | { | 87 | { |
71 | ... | 88 | ... |
89 | pmc@7000f400 { | ||
90 | i2c-thermtrip { | ||
91 | nvidia,i2c-controller-id = <4>; | ||
92 | nvidia,bus-addr = <0x40>; | ||
93 | nvidia,reg-addr = <0x36>; | ||
94 | nvidia,reg-data = <0x2>; | ||
95 | }; | ||
96 | }; | ||
97 | ... | ||
72 | clocks { | 98 | clocks { |
73 | compatible = "simple-bus"; | 99 | compatible = "simple-bus"; |
74 | #address-cells = <1>; | 100 | #address-cells = <1>; |