Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003  * Copyright 2016-2022 Toradex
0004  */
0005 
0006 / {
0007         /* Fixed crystal dedicated to MCP2515. */
0008         clk16m: clk16m {
0009                 compatible = "fixed-clock";
0010                 #clock-cells = <0>;
0011                 clock-frequency = <16000000>;
0012         };
0013 };
0014 
0015 /* Colibri AD0 to AD3 */
0016 &adc1 {
0017         status = "okay";
0018 };
0019 
0020 /*
0021  * The Atmel maxtouch controller uses SODIMM 28/30, also used for PWM<B>, PWM<C>, aka pwm2, pwm3.
0022  * So if you enable following capacitive touch controller, disable pwm2/pwm3 first.
0023  */
0024 &atmel_mxt_ts {
0025         interrupt-parent = <&gpio1>;
0026         interrupts = <9 IRQ_TYPE_EDGE_FALLING>;         /* SODIMM 28 / INT */
0027         pinctrl-0 = <&pinctrl_atmel_adapter>;
0028         reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;      /* SODIMM 30 / RST */
0029         status = "disabled";
0030 };
0031 
0032 /* Colibri SSP */
0033 &ecspi3 {
0034         status = "okay";
0035 
0036         mcp2515: can@0 {
0037                 clocks = <&clk16m>;
0038                 compatible = "microchip,mcp2515";
0039                 interrupt-parent = <&gpio5>;
0040                 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
0041                 pinctrl-names = "default";
0042                 pinctrl-0 = <&pinctrl_can_int>;
0043                 reg = <0>;
0044                 spi-max-frequency = <10000000>;
0045                 vdd-supply = <&reg_3v3>;
0046                 xceiver-supply = <&reg_5v0>;
0047         };
0048 };
0049 
0050 /* Colibri Fast Ethernet */
0051 &fec1 {
0052         status = "okay";
0053 };
0054 
0055 /* Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 */
0056 &i2c4 {
0057         status = "okay";
0058 };
0059 
0060 /* Colibri PWM<A> */
0061 &pwm1 {
0062         status = "okay";
0063 };
0064 
0065 /* Colibri PWM<B> */
0066 &pwm2 {
0067         /* The pwm2 should be disabled to enable atmel_mxt_ts touchscreen for adapter. */
0068         status = "okay";
0069 };
0070 
0071 /* Colibri PWM<C> */
0072 &pwm3 {
0073         /* The pwm3 should be disabled to enable atmel_mxt_ts touchscreen for adapter. */
0074         status = "okay";
0075 };
0076 
0077 /* Colibri PWM<D> */
0078 &pwm4 {
0079         status = "okay";
0080 };
0081 
0082 /* M41T0M6 real time clock */
0083 &rtc {
0084         status = "okay";
0085 };
0086 
0087 /* Colibri UART_A */
0088 &uart1 {
0089         status = "okay";
0090 };
0091 
0092 /* Colibri UART_B */
0093 &uart2 {
0094         status = "okay";
0095 };
0096 
0097 /* Colibri UART_C */
0098 &uart3 {
0099         status = "okay";
0100 };
0101 
0102 /* Colibri USBC */
0103 &usbotg1 {
0104         status = "okay";
0105 };
0106 
0107 /* Colibri MMC/SD */
0108 &usdhc1 {
0109         status = "okay";
0110 };