From 970a56e6704c0ce105f51497ca455afa0d8c0d36 Mon Sep 17 00:00:00 2001 From: Karolis Stasaitis Date: Fri, 7 Feb 2025 18:13:30 +0100 Subject: [PATCH] raspberry-pi-4: poe-hat: add PWM polarity value --- raspberry-pi/4/poe-hat.nix | 4 ++-- raspberry-pi/4/poe-plus-hat.nix | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/raspberry-pi/4/poe-hat.nix b/raspberry-pi/4/poe-hat.nix index 5d6cf8d07..07bc4e467 100644 --- a/raspberry-pi/4/poe-hat.nix +++ b/raspberry-pi/4/poe-hat.nix @@ -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 = '' @@ -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>; }; }; }; diff --git a/raspberry-pi/4/poe-plus-hat.nix b/raspberry-pi/4/poe-plus-hat.nix index bd7c28ec1..96f50e406 100644 --- a/raspberry-pi/4/poe-plus-hat.nix +++ b/raspberry-pi/4/poe-plus-hat.nix @@ -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 = '' @@ -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>; }; }; };