1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2019 Toradex
4 */
5
6#include <dt-bindings/input/linux-event-codes.h>
7
8/ {
9	aliases {
10		rtc0 = &rtc_i2c;
11		rtc1 = &rtc;
12	};
13
14	/* fixed crystal dedicated to mcp25xx */
15	clk16m: clock-16mhz {
16		compatible = "fixed-clock";
17		#clock-cells = <0>;
18		clock-frequency = <16000000>;
19	};
20};
21
22&colibri_gpio_keys {
23	status = "okay";
24};
25
26&i2c1 {
27	status = "okay";
28
29	/* M41T0M6 real time clock on carrier board */
30	rtc_i2c: rtc@68 {
31		compatible = "st,m41t0";
32		reg = <0x68>;
33	};
34};
35
36/* Colibri SPI */
37&lpspi2 {
38	status = "okay";
39
40	mcp2515: can@0 {
41		compatible = "microchip,mcp2515";
42		reg = <0>;
43		interrupt-parent = <&lsio_gpio3>;
44		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
45		pinctrl-0 = <&pinctrl_can_int>;
46		pinctrl-names = "default";
47		clocks = <&clk16m>;
48		spi-max-frequency = <10000000>;
49	};
50};
51
52/* Colibri UART_B */
53&lpuart0 {
54	status = "okay";
55};
56
57/* Colibri UART_C */
58&lpuart2 {
59	status = "okay";
60};
61
62/* Colibri PWM_B */
63&lsio_pwm0 {
64	status = "okay";
65};
66
67/* Colibri PWM_C */
68&lsio_pwm1 {
69	status = "okay";
70};
71
72/* Colibri PWM_D */
73&lsio_pwm2 {
74	status = "okay";
75};
76
77/* Colibri UART_A */
78&lpuart3 {
79	status = "okay";
80};
81
82/* Colibri FastEthernet */
83&fec1 {
84	status = "okay";
85};
86
87/* Colibri SD/MMC Card */
88&usdhc2 {
89	status = "okay";
90};
91