On Thu, Jul 28, 2022 at 11:17 AM Martin Zaťovič <m.zatovic1@xxxxxxxxx> wrote: > Wiegand write-only driver requires definitions of two GPIO lines > in the devicetree. This adds the documentation of their > definitions. On top of the other comments: > + Both data lines are initially pulled up. That makes it sound like they are both open drain, right? Just like I2C. > + wiegand-data-hi-gpios: > + wiegand-data-lo-gpios: So these should be tagged with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) See the I2C bindings in Documentation/devicetree/bindings/i2c/i2c-gpio.yaml > + wiegand-data-hi-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; > + wiegand-data-lo-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) on both then! Yours, Linus Walleij