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

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

Merge "can: Add RH850 CAN controller driver"

parents 2e1f9cbe dbd45f73
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
* Renesas RH850 CAN *

This driver implements spi slave protocol for rh850 can controller

Required properties:
  - compatible: Should be "renesas,rh850"
  - reg: Should contain spi chip select
  - interrupt-parent: Should specify interrupt controller for the interrupt
  - interrupts: Should contain IRQ line for the CAN controller
  - spi-max-frequency: Should contain maximum spi clock frequency for
                       slave device

Example:

	can-controller@0 {
		compatible = "renesas,rh850";
		reg = <0>;
		interrupt-parent = <&tlmm>;
		interrupts = <127 0>;
		spi-max-frequency = <5000000>;
	};
+11 −0
Original line number Diff line number Diff line
@@ -23,3 +23,14 @@
	qcom,msm-id = <246 0x20001>, <291 0x20001>;
	qcom,board-id = <10 1>;
};

&spi_9 {
	status = "ok";
	can-controller@0 {
		compatible = "renesas,rh850";
		reg = <0>;
		interrupt-parent = <&tlmm>;
		interrupts = <127 0>;
		spi-max-frequency = <5000000>;
	};
};
+11 −0
Original line number Diff line number Diff line
@@ -23,3 +23,14 @@
	qcom,msm-id = <246 0x30000>, <291 0x30000>;
	qcom,board-id = <10 1>;
};

&spi_9 {
	status = "ok";
	can-controller@0 {
		compatible = "renesas,rh850";
		reg = <0>;
		interrupt-parent = <&tlmm>;
		interrupts = <127 0>;
		spi-max-frequency = <5000000>;
	};
};
+11 −0
Original line number Diff line number Diff line
@@ -21,3 +21,14 @@
	compatible = "qcom,msm8996-adp", "qcom,msm8996", "qcom,adp";
	qcom,board-id = <0x00010019 0>;
};

&spi_9 {
	status = "ok";
	can-controller@0 {
		compatible = "renesas,rh850";
		reg = <0>;
		interrupt-parent = <&tlmm>;
		interrupts = <122 0>;
		spi-max-frequency = <5000000>;
	};
};
+5 −0
Original line number Diff line number Diff line
@@ -7,4 +7,9 @@ config CAN_MCP251X
	---help---
	  Driver for the Microchip MCP251x SPI CAN controllers.

config CAN_RH850
	tristate "Renesas RH850 SPI CAN controller"
	depends on HAS_DMA
	---help---
	  Driver for the Renesas RH850 SPI CAN controller.
endmenu
Loading