xref: /freebsd/sys/contrib/device-tree/Bindings/phy/ti,tcan104x-can.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
4*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/ti,tcan104x-can.yaml#
5*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
75956d97fSEmmanuel Vadottitle: TCAN104x CAN TRANSCEIVER PHY
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotmaintainers:
105956d97fSEmmanuel Vadot  - Aswath Govindraju <a-govindraju@ti.com>
115956d97fSEmmanuel Vadot
125956d97fSEmmanuel Vadotproperties:
135956d97fSEmmanuel Vadot  $nodename:
145956d97fSEmmanuel Vadot    pattern: "^can-phy"
155956d97fSEmmanuel Vadot
165956d97fSEmmanuel Vadot  compatible:
175956d97fSEmmanuel Vadot    enum:
18cb7aa33aSEmmanuel Vadot      - nxp,tjr1443
195956d97fSEmmanuel Vadot      - ti,tcan1042
205956d97fSEmmanuel Vadot      - ti,tcan1043
215956d97fSEmmanuel Vadot
225956d97fSEmmanuel Vadot  '#phy-cells':
235956d97fSEmmanuel Vadot    const: 0
245956d97fSEmmanuel Vadot
255956d97fSEmmanuel Vadot  standby-gpios:
265956d97fSEmmanuel Vadot    description:
275956d97fSEmmanuel Vadot      gpio node to toggle standby signal on transceiver
285956d97fSEmmanuel Vadot    maxItems: 1
295956d97fSEmmanuel Vadot
305956d97fSEmmanuel Vadot  enable-gpios:
315956d97fSEmmanuel Vadot    description:
325956d97fSEmmanuel Vadot      gpio node to toggle enable signal on transceiver
335956d97fSEmmanuel Vadot    maxItems: 1
345956d97fSEmmanuel Vadot
355956d97fSEmmanuel Vadot  max-bitrate:
365956d97fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
375956d97fSEmmanuel Vadot    description:
385956d97fSEmmanuel Vadot      max bit rate supported in bps
395956d97fSEmmanuel Vadot    minimum: 1
405956d97fSEmmanuel Vadot
41e67e8565SEmmanuel Vadot  mux-states:
42e67e8565SEmmanuel Vadot    description:
43e67e8565SEmmanuel Vadot      mux controller node to route the signals from controller to
44e67e8565SEmmanuel Vadot      transceiver.
45e67e8565SEmmanuel Vadot    maxItems: 1
46e67e8565SEmmanuel Vadot
475956d97fSEmmanuel Vadotrequired:
485956d97fSEmmanuel Vadot  - compatible
495956d97fSEmmanuel Vadot  - '#phy-cells'
505956d97fSEmmanuel Vadot
515956d97fSEmmanuel VadotadditionalProperties: false
525956d97fSEmmanuel Vadot
535956d97fSEmmanuel Vadotexamples:
545956d97fSEmmanuel Vadot  - |
555956d97fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
565956d97fSEmmanuel Vadot
575956d97fSEmmanuel Vadot    transceiver1: can-phy {
585956d97fSEmmanuel Vadot      compatible = "ti,tcan1043";
595956d97fSEmmanuel Vadot      #phy-cells = <0>;
605956d97fSEmmanuel Vadot      max-bitrate = <5000000>;
615956d97fSEmmanuel Vadot      standby-gpios = <&wakeup_gpio1 16 GPIO_ACTIVE_LOW>;
625956d97fSEmmanuel Vadot      enable-gpios = <&main_gpio1 67 GPIO_ACTIVE_HIGH>;
63e67e8565SEmmanuel Vadot      mux-states = <&mux0 1>;
645956d97fSEmmanuel Vadot    };
65