Hi,
I'm trying to get the 1-wire GPIO driver that bit-bangs 1-wire working under Linux. The problem I have is that I can't seem to set the pin to open-drain mode. I have the following entries in my device tree:
onewire {
compatible = "w1-gpio";
pinctrl-names = "w1grp";
pinctrl-0 = <&pinctrl_w1>;
gpios = <&gpio1 27 0>;
linux,open-drain;
status = "okay";
};
pinctrl_w1: w1grp {
fsl,pins = <
MX6UL_PAD_UART3_RTS_B__GPIO1_IO27 0x4001b8b1
>;
};
I can drive it down but it's still definitely in push-pull mode from watching the pin on the oscilloscope. (Sharp edges and I can see the 1-wire device trying to pull it done.
Is there anything else I need to set to make this work?