forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: phy: Add binding for TI TCAN104x CAN transceivers
Add binding documentation for TI TCAN104x CAN transceivers. Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
- Loading branch information
1 parent
d7af9fe
commit c849d38
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml
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,56 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: "http://devicetree.org/schemas/phy/ti,tcan104x-can.yaml#" | ||
$schema: "http://devicetree.org/meta-schemas/core.yaml#" | ||
|
||
title: TCAN104x CAN TRANSCEIVER PHY | ||
|
||
maintainers: | ||
- Aswath Govindraju <a-govindraju@ti.com> | ||
|
||
properties: | ||
$nodename: | ||
pattern: "^tcan104x-phy" | ||
|
||
compatible: | ||
enum: | ||
- ti,tcan1042 | ||
- ti,tcan1043 | ||
|
||
'#phy-cells': | ||
const: 0 | ||
|
||
standby-gpios: | ||
description: | ||
gpio node to toggle standby signal on transceiver | ||
maxItems: 1 | ||
|
||
enable-gpios: | ||
description: | ||
gpio node to toggle enable signal on transceiver | ||
maxItems: 1 | ||
|
||
max-bitrate: | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
description: | ||
max bit rate supported in bps | ||
minimum: 1 | ||
|
||
required: | ||
- compatible | ||
- '#phy-cells' | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
transceiver1: tcan104x-phy { | ||
compatible = "ti,tcan1043"; | ||
#phy-cells = <0>; | ||
max-bitrate = <5000000>; | ||
standby-gpios = <&wakeup_gpio1 16 GPIO_ACTIVE_LOW>; | ||
enable-gpios = <&main_gpio1 67 GPIO_ACTIVE_LOW>; | ||
}; |
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