Renesas RZ/A and RZ/G2L I2C Bus Interface (RIIC)
Schema identifier ($id): "http://devicetree.org/schemas/i2c/renesas,riic.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chris Brandt <chris.brandt@renesas.com>", "Wolfram Sang <wsa+renesas@sang-engineering.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,riic-r7s72100","renesas,riic-r7s9210","renesas,riic-r9a07g043","renesas,riic-r9a07g044","renesas,riic-r9a07g054"Item 2
Exact value (
const):"renesas,riic-rz"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,riic-r9a08g045","renesas,riic-r9a09g047","renesas,riic-r9a09g056"Item 2
Exact value (
const):"renesas,riic-r9a09g057"
Rule 3
Allowed values (
enum):"renesas,riic-r9a09g057","renesas,riic-r9a09g077"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"renesas,riic-r9a09g087"Item 2
Exact value (
const):"renesas,riic-r9a09g077"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Transmit End Interrupt
Item 2
Receive Data Full Interrupt
Item 3
Transmit Data Empty Interrupt
Item 4
Stop Condition Detection Interrupt
Item 5
Start Condition Detection Interrupt
Item 6
NACK Reception Interrupt
Item 7
Arbitration-Lost Interrupt
Item 8
Timeout Interrupt
Rule 2
Array item rules (
items)Item 1
Transfer Error Or Event Generation
Item 2
Receive Data Full Interrupt
Item 3
Transmit Data Empty Interrupt
Item 4
Transmit End Interrupt
interrupt-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"tei"Item 2
Exact value (
const):"ri"Item 3
Exact value (
const):"ti"Item 4
Exact value (
const):"spi"Item 5
Exact value (
const):"sti"Item 6
Exact value (
const):"naki"Item 7
Exact value (
const):"ali"Item 8
Exact value (
const):"tmoi"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"eei"Item 2
Exact value (
const):"rxi"Item 3
Exact value (
const):"txi"Item 4
Exact value (
const):"tei"
clock-frequency — required here #
Desired I2C bus clock frequency in Hz. The absence of this property indicates the default frequency 100 kHz.
clocks — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-frequency", "power-domains", "#address-cells", "#size-cells"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/i2c/i2c-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,riic-r9a09g077"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):4
interrupt-names— not listed as required hereMaximum number of items (
maxItems):4
resets— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):8
interrupt-names— not listed as required hereMinimum number of items (
minItems):8
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,riic-r9a07g043","renesas,riic-r9a07g044","renesas,riic-r9a07g054","renesas,riic-r9a09g057"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r7s72100-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c0: i2c@fcfee000 {
compatible = "renesas,riic-r7s72100", "renesas,riic-rz";
reg = <0xfcfee000 0x44>;
interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 158 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 159 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "tei", "ri", "ti", "spi", "sti", "naki", "ali",
"tmoi";
clocks = <&mstp9_clks R7S72100_CLK_I2C0>;
clock-frequency = <100000>;
power-domains = <&cpg_clocks>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 18: RZ/A1H
Line 19: RZ/A2M
Line 20: RZ/G2UL and RZ/Five
Line 21: RZ/G2{L,LC}
Line 22: RZ/V2L
Line 23: RZ/A or RZ/G2L
Line 27: RZ/G3S
Line 28: RZ/G3E
Line 29: RZ/V2N
Line 30: RZ/V2H(P)
Line 33: RZ/V2H(P)
Line 34: RZ/T2H
Line 37: RZ/N2H
Line 38: RZ/T2H