1# SPDX-License-Identifier: GPL-2.0 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/spi/spi-rockchip.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Rockchip SPI Controller 8 9description: 10 The Rockchip SPI controller is used to interface with various devices such 11 as flash and display controllers using the SPI communication interface. 12 13allOf: 14 - $ref: "spi-controller.yaml#" 15 16maintainers: 17 - Heiko Stuebner <heiko@sntech.de> 18 19# Everything else is described in the common file 20properties: 21 compatible: 22 oneOf: 23 - const: rockchip,rk3036-spi 24 - const: rockchip,rk3066-spi 25 - const: rockchip,rk3228-spi 26 - const: rockchip,rv1108-spi 27 - items: 28 - enum: 29 - rockchip,px30-spi 30 - rockchip,rk3188-spi 31 - rockchip,rk3288-spi 32 - rockchip,rk3308-spi 33 - rockchip,rk3328-spi 34 - rockchip,rk3368-spi 35 - rockchip,rk3399-spi 36 - rockchip,rk3568-spi 37 - rockchip,rk3588-spi 38 - rockchip,rv1126-spi 39 - const: rockchip,rk3066-spi 40 41 reg: 42 maxItems: 1 43 44 interrupts: 45 maxItems: 1 46 47 clocks: 48 items: 49 - description: transfer-clock 50 - description: peripheral clock 51 52 clock-names: 53 items: 54 - const: spiclk 55 - const: apb_pclk 56 57 dmas: 58 items: 59 - description: TX DMA Channel 60 - description: RX DMA Channel 61 62 dma-names: 63 items: 64 - const: tx 65 - const: rx 66 67 rx-sample-delay-ns: 68 default: 0 69 description: 70 Nano seconds to delay after the SCLK edge before sampling Rx data 71 (may need to be fine tuned for high capacitance lines). 72 If not specified 0 will be used. 73 74 pinctrl-names: 75 minItems: 1 76 items: 77 - const: default 78 - const: sleep 79 description: 80 Names for the pin configuration(s); may be "default" or "sleep", 81 where the "sleep" configuration may describe the state 82 the pins should be in during system suspend. 83 84required: 85 - compatible 86 - reg 87 - interrupts 88 - clocks 89 - clock-names 90 91unevaluatedProperties: false 92 93examples: 94 - | 95 #include <dt-bindings/clock/rk3188-cru-common.h> 96 #include <dt-bindings/interrupt-controller/arm-gic.h> 97 #include <dt-bindings/interrupt-controller/irq.h> 98 spi0: spi@ff110000 { 99 compatible = "rockchip,rk3066-spi"; 100 reg = <0xff110000 0x1000>; 101 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; 102 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>; 103 clock-names = "spiclk", "apb_pclk"; 104 dmas = <&pdma1 11>, <&pdma1 12>; 105 dma-names = "tx", "rx"; 106 pinctrl-0 = <&spi1_pins>; 107 pinctrl-1 = <&spi1_sleep>; 108 pinctrl-names = "default", "sleep"; 109 rx-sample-delay-ns = <10>; 110 #address-cells = <1>; 111 #size-cells = <0>; 112 }; 113