LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v1 1/3] dt-bindings: can-controller: add support for termination-gpios
@ 2021-08-16 11:48 Oleksij Rempel
  2021-08-16 11:48 ` [PATCH v1 2/3] dt-bindings: can: fsl,flexcan: enable termination-* bindings Oleksij Rempel
  2021-08-16 11:48 ` [PATCH v1 3/3] can: dev: provide optional GPIO based termination support Oleksij Rempel
  0 siblings, 2 replies; 4+ messages in thread
From: Oleksij Rempel @ 2021-08-16 11:48 UTC (permalink / raw)
  To: Wolfgang Grandegger, Marc Kleine-Budde, David S. Miller,
	Jakub Kicinski, Rob Herring
  Cc: Oleksij Rempel, linux-can, netdev, devicetree, linux-kernel,
	kernel, David Jander

Some boards provide GPIO controllable termination resistor. Provide
binding to make use of it.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 .../devicetree/bindings/net/can/can-controller.yaml      | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/can/can-controller.yaml b/Documentation/devicetree/bindings/net/can/can-controller.yaml
index 9cf2ae097156..298ce69a8208 100644
--- a/Documentation/devicetree/bindings/net/can/can-controller.yaml
+++ b/Documentation/devicetree/bindings/net/can/can-controller.yaml
@@ -13,6 +13,15 @@ properties:
   $nodename:
     pattern: "^can(@.*)?$"
 
+  termination-gpios:
+    description: GPIO pin to enable CAN bus termination.
+
+  termination-ohms:
+    description: The resistance value of the CAN bus termination resistor.
+    $ref: /schemas/types.yaml#/definitions/uint16-array
+    minimum: 1
+    maximum: 65535
+
 additionalProperties: true
 
 ...
-- 
2.30.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-17  0:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16 11:48 [PATCH v1 1/3] dt-bindings: can-controller: add support for termination-gpios Oleksij Rempel
2021-08-16 11:48 ` [PATCH v1 2/3] dt-bindings: can: fsl,flexcan: enable termination-* bindings Oleksij Rempel
2021-08-16 11:48 ` [PATCH v1 3/3] can: dev: provide optional GPIO based termination support Oleksij Rempel
2021-08-17  0:19   ` Vincent MAILHOL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).