1e8f7a387SPhilippe Schenker// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
22eba2438SPhilippe Schenker/*
32eba2438SPhilippe Schenker * Copyright 2019 Toradex
42eba2438SPhilippe Schenker */
52eba2438SPhilippe Schenker
62eba2438SPhilippe Schenker#include <dt-bindings/input/linux-event-codes.h>
72eba2438SPhilippe Schenker
82eba2438SPhilippe Schenker/ {
92eba2438SPhilippe Schenker	aliases {
102eba2438SPhilippe Schenker		rtc0 = &rtc_i2c;
112eba2438SPhilippe Schenker		rtc1 = &rtc;
122eba2438SPhilippe Schenker	};
132eba2438SPhilippe Schenker
14*28150613SPhilippe Schenker	/* fixed crystal dedicated to mcp25xx */
15*28150613SPhilippe Schenker	clk16m: clock-16mhz {
16*28150613SPhilippe Schenker		compatible = "fixed-clock";
17*28150613SPhilippe Schenker		#clock-cells = <0>;
18*28150613SPhilippe Schenker		clock-frequency = <16000000>;
19*28150613SPhilippe Schenker	};
20*28150613SPhilippe Schenker
212eba2438SPhilippe Schenker	gpio-keys {
222eba2438SPhilippe Schenker		compatible = "gpio-keys";
232eba2438SPhilippe Schenker		pinctrl-names = "default";
242eba2438SPhilippe Schenker		pinctrl-0 = <&pinctrl_gpiokeys>;
252eba2438SPhilippe Schenker
262eba2438SPhilippe Schenker		key-wakeup {
272eba2438SPhilippe Schenker			label = "Wake-Up";
282eba2438SPhilippe Schenker			gpios = <&lsio_gpio3 10 GPIO_ACTIVE_HIGH>;
292eba2438SPhilippe Schenker			linux,code = <KEY_WAKEUP>;
302eba2438SPhilippe Schenker			debounce-interval = <10>;
312eba2438SPhilippe Schenker			wakeup-source;
322eba2438SPhilippe Schenker		};
332eba2438SPhilippe Schenker	};
342eba2438SPhilippe Schenker};
352eba2438SPhilippe Schenker
362eba2438SPhilippe Schenker&i2c1 {
372eba2438SPhilippe Schenker	status = "okay";
382eba2438SPhilippe Schenker
392eba2438SPhilippe Schenker	/* M41T0M6 real time clock on carrier board */
402eba2438SPhilippe Schenker	rtc_i2c: rtc@68 {
412eba2438SPhilippe Schenker		compatible = "st,m41t0";
422eba2438SPhilippe Schenker		reg = <0x68>;
432eba2438SPhilippe Schenker	};
442eba2438SPhilippe Schenker};
452eba2438SPhilippe Schenker
46a537c961SPhilippe Schenker/* Colibri SPI */
47a537c961SPhilippe Schenker&lpspi2 {
48a537c961SPhilippe Schenker	status = "okay";
49*28150613SPhilippe Schenker
50*28150613SPhilippe Schenker	mcp2515: can@0 {
51*28150613SPhilippe Schenker		compatible = "microchip,mcp2515";
52*28150613SPhilippe Schenker		reg = <0>;
53*28150613SPhilippe Schenker		interrupt-parent = <&lsio_gpio3>;
54*28150613SPhilippe Schenker		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
55*28150613SPhilippe Schenker		pinctrl-0 = <&pinctrl_can_int>;
56*28150613SPhilippe Schenker		pinctrl-names = "default";
57*28150613SPhilippe Schenker		clocks = <&clk16m>;
58*28150613SPhilippe Schenker		spi-max-frequency = <10000000>;
59*28150613SPhilippe Schenker	};
60a537c961SPhilippe Schenker};
61a537c961SPhilippe Schenker
622eba2438SPhilippe Schenker/* Colibri UART_B */
632eba2438SPhilippe Schenker&lpuart0 {
642eba2438SPhilippe Schenker	status = "okay";
652eba2438SPhilippe Schenker};
662eba2438SPhilippe Schenker
672eba2438SPhilippe Schenker/* Colibri UART_C */
682eba2438SPhilippe Schenker&lpuart2 {
692eba2438SPhilippe Schenker	status = "okay";
702eba2438SPhilippe Schenker};
712eba2438SPhilippe Schenker
72e74b958cSPhilippe Schenker/* Colibri PWM_B */
73e74b958cSPhilippe Schenker&lsio_pwm0 {
74e74b958cSPhilippe Schenker	status = "okay";
75e74b958cSPhilippe Schenker};
76e74b958cSPhilippe Schenker
77e74b958cSPhilippe Schenker/* Colibri PWM_C */
78e74b958cSPhilippe Schenker&lsio_pwm1 {
79e74b958cSPhilippe Schenker	status = "okay";
80e74b958cSPhilippe Schenker};
81e74b958cSPhilippe Schenker
82e74b958cSPhilippe Schenker/* Colibri PWM_D */
83e74b958cSPhilippe Schenker&lsio_pwm2 {
84e74b958cSPhilippe Schenker	status = "okay";
85e74b958cSPhilippe Schenker};
86e74b958cSPhilippe Schenker
872eba2438SPhilippe Schenker/* Colibri UART_A */
882eba2438SPhilippe Schenker&lpuart3 {
892eba2438SPhilippe Schenker	status = "okay";
902eba2438SPhilippe Schenker};
912eba2438SPhilippe Schenker
922eba2438SPhilippe Schenker/* Colibri FastEthernet */
932eba2438SPhilippe Schenker&fec1 {
942eba2438SPhilippe Schenker	status = "okay";
952eba2438SPhilippe Schenker};
962eba2438SPhilippe Schenker
972eba2438SPhilippe Schenker/* Colibri SD/MMC Card */
982eba2438SPhilippe Schenker&usdhc2 {
992eba2438SPhilippe Schenker	status = "okay";
1002eba2438SPhilippe Schenker};
101