| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/spi/renesas,rzv2h-rspi.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Renesas RZ/V2H(P) Renesas Serial Peripheral Interface (RSPI) |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Fabrizio Castro <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 13 |
compatible: |
| 14 |
oneOf: |
| 15 |
- enum: |
| 16 |
- renesas,r9a09g057-rspi # RZ/V2H(P) |
| 17 |
- renesas,r9a09g077-rspi # RZ/T2H |
| 18 |
- items: |
| 19 |
- const: renesas,r9a09g056-rspi # RZ/V2N |
| 20 |
- const: renesas,r9a09g057-rspi |
| 21 |
- items: |
| 22 |
- const: renesas,r9a09g087-rspi # RZ/N2H |
| 23 |
- const: renesas,r9a09g077-rspi # RZ/T2H |
| 24 |
|
| 25 |
reg: |
| 26 |
maxItems: 1 |
| 27 |
|
| 28 |
interrupts: |
| 29 |
items: |
| 30 |
- description: Idle Interrupt |
| 31 |
- description: Error Interrupt |
| 32 |
- description: Communication End Interrupt |
| 33 |
- description: Receive Buffer Full Interrupt |
| 34 |
- description: Transmit Buffer Empty Interrupt |
| 35 |
|
| 36 |
interrupt-names: |
| 37 |
items: |
| 38 |
- const: idle |
| 39 |
- const: error |
| 40 |
- const: end |
| 41 |
- const: rx |
| 42 |
- const: tx |
| 43 |
|
| 44 |
clocks: |
| 45 |
minItems: 2 |
| 46 |
maxItems: 3 |
| 47 |
|
| 48 |
clock-names: |
| 49 |
minItems: 2 |
| 50 |
maxItems: 3 |
| 51 |
|
| 52 |
resets: |
| 53 |
maxItems: 2 |
| 54 |
|
| 55 |
reset-names: |
| 56 |
items: |
| 57 |
- const: presetn |
| 58 |
- const: tresetn |
| 59 |
|
| 60 |
dmas: |
| 61 |
maxItems: 2 |
| 62 |
|
| 63 |
dma-names: |
| 64 |
items: |
| 65 |
- const: rx |
| 66 |
- const: tx |
| 67 |
|
| 68 |
power-domains: |
| 69 |
maxItems: 1 |
| 70 |
|
| 71 |
required: |
| 72 |
- compatible |
| 73 |
- reg |
| 74 |
- interrupts |
| 75 |
- interrupt-names |
| 76 |
- clocks |
| 77 |
- clock-names |
| 78 |
- power-domains |
| 79 |
- '#address-cells' |
| 80 |
- '#size-cells' |
| 81 |
|
| 82 |
allOf: |
| 83 |
- $ref: spi-controller.yaml# |
| 84 |
- if: |
| 85 |
properties: |
| 86 |
compatible: |
| 87 |
contains: |
| 88 |
enum: |
| 89 |
- renesas,r9a09g057-rspi |
| 90 |
then: |
| 91 |
properties: |
| 92 |
clocks: |
| 93 |
minItems: 3 |
| 94 |
|
| 95 |
clock-names: |
| 96 |
items: |
| 97 |
- const: pclk |
| 98 |
- const: pclk_sfr |
| 99 |
- const: tclk |
| 100 |
|
| 101 |
required: |
| 102 |
- resets |
| 103 |
- reset-names |
| 104 |
|
| 105 |
- if: |
| 106 |
properties: |
| 107 |
compatible: |
| 108 |
contains: |
| 109 |
enum: |
| 110 |
- renesas,r9a09g077-rspi |
| 111 |
then: |
| 112 |
properties: |
| 113 |
clocks: |
| 114 |
maxItems: 2 |
| 115 |
|
| 116 |
clock-names: |
| 117 |
items: |
| 118 |
- const: pclk |
| 119 |
- const: pclkspi |
| 120 |
|
| 121 |
resets: false |
| 122 |
reset-names: false |
| 123 |
|
| 124 |
unevaluatedProperties: false |
| 125 |
|
| 126 |
examples: |
| 127 |
- | |
| 128 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 129 |
#include <dt-bindings/clock/renesas-cpg-mssr.h> |
| 130 |
spi@12800800 { |
| 131 |
compatible = "renesas,r9a09g057-rspi"; |
| 132 |
|
| 133 |
reg = <0x12800800 0x400>; |
| 134 |
interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>, |
| 135 |
<GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>, |
| 136 |
<GIC_SPI 113 IRQ_TYPE_EDGE_RISING>, |
| 137 |
<GIC_SPI 504 IRQ_TYPE_EDGE_RISING>, |
| 138 |
<GIC_SPI 505 IRQ_TYPE_EDGE_RISING>; |
| 139 |
interrupt-names = "idle", "error", "end", "rx", "tx"; |
| 140 |
clocks = <&cpg CPG_MOD 0x5a>, |
| 141 |
<&cpg CPG_MOD 0x5b>, |
| 142 |
<&cpg CPG_MOD 0x5c>; |
| 143 |
clock-names = "pclk", "pclk_sfr", "tclk"; |
| 144 |
resets = <&cpg 0x7f>, <&cpg 0x80>; |
| 145 |
reset-names = "presetn", "tresetn"; |
| 146 |
power-domains = <&cpg>; |
| 147 |
#address-cells = <1>; |
| 148 |
#size-cells = <0>; |
| 149 |
}; |