Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/spi/spi-xilinx.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Xilinx SPI controller Device Tree Bindings
0008 
0009 maintainers:
0010   - Michal Simek <michal.simek@xilinx.com>
0011 
0012 allOf:
0013   - $ref: "spi-controller.yaml#"
0014 
0015 properties:
0016   compatible:
0017     enum:
0018       - xlnx,xps-spi-2.00.a
0019       - xlnx,xps-spi-2.00.b
0020       - xlnx,axi-quad-spi-1.00.a
0021 
0022   reg:
0023     maxItems: 1
0024 
0025   interrupts:
0026     maxItems: 1
0027 
0028   xlnx,num-ss-bits:
0029     description: Number of chip selects used.
0030     minimum: 1
0031     maximum: 32
0032 
0033   xlnx,num-transfer-bits:
0034     description: Number of bits per transfer. This will be 8 if not specified.
0035     enum: [8, 16, 32]
0036     default: 8
0037 
0038 required:
0039   - compatible
0040   - reg
0041   - interrupts
0042 
0043 unevaluatedProperties: false
0044 
0045 examples:
0046   - |
0047     spi0: spi@41e00000 {
0048       compatible = "xlnx,xps-spi-2.00.a";
0049       interrupt-parent = <&intc>;
0050       interrupts = <0 31 1>;
0051       reg = <0x41e00000 0x10000>;
0052       xlnx,num-ss-bits = <0x1>;
0053       xlnx,num-transfer-bits = <32>;
0054     };
0055 ...