# \[PATCH v2 0/3\] can: provide GPIO based termination

- From: Oleksij Rempel \<o.rempel@pengutronix.de\>
- Date: 2021-08-18 07:14:46 
- List: linux-devicetree
- Page: https://ratatoskr.run/linux-devicetree/2021/08/1481323
- Thread: https://ratatoskr.run/linux-can/2021/08/1481323/t.md

```text
changes v3:
- use u32 instead of u16 for termination-ohms
- extend error handling

changes v2:
- add CAN_TERMINATION_GPIO_MAX
- remove fsl,scu-index from yaml example. It is not used on imx6q

Oleksij Rempel (3):
  dt-bindings: can-controller: add support for termination-gpios
  dt-bindings: can: fsl,flexcan: enable termination-* bindings
  can: dev: provide optional GPIO based termination support

 .../bindings/net/can/can-controller.yaml      |  9 +++
 .../bindings/net/can/fsl,flexcan.yaml         | 17 +++++
 drivers/net/can/dev/dev.c                     | 66 +++++++++++++++++++
 include/linux/can/dev.h                       |  8 +++
 4 files changed, 100 insertions(+)

-- 
2.30.2

```
