2019-09-10 22:40:52 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Karsten Koenig
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
&arduino_spi {
|
|
|
|
status = "okay";
|
2020-07-06 21:57:30 +02:00
|
|
|
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
|
2019-09-10 22:40:52 +02:00
|
|
|
|
2020-01-23 16:02:38 +01:00
|
|
|
can1: mcp2515@0 {
|
2019-09-10 22:40:52 +02:00
|
|
|
compatible = "microchip,mcp2515";
|
|
|
|
spi-max-frequency = <1000000>;
|
2019-11-07 20:16:06 +01:00
|
|
|
int-gpios = <&arduino_header 8 GPIO_ACTIVE_LOW>; /* D2 */
|
2019-09-10 22:40:52 +02:00
|
|
|
status = "okay";
|
|
|
|
label = "CAN_1";
|
|
|
|
reg = <0x0>;
|
|
|
|
osc-freq = <16000000>;
|
|
|
|
bus-speed = <125000>;
|
|
|
|
sjw = <1>;
|
|
|
|
prop-seg = <2>;
|
|
|
|
phase-seg1 = <7>;
|
|
|
|
phase-seg2 = <6>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
};
|
|
|
|
};
|
2020-01-23 16:02:38 +01:00
|
|
|
|
|
|
|
/ {
|
2020-04-28 14:33:18 +02:00
|
|
|
chosen {
|
|
|
|
zephyr,can-primary = &can1;
|
2020-01-23 16:02:38 +01:00
|
|
|
};
|
|
|
|
};
|