Commit c26f779a authored by Daniel Golle's avatar Daniel Golle Committed by Matthias Brugger

arm64: dts: mt7986: add pwm-fan and cooling-maps to BPI-R3 dts

Add pwm-fan and cooling-maps to BananaPi-R3 devicetree.
Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
Signed-off-by: default avatarFrank Wunderlich <frank-w@public-files.de>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230530201235.22330-5-linux@fw-web.deSigned-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 1f5be051
...@@ -38,6 +38,15 @@ dcin: regulator-12vd { ...@@ -38,6 +38,15 @@ dcin: regulator-12vd {
regulator-always-on; regulator-always-on;
}; };
fan: pwm-fan {
compatible = "pwm-fan";
#cooling-cells = <2>;
/* cooling level (0, 1, 2) - pwm inverted */
cooling-levels = <255 96 0>;
pwms = <&pwm 0 10000 0>;
status = "okay";
};
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
...@@ -133,6 +142,28 @@ sfp2: sfp-2 { ...@@ -133,6 +142,28 @@ sfp2: sfp-2 {
}; };
}; };
&cpu_thermal {
cooling-maps {
cpu-active-high {
/* active: set fan to cooling level 2 */
cooling-device = <&fan 2 2>;
trip = <&cpu_trip_active_high>;
};
cpu-active-low {
/* active: set fan to cooling level 1 */
cooling-device = <&fan 1 1>;
trip = <&cpu_trip_active_low>;
};
cpu-passive {
/* passive: set fan to cooling level 0 */
cooling-device = <&fan 0 0>;
trip = <&cpu_trip_passive>;
};
};
};
&crypto { &crypto {
status = "okay"; status = "okay";
}; };
......
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