xref: /linux/Documentation/devicetree/bindings/spi/omap-spi.yaml (revision 014861c2fb3d7b38b8de32baa953082bb9dabaf4)
1*014861c2SAswath Govindraju# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*014861c2SAswath Govindraju%YAML 1.2
3*014861c2SAswath Govindraju---
4*014861c2SAswath Govindraju$id: http://devicetree.org/schemas/spi/omap-spi.yaml#
5*014861c2SAswath Govindraju$schema: http://devicetree.org/meta-schemas/core.yaml#
6*014861c2SAswath Govindraju
7*014861c2SAswath Govindrajutitle: SPI controller bindings for OMAP and K3 SoCs
8*014861c2SAswath Govindraju
9*014861c2SAswath Govindrajumaintainers:
10*014861c2SAswath Govindraju  - Aswath Govindraju <a-govindraju@ti.com>
11*014861c2SAswath Govindraju
12*014861c2SAswath GovindrajuallOf:
13*014861c2SAswath Govindraju  - $ref: spi-controller.yaml#
14*014861c2SAswath Govindraju
15*014861c2SAswath Govindrajuproperties:
16*014861c2SAswath Govindraju  compatible:
17*014861c2SAswath Govindraju    oneOf:
18*014861c2SAswath Govindraju      - items:
19*014861c2SAswath Govindraju          - enum:
20*014861c2SAswath Govindraju              - ti,am654-mcspi
21*014861c2SAswath Govindraju              - ti,am4372-mcspi
22*014861c2SAswath Govindraju          - const: ti,omap4-mcspi
23*014861c2SAswath Govindraju      - items:
24*014861c2SAswath Govindraju          - enum:
25*014861c2SAswath Govindraju              - ti,omap2-mcspi
26*014861c2SAswath Govindraju              - ti,omap4-mcspi
27*014861c2SAswath Govindraju
28*014861c2SAswath Govindraju  reg:
29*014861c2SAswath Govindraju    maxItems: 1
30*014861c2SAswath Govindraju
31*014861c2SAswath Govindraju  interrupts:
32*014861c2SAswath Govindraju    maxItems: 1
33*014861c2SAswath Govindraju
34*014861c2SAswath Govindraju  clocks:
35*014861c2SAswath Govindraju    maxItems: 1
36*014861c2SAswath Govindraju
37*014861c2SAswath Govindraju  power-domains:
38*014861c2SAswath Govindraju    maxItems: 1
39*014861c2SAswath Govindraju
40*014861c2SAswath Govindraju  ti,spi-num-cs:
41*014861c2SAswath Govindraju    $ref: /schemas/types.yaml#/definitions/uint32
42*014861c2SAswath Govindraju    description: Number of chipselect supported  by the instance.
43*014861c2SAswath Govindraju    minimum: 1
44*014861c2SAswath Govindraju    maximum: 4
45*014861c2SAswath Govindraju
46*014861c2SAswath Govindraju  ti,hwmods:
47*014861c2SAswath Govindraju    $ref: /schemas/types.yaml#/definitions/string
48*014861c2SAswath Govindraju    description:
49*014861c2SAswath Govindraju      Must be "mcspi<n>", n being the instance number (1-based).
50*014861c2SAswath Govindraju      This property is applicable only on legacy platforms mainly omap2/3
51*014861c2SAswath Govindraju      and ti81xx and should not be used on other platforms.
52*014861c2SAswath Govindraju    deprecated: true
53*014861c2SAswath Govindraju
54*014861c2SAswath Govindraju  ti,pindir-d0-out-d1-in:
55*014861c2SAswath Govindraju    description:
56*014861c2SAswath Govindraju      Select the D0 pin as output and D1 as input. The default is D0
57*014861c2SAswath Govindraju      as input and D1 as output.
58*014861c2SAswath Govindraju    type: boolean
59*014861c2SAswath Govindraju
60*014861c2SAswath Govindraju  dmas:
61*014861c2SAswath Govindraju    description:
62*014861c2SAswath Govindraju      List of DMA specifiers with the controller specific format as
63*014861c2SAswath Govindraju      described in the generic DMA client binding. A tx and rx
64*014861c2SAswath Govindraju      specifier is required for each chip select.
65*014861c2SAswath Govindraju    minItems: 1
66*014861c2SAswath Govindraju    maxItems: 8
67*014861c2SAswath Govindraju
68*014861c2SAswath Govindraju  dma-names:
69*014861c2SAswath Govindraju    description:
70*014861c2SAswath Govindraju      List of DMA request names. These strings correspond 1:1 with
71*014861c2SAswath Govindraju      the DMA sepecifiers listed in dmas. The string names is to be
72*014861c2SAswath Govindraju      "rxN" and "txN" for RX and TX requests, respectively. Where N
73*014861c2SAswath Govindraju      is the chip select number.
74*014861c2SAswath Govindraju    minItems: 1
75*014861c2SAswath Govindraju    maxItems: 8
76*014861c2SAswath Govindraju
77*014861c2SAswath Govindrajurequired:
78*014861c2SAswath Govindraju  - compatible
79*014861c2SAswath Govindraju  - reg
80*014861c2SAswath Govindraju  - interrupts
81*014861c2SAswath Govindraju
82*014861c2SAswath GovindrajuunevaluatedProperties: false
83*014861c2SAswath Govindraju
84*014861c2SAswath Govindrajuif:
85*014861c2SAswath Govindraju  properties:
86*014861c2SAswath Govindraju    compatible:
87*014861c2SAswath Govindraju      oneOf:
88*014861c2SAswath Govindraju        - const: ti,omap2-mcspi
89*014861c2SAswath Govindraju        - const: ti,omap4-mcspi
90*014861c2SAswath Govindraju
91*014861c2SAswath Govindrajuthen:
92*014861c2SAswath Govindraju  properties:
93*014861c2SAswath Govindraju    ti,hwmods:
94*014861c2SAswath Govindraju      items:
95*014861c2SAswath Govindraju        - pattern: "^mcspi([1-9])$"
96*014861c2SAswath Govindraju
97*014861c2SAswath Govindrajuelse:
98*014861c2SAswath Govindraju  properties:
99*014861c2SAswath Govindraju    ti,hwmods: false
100*014861c2SAswath Govindraju
101*014861c2SAswath Govindrajuexamples:
102*014861c2SAswath Govindraju  - |
103*014861c2SAswath Govindraju    #include <dt-bindings/interrupt-controller/irq.h>
104*014861c2SAswath Govindraju    #include <dt-bindings/interrupt-controller/arm-gic.h>
105*014861c2SAswath Govindraju    #include <dt-bindings/soc/ti,sci_pm_domain.h>
106*014861c2SAswath Govindraju
107*014861c2SAswath Govindraju    spi@2100000 {
108*014861c2SAswath Govindraju      compatible = "ti,am654-mcspi","ti,omap4-mcspi";
109*014861c2SAswath Govindraju      reg = <0x2100000 0x400>;
110*014861c2SAswath Govindraju      interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
111*014861c2SAswath Govindraju      clocks = <&k3_clks 137 1>;
112*014861c2SAswath Govindraju      power-domains = <&k3_pds 137 TI_SCI_PD_EXCLUSIVE>;
113*014861c2SAswath Govindraju      #address-cells = <1>;
114*014861c2SAswath Govindraju      #size-cells = <0>;
115*014861c2SAswath Govindraju      dmas = <&main_udmap 0xc500>, <&main_udmap 0x4500>;
116*014861c2SAswath Govindraju      dma-names = "tx0", "rx0";
117*014861c2SAswath Govindraju    };
118