]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dt-bindings: can: mcp251x: document GPIO support
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 15 Sep 2020 22:35:15 +0000 (00:35 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 21 Sep 2020 08:13:18 +0000 (10:13 +0200)
The next patch adds gpio controller support to the mcp251x driver. This
patch updates the binding accordingly.

Cc: Timo Schlüßler <schluessler@krause.de>
Link: https://lore.kernel.org/r/20200915223527.1417033-26-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Documentation/devicetree/bindings/net/can/microchip,mcp251x.txt

index e689506ac38d0497decd3747d9a61267c3dc1d0e..381f8fb3e865a0abbc2e4414f28293654baa6f26 100644 (file)
@@ -12,6 +12,9 @@ Required properties:
 Optional properties:
  - vdd-supply: Regulator that powers the CAN controller.
  - xceiver-supply: Regulator that powers the CAN transceiver.
+ - gpio-controller: Indicates this device is a GPIO controller.
+ - #gpio-cells: Should be two. The first cell is the pin number and
+                the second cell is used to specify the gpio polarity.
 
 Example:
        can0: can@1 {
@@ -22,4 +25,6 @@ Example:
                interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
                vdd-supply = <&reg5v0>;
                xceiver-supply = <&reg5v0>;
+               gpio-controller;
+               #gpio-cells = <2>;
        };