Skip to content

Commit

Permalink
raspberry-pi-4: poe-hat: add PWM polarity value
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossless committed Feb 9, 2025
1 parent 2eccff4 commit 970a56e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions raspberry-pi/4/poe-hat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ in {

hardware.deviceTree = {
overlays = [
# Equivalent to: https://github.com/raspberrypi/linux/blob/rpi-6.1.y/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
# Equivalent to: https://github.com/raspberrypi/linux/blob/rpi-6.6.y/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
{
name = "rpi-poe-overlay";
dtsText = ''
Expand All @@ -38,7 +38,7 @@ in {
compatible = "pwm-fan";
cooling-levels = <0 1 10 100 255>;
#cooling-cells = <2>;
pwms = <&fwpwm 0 80000>;
pwms = <&fwpwm 0 80000 0>;
};
};
};
Expand Down
6 changes: 3 additions & 3 deletions raspberry-pi/4/poe-plus-hat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ in {
hardware.deviceTree = {
overlays = [
# Combined equivalent to:
# * https://github.com/raspberrypi/linux/blob/rpi-6.1.y/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
# * https://github.com/raspberrypi/linux/blob/rpi-6.1.y/arch/arm/boot/dts/overlays/rpi-poe-plus-overlay.dts
# * https://github.com/raspberrypi/linux/blob/rpi-6.6.y/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
# * https://github.com/raspberrypi/linux/blob/rpi-6.6.y/arch/arm/boot/dts/overlays/rpi-poe-plus-overlay.dts
{
name = "rpi-poe-plus-overlay";
dtsText = ''
Expand All @@ -40,7 +40,7 @@ in {
compatible = "pwm-fan";
cooling-levels = <0 1 10 100 255>;
#cooling-cells = <2>;
pwms = <&fwpwm 0 80000>;
pwms = <&fwpwm 0 80000 0>;
};
};
};
Expand Down

0 comments on commit 970a56e

Please sign in to comment.