Thread (5 messages) 5 messages, 2 authors, 2018-01-29

Re: [PATCH V2 3/3] can: mcp25xxfd: add gpiolib support for GPIO0/1 (aka. INT0/INT1)

From: Rob Herring <robh@kernel.org>
Date: 2018-01-29 19:39:42
Also in: linux-can

On Fri, Jan 19, 2018 at 07:41:40AM +0000, kernel@martin.sperl.org wrote:
quoted hunk ↗ jump to hunk
From: Martin Sperl <redacted>

Add GPIOLIB support to mcp25xxfd.

Signed-off-by: Martin Sperl <redacted>

---
Changelog:
  V1 -> V2: implemented GPIOLIB support as per feedback

---
.../bindings/net/can/microchip,mcp25xxfd.txt       |   2 +
 drivers/net/can/spi/mcp25xxfd.c                    | 185 +++++++++++++++++++++
 2 files changed, 187 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/can/microchip,mcp25xxfd.txt b/Documentation/devicetree/bindings/net/can/microchip,mcp25xxfd.txt
index 691dd6220bd7..716b0a16ecb2 100644
--- a/Documentation/devicetree/bindings/net/can/microchip,mcp25xxfd.txt
+++ b/Documentation/devicetree/bindings/net/can/microchip,mcp25xxfd.txt
@@ -7,6 +7,7 @@ Required properties:
  - clocks: The clock feeding the CAN controller.
  - interrupt-parent: The parent interrupt controller.
  - interrupts: Should contain IRQ line for the CAN controller.
+ - gpio-controller: Marks the device node as a GPIO controller
This belongs in patch 1. The binding describes the h/w, not what a 
driver currently supports.
quoted hunk ↗ jump to hunk
 Optional properties:
  - vdd-supply: Regulator that powers the CAN controller.
@@ -26,4 +27,5 @@ Example:
 		interrupts = <13 0x8>;
 		vdd-supply = <&reg5v0>;
 		xceiver-supply = <&reg5v0>;
+		gpio-controller;
 	};
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help