15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25956d97fSEmmanuel Vadot%YAML 1.2 35956d97fSEmmanuel Vadot--- 45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/spi/spi-cadence.yaml# 55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65956d97fSEmmanuel Vadot 7*7ef62cebSEmmanuel Vadottitle: Cadence SPI controller 85956d97fSEmmanuel Vadot 95956d97fSEmmanuel Vadotmaintainers: 105956d97fSEmmanuel Vadot - Michal Simek <michal.simek@xilinx.com> 115956d97fSEmmanuel Vadot 125956d97fSEmmanuel VadotallOf: 135956d97fSEmmanuel Vadot - $ref: "spi-controller.yaml#" 145956d97fSEmmanuel Vadot 155956d97fSEmmanuel Vadotproperties: 165956d97fSEmmanuel Vadot compatible: 175956d97fSEmmanuel Vadot enum: 185956d97fSEmmanuel Vadot - cdns,spi-r1p6 195956d97fSEmmanuel Vadot - xlnx,zynq-spi-r1p6 205956d97fSEmmanuel Vadot 215956d97fSEmmanuel Vadot reg: 225956d97fSEmmanuel Vadot maxItems: 1 235956d97fSEmmanuel Vadot 245956d97fSEmmanuel Vadot interrupts: 255956d97fSEmmanuel Vadot maxItems: 1 265956d97fSEmmanuel Vadot 275956d97fSEmmanuel Vadot clock-names: 285956d97fSEmmanuel Vadot items: 295956d97fSEmmanuel Vadot - const: ref_clk 305956d97fSEmmanuel Vadot - const: pclk 315956d97fSEmmanuel Vadot 325956d97fSEmmanuel Vadot clocks: 335956d97fSEmmanuel Vadot maxItems: 2 345956d97fSEmmanuel Vadot 355956d97fSEmmanuel Vadot num-cs: 365956d97fSEmmanuel Vadot description: | 375956d97fSEmmanuel Vadot Number of chip selects used. If a decoder is used, 385956d97fSEmmanuel Vadot this will be the number of chip selects after the 395956d97fSEmmanuel Vadot decoder. 405956d97fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 415956d97fSEmmanuel Vadot minimum: 1 425956d97fSEmmanuel Vadot maximum: 4 435956d97fSEmmanuel Vadot default: 4 445956d97fSEmmanuel Vadot 455956d97fSEmmanuel Vadot is-decoded-cs: 465956d97fSEmmanuel Vadot description: | 475956d97fSEmmanuel Vadot Flag to indicate whether decoder is used or not. 485956d97fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 495956d97fSEmmanuel Vadot enum: [ 0, 1 ] 505956d97fSEmmanuel Vadot default: 0 515956d97fSEmmanuel Vadot 52b97ee269SEmmanuel Vadotrequired: 53b97ee269SEmmanuel Vadot - compatible 54b97ee269SEmmanuel Vadot - reg 55b97ee269SEmmanuel Vadot - interrupts 56b97ee269SEmmanuel Vadot - clock-names 57b97ee269SEmmanuel Vadot - clocks 58b97ee269SEmmanuel Vadot 595956d97fSEmmanuel VadotunevaluatedProperties: false 605956d97fSEmmanuel Vadot 615956d97fSEmmanuel Vadotexamples: 625956d97fSEmmanuel Vadot - | 635956d97fSEmmanuel Vadot spi@e0007000 { 645956d97fSEmmanuel Vadot compatible = "xlnx,zynq-spi-r1p6"; 655956d97fSEmmanuel Vadot clock-names = "ref_clk", "pclk"; 665956d97fSEmmanuel Vadot clocks = <&clkc 26>, <&clkc 35>; 675956d97fSEmmanuel Vadot interrupt-parent = <&intc>; 685956d97fSEmmanuel Vadot interrupts = <0 49 4>; 695956d97fSEmmanuel Vadot num-cs = <4>; 705956d97fSEmmanuel Vadot is-decoded-cs = <0>; 715956d97fSEmmanuel Vadot reg = <0xe0007000 0x1000>; 725956d97fSEmmanuel Vadot }; 735956d97fSEmmanuel Vadot... 74