1/* 2 * Copyright (c) 2022 Martin Jäger <martin@libre.solar> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* Enable CAN bus */ 8&twai { 9 status = "okay"; 10 pinctrl-0 = <&twai_default>; 11 pinctrl-names = "default"; 12 bus-speed = <125000>; 13 14 can-transceiver { 15 max-bitrate = <1000000>; 16 }; 17}; 18 19&pinctrl { 20 twai_default: twai_default { 21 group1 { 22 pinmux = <TWAI_RX_GPIO5>; 23 output-enable; /* enable internal loopback */ 24 }; 25 group2 { 26 pinmux = <TWAI_TX_GPIO5>; 27 input-enable; /* enable internal loopback */ 28 }; 29}; 30}; 31