1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/spi/sprd,sc9860-spi.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Spreadtrum SC9860 SPI Controller 8 9maintainers: 10 - Orson Zhai <orsonzhai@gmail.com> 11 - Baolin Wang <baolin.wang7@gmail.com> 12 - Chunyan Zhang <zhang.lyra@gmail.com> 13 14properties: 15 compatible: 16 const: sprd,sc9860-spi 17 18 reg: 19 maxItems: 1 20 21 interrupts: 22 maxItems: 1 23 24 clocks: 25 items: 26 - description: SPI clock 27 - description: SPI source (parent) clock 28 - description: SPI module enable clock 29 30 clock-names: 31 items: 32 - const: spi 33 - const: source 34 - const: enable 35 36 dmas: 37 maxItems: 2 38 39 dma-names: 40 items: 41 - const: rx_chn 42 - const: tx_chn 43 44required: 45 - compatible 46 - reg 47 - interrupts 48 - clocks 49 - clock-names 50 51allOf: 52 - $ref: spi-controller.yaml# 53 54unevaluatedProperties: false 55 56examples: 57 - | 58 #include <dt-bindings/interrupt-controller/arm-gic.h> 59 #include <dt-bindings/interrupt-controller/irq.h> 60 61 spi@70a00000 { 62 compatible = "sprd,sc9860-spi"; 63 reg = <0x70a00000 0x1000>; 64 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 65 clocks = <&clk_spi0>, <&ext_26m>, <&clk_ap_apb_gates 5>; 66 clock-names = "spi", "source", "enable"; 67 dmas = <&apdma 11 11>, <&apdma 12 12>; 68 dma-names = "rx_chn", "tx_chn"; 69 #address-cells = <1>; 70 #size-cells = <0>; 71 }; 72... 73