12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- From 5d90603b09e5814ffc38c47e79ccf9bc564f9296 Mon Sep 17 00:00:00 2001
- From: Daniel Golle <[email protected]>
- Date: Tue, 30 May 2023 22:12:35 +0200
- Subject: [PATCH 18/19] 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: Daniel Golle <[email protected]>
- Signed-off-by: Frank Wunderlich <[email protected]>
- Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
- Link: https://lore.kernel.org/r/[email protected]
- Signed-off-by: Matthias Brugger <[email protected]>
- ---
- .../dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 31 +++++++++++++++++++
- 1 file changed, 31 insertions(+)
- --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
- +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts
- @@ -38,6 +38,15 @@
- 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 {
- compatible = "gpio-keys";
-
- @@ -133,6 +142,28 @@
- };
- };
-
- +&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 {
- status = "okay";
- };
|