1101e6fceSMaxime Ripard# SPDX-License-Identifier: GPL-2.0 2101e6fceSMaxime Ripard%YAML 1.2 3101e6fceSMaxime Ripard--- 4101e6fceSMaxime Ripard$id: http://devicetree.org/schemas/spi/allwinner,sun6i-a31-spi.yaml# 5101e6fceSMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml# 6101e6fceSMaxime Ripard 7101e6fceSMaxime Ripardtitle: Allwinner A31 SPI Controller Device Tree Bindings 8101e6fceSMaxime Ripard 9101e6fceSMaxime RipardallOf: 10101e6fceSMaxime Ripard - $ref: "spi-controller.yaml" 11101e6fceSMaxime Ripard 12101e6fceSMaxime Ripardmaintainers: 13101e6fceSMaxime Ripard - Chen-Yu Tsai <wens@csie.org> 145c7404bbSMaxime Ripard - Maxime Ripard <mripard@kernel.org> 15101e6fceSMaxime Ripard 16101e6fceSMaxime Ripardproperties: 17101e6fceSMaxime Ripard "#address-cells": true 18101e6fceSMaxime Ripard "#size-cells": true 19101e6fceSMaxime Ripard 20101e6fceSMaxime Ripard compatible: 21101e6fceSMaxime Ripard enum: 22101e6fceSMaxime Ripard - allwinner,sun6i-a31-spi 23101e6fceSMaxime Ripard - allwinner,sun8i-h3-spi 24101e6fceSMaxime Ripard 25101e6fceSMaxime Ripard reg: 26101e6fceSMaxime Ripard maxItems: 1 27101e6fceSMaxime Ripard 28101e6fceSMaxime Ripard interrupts: 29101e6fceSMaxime Ripard maxItems: 1 30101e6fceSMaxime Ripard 31101e6fceSMaxime Ripard clocks: 32101e6fceSMaxime Ripard items: 33101e6fceSMaxime Ripard - description: Bus Clock 34101e6fceSMaxime Ripard - description: Module Clock 35101e6fceSMaxime Ripard 36101e6fceSMaxime Ripard clock-names: 37101e6fceSMaxime Ripard items: 38101e6fceSMaxime Ripard - const: ahb 39101e6fceSMaxime Ripard - const: mod 40101e6fceSMaxime Ripard 41101e6fceSMaxime Ripard resets: 42101e6fceSMaxime Ripard maxItems: 1 43101e6fceSMaxime Ripard 44101e6fceSMaxime Ripard dmas: 45101e6fceSMaxime Ripard items: 46101e6fceSMaxime Ripard - description: RX DMA Channel 47101e6fceSMaxime Ripard - description: TX DMA Channel 48101e6fceSMaxime Ripard 49101e6fceSMaxime Ripard dma-names: 50101e6fceSMaxime Ripard items: 51101e6fceSMaxime Ripard - const: rx 52101e6fceSMaxime Ripard - const: tx 53101e6fceSMaxime Ripard 54101e6fceSMaxime Ripard num-cs: true 55101e6fceSMaxime Ripard 56101e6fceSMaxime RipardpatternProperties: 57101e6fceSMaxime Ripard "^.*@[0-9a-f]+": 5815ffef1aSRob Herring type: object 59101e6fceSMaxime Ripard properties: 60101e6fceSMaxime Ripard reg: 61101e6fceSMaxime Ripard items: 62101e6fceSMaxime Ripard minimum: 0 63101e6fceSMaxime Ripard maximum: 4 64101e6fceSMaxime Ripard 65101e6fceSMaxime Ripard spi-rx-bus-width: 66101e6fceSMaxime Ripard const: 1 67101e6fceSMaxime Ripard 68101e6fceSMaxime Ripard spi-tx-bus-width: 69101e6fceSMaxime Ripard const: 1 70101e6fceSMaxime Ripard 71101e6fceSMaxime Ripardrequired: 72101e6fceSMaxime Ripard - compatible 73101e6fceSMaxime Ripard - reg 74101e6fceSMaxime Ripard - interrupts 75101e6fceSMaxime Ripard - clocks 76101e6fceSMaxime Ripard - clock-names 77101e6fceSMaxime Ripard 78101e6fceSMaxime RipardadditionalProperties: false 79101e6fceSMaxime Ripard 80101e6fceSMaxime Ripardexamples: 81101e6fceSMaxime Ripard - | 82101e6fceSMaxime Ripard spi1: spi@1c69000 { 83101e6fceSMaxime Ripard compatible = "allwinner,sun6i-a31-spi"; 84101e6fceSMaxime Ripard reg = <0x01c69000 0x1000>; 85101e6fceSMaxime Ripard interrupts = <0 66 4>; 86101e6fceSMaxime Ripard clocks = <&ahb1_gates 21>, <&spi1_clk>; 87101e6fceSMaxime Ripard clock-names = "ahb", "mod"; 88101e6fceSMaxime Ripard resets = <&ahb1_rst 21>; 89101e6fceSMaxime Ripard #address-cells = <1>; 90101e6fceSMaxime Ripard #size-cells = <0>; 91101e6fceSMaxime Ripard }; 92101e6fceSMaxime Ripard 93101e6fceSMaxime Ripard - | 94101e6fceSMaxime Ripard spi0: spi@1c68000 { 95101e6fceSMaxime Ripard compatible = "allwinner,sun8i-h3-spi"; 96101e6fceSMaxime Ripard reg = <0x01c68000 0x1000>; 97101e6fceSMaxime Ripard interrupts = <0 65 4>; 98101e6fceSMaxime Ripard clocks = <&ccu 30>, <&ccu 82>; 99101e6fceSMaxime Ripard clock-names = "ahb", "mod"; 100101e6fceSMaxime Ripard dmas = <&dma 23>, <&dma 23>; 101101e6fceSMaxime Ripard dma-names = "rx", "tx"; 102101e6fceSMaxime Ripard resets = <&ccu 15>; 103101e6fceSMaxime Ripard #address-cells = <1>; 104101e6fceSMaxime Ripard #size-cells = <0>; 105101e6fceSMaxime Ripard }; 106101e6fceSMaxime Ripard 107101e6fceSMaxime Ripard... 108