Skip to content

Commit

Permalink
dts: bindings: can: make initial sample point properties optional
Browse files Browse the repository at this point in the history
Make the properties for setting the initial sample points for both the
classic/arbitration phase and the data phase optional.

Signed-off-by: Henrik Brix Andersen <[email protected]>
  • Loading branch information
henrikbrixandersen committed Mar 17, 2024
1 parent 3981b9a commit 4c06e5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dts/bindings/can/can-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ properties:
Initial bitrate in bit/s.
sample-point:
type: int
required: true
description: |
Initial sample point in per mille (e.g. 875 equals 87.5%).
If this is unset (or if it is set to 0), the initial sample point will default to 75.0% for
bitrates over 800 kbit/s, 80.0% for bitrates over 500 kbit/s, and 87.5% for all other
bitrates.
phys:
type: phandle
description: |
Expand Down
5 changes: 4 additions & 1 deletion dts/bindings/can/can-fd-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ properties:
Initial data phase bitrate in bit/s.
sample-point-data:
type: int
required: true
description: |
Initial data phase sample point in per mille (e.g. 875 equals 87.5%).
If this is unset (or if it is set to 0), the initial sample point will default to 75.0% for
bitrates over 800 kbit/s, 80.0% for bitrates over 500 kbit/s, and 87.5% for all other
bitrates.
tx-delay-comp-offset:
type: int
default: 0

0 comments on commit 4c06e5a

Please sign in to comment.