1# Copyright (c) 2023 Vestas Wind Systems A/S
2# SPDX-License-Identifier: Apache-2.0
3
4description: |
5  Texas Instruments TCAN4x5x SPI CAN FD controller.
6
7  Example:
8    &spi0 {
9      tcan4x5x: can@0 {
10        compatible = ti,tcan4x5x";
11        reg = <0>;
12        spi-max-frequency = <18000000>;
13        clock-frequency = <40000000>;
14        device-state-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
15        device-wake-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
16        reset-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
17        int-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
18        bosch,mram-cfg = <0x0 15 15 5 5 0 10 10>;
19        status = "okay";
20
21        can-transceiver {
22          max-bitrate = <8000000>;
23        };
24      };
25    };
26
27compatible: "ti,tcan4x5x"
28
29include: ["bosch,m_can-base.yaml", "spi-device.yaml"]
30
31properties:
32  clock-frequency:
33    type: int
34    enum:
35      - 20000000
36      - 40000000
37    required: true
38    description: |
39      TCAN4x5x oscillator clock frequency in Hz (20MHz or 40MHz).
40
41  device-state-gpios:
42    type: phandle-array
43    description: |
44      GPIO connected to the TCAN4x5x nWKRQ output. This signal is active low.
45
46  device-wake-gpios:
47    type: phandle-array
48    description: |
49      GPIO connected to the TCAN4x5x WAKE input. This signal is high-voltage, active high.
50
51  reset-gpios:
52    type: phandle-array
53    description: |
54      GPIO connected to the TCAN4x5x RST input. This signal is active high.
55
56  int-gpios:
57    type: phandle-array
58    required: true
59    description: |
60      GPIO connected to the TCAN4x5x nINT interrupt output. This signal is open-drain, active low.
61