mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-07 14:54:17 +00:00
28 lines
452 B
Plaintext
28 lines
452 B
Plaintext
// Configure a "hog" on the specified GPIO
|
|
/dts-v1/;
|
|
/plugin/;
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
/ {
|
|
compatible = "brcm,bcm2835";
|
|
|
|
fragment@0 {
|
|
target = <&gpio>;
|
|
__overlay__ {
|
|
hog: hog@1a {
|
|
gpio-hog;
|
|
gpios = <26 GPIO_ACTIVE_HIGH>;
|
|
output-high;
|
|
};
|
|
};
|
|
};
|
|
|
|
__overrides__ {
|
|
gpio = <&hog>,"reg:0",
|
|
<&hog>,"gpios:0";
|
|
active_low = <&hog>,"output-high!",
|
|
<&hog>,"output-low?";
|
|
};
|
|
};
|