drivers: can: set default initial bitrates via Kconfig

Set the default initial bitrates globally via Kconfig. The initial bitrates
can still be overridden using the "bus-speed" and "bus-speed-data"
devicetree properties.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2024-04-24 11:09:15 +02:00 committed by Alberto Escolar
commit 0f7cd6128e
5 changed files with 24 additions and 7 deletions

View file

@ -5,9 +5,9 @@ include: base.yaml
properties:
bus-speed:
type: int
required: true
description: |
Initial bitrate in bit/s.
Initial bitrate in bit/s. If this is unset, the initial bitrate is set to
CONFIG_CAN_DEFAULT_BITRATE.
sample-point:
type: int
description: |

View file

@ -5,9 +5,9 @@ include: can-controller.yaml
properties:
bus-speed-data:
type: int
required: true
description: |
Initial data phase bitrate in bit/s.
Initial data phase bitrate in bit/s. If this is unset, the initial data phase bitrate is set
to CONFIG_CAN_DEFAULT_BITRATE_DATA.
sample-point-data:
type: int
description: |