diff options
| author | Sandipan patra <spatra@nvidia.com> | 2019-11-15 00:18:57 -0500 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-11-18 11:23:51 -0500 |
| commit | 79f1494dbef612d9f3f648bdf179a67aed4509b1 (patch) | |
| tree | d31fb55f3b4c8fefd64c4bd0e065d9ebb4a132d2 /Documentation | |
| parent | 9a72f968f0929ca299efd59669243307dd0b96c3 (diff) | |
dt: bindings: Add documentation for pwm-fan
Device tree properties used in pwm-fan is Documented in
Documentation/devicetree/bindings to understand how are
the properties used in driver.
Bug 200563459
Change-Id: I08bd23fc6c19410924c7007c2cc2a6542c0f5499
Signed-off-by: Sandipan patra <spatra@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2239766
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/devicetree/bindings/thermal/tegra-pwm-fan.txt | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/thermal/tegra-pwm-fan.txt b/Documentation/devicetree/bindings/thermal/tegra-pwm-fan.txt new file mode 100644 index 000000000..30a9935c4 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/tegra-pwm-fan.txt | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | Bindings for a fan connected to the PWM lines | ||
| 2 | |||
| 3 | Properties details: | ||
| 4 | - compatible : "pwm-fan" | ||
| 5 | - pwms : the PWM that is used to control the PWM fan | ||
| 6 | |||
| 7 | - shared_data | ||
| 8 | - active_steps : Entries for references in active_rpm[], active_pwm[], active_rru[], active_rrd[] | ||
| 9 | - active_rru : This value is kept on added to cur_pwm till it reaches at | ||
| 10 | next active step from the table. This is repeated until cur_pwm | ||
| 11 | value reaches target_pwm | ||
| 12 | - active_rrd : This value is kept on subtracted from cur_pwm till it reaches at | ||
| 13 | previous active step from the table. This is repeated until cur_pwm | ||
| 14 | value reaches target_pwm | ||
| 15 | - state_cap_lookup : Index to refer in active_pwm[] | ||
| 16 | - pwm_period : To derive duty cycle | ||
| 17 | - pwm_id : Assigned PWM controller id to tegra fan | ||
| 18 | Same as mentioned id in pwms. In pwms, the id starts from 1 | ||
| 19 | pwm_id in pfsd, the id starts from 0 | ||
| 20 | - step_time : Time taken for each step during rru/rrd | ||
| 21 | - state_cap : Capping state value out of available active_steps | ||
| 22 | - active_pwm_max : Max pwm value (256) | ||
| 23 | - pwm_gpio : GPIO pin used for pwm | ||
| 24 | |||
| 25 | Example: | ||
| 26 | |||
| 27 | pwm_fan_shared_data: pfsd { | ||
| 28 | status = "okay"; | ||
| 29 | num_resources = <0>; | ||
| 30 | active_steps = <10>; | ||
| 31 | active_rpm = <0 1000 2000 3000 4000 5000 6000 7000 10000 11000>; | ||
| 32 | active_rru = <40 2 1 1 1 1 1 1 1 1>; | ||
| 33 | active_rrd = <40 2 1 1 1 1 1 1 1 1>; | ||
| 34 | state_cap_lookup = <2 2 2 2 3 3 3 4 4 4>; | ||
| 35 | pwm_period = <45334>; | ||
| 36 | pwm_id = <3>; | ||
| 37 | step_time = <100>; /* mesecs */ | ||
| 38 | state_cap = <7>; | ||
| 39 | active_pwm_max = <256>; | ||
| 40 | pwm_gpio = <&tegra_aon_gpio TEGRA_AON_GPIO(V, 6) GPIO_ACTIVE_LOW>; /* TEGRA_MAIN_GPIO_PV6 */ | ||
| 41 | }; | ||
| 42 | pwm-fan { | ||
| 43 | status = "okay"; | ||
| 44 | compatible = "pwm-fan"; | ||
| 45 | #pwm-cells = <1>; | ||
| 46 | pwms = <&tegra_pwm4 0 45334>; | ||
| 47 | shared_data = <&pwm_fan_shared_data>; | ||
| 48 | active_pwm = <0 80 120 160 255 255 255 255 255 255>; | ||
| 49 | }; | ||
| 50 | }; | ||
| 51 | |||
