Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | &iomuxc { |
| 37 | pinctrl-names = "default"; |
| 38 | pinctrl-0 = <&pinctrl_ext_io0>, <&pinctrl_hog0>, <&pinctrl_hog1>, |
| 39 | <&pinctrl_lpspi2_cs2>; |
| 40 | }; |
| 41 | |
| 42 | /* Colibri SPI */ |
| 43 | &lpspi2 { |
| 44 | status = "okay"; |
| 45 | |
| 46 | mcp2515: can@0 { |
| 47 | compatible = "microchip,mcp2515"; |
| 48 | reg = <0>; |
| 49 | interrupt-parent = <&lsio_gpio3>; |
| 50 | interrupts = <13 IRQ_TYPE_EDGE_FALLING>; |
| 51 | pinctrl-0 = <&pinctrl_can_int>; |
| 52 | pinctrl-names = "default"; |
| 53 | clocks = <&clk16m>; |
| 54 | spi-max-frequency = <10000000>; |
| 55 | }; |
| 56 | }; |
| 57 | |
| 58 | /* Colibri UART_B */ |
| 59 | &lpuart0 { |
| 60 | status = "okay"; |
| 61 | }; |
| 62 | |
| 63 | /* Colibri UART_C */ |
| 64 | &lpuart2 { |
| 65 | status = "okay"; |
| 66 | }; |
| 67 | |
| 68 | /* Colibri PWM_B */ |
| 69 | &lsio_pwm0 { |
| 70 | status = "okay"; |
| 71 | }; |
| 72 | |
| 73 | /* Colibri PWM_C */ |
| 74 | &lsio_pwm1 { |
| 75 | status = "okay"; |
| 76 | }; |
| 77 | |
| 78 | /* Colibri PWM_D */ |
| 79 | &lsio_pwm2 { |
| 80 | status = "okay"; |
| 81 | }; |
| 82 | |
| 83 | /* Colibri UART_A */ |
| 84 | &lpuart3 { |
| 85 | status = "okay"; |
| 86 | }; |
| 87 | |
| 88 | /* Colibri FastEthernet */ |
| 89 | &fec1 { |
| 90 | status = "okay"; |
| 91 | }; |
| 92 | |
| 93 | /* Colibri SD/MMC Card */ |
| 94 | &usdhc2 { |
| 95 | status = "okay"; |
| 96 | }; |