Brooklyn/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
Scare Crowe 0a0baab7be Instant PWM fan kick off enhancement
Instead of waiting for a term signal, the hwmon driver can now kick the PWM plugged fans independently
2021-11-11 18:57:51 +05:00

40 lines
815 B
Plaintext

// Definitions for gpio-poweroff module
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target-path = "/";
__overlay__ {
power_ctrl: power_ctrl {
compatible = "gpio-poweroff";
gpios = <&gpio 26 0>;
force;
};
};
};
fragment@1 {
target = <&gpio>;
__overlay__ {
power_ctrl_pins: power_ctrl_pins {
brcm,pins = <26>;
brcm,function = <1>; // out
};
};
};
__overrides__ {
gpiopin = <&power_ctrl>,"gpios:4",
<&power_ctrl_pins>,"brcm,pins:0";
active_low = <&power_ctrl>,"gpios:8";
input = <&power_ctrl>,"input?";
export = <&power_ctrl>,"export?";
timeout_ms = <&power_ctrl>,"timeout-ms:0";
active_delay_ms = <&power_ctrl>,"active-delay-ms:0";
inactive_delay_ms = <&power_ctrl>,"inactive-delay-ms:0";
};
};