1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/spi/allwinn 4 $id: http://devicetree.org/schemas/spi/allwinner,sun6i-a31-spi.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Allwinner A31 SPI Controller !! 7 title: Allwinner A31 SPI Controller Device Tree Bindings 8 8 9 allOf: 9 allOf: 10 - $ref: spi-controller.yaml !! 10 - $ref: "spi-controller.yaml" 11 11 12 maintainers: 12 maintainers: 13 - Chen-Yu Tsai <wens@csie.org> 13 - Chen-Yu Tsai <wens@csie.org> 14 - Maxime Ripard <mripard@kernel.org> 14 - Maxime Ripard <mripard@kernel.org> 15 15 16 properties: 16 properties: >> 17 "#address-cells": true >> 18 "#size-cells": true >> 19 17 compatible: 20 compatible: 18 oneOf: 21 oneOf: 19 - const: allwinner,sun50i-r329-spi << 20 - const: allwinner,sun6i-a31-spi 22 - const: allwinner,sun6i-a31-spi 21 - const: allwinner,sun8i-h3-spi 23 - const: allwinner,sun8i-h3-spi 22 - items: 24 - items: 23 - enum: !! 25 - enum: 24 - allwinner,sun8i-r40-spi !! 26 - allwinner,sun8i-r40-spi 25 - allwinner,sun50i-h6-spi !! 27 - allwinner,sun50i-h6-spi 26 - allwinner,sun50i-h616-spi !! 28 - const: allwinner,sun8i-h3-spi 27 - allwinner,suniv-f1c100s-spi << 28 - const: allwinner,sun8i-h3-spi << 29 - items: << 30 - enum: << 31 - allwinner,sun20i-d1-spi << 32 - allwinner,sun50i-r329-spi-dbi << 33 - const: allwinner,sun50i-r329-spi << 34 - items: << 35 - const: allwinner,sun20i-d1-spi-dbi << 36 - const: allwinner,sun50i-r329-spi-d << 37 - const: allwinner,sun50i-r329-spi << 38 29 39 reg: 30 reg: 40 maxItems: 1 31 maxItems: 1 41 32 42 interrupts: 33 interrupts: 43 maxItems: 1 34 maxItems: 1 44 35 45 clocks: 36 clocks: 46 items: 37 items: 47 - description: Bus Clock 38 - description: Bus Clock 48 - description: Module Clock 39 - description: Module Clock 49 40 50 clock-names: 41 clock-names: 51 items: 42 items: 52 - const: ahb 43 - const: ahb 53 - const: mod 44 - const: mod 54 45 55 resets: 46 resets: 56 maxItems: 1 47 maxItems: 1 57 48 58 dmas: 49 dmas: 59 items: 50 items: 60 - description: RX DMA Channel 51 - description: RX DMA Channel 61 - description: TX DMA Channel 52 - description: TX DMA Channel 62 53 63 dma-names: 54 dma-names: 64 items: 55 items: 65 - const: rx 56 - const: rx 66 - const: tx 57 - const: tx 67 58 >> 59 num-cs: true >> 60 68 patternProperties: 61 patternProperties: 69 "^.*@[0-9a-f]+": 62 "^.*@[0-9a-f]+": 70 type: object 63 type: object 71 additionalProperties: true << 72 << 73 properties: 64 properties: 74 reg: 65 reg: 75 items: 66 items: 76 minimum: 0 67 minimum: 0 77 maximum: 4 68 maximum: 4 78 69 79 spi-rx-bus-width: 70 spi-rx-bus-width: 80 const: 1 71 const: 1 81 72 82 spi-tx-bus-width: 73 spi-tx-bus-width: 83 const: 1 74 const: 1 84 75 85 required: 76 required: 86 - compatible 77 - compatible 87 - reg 78 - reg 88 - interrupts 79 - interrupts 89 - clocks 80 - clocks 90 - clock-names 81 - clock-names 91 82 92 unevaluatedProperties: false !! 83 additionalProperties: false 93 84 94 examples: 85 examples: 95 - | 86 - | 96 spi1: spi@1c69000 { 87 spi1: spi@1c69000 { 97 compatible = "allwinner,sun6i-a31-spi" 88 compatible = "allwinner,sun6i-a31-spi"; 98 reg = <0x01c69000 0x1000>; 89 reg = <0x01c69000 0x1000>; 99 interrupts = <0 66 4>; 90 interrupts = <0 66 4>; 100 clocks = <&ahb1_gates 21>, <&spi1_clk> 91 clocks = <&ahb1_gates 21>, <&spi1_clk>; 101 clock-names = "ahb", "mod"; 92 clock-names = "ahb", "mod"; 102 resets = <&ahb1_rst 21>; 93 resets = <&ahb1_rst 21>; 103 #address-cells = <1>; 94 #address-cells = <1>; 104 #size-cells = <0>; 95 #size-cells = <0>; 105 }; 96 }; 106 97 107 - | 98 - | 108 spi0: spi@1c68000 { 99 spi0: spi@1c68000 { 109 compatible = "allwinner,sun8i-h3-spi"; 100 compatible = "allwinner,sun8i-h3-spi"; 110 reg = <0x01c68000 0x1000>; 101 reg = <0x01c68000 0x1000>; 111 interrupts = <0 65 4>; 102 interrupts = <0 65 4>; 112 clocks = <&ccu 30>, <&ccu 82>; 103 clocks = <&ccu 30>, <&ccu 82>; 113 clock-names = "ahb", "mod"; 104 clock-names = "ahb", "mod"; 114 dmas = <&dma 23>, <&dma 23>; 105 dmas = <&dma 23>, <&dma 23>; 115 dma-names = "rx", "tx"; 106 dma-names = "rx", "tx"; 116 resets = <&ccu 15>; 107 resets = <&ccu 15>; 117 #address-cells = <1>; 108 #address-cells = <1>; 118 #size-cells = <0>; 109 #size-cells = <0>; 119 }; 110 }; 120 111 121 ... 112 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.