1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/spi/spi-rockchip.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Rockchip SPI Controller
10 The Rockchip SPI controller is used to interface with various devices such
11 as flash and display controllers using the SPI communication interface.
14 - $ref: "spi-controller.yaml#"
17 - Heiko Stuebner <heiko@sntech.de>
19 # Everything else is described in the common file
23 - const: rockchip,rk3036-spi
24 - const: rockchip,rk3066-spi
25 - const: rockchip,rk3228-spi
26 - const: rockchip,rv1108-spi
36 - const: rockchip,rk3066-spi
46 - description: transfer-clock
47 - description: peripheral clock
56 - description: TX DMA Channel
57 - description: RX DMA Channel
67 Nano seconds to delay after the SCLK edge before sampling Rx data
68 (may need to be fine tuned for high capacitance lines).
69 If not specified 0 will be used.
77 Names for the pin configuration(s); may be "default" or "sleep",
78 where the "sleep" configuration may describe the state
79 the pins should be in during system suspend.
88 unevaluatedProperties: false
92 #include <dt-bindings/clock/rk3188-cru-common.h>
93 #include <dt-bindings/interrupt-controller/arm-gic.h>
94 #include <dt-bindings/interrupt-controller/irq.h>
96 compatible = "rockchip,rk3066-spi";
97 reg = <0xff110000 0x1000>;
98 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
99 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
100 clock-names = "spiclk", "apb_pclk";
101 dmas = <&pdma1 11>, <&pdma1 12>;
102 dma-names = "tx", "rx";
103 pinctrl-0 = <&spi1_pins>;
104 pinctrl-1 = <&spi1_sleep>;
105 pinctrl-names = "default", "sleep";
106 rx-sample-delay-ns = <10>;
107 #address-cells = <1>;