Jump to content

More than one 1 Wire pin


dotbg

Recommended Posts

Board OPi Zero 512,  NEXT kernel 4.13.7, last Sunday compiled.

I'm trying do start more than one Dallas 1 wire interface. My primary idea was to add second w1-gpio overlay but no success. The next one is to edit device tree for w1-gpio to add another pin, and then to edit fixup script. And need some help to understand this ( copied from sun8i-h3-w1-gpio.dts )

 

fragment@0 {
target = <&pio>;
__overlay__ {
w1_pins: w1_pins {
pins = "PD14";
function = "gpio_in";
};
};
};

fragment@1 {
target-path = "/";
__overlay__ {
onewire@0 {
compatible = "w1-gpio";
pinctrl-names = "default";
pinctrl-0 = <&w1_pins>;
gpios = <&pio 3 14 0>; /* PD14 */
status = "okay";
};
};
};
 

What exactly w1_pins: w1_pins mean? w1_pins{} is some kind of definition? Any driver limitations for pins count?

 

btw: I be grateful for any other ideas how to enable second 1 Wire pin.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines