drivers: mcp23xxx: add support for open-drain chip variants

Pin definitions should correctly reflect the actual drive mode of the GPIO
controller, either push-pull or open drain.

Signed-off-by: Armin Brauns <armin.brauns@embedded-solutions.at>
This commit is contained in:
Armin Brauns 2023-11-27 08:39:01 +00:00 committed by Carles Cufí
commit ede19a4337
5 changed files with 20 additions and 13 deletions

View file

@ -49,7 +49,9 @@ Device Drivers and Devicetree
``microchip,mcp230xx`` and ``microchip,mcp23sxx`` should change their devicetree ``compatible``
values to the specific chip variant, e.g. :dtcompatible:`microchip,mcp23017`.
The ``ngpios`` devicetree property has been removed, since it is implied by the model name.
(:github:`65797`)
Chip variants with open-drain outputs (``mcp23x09``, ``mcp23x18``) now correctly reflect this in
their driver API, users of these devices should ensure they pass appropriate values to
:c:func:`gpio_pin_set`. (:github:`65797`)
Controller Area Network (CAN)
=============================