Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa450b1d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: net: can: Add K61 CAN controller driver"

parents 7edaca92 4cf8fd54
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
* Kinetis K61 CAN *

This driver implements SPI slave protocol for Freescale K61 CAN controller.

Required properties:
  - compatible: Should be "fsl,k61".
  - reg: Should contain SPI chip select.
  - interrupt-parent: Should specify interrupt controller for the interrupt.
  - interrupts: Should contain IRQ line for the CAN controller.
  - reset-gpio: Reference to the GPIO connected to the reset input.
  - pinctrl-names : Names corresponding to the numbered pinctrl states.
  - pinctrl-0 : This explains the active state of the GPIO line.
  - pinctrl-1 : This explains the suspend state of the GPIO line.


Example:

	can-controller@0 {
		compatible = "fsl,k61";
		reg = <0>;
		interrupt-parent = <&tlmm_pinmux>;
		interrupts = <25 0>;
		reset-gpio = <&tlmm_pinmux 11 0x1>;
		pinctrl-names = "active", "sleep";
		pinctrl-0 = <&can_rst_on>;
		pinctrl-1 = <&can_rst_off>;
	};
+6 −0
Original line number Diff line number Diff line
@@ -12,4 +12,10 @@ config CAN_RH850
	depends on HAS_DMA
	---help---
	  Driver for the Renesas RH850 SPI CAN controller.

config CAN_K61
	tristate "Freescale K61 SPI CAN controllers"
	depends on SPI
	---help---
	  Driver for the Freescale K61 SPI CAN controllers.
endmenu
+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@

obj-$(CONFIG_CAN_MCP251X)	+= mcp251x.o
obj-$(CONFIG_CAN_RH850)		+= rh850.o
obj-${CONFIG_CAN_K61}		+= k61.o
+927 −0

File added.

Preview size limit exceeded, changes collapsed.