blob: fd7274eb7aaa5a8cd857cacc86cfccea9b994e8f [file] [log] [blame]
Ying-Chun Liu (PaulLiu)27ea1c52021-11-05 17:13:24 +08001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright 2021 Linaro
4 */
5
6/dts-v1/;
7/plugin/;
8
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/interrupt-controller/irq.h>
11
12#include "imx8mm-pinfunc.h"
13
14&{/} {
15 clocks {
16 #address-cells = <1>;
17 #size-cells = <0>;
18 clk40m: clk@1 {
19 compatible = "fixed-clock";
20 reg = <1>;
21 #clock-cells = <0>;
22 clock-frequency = <40000000>;
23 clock-output-names = "clk40m";
24 };
25 };
26};
27
28&ecspi3 {
29 #address-cells = <1>;
30 #size-cells = <0>;
31
32 can1: can@0 {
33 compatible = "microchip,mcp2518fd";
34 reg = <0>;
35 microchip,rx-int = <&gpio5 28 IRQ_TYPE_LEVEL_LOW>;
36 pinctrl-names = "default";
37 pinctrl-0 = <&pinctrl_can1>;
38 interrupt-parent = <&gpio5>;
39 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
40 spi-max-frequency = <20000000>;
41 clocks = <&clk40m>;
42 status = "okay";
43 };
44};
45
46&iomuxc {
47 pinctrl_can1: can1grp {
48 fsl,pins = <
49 MX8MM_IOMUXC_UART4_TXD_GPIO5_IO29 0x00
50 MX8MM_IOMUXC_UART4_RXD_GPIO5_IO28 0x00
51 >;
52 };
53};