1/*
2 * Copyright (c) 2022 Henrik Brix Andersen <henrik@brixandersen.dk>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7&arduino_spi {
8	status = "okay";
9	cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
10
11	mcp2515_keyestudio_can_bus_ks0411: can@0 {
12		compatible = "microchip,mcp2515";
13		spi-max-frequency = <1000000>;
14		int-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
15		status = "okay";
16		reg = <0x0>;
17		osc-freq = <16000000>;
18		bus-speed = <125000>;
19		sample-point = <875>;
20
21		can-transceiver {
22			max-bitrate = <1000000>;
23		};
24	};
25};
26
27/ {
28	chosen {
29		zephyr,canbus = &mcp2515_keyestudio_can_bus_ks0411;
30	};
31};
32