Rockchip SPI Controller
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-rockchip.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Rockchip SPI controller is used to interface with various devices such as flash and display controllers using the SPI communication interface.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"rockchip,rk3036-spi"
Rule 2
Exact value (
const):"rockchip,rk3066-spi"
Rule 3
Exact value (
const):"rockchip,rk3228-spi"
Rule 4
Exact value (
const):"rockchip,rv1108-spi"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,px30-spi","rockchip,rk3128-spi","rockchip,rk3188-spi","rockchip,rk3288-spi","rockchip,rk3308-spi","rockchip,rk3328-spi","rockchip,rk3368-spi","rockchip,rk3399-spi","rockchip,rk3506-spi","rockchip,rk3528-spi","rockchip,rk3562-spi","rockchip,rk3568-spi","rockchip,rk3576-spi","rockchip,rk3588-spi","rockchip,rv1126-spi"Item 2
Exact value (
const):"rockchip,rk3066-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
transfer-clock
Item 2
peripheral clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spiclk"
Item 2
Exact value (
const):"apb_pclk"
dmas — not listed as required here #
Array item rules (items) #
Item 1
TX DMA Channel
Item 2
RX DMA Channel
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
rx-sample-delay-ns — not listed as required here #
Default value (default): 0
Nano seconds to delay after the SCLK edge before sampling Rx data (may need to be fine tuned for high capacitance lines). If not specified 0 will be used.
pinctrl-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"default"
Item 2
Exact value (
const):"sleep"
Names for the pin configuration(s); may be "default" or "sleep", where the "sleep" configuration may describe the state the pins should be in during system suspend.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3188-cru-common.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi0: spi@ff110000 {
compatible = "rockchip,rk3066-spi";
reg = <0xff110000 0x1000>;
interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
clock-names = "spiclk", "apb_pclk";
dmas = <&pdma1 11>, <&pdma1 12>;
dma-names = "tx", "rx";
pinctrl-0 = <&spi1_pins>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
rx-sample-delay-ns = <10>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 19: Everything else is described in the common file