On Sun, Jan 31, 2016 at 11:52 PM, Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote: > It reminds me how 12 channel PWM chip is used on Intel Galileo Gen 2. > Half pins are PWM, the other half is GPIO used for discrete based pin > muxing and control. Nevertheless I think it's a userspace issue for > now, otherwise we have to provide some 'semi-virtual' way of > presenting pins as GPIO lines. That sounds like an MFD spawning a GPIO and a PWM cell. That it is called "a PWM chip" is no big deal, it should be modeled according to what it is, not what it claims to be. (Which makes me wanna merge this present patch as a GPIO driver since it claims to be a LED driver but is a GPO.) See the ST Multipurpose Expander for an example drivers/mfd/stmpe.c drivers/gpio/gpio-stmpe.c drivers/input/keyboard/stmpe-keypad.c 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