FILE
renesas,rzv2h-rspi.yaml
File preview with syntax highlighting.
linux-6.19.14/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml
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 7title: Renesas RZ/V2H(P) Renesas Serial Peripheral Interface (RSPI) 8 9maintainers: 10 - Fabrizio Castro <fabrizio.castro.jz@renesas.com> 11 12properties: 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 power-domains: 61 maxItems: 1 62 63required: 64 - compatible 65 - reg 66 - interrupts 67 - interrupt-names 68 - clocks 69 - clock-names 70 - power-domains 71 - '#address-cells' 72 - '#size-cells' 73 74allOf: 75 - $ref: spi-controller.yaml# 76 - if: 77 properties: 78 compatible: 79 contains: 80 enum: 81 - renesas,r9a09g057-rspi 82 then: 83 properties: 84 clocks: 85 minItems: 3 86 87 clock-names: 88 items: 89 - const: pclk 90 - const: pclk_sfr 91 - const: tclk 92 93 required: 94 - resets 95 - reset-names 96 97 - if: 98 properties: 99 compatible: 100 contains: 101 enum: 102 - renesas,r9a09g077-rspi 103 then: 104 properties: 105 clocks: 106 maxItems: 2 107 108 clock-names: 109 items: 110 - const: pclk 111 - const: pclkspi 112 113 resets: false 114 reset-names: false 115 116unevaluatedProperties: false 117 118examples: 119 - | 120 #include <dt-bindings/interrupt-controller/arm-gic.h> 121 #include <dt-bindings/clock/renesas-cpg-mssr.h> 122 spi@12800800 { 123 compatible = "renesas,r9a09g057-rspi"; 124 125 reg = <0x12800800 0x400>; 126 interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>, 127 <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>, 128 <GIC_SPI 113 IRQ_TYPE_EDGE_RISING>, 129 <GIC_SPI 504 IRQ_TYPE_EDGE_RISING>, 130 <GIC_SPI 505 IRQ_TYPE_EDGE_RISING>; 131 interrupt-names = "idle", "error", "end", "rx", "tx"; 132 clocks = <&cpg CPG_MOD 0x5a>, 133 <&cpg CPG_MOD 0x5b>, 134 <&cpg CPG_MOD 0x5c>; 135 clock-names = "pclk", "pclk_sfr", "tclk"; 136 resets = <&cpg 0x7f>, <&cpg 0x80>; 137 reset-names = "presetn", "tresetn"; 138 power-domains = <&cpg>; 139 #address-cells = <1>; 140 #size-cells = <0>; 141 };
~/
Read-only file preview.