FILE
ti,tcan104x-can.yaml
File preview with syntax highlighting.
linux-6.19.14/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml
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 oneOf: 18 - items: 19 - enum: 20 - microchip,ata6561 21 - ti,tcan1051 22 - const: ti,tcan1042 23 - enum: 24 - ti,tcan1042 25 - ti,tcan1043 26 - nxp,tja1048 27 - nxp,tja1051 28 - nxp,tja1057 29 - nxp,tjr1443 30 31 '#phy-cells': 32 enum: [0, 1] 33 34 silent-gpios: 35 description: 36 gpio node to toggle silent signal on transceiver 37 maxItems: 1 38 39 standby-gpios: 40 description: 41 gpio node to toggle standby signal on transceiver. For two Items, item 1 42 is for stbn1, item 2 is for stbn2. 43 minItems: 1 44 maxItems: 2 45 46 enable-gpios: 47 description: 48 gpio node to toggle enable signal on transceiver 49 maxItems: 1 50 51 max-bitrate: 52 $ref: /schemas/types.yaml#/definitions/uint32 53 description: 54 max bit rate supported in bps 55 minimum: 1 56 57 mux-states: 58 description: 59 mux controller node to route the signals from controller to 60 transceiver. 61 maxItems: 1 62 63required: 64 - compatible 65 - '#phy-cells' 66 67allOf: 68 - if: 69 properties: 70 compatible: 71 enum: 72 - nxp,tjr1443 73 - ti,tcan1042 74 - ti,tcan1043 75 then: 76 properties: 77 '#phy-cells': 78 const: 0 79 silent-gpios: false 80 standby-gpios: 81 maxItems: 1 82 83 - if: 84 properties: 85 compatible: 86 contains: 87 const: nxp,tja1048 88 then: 89 properties: 90 '#phy-cells': 91 const: 1 92 enable-gpios: false 93 silent-gpios: false 94 standby-gpios: 95 minItems: 2 96 97 - if: 98 properties: 99 compatible: 100 contains: 101 const: nxp,tja1051 102 then: 103 properties: 104 '#phy-cells': 105 const: 0 106 standby-gpios: false 107 108 - if: 109 properties: 110 compatible: 111 contains: 112 const: nxp,tja1057 113 then: 114 properties: 115 '#phy-cells': 116 const: 0 117 enable-gpios: false 118 standby-gpios: false 119 120additionalProperties: false 121 122examples: 123 - | 124 #include <dt-bindings/gpio/gpio.h> 125 126 transceiver1: can-phy { 127 compatible = "ti,tcan1043"; 128 #phy-cells = <0>; 129 max-bitrate = <5000000>; 130 standby-gpios = <&wakeup_gpio1 16 GPIO_ACTIVE_LOW>; 131 enable-gpios = <&main_gpio1 67 GPIO_ACTIVE_HIGH>; 132 mux-states = <&mux0 1>; 133 };
~/
Read-only file preview.