From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Wolfgang Grandegger <wg@grandegger.com>,
Marc Kleine-Budde <mkl@pengutronix.de>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
Rob Herring <robh+dt@kernel.org>
Cc: Oleksij Rempel <o.rempel@pengutronix.de>,
linux-can@vger.kernel.org, netdev@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel@pengutronix.de, David Jander <david@protonic.nl>
Subject: [PATCH v3 1/3] dt-bindings: can-controller: add support for termination-gpios
Date: Wed, 18 Aug 2021 09:12:30 +0200 [thread overview]
Message-ID: <20210818071232.20585-2-o.rempel@pengutronix.de> (raw)
In-Reply-To: <20210818071232.20585-1-o.rempel@pengutronix.de>
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..1f0e98051074 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.
+ maxItems: 1
+
+ termination-ohms:
+ description: The resistance value of the CAN bus termination resistor.
+ minimum: 1
+ maximum: 65535
+
additionalProperties: true
...
--
2.30.2
next prev parent reply other threads:[~2021-08-18 7:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-18 7:12 [PATCH v2 0/3] can: provide GPIO based termination Oleksij Rempel
2021-08-18 7:12 ` Oleksij Rempel [this message]
2021-08-18 17:01 ` [PATCH v3 1/3] dt-bindings: can-controller: add support for termination-gpios Rob Herring
2021-08-18 7:12 ` [PATCH v3 2/3] dt-bindings: can: fsl,flexcan: enable termination-* bindings Oleksij Rempel
2021-08-18 17:02 ` Rob Herring
2021-08-18 7:12 ` [PATCH v3 3/3] can: dev: provide optional GPIO based termination support Oleksij Rempel
2021-08-19 7:56 ` [PATCH v2 0/3] can: provide GPIO based termination Marc Kleine-Budde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210818071232.20585-2-o.rempel@pengutronix.de \
--to=o.rempel@pengutronix.de \
--cc=davem@davemloft.net \
--cc=david@protonic.nl \
--cc=devicetree@vger.kernel.org \
--cc=kernel@pengutronix.de \
--cc=kuba@kernel.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mkl@pengutronix.de \
--cc=netdev@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=wg@grandegger.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).