On Mon, Mar 27, 2017 at 5:21 PM, Laxman Dewangan <ldewangan@xxxxxxxxxx> wrote: > I have the schematics, where I need to set it as > Pin state HIGH (by setting gpio-input mode) to enable the circuit. > Pin state LOW (by setting gpio-output mode with value to 0) to disable the > circuit. (...) > With this, I think the GPIO is active HIGH and open drain type. > If I set the active LOW from DT then I can not set pin to logical 1 using > the API gpiod_set_value() with “1”. > As this invert before calling _gpiod_set_raw_value() and so the value = 0 > and it set the pin in the gpio mode output-Low. > > Shouldn'’t open drain pin are active HIGH? Sorry I do not understand, have you solved it? Else can you try to break down the problem, do you mean there is a bug in inverted handling for open drain lines in gpiolib? Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html