-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'linux-can-next-for-4.16-20180116' of ssh://gitolite.kernel…
….org/pub/scm/linux/kernel/git/mkl/linux-can-next Marc Kleine-Budde says: ==================== pull-request: can-next 2018-01-16 this is a pull request for net-next/master consisting of 9 patches. This is a series of patches, some of them initially by Franklin S Cooper Jr, which was picked up by Faiz Abbas. Faiz Abbas added some patches while working on this series, I contributed one as well. The first two patches add support to CAN device infrastructure to limit the bitrate of a CAN adapter if the used CAN-transceiver has a certain maximum bitrate. The remaining patches improve the m_can driver. They add support for bitrate limiting to the driver, clean up the driver and add support for runtime PM. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
6 changed files
with
202 additions
and
67 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
Documentation/devicetree/bindings/net/can/can-transceiver.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Generic CAN transceiver Device Tree binding | ||
------------------------------ | ||
|
||
CAN transceiver typically limits the max speed in standard CAN and CAN FD | ||
modes. Typically these limitations are static and the transceivers themselves | ||
provide no way to detect this limitation at runtime. For this situation, | ||
the "can-transceiver" node can be used. | ||
|
||
Required Properties: | ||
max-bitrate: a positive non 0 value that determines the max | ||
speed that CAN/CAN-FD can run. Any other value | ||
will be ignored. | ||
|
||
Examples: | ||
|
||
Based on Texas Instrument's TCAN1042HGV CAN Transceiver | ||
|
||
m_can0 { | ||
.... | ||
can-transceiver { | ||
max-bitrate = <5000000>; | ||
}; | ||
... | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.