# Copyright (c) 2022 Henrik Brix Andersen <henrik@brixandersen.dk>
# SPDX-License-Identifier: Apache-2.0

description: Espressif ESP32 Two-Wire Automotive Interface (TWAI)

compatible: "espressif,esp32-twai"

include: [can-controller.yaml, pinctrl-device.yaml]

properties:
  reg:
    required: true

  interrupts:
    required: true

  clocks:
    required: true

  pinctrl-0:
    required: true

  pinctrl-names:
    required: true

  clkout-divider:
    type: int
    description: |
      Clock divider for the CLKOUT signal. If not set, the CLKOUT signal is turned off.

      Valid values are 1 or any even number from 2 to 14 for ESP32 and 2 to 490 for newer
      Espressif MCUs like ESP32-C3.
