~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/can/xilinx,can.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/net/can/xilinx,can.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title:
  8   Xilinx CAN and CANFD controller
  9 
 10 maintainers:
 11   - Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
 12 
 13 properties:
 14   compatible:
 15     enum:
 16       - xlnx,zynq-can-1.0
 17       - xlnx,axi-can-1.00.a
 18       - xlnx,canfd-1.0
 19       - xlnx,canfd-2.0
 20 
 21   reg:
 22     maxItems: 1
 23 
 24   interrupts:
 25     maxItems: 1
 26 
 27   clocks:
 28     minItems: 1
 29     maxItems: 2
 30 
 31   clock-names:
 32     maxItems: 2
 33 
 34   power-domains:
 35     maxItems: 1
 36 
 37   tx-fifo-depth:
 38     $ref: /schemas/types.yaml#/definitions/uint32
 39     description: CAN Tx fifo depth (Zynq, Axi CAN).
 40 
 41   rx-fifo-depth:
 42     $ref: /schemas/types.yaml#/definitions/uint32
 43     description: CAN Rx fifo depth (Zynq, Axi CAN, CAN FD in sequential Rx mode)
 44 
 45   tx-mailbox-count:
 46     $ref: /schemas/types.yaml#/definitions/uint32
 47     description: CAN Tx mailbox buffer count (CAN FD)
 48 
 49   resets:
 50     maxItems: 1
 51 
 52   xlnx,has-ecc:
 53     $ref: /schemas/types.yaml#/definitions/flag
 54     description: CAN TX_OL, TX_TL and RX FIFOs have ECC support(AXI CAN)
 55 
 56 required:
 57   - compatible
 58   - reg
 59   - interrupts
 60   - clocks
 61   - clock-names
 62 
 63 unevaluatedProperties: false
 64 
 65 allOf:
 66   - $ref: can-controller.yaml#
 67   - if:
 68       properties:
 69         compatible:
 70           contains:
 71             enum:
 72               - xlnx,zynq-can-1.0
 73 
 74     then:
 75       properties:
 76         clock-names:
 77           items:
 78             - const: can_clk
 79             - const: pclk
 80       required:
 81         - tx-fifo-depth
 82         - rx-fifo-depth
 83 
 84   - if:
 85       properties:
 86         compatible:
 87           contains:
 88             enum:
 89               - xlnx,axi-can-1.00.a
 90 
 91     then:
 92       properties:
 93         clock-names:
 94           items:
 95             - const: can_clk
 96             - const: s_axi_aclk
 97       required:
 98         - tx-fifo-depth
 99         - rx-fifo-depth
100 
101   - if:
102       properties:
103         compatible:
104           contains:
105             enum:
106               - xlnx,canfd-1.0
107               - xlnx,canfd-2.0
108 
109     then:
110       properties:
111         clock-names:
112           items:
113             - const: can_clk
114             - const: s_axi_aclk
115       required:
116         - tx-mailbox-count
117         - rx-fifo-depth
118 
119 examples:
120   - |
121     #include <dt-bindings/interrupt-controller/arm-gic.h>
122 
123     can@e0008000 {
124         compatible = "xlnx,zynq-can-1.0";
125         reg = <0xe0008000 0x1000>;
126         clocks = <&clkc 19>, <&clkc 36>;
127         clock-names = "can_clk", "pclk";
128         interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
129         interrupt-parent = <&intc>;
130         tx-fifo-depth = <0x40>;
131         rx-fifo-depth = <0x40>;
132     };
133 
134   - |
135     can@40000000 {
136         compatible = "xlnx,axi-can-1.00.a";
137         reg = <0x40000000 0x10000>;
138         clocks = <&clkc 0>, <&clkc 1>;
139         clock-names = "can_clk", "s_axi_aclk";
140         interrupt-parent = <&intc>;
141         interrupts = <GIC_SPI 59 IRQ_TYPE_EDGE_RISING>;
142         tx-fifo-depth = <0x40>;
143         rx-fifo-depth = <0x40>;
144         xlnx,has-ecc;
145     };
146 
147   - |
148     can@40000000 {
149         compatible = "xlnx,canfd-1.0";
150         reg = <0x40000000 0x2000>;
151         clocks = <&clkc 0>, <&clkc 1>;
152         clock-names = "can_clk", "s_axi_aclk";
153         interrupt-parent = <&intc>;
154         interrupts = <GIC_SPI 59 IRQ_TYPE_EDGE_RISING>;
155         tx-mailbox-count = <0x20>;
156         rx-fifo-depth = <0x20>;
157     };
158 
159   - |
160     can@ff060000 {
161         compatible = "xlnx,canfd-2.0";
162         reg = <0xff060000 0x6000>;
163         clocks = <&clkc 0>, <&clkc 1>;
164         clock-names = "can_clk", "s_axi_aclk";
165         interrupt-parent = <&intc>;
166         interrupts = <GIC_SPI 59 IRQ_TYPE_EDGE_RISING>;
167         tx-mailbox-count = <0x20>;
168         rx-fifo-depth = <0x40>;
169     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php