can: tcan4x5x: Add support for tcan4552/4553
authorMarkus Schneider-Pargmann <msp@baylibre.com>
Fri, 28 Jul 2023 14:19:22 +0000 (16:19 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 31 Jul 2023 08:41:08 +0000 (10:41 +0200)
commit142c6dc6d9d7c27157e41985519464d5985e3d95
treecd47431459dc1cac503e5727b86d8dc3ea670e19
parent0d6f3b25ac2fa13fddc6106239f7fa7795c8e808
can: tcan4x5x: Add support for tcan4552/4553

tcan4552 and tcan4553 do not have wake or state pins, so they are
currently not compatible with the generic driver. The generic driver
uses tcan4x5x_disable_state() and tcan4x5x_disable_wake() if the gpios
are not defined. These functions use register bits that are not
available in tcan4552/4553.

This patch adds support by introducing version information to reflect if
the chip has wake and state pins. Also the version is now checked.

Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Link: https://lore.kernel.org/all/20230728141923.162477-6-msp@baylibre.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/tcan4x5x-core.c