Renesas R-Mobile I2C Bus Interface (IIC)
Schema identifier ($id): "http://devicetree.org/schemas/i2c/renesas,rmobile-iic.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "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,iic-r8a73a4","renesas,iic-r8a7740","renesas,iic-sh73a0"Item 2
Exact value (
const):"renesas,rmobile-iic"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,iic-r8a7742","renesas,iic-r8a7743","renesas,iic-r8a7744","renesas,iic-r8a7745","renesas,iic-r8a7790","renesas,iic-r8a7791","renesas,iic-r8a7792","renesas,iic-r8a7793","renesas,iic-r8a7794"Item 2
Exact value (
const):"renesas,rcar-gen2-iic"Item 3
Exact value (
const):"renesas,rmobile-iic"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,iic-r8a774a1","renesas,iic-r8a774b1","renesas,iic-r8a774c0","renesas,iic-r8a774e1","renesas,iic-r8a7795","renesas,iic-r8a7796","renesas,iic-r8a77961","renesas,iic-r8a77965","renesas,iic-r8a77990"Item 2
Exact value (
const):"renesas,rcar-gen3-iic"Item 3
Exact value (
const):"renesas,rmobile-iic"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
true — No constraints added by this property rule.
clock-frequency — not listed as 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
dmas — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
Must contain a list of pairs of references to DMA specifiers, one for transmission, and one for reception.
dma-names — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
Array item rules (items) #
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "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)Allowed values (
enum):"renesas,iic-r8a7740","renesas,iic-sh73a0"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereArray item rules (
items)Item 1
Arbitration Lost Interrupt (ALI)
Item 2
Non-acknowledge Detection Interrupt (TACKI)
Item 3
Wait Interrupt (WAITI)
Item 4
Data Transmit Enable interrupt (DTEI)
When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereArray item rules (
items)Item 1
Single combined interrupt
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,rcar-gen2-iic","renesas,rcar-gen3-iic"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>
iic0: i2c@e6500000 {
compatible = "renesas,iic-r8a7790", "renesas,rcar-gen2-iic",
"renesas,rmobile-iic";
reg = <0xe6500000 0x425>;
interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 318>;
clock-frequency = <400000>;
dmas = <&dmac0 0x61>, <&dmac0 0x62>, <&dmac1 0x61>, <&dmac1 0x62>;
dma-names = "tx", "rx", "tx", "rx";
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
resets = <&cpg 318>;
#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 17: R-Mobile APE6
Line 18: R-Mobile A1
Line 19: SH-Mobile AG5
Line 20: Generic
Line 24: RZ/G1H
Line 25: RZ/G1M
Line 26: RZ/G1N
Line 27: RZ/G1E
Line 28: R-Car H2
Line 29: R-Car M2-W
Line 30: R-Car V2H
Line 31: R-Car M2-N
Line 32: R-Car E2
Line 33: R-Car Gen2 and RZ/G1
Line 34: Generic
Line 38: RZ/G2M
Line 39: RZ/G2N
Line 40: RZ/G2E
Line 41: RZ/G2H
Line 42: R-Car H3
Line 43: R-Car M3-W
Line 44: R-Car M3-W+
Line 45: R-Car M3-N
Line 46: R-Car E3
Line 47: R-Car Gen3 and RZ/G2
Line 48: Generic