Renesas R-Car I2C Controller

Schema identifier ($id): "http://devicetree.org/schemas/i2c/renesas,rcar-i2c.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,i2c-r8a7778", "renesas,i2c-r8a7779"

Item 2

Exact value (const): "renesas,rcar-gen1-i2c"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,i2c-r8a7742", "renesas,i2c-r8a7743", "renesas,i2c-r8a7744", "renesas,i2c-r8a7745", "renesas,i2c-r8a77470", "renesas,i2c-r8a7790", "renesas,i2c-r8a7791", "renesas,i2c-r8a7792", "renesas,i2c-r8a7793", "renesas,i2c-r8a7794"

Item 2

Exact value (const): "renesas,rcar-gen2-i2c"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "renesas,i2c-r8a774a1", "renesas,i2c-r8a774b1", "renesas,i2c-r8a774c0", "renesas,i2c-r8a774e1", "renesas,i2c-r8a7795", "renesas,i2c-r8a7796", "renesas,i2c-r8a77961", "renesas,i2c-r8a77965", "renesas,i2c-r8a77970", "renesas,i2c-r8a77980", "renesas,i2c-r8a77990", "renesas,i2c-r8a77995"

Item 2

Exact value (const): "renesas,rcar-gen3-i2c"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "renesas,i2c-r8a779a0", "renesas,i2c-r8a779f0", "renesas,i2c-r8a779g0", "renesas,i2c-r8a779h0"

Item 2

Exact value (const): "renesas,rcar-gen4-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

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) #

Allowed values (enum): "tx", "rx"

i2c-scl-falling-time-ns — not listed as required here #

Default value (default): 35

Number of nanoseconds the SCL signal takes to fall; t(f) in the I2C specification.

i2c-scl-internal-delay-ns — not listed as required here #

Default value (default): 50

Number of nanoseconds the IP core additionally needs to setup SCL.

i2c-scl-rising-time-ns — not listed as required here #

Default value (default): 200

Number of nanoseconds the SCL signal takes to rise; t(r) in the I2C specification.

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 here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar-gen1-i2c", "renesas,rcar-gen2-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

dmas — not listed as required here

false — Not permitted by this property rule.

dma-names — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar-gen2-i2c", "renesas,rcar-gen3-i2c", "renesas,rcar-gen4-i2c"

When the condition matches (then) #

Required in this object (required): "resets"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a7791-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7791-sysc.h>

i2c0: i2c@e6508000 {
    compatible = "renesas,i2c-r8a7791", "renesas,rcar-gen2-i2c";
    reg = <0xe6508000 0x40>;
    interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>;
    clock-frequency = <400000>;
    clocks = <&cpg CPG_MOD 931>;
    power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
    resets = <&cpg 931>;
    i2c-scl-internal-delay-ns = <6>;
    #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-Car M1A

Line 18: R-Car H1

Line 19: R-Car Gen1

Line 23: RZ/G1H

Line 24: RZ/G1M

Line 25: RZ/G1N

Line 26: RZ/G1E

Line 27: RZ/G1C

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 37: RZ/G2M

Line 38: RZ/G2N

Line 39: RZ/G2E

Line 40: RZ/G2H

Line 41: R-Car H3

Line 42: R-Car M3-W

Line 43: R-Car M3-W+

Line 44: R-Car M3-N

Line 45: R-Car V3M

Line 46: R-Car V3H

Line 47: R-Car E3

Line 48: R-Car D3

Line 49: R-Car Gen3 and RZ/G2

Line 53: R-Car V3U

Line 54: R-Car S4-8

Line 55: R-Car V4H

Line 56: R-Car V4M

Line 57: R-Car Gen4

Edit this page