diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2016-06-24 15:42:58 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-01-10 23:09:55 +0100 |
commit | 03f0e8ede745cd3b8c69e3e4cc57fcfc4dcb7cc0 (patch) | |
tree | f8aef070354bb028e40c36690b5c40a3b4b90079 /arch/arm | |
parent | 1010d1caea50276ff9a2f211731d2f7a37dd4afb (diff) |
ARM: dts: imx7-colibri: Add MCP2515 SPI CAN controller to DT
MCP2515 is available on colibri evaluation board, include it in
the device tree for Colibri iMX7.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit d2adf656222c62a207d55d07cbdb1f891e4aa6bf)
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi index 9a85e79d5e13..2b3ca8f8bc02 100644 --- a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi @@ -11,6 +11,17 @@ chosen { bootargs = "console=ttymxc0,115200"; }; + + clocks { + /* fixed crystal dedicated to mpc258x */ + clk16m: clk@1 { + compatible = "fixed-clock"; + reg=<1>; + #clock-cells = <0>; + clock-frequency = <16000000>; + clock-output-names = "clk16m"; + }; + }; }; &bl { @@ -34,10 +45,21 @@ &ecspi3 { status = "okay"; + mcp258x0: mcp258x@1 { + compatible = "microchip,mcp2515"; + reg = <0>; + clocks = <&clk16m>; + interrupt-parent = <&gpio3>; + interrupts = <27 0x2>; + spi-max-frequency = <10000000>; + status = "okay"; + }; + spidev0: spidev@1 { compatible = "toradex,evalspi"; reg = <0>; spi-max-frequency = <23000000>; + status = "disabled"; }; }; |