Hi Patrick!
I had a quick look starting to implement gpiolib,
but I believe I would need to implement pin-ctrl on top to
make the Alternate functions work propperly.
I wonder if this effort is really worth it.
Martin
On 11/30/2017 06:49 PM, Patrick Menschel wrote:
Am 30.11.2017 um 17:58 schriebkernel@xxxxxxxxxxxxxxxx:
drivers/tty/serial/max310x.c
Documentation/devicetree/bindings/serial/maxim,max310x.txt
Look for "#ifdef CONFIG_GPIOLIB”.
This is a gpio-controller, for which this is what I would implement.
Hi,
you are mistaken about that, max310x chips are spi to uart bridges with
strong ties to rs485 which is very similar to CAN except for the missing
arbitration in hardware. Max14830 has GPIOs with clocking support, so
this chip's driver also fused the main function with secondary gpio
functions.
https://datasheets.maximintegrated.com/en/ds/MAX14830.pdf
Anyway I'm curious what is best practice for this sort of configuration.
Regards,
Patrick
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html