mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-01 07:42:18 +00:00
41 lines
699 B
Plaintext
41 lines
699 B
Plaintext
// Definitions for w1-gpio module (without external pullup)
|
|
/dts-v1/;
|
|
/plugin/;
|
|
|
|
/ {
|
|
compatible = "brcm,bcm2835";
|
|
|
|
fragment@0 {
|
|
target-path = "/";
|
|
__overlay__ {
|
|
|
|
w1: onewire@0 {
|
|
compatible = "w1-gpio";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&w1_pins>;
|
|
gpios = <&gpio 4 0>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@1 {
|
|
target = <&gpio>;
|
|
__overlay__ {
|
|
w1_pins: w1_pins@0 {
|
|
brcm,pins = <4>;
|
|
brcm,function = <0>; // in (initially)
|
|
brcm,pull = <0>; // off
|
|
};
|
|
};
|
|
};
|
|
|
|
__overrides__ {
|
|
gpiopin = <&w1>,"gpios:4",
|
|
<&w1>,"reg:0",
|
|
<&w1_pins>,"brcm,pins:0",
|
|
<&w1_pins>,"reg:0";
|
|
pullup; // Silently ignore unneeded parameter
|
|
};
|
|
};
|