Marvell MV64XXX I2C Controller

Schema identifier ($id): "http://devicetree.org/schemas/i2c/marvell,mv64xxx-i2c.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Gregory CLEMENT <gregory.clement@bootlin.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun4i-a10-i2c"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun7i-a20-i2c"

Item 2

Exact value (const): "allwinner,sun4i-a10-i2c"

Rule 3

Exact value (const): "allwinner,sun6i-a31-i2c"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,suniv-f1c100s-i2c", "allwinner,sun8i-a23-i2c", "allwinner,sun8i-a83t-i2c", "allwinner,sun8i-v536-i2c", "allwinner,sun50i-a64-i2c", "allwinner,sun50i-h6-i2c"

Item 2

Exact value (const): "allwinner,sun6i-a31-i2c"

Rule 5

Allwinner SoCs with offload support

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun20i-d1-i2c", "allwinner,sun50i-a100-i2c", "allwinner,sun50i-h616-i2c", "allwinner,sun50i-r329-i2c", "allwinner,sun55i-a523-i2c"

Item 2

Exact value (const): "allwinner,sun8i-v536-i2c"

Item 3

Exact value (const): "allwinner,sun6i-a31-i2c"

Rule 6

Exact value (const): "marvell,mv64xxx-i2c"

Rule 7

Exact value (const): "marvell,mv78230-i2c"

Rule 8

Exact value (const): "marvell,mv78230-a0-i2c"

Only use "marvell,mv78230-a0-i2c" for a very rare, initial version of the SoC which had broken offload support. Linux auto-detects this and sets it appropriately.

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Reference clock for the I2C bus

Item 2

Bus clock (Only for Armada 7K/8K)

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "reg"

Mandatory if two clocks are used (only for Armada 7k and 8k).

resets — not listed as required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Array item rules (items) #

Item 1

RX DMA Channel

Item 2

TX DMA Channel

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Property dependencies (dependencies) #

dmas — applies when this property is present #

Also requires: "dma-names"

Required in this object (required): "compatible", "reg", "interrupts"

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): "allwinner,sun4i-a10-i2c", "allwinner,sun6i-a31-i2c"

When the condition matches (then) #

Required in this object (required): "clocks"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "allwinner,sun6i-a31-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) #

i2c@11000 {
    compatible = "marvell,mv64xxx-i2c";
    reg = <0x11000 0x20>;
    interrupts = <29>;
    clock-frequency = <100000>;
};
i2c@11000 {
    compatible = "marvell,mv78230-i2c";
    reg = <0x11000 0x100>;
    interrupts = <29>;
    clock-frequency = <100000>;
};
i2c@701000 {
    compatible = "marvell,mv78230-i2c";
    reg = <0x701000 0x20>;
    interrupts = <29>;
    clock-frequency = <100000>;
    clock-names = "core", "reg";
    clocks = <&core_clock>, <&reg_clock>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page