Add R8A7791/Henninger board CAN DT support
Subsystems (2)
v2 cover Add R8A7791/Henninger board CAN DT support
Hello.
Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-v3.16-rc3-20140701' tag. Here we add the CAN device tree support for the R8A7791-based Henninger board. It depends on the PFC CAN support and R-Car CAN device tree support patches posted recently in order to work.
[1/2] ARM: shmobile: r8a7791: add CAN DT support [2/2] ARM: shmobile: henninger: add CAN0 DT support
WBR, Sergei
PATCH v2 1/2 ARM: shmobile: r8a7791: add CAN DT support
Define the generic R8A7791 parts of the CAN0/1 device nodes.
---
Changes in version 2:
- fixed the "compatible" property in the CAN device nodes.
arch/arm/boot/dts/r8a7791.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm/boot/dts/r8a7791.dtsi +16 -0
@@ -518,6 +518,22 @@ status = "disabled"; }; + can0: can at e6e80000 { + compatible = "renesas,can-r8a7791"; + reg = <0 0xe6e80000 0 0x1000>; + interrupts = <0 186 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&mstp9_clks R8A7791_CLK_RCAN0>; + status = "disabled"; + }; + + can1: can at e6e88000 { + compatible = "renesas,can-r8a7791"; + reg = <0 0xe6e88000 0 0x1000>; + interrupts = <0 187 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&mstp9_clks R8A7791_CLK_RCAN1>; + status = "disabled"; + }; + clocks { #address-cells = <2>; #size-cells = <2>;
PATCH v2 2/2 ARM: shmobile: henninger: add CAN0 DT support
In reply to Sergei ShtylyovDefine the Henninger board dependent part of the CAN0 device node.
--- arch/arm/boot/dts/r8a7791-henninger.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm/boot/dts/r8a7791-henninger.dts +11 -0
@@ -125,6 +125,11 @@ "msiof0_tx"; renesas,function = "msiof0"; }; + + can0_pins: can0 { + renesas,groups = "can0_data_a", "can_clk_d"; + renesas,function = "can0"; + }; }; &scif0 {
@@ -175,6 +180,12 @@ status = "okay"; }; +&can0 { + pinctrl-0 = <&can0_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + &i2c2 { pinctrl-0 = <&i2c2_pins>; pinctrl-names = "default";
v2 cover Add R8A7791/Henninger board CAN DT support
In reply to Sergei ShtylyovQuoted 6 lines · Sergei Shtylyov
Hello.
Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-v3.16-rc3-20140701' tag. Here we add the CAN device tree support for the R8A7791-based Henninger board. It depends on the PFC CAN support and R-Car CAN device tree support patches posted recently in order to work.
Thanks, please repost these patches once the bindings have been merged.
Quoted 6 lines
[1/2] ARM: shmobile: r8a7791: add CAN DT support [2/2] ARM: shmobile: henninger: add CAN0 DT support
WBR, Sergei