diff options
| author | Philippe Schenker <[email protected]> | 2023-03-14 11:24:01 +0100 |
|---|---|---|
| committer | Shawn Guo <[email protected]> | 2023-03-27 10:10:35 +0800 |
| commit | 281506130449a197dfd8d7469240716aba6affcd (patch) | |
| tree | 6782077aa9d738e0bcc17a3fef55f88fc573fd88 | |
| parent | e74b958c8eafd0e91158401f8e6880131111b28a (diff) | |
arm64: dts: colibri-imx8x: eval: Add spi-to-can
Add mcp2515 spi-to-can to &lpspi2.
Signed-off-by: Philippe Schenker <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
| -rw-r--r-- | arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi index 68e34516961a..14d479b50656 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi @@ -11,6 +11,13 @@ rtc1 = &rtc; }; + /* fixed crystal dedicated to mcp25xx */ + clk16m: clock-16mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <16000000>; + }; + gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; @@ -39,6 +46,17 @@ /* Colibri SPI */ &lpspi2 { status = "okay"; + + mcp2515: can@0 { + compatible = "microchip,mcp2515"; + reg = <0>; + interrupt-parent = <&lsio_gpio3>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + pinctrl-0 = <&pinctrl_can_int>; + pinctrl-names = "default"; + clocks = <&clk16m>; + spi-max-frequency = <10000000>; + }; }; /* Colibri UART_B */ |