1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/phy/ti,tcan104x-can.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: TCAN104x CAN TRANSCEIVER PHY
8
9maintainers:
10  - Aswath Govindraju <a-govindraju@ti.com>
11
12properties:
13  $nodename:
14    pattern: "^can-phy"
15
16  compatible:
17    enum:
18      - ti,tcan1042
19      - ti,tcan1043
20
21  '#phy-cells':
22    const: 0
23
24  standby-gpios:
25    description:
26      gpio node to toggle standby signal on transceiver
27    maxItems: 1
28
29  enable-gpios:
30    description:
31      gpio node to toggle enable signal on transceiver
32    maxItems: 1
33
34  max-bitrate:
35    $ref: /schemas/types.yaml#/definitions/uint32
36    description:
37      max bit rate supported in bps
38    minimum: 1
39
40  mux-states:
41    description:
42      mux controller node to route the signals from controller to
43      transceiver.
44    maxItems: 1
45
46required:
47  - compatible
48  - '#phy-cells'
49
50additionalProperties: false
51
52examples:
53  - |
54    #include <dt-bindings/gpio/gpio.h>
55
56    transceiver1: can-phy {
57      compatible = "ti,tcan1043";
58      #phy-cells = <0>;
59      max-bitrate = <5000000>;
60      standby-gpios = <&wakeup_gpio1 16 GPIO_ACTIVE_LOW>;
61      enable-gpios = <&main_gpio1 67 GPIO_ACTIVE_HIGH>;
62      mux-states = <&mux0 1>;
63    };
64