1aa796868SNobuhiro Iwamatsu# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2aa796868SNobuhiro Iwamatsu%YAML 1.2 3aa796868SNobuhiro Iwamatsu--- 4aa796868SNobuhiro Iwamatsu$id: http://devicetree.org/schemas/spi/spi-cadence.yaml# 5aa796868SNobuhiro Iwamatsu$schema: http://devicetree.org/meta-schemas/core.yaml# 6aa796868SNobuhiro Iwamatsu 7*dd3cb467SAndrew Lunntitle: Cadence SPI controller 8aa796868SNobuhiro Iwamatsu 9aa796868SNobuhiro Iwamatsumaintainers: 10aa796868SNobuhiro Iwamatsu - Michal Simek <michal.simek@xilinx.com> 11aa796868SNobuhiro Iwamatsu 12aa796868SNobuhiro IwamatsuallOf: 13aa796868SNobuhiro Iwamatsu - $ref: "spi-controller.yaml#" 14aa796868SNobuhiro Iwamatsu 15aa796868SNobuhiro Iwamatsuproperties: 16aa796868SNobuhiro Iwamatsu compatible: 17aa796868SNobuhiro Iwamatsu enum: 18aa796868SNobuhiro Iwamatsu - cdns,spi-r1p6 19aa796868SNobuhiro Iwamatsu - xlnx,zynq-spi-r1p6 20aa796868SNobuhiro Iwamatsu 21aa796868SNobuhiro Iwamatsu reg: 22aa796868SNobuhiro Iwamatsu maxItems: 1 23aa796868SNobuhiro Iwamatsu 24aa796868SNobuhiro Iwamatsu interrupts: 25aa796868SNobuhiro Iwamatsu maxItems: 1 26aa796868SNobuhiro Iwamatsu 27aa796868SNobuhiro Iwamatsu clock-names: 28aa796868SNobuhiro Iwamatsu items: 29aa796868SNobuhiro Iwamatsu - const: ref_clk 30aa796868SNobuhiro Iwamatsu - const: pclk 31aa796868SNobuhiro Iwamatsu 32aa796868SNobuhiro Iwamatsu clocks: 33aa796868SNobuhiro Iwamatsu maxItems: 2 34aa796868SNobuhiro Iwamatsu 35aa796868SNobuhiro Iwamatsu num-cs: 36aa796868SNobuhiro Iwamatsu description: | 37aa796868SNobuhiro Iwamatsu Number of chip selects used. If a decoder is used, 38aa796868SNobuhiro Iwamatsu this will be the number of chip selects after the 39aa796868SNobuhiro Iwamatsu decoder. 40aa796868SNobuhiro Iwamatsu $ref: /schemas/types.yaml#/definitions/uint32 41aa796868SNobuhiro Iwamatsu minimum: 1 42aa796868SNobuhiro Iwamatsu maximum: 4 43aa796868SNobuhiro Iwamatsu default: 4 44aa796868SNobuhiro Iwamatsu 45aa796868SNobuhiro Iwamatsu is-decoded-cs: 46aa796868SNobuhiro Iwamatsu description: | 47aa796868SNobuhiro Iwamatsu Flag to indicate whether decoder is used or not. 48aa796868SNobuhiro Iwamatsu $ref: /schemas/types.yaml#/definitions/uint32 49aa796868SNobuhiro Iwamatsu enum: [ 0, 1 ] 50aa796868SNobuhiro Iwamatsu default: 0 51aa796868SNobuhiro Iwamatsu 526eee27c5SKrzysztof Kozlowskirequired: 536eee27c5SKrzysztof Kozlowski - compatible 546eee27c5SKrzysztof Kozlowski - reg 556eee27c5SKrzysztof Kozlowski - interrupts 566eee27c5SKrzysztof Kozlowski - clock-names 576eee27c5SKrzysztof Kozlowski - clocks 586eee27c5SKrzysztof Kozlowski 59aa796868SNobuhiro IwamatsuunevaluatedProperties: false 60aa796868SNobuhiro Iwamatsu 61aa796868SNobuhiro Iwamatsuexamples: 62aa796868SNobuhiro Iwamatsu - | 63aa796868SNobuhiro Iwamatsu spi@e0007000 { 64aa796868SNobuhiro Iwamatsu compatible = "xlnx,zynq-spi-r1p6"; 65aa796868SNobuhiro Iwamatsu clock-names = "ref_clk", "pclk"; 66aa796868SNobuhiro Iwamatsu clocks = <&clkc 26>, <&clkc 35>; 67aa796868SNobuhiro Iwamatsu interrupt-parent = <&intc>; 68aa796868SNobuhiro Iwamatsu interrupts = <0 49 4>; 69aa796868SNobuhiro Iwamatsu num-cs = <4>; 70aa796868SNobuhiro Iwamatsu is-decoded-cs = <0>; 71aa796868SNobuhiro Iwamatsu reg = <0xe0007000 0x1000>; 72aa796868SNobuhiro Iwamatsu }; 73aa796868SNobuhiro Iwamatsu... 74