forked from radxa-pkg/radxa-overlays
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alvin Xie <[email protected]>
- Loading branch information
1 parent
7790cb9
commit 1b2ced8
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
arch/arm64/boot/dts/rockchip/overlays/radxa-zero3e-poe-hat.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/pinctrl/rockchip.h> | ||
#include <dt-bindings/pwm/pwm.h> | ||
#include <dt-bindings/thermal/thermal.h> | ||
|
||
/ { | ||
metadata { | ||
title = "Radxa ZERO 3E PoE HAT"; | ||
category = "misc"; | ||
compatible = "radxa,zero3"; | ||
description = "Radxa ZERO 3E PoE HAT."; | ||
exclusive = "GPIO3_C3"; | ||
package = "rsetup-config-thermal-governor-step-wise"; | ||
}; | ||
|
||
fragment@0 { | ||
target-path = "/"; | ||
__overlay__ { | ||
radxa_poe_pwm: radxa-poe-pwm { | ||
compatible = "pwm-gpio"; | ||
#pwm-cells = <3>; | ||
pwm-gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
radxa_poe_fan: radxa-poe-fan { | ||
compatible = "pwm-fan"; | ||
#cooling-cells = <2>; | ||
cooling-min-state = <0>; | ||
cooling-max-state = <4>; | ||
cooling-levels = <0 64 128 192 255>; | ||
pwms = <&radxa_poe_pwm 0 40000 PWM_POLARITY_INVERTED>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&soc_thermal>; | ||
|
||
__overlay__ { | ||
sustainable-power = <5000>; /* milliwatts */ | ||
cooling-maps { | ||
map3 { | ||
cooling-device = <&radxa_poe_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; | ||
contribution = <8192>; | ||
}; | ||
map4 { | ||
cooling-device = <&radxa_poe_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; | ||
contribution = <8192>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; |