1014861c2SAswath Govindraju# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2014861c2SAswath Govindraju%YAML 1.2 3014861c2SAswath Govindraju--- 4014861c2SAswath Govindraju$id: http://devicetree.org/schemas/spi/omap-spi.yaml# 5014861c2SAswath Govindraju$schema: http://devicetree.org/meta-schemas/core.yaml# 6014861c2SAswath Govindraju 73367934dSKrzysztof Kozlowskititle: SPI Controller on OMAP and K3 SoCs 8014861c2SAswath Govindraju 9014861c2SAswath Govindrajumaintainers: 10014861c2SAswath Govindraju - Aswath Govindraju <a-govindraju@ti.com> 11014861c2SAswath Govindraju 12014861c2SAswath GovindrajuallOf: 13014861c2SAswath Govindraju - $ref: spi-controller.yaml# 14014861c2SAswath Govindraju 15014861c2SAswath Govindrajuproperties: 16014861c2SAswath Govindraju compatible: 17014861c2SAswath Govindraju oneOf: 18014861c2SAswath Govindraju - items: 19014861c2SAswath Govindraju - enum: 20014861c2SAswath Govindraju - ti,am654-mcspi 21014861c2SAswath Govindraju - ti,am4372-mcspi 22014861c2SAswath Govindraju - const: ti,omap4-mcspi 23014861c2SAswath Govindraju - items: 24014861c2SAswath Govindraju - enum: 25014861c2SAswath Govindraju - ti,omap2-mcspi 26014861c2SAswath Govindraju - ti,omap4-mcspi 27014861c2SAswath Govindraju 28014861c2SAswath Govindraju reg: 29014861c2SAswath Govindraju maxItems: 1 30014861c2SAswath Govindraju 31014861c2SAswath Govindraju interrupts: 32014861c2SAswath Govindraju maxItems: 1 33014861c2SAswath Govindraju 34014861c2SAswath Govindraju clocks: 35014861c2SAswath Govindraju maxItems: 1 36014861c2SAswath Govindraju 37014861c2SAswath Govindraju power-domains: 38014861c2SAswath Govindraju maxItems: 1 39014861c2SAswath Govindraju 40014861c2SAswath Govindraju ti,spi-num-cs: 41014861c2SAswath Govindraju $ref: /schemas/types.yaml#/definitions/uint32 42014861c2SAswath Govindraju description: Number of chipselect supported by the instance. 43014861c2SAswath Govindraju minimum: 1 44014861c2SAswath Govindraju maximum: 4 45014861c2SAswath Govindraju 46014861c2SAswath Govindraju ti,hwmods: 47014861c2SAswath Govindraju $ref: /schemas/types.yaml#/definitions/string 48014861c2SAswath Govindraju description: 49014861c2SAswath Govindraju Must be "mcspi<n>", n being the instance number (1-based). 50014861c2SAswath Govindraju This property is applicable only on legacy platforms mainly omap2/3 51014861c2SAswath Govindraju and ti81xx and should not be used on other platforms. 52014861c2SAswath Govindraju deprecated: true 53014861c2SAswath Govindraju 54014861c2SAswath Govindraju ti,pindir-d0-out-d1-in: 55014861c2SAswath Govindraju description: 56014861c2SAswath Govindraju Select the D0 pin as output and D1 as input. The default is D0 57014861c2SAswath Govindraju as input and D1 as output. 58014861c2SAswath Govindraju type: boolean 59014861c2SAswath Govindraju 60014861c2SAswath Govindraju dmas: 61014861c2SAswath Govindraju description: 62014861c2SAswath Govindraju List of DMA specifiers with the controller specific format as 63014861c2SAswath Govindraju described in the generic DMA client binding. A tx and rx 64014861c2SAswath Govindraju specifier is required for each chip select. 65014861c2SAswath Govindraju minItems: 1 66014861c2SAswath Govindraju maxItems: 8 67014861c2SAswath Govindraju 68014861c2SAswath Govindraju dma-names: 69014861c2SAswath Govindraju description: 70014861c2SAswath Govindraju List of DMA request names. These strings correspond 1:1 with 71*47aab533SBjorn Helgaas the DMA specifiers listed in dmas. The string names is to be 72014861c2SAswath Govindraju "rxN" and "txN" for RX and TX requests, respectively. Where N 73014861c2SAswath Govindraju is the chip select number. 74014861c2SAswath Govindraju minItems: 1 75014861c2SAswath Govindraju maxItems: 8 76014861c2SAswath Govindraju 77014861c2SAswath Govindrajurequired: 78014861c2SAswath Govindraju - compatible 79014861c2SAswath Govindraju - reg 80014861c2SAswath Govindraju - interrupts 81014861c2SAswath Govindraju 82014861c2SAswath GovindrajuunevaluatedProperties: false 83014861c2SAswath Govindraju 84014861c2SAswath Govindrajuif: 85014861c2SAswath Govindraju properties: 86014861c2SAswath Govindraju compatible: 8797567124SRob Herring enum: 8897567124SRob Herring - ti,omap2-mcspi 8997567124SRob Herring - ti,omap4-mcspi 90014861c2SAswath Govindraju 91014861c2SAswath Govindrajuthen: 92014861c2SAswath Govindraju properties: 93014861c2SAswath Govindraju ti,hwmods: 94014861c2SAswath Govindraju items: 95014861c2SAswath Govindraju - pattern: "^mcspi([1-9])$" 96014861c2SAswath Govindraju 97014861c2SAswath Govindrajuelse: 98014861c2SAswath Govindraju properties: 99014861c2SAswath Govindraju ti,hwmods: false 100014861c2SAswath Govindraju 101014861c2SAswath Govindrajuexamples: 102014861c2SAswath Govindraju - | 103014861c2SAswath Govindraju #include <dt-bindings/interrupt-controller/irq.h> 104014861c2SAswath Govindraju #include <dt-bindings/interrupt-controller/arm-gic.h> 105014861c2SAswath Govindraju #include <dt-bindings/soc/ti,sci_pm_domain.h> 106014861c2SAswath Govindraju 107014861c2SAswath Govindraju spi@2100000 { 108014861c2SAswath Govindraju compatible = "ti,am654-mcspi","ti,omap4-mcspi"; 109014861c2SAswath Govindraju reg = <0x2100000 0x400>; 110014861c2SAswath Govindraju interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>; 111014861c2SAswath Govindraju clocks = <&k3_clks 137 1>; 112014861c2SAswath Govindraju power-domains = <&k3_pds 137 TI_SCI_PD_EXCLUSIVE>; 113014861c2SAswath Govindraju #address-cells = <1>; 114014861c2SAswath Govindraju #size-cells = <0>; 115014861c2SAswath Govindraju dmas = <&main_udmap 0xc500>, <&main_udmap 0x4500>; 116014861c2SAswath Govindraju dma-names = "tx0", "rx0"; 117014861c2SAswath Govindraju }; 118