Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | |
| 7 | title: TCAN104x CAN TRANSCEIVER PHY |
| 8 | |
| 9 | maintainers: |
| 10 | - Aswath Govindraju <a-govindraju@ti.com> |
| 11 | |
| 12 | properties: |
| 13 | $nodename: |
| 14 | pattern: "^can-phy" |
| 15 | |
| 16 | compatible: |
| 17 | enum: |
| 18 | - nxp,tjr1443 |
| 19 | - ti,tcan1042 |
| 20 | - ti,tcan1043 |
| 21 | |
| 22 | '#phy-cells': |
| 23 | const: 0 |
| 24 | |
| 25 | standby-gpios: |
| 26 | description: |
| 27 | gpio node to toggle standby signal on transceiver |
| 28 | maxItems: 1 |
| 29 | |
| 30 | enable-gpios: |
| 31 | description: |
| 32 | gpio node to toggle enable signal on transceiver |
| 33 | maxItems: 1 |
| 34 | |
| 35 | max-bitrate: |
| 36 | $ref: /schemas/types.yaml#/definitions/uint32 |
| 37 | description: |
| 38 | max bit rate supported in bps |
| 39 | minimum: 1 |
| 40 | |
| 41 | mux-states: |
| 42 | description: |
| 43 | mux controller node to route the signals from controller to |
| 44 | transceiver. |
| 45 | maxItems: 1 |
| 46 | |
| 47 | required: |
| 48 | - compatible |
| 49 | - '#phy-cells' |
| 50 | |
| 51 | additionalProperties: false |
| 52 | |
| 53 | examples: |
| 54 | - | |
| 55 | #include <dt-bindings/gpio/gpio.h> |
| 56 | |
| 57 | transceiver1: can-phy { |
| 58 | compatible = "ti,tcan1043"; |
| 59 | #phy-cells = <0>; |
| 60 | max-bitrate = <5000000>; |
| 61 | standby-gpios = <&wakeup_gpio1 16 GPIO_ACTIVE_LOW>; |
| 62 | enable-gpios = <&main_gpio1 67 GPIO_ACTIVE_HIGH>; |
| 63 | mux-states = <&mux0 1>; |
| 64 | }; |