Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

I2C bindings

Single-page view · as markdown

Allwinner A31 P2WI (Push/Pull 2 Wires Interface)

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/allwinner,sun6i-a31-p2wi.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

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

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Minimum value (minimum): 1

Maximum value (maximum): 6000000

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@1f03400 {
    compatible = "allwinner,sun6i-a31-p2wi";
    reg = <0x01f03400 0x400>;
    interrupts = <0 39 4>;
    clocks = <&apb0_gates 3>;
    clock-frequency = <100000>;
    resets = <&apb0_rst 3>;
    #address-cells = <1>;
    #size-cells = <0>;

    axp221: pmic@68 {
        /* compatible = "x-powers,axp221"; */
        reg = <0x68>;
    };
};

Source notes #

Annotations retained from the schema source

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

Amlogic Meson I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>", "Beniamino Galvani <b.galvani@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "amlogic,meson6-i2c", "amlogic,meson-gxbb-i2c", "amlogic,meson-axg-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@c8100500 {
    compatible = "amlogic,meson6-i2c";
    reg = <0xc8100500 0x20>;
    interrupts = <92>;
    clocks = <&clk81>;
    #address-cells = <1>;
    #size-cells = <0>;

    eeprom@52 {
        compatible = "atmel,24c32";
        reg = <0x52>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2019 BayLibre, SAS

Line 20: Meson6, Meson8 and compatible SoCs

Line 21: GXBB and compatible SoCs

Line 22: AXG and compatible SoCs

APM X-Gene SLIMpro Mailbox I2C

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/apm,xgene-slimpro-i2c.yaml#"

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

Maintainers (maintainers): "Khuong Dinh <khuong@os.amperecomputing.com>"

An I2C controller accessed over the "SLIMpro" mailbox.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "apm,xgene-slimpro-i2c"

mboxes — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "mboxes"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    compatible = "apm,xgene-slimpro-i2c";
    mboxes = <&mailbox 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Apple/PASemi I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Sven Peter <sven@svenpeter.dev>"

Apple SoCs such as the M1 come with a I2C controller based on the one found in machines with P. A. Semi's PWRficient processors. The bus is used to communicate with e.g. USB PD chips or the speaker amp.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "apple,t6020-i2c"

Item 2

Exact value (const): "apple,t8103-i2c"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "apple,s5l8960x-i2c", "apple,t7000-i2c", "apple,s8000-i2c", "apple,t8010-i2c", "apple,t8015-i2c", "apple,t8103-i2c", "apple,t8112-i2c", "apple,t6000-i2c"

Item 2

Exact value (const): "apple,i2c"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

I2C bus reference clock

interrupts — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Desired I2C bus clock frequency in Hz. If not specified, 100 kHz will be used. This frequency is generated by dividing the reference clock. Allowed values are between ref_clk/(16*4) and ref_clk/(16*255).

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@35010000 {
  compatible = "apple,t8103-i2c", "apple,i2c";
  reg = <0x35010000 0x4000>;
  interrupt-parent = <&aic>;
  interrupts = <0 627 4>;
  clocks = <&ref_clk>;
  #address-cells = <1>;
  #size-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 29: Do not add additional SoC to this list.

I2C Controller on ARM Ltd development platforms

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "arm,versatile-i2c"

reg — required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

ASPEED I2C on the AST24XX, AST25XX, and AST26XX SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Rayn Chen <rayn_chen@aspeedtech.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "aspeed,ast2400-i2c-bus", "aspeed,ast2500-i2c-bus", "aspeed,ast2600-i2c-bus"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

address offset and range of bus

Item 2

address offset and range of bus buffer

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

root clock of bus, should reference the APB clock in the second cell

resets — required here #

Maximum number of items (maxItems): 1

bus-frequency — not listed as required here #

Minimum value (minimum): 500

Maximum value (maximum): 4000000

Default value (default): 100000

frequency of the bus clock in Hz defaults to 100 kHz when not specified

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/aspeed-clock.h>
i2c@40 {
  #address-cells = <1>;
  #size-cells = <0>;
  compatible = "aspeed,ast2500-i2c-bus";
  reg = <0x40 0x40>;
  clocks = <&syscon ASPEED_CLK_APB>;
  resets = <&syscon ASPEED_RESET_I2C>;
  bus-frequency = <100000>;
  interrupts = <0>;
  interrupt-parent = <&i2c_ic>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

I2C for Atmel/Microchip platforms

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Alexandre Belloni <alexandre.belloni@bootlin.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): "atmel,at91rm9200-i2c", "atmel,at91sam9261-i2c", "atmel,at91sam9260-i2c", "atmel,at91sam9g20-i2c", "atmel,at91sam9g10-i2c", "atmel,at91sam9x5-i2c", "atmel,sama5d4-i2c", "atmel,sama5d2-i2c", "microchip,sam9x60-i2c"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "microchip,lan9691-i2c", "microchip,sama7d65-i2c", "microchip,sama7g5-i2c", "microchip,sam9x7-i2c"

Item 2

Exact value (const): "microchip,sam9x60-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Default value (default): 100000

dmas — not listed as required here #

Array item rules (items) #

Item 1

TX DMA Channel Specifier

Item 2

RX DMA Channel Specifier

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

atmel,fifo-size — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum number of data the RX and TX FIFOs can store for FIFO capable I2C controllers.

scl-gpios — not listed as required here #

true — No constraints added by this property rule.

sda-gpios — not listed as required here #

true — No constraints added by this property rule.

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

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): "atmel,sama5d4-i2c", "atmel,sama5d2-i2c", "microchip,sam9x60-i2c", "microchip,sama7d65-i2c", "microchip,sama7g5-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

i2c-sda-hold-time-ns — not listed as required here

TWD hold time

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/gpio/gpio.h>

i2c0: i2c@fff84000 {
    compatible = "atmel,at91sam9g20-i2c";
    reg = <0xfff84000 0x100>;
    interrupts = <12 IRQ_TYPE_LEVEL_HIGH 6>;
    #address-cells = <1>;
    #size-cells = <0>;
    clocks = <&twi0_clk>;
    clock-frequency = <400000>;

    eeprom@50 {
        compatible = "atmel,24c512";
        reg = <0x50>;
        pagesize = <128>;
    };
};

i2c1: i2c@f8034600 {
    compatible = "atmel,sama5d2-i2c";
    reg = <0xf8034600 0x100>;
    interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;
    dmas = <&dma0
        (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1))
        AT91_XDMAC_DT_PERID(11)>,
           <&dma0
        (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1))
        AT91_XDMAC_DT_PERID(12)>;
    dma-names = "tx", "rx";
    #address-cells = <1>;
    #size-cells = <0>;
    clocks = <&flx0>;
    atmel,fifo-size = <16>;
    i2c-sda-hold-time-ns = <336>;
    pinctrl-names = "default", "gpio";
    pinctrl-0 = <&pinctrl_i2c0>;
    pinctrl-1 = <&pinctrl_i2c0_gpio>;
    sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>;
    scl-gpios = <&pioA 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;

    eeprom@54 {
        compatible = "atmel,24c02";
        reg = <0x54>;
        pagesize = <16>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries

Broadcom BCM2835 I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Stephen Warren <swarren@wwwdotorg.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "brcm,bcm2835-i2c"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "brcm,bcm2711-i2c"

Item 2

Exact value (const): "brcm,bcm2835-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

true — No constraints added by this property rule.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@7e205000 {
    compatible = "brcm,bcm2835-i2c";
    reg = <0x7e205000 0x1000>;
    interrupts = <2 21>;
    clocks = <&clk_i2c>;
    clock-frequency = <100000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Broadcom STB BSC IIC Master Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Kamal Dasu <kdasu.kdev@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "brcm,bcm2711-hdmi-i2c", "brcm,brcmstb-i2c", "brcm,brcmper-i2c"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

BSC register range

Item 2

Auto-I2C register range

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "bsc"

Item 2

Exact value (const): "auto-i2c"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here #

Maximum number of items (maxItems): 1

clock-frequency — required here #

Allowed values (enum): 46875, 50000, 93750, 97500, 187500, 200000, 375000, 390000

Required in this object (required): "compatible", "reg", "clock-frequency"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "brcm,bcm2711-hdmi-i2c"

When the condition matches (then) #

Properties and child nodes (properties) #

reg — not listed as required here #

Minimum number of items (minItems): 2

Required in this object (required): "reg-names"

When the condition does not match (else) #

Properties and child nodes (properties) #

reg — not listed as required here #

Maximum number of items (maxItems): 1

Examples (examples) #

bsca: i2c@f0406200 {
    compatible = "brcm,brcmstb-i2c";
    reg = <0xf0406200 0x58>;
    clock-frequency = <390000>;
    interrupt-parent = <&irq0_intc>;
    interrupts = <0x18>;
    interrupt-names = "upg_bsca";
};
ddc0: i2c@7ef04500 {
    compatible = "brcm,bcm2711-hdmi-i2c";
    reg = <0x7ef04500 0x100>, <0x7ef00b00 0x300>;
    reg-names = "bsc", "auto-i2c";
    clock-frequency = <390000>;
};

Source notes #

Annotations retained from the schema source

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

Broadcom iProc I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "brcm,iproc-i2c", "brcm,iproc-nic-i2c"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-frequency — required here #

Allowed values (enum): 100000, 400000

interrupts — not listed as required here #

Should contain the I2C interrupt. For certain revisions of the I2C controller, I2C interrupt is unwired to the interrupt controller. In such case, this property should be left unspecified, and driver will fall back to polling mode

Maximum number of items (maxItems): 1

brcm,ape-hsls-addr-mask — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Host view of address mask into the 'APE' co-processor

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)

Exact value (const): "brcm,iproc-nic-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

Required in this object (required): "brcm,ape-hsls-addr-mask"

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "reg", "clock-frequency", "#address-cells", "#size-cells"

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

i2c@18008000 {
    compatible = "brcm,iproc-i2c";
    reg = <0x18008000 0x100>;
    #address-cells = <1>;
    #size-cells = <0>;
    interrupts = <GIC_SPI 85 IRQ_TYPE_NONE>;
    clock-frequency = <100000>;

    wm8750@1a {
        compatible = "wlf,wm8750";
        reg = <0x1a>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Broadcom Kona family I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "brcm,bcm11351-i2c", "brcm,bcm21664-i2c", "brcm,bcm23550-i2c"

Item 2

Exact value (const): "brcm,kona-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-frequency — required here #

Allowed values (enum): 100000, 400000, 1000000, 3400000

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-frequency"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c@3e016000 {
    compatible = "brcm,bcm11351-i2c", "brcm,kona-i2c";
    reg = <0x3e016000 0x80>;
    interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&bsc1_clk>;
    clock-frequency = <400000>;
    #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)

Cadence I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "cdns,i2c-r1p10", "cdns,i2c-r1p14"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Minimum value (minimum): 1

Maximum value (maximum): 400000

Desired operating frequency, in Hz, of the bus.

clock-name — not listed as required here #

Exact value (const): "pclk"

Input clock name.

fifo-depth — not listed as required here #

Size of the data FIFO in bytes.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 16

Allowed values (enum): 2, 4, 8, 16, 32, 64, 128, 256

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c@e0004000 {
    compatible = "cdns,i2c-r1p10";
    clocks = <&clkc 38>;
    resets = <&rstc 288>;
    interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
    reg = <0xe0004000 0x1000>;
    clock-frequency = <400000>;
    #address-cells = <1>;
    #size-cells = <0>;
    fifo-depth = <8>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 18: cadence i2c controller version 1.0

Line 19: cadence i2c controller version 1.4

I2C bus that tunnels through the ChromeOS EC (cros-ec)

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/google,cros-ec-i2c-tunnel.yaml#"

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

Maintainers (maintainers): "Doug Anderson <dianders@chromium.org>", "Benson Leung <bleung@chromium.org>"

On some ChromeOS board designs we've got a connection to the EC (embedded controller) but no direct connection to some devices on the other side of the EC (like a battery and PMIC). To get access to those devices we need to tunnel our i2c commands through the EC.

The node for this device should be under a cros-ec node like google,cros-ec-spi or google,cros-ec-i2c.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "google,cros-ec-i2c-tunnel"

google,remote-bus — required here #

The EC bus we'd like to talk to.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "google,remote-bus"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    cros-ec@0 {
        compatible = "google,cros-ec-spi";
        reg = <0>;
        spi-max-frequency = <5000000>;
        interrupts = <99 0>;

        i2c-tunnel {
            compatible = "google,cros-ec-i2c-tunnel";
            #address-cells = <1>;
            #size-cells = <0>;

            google,remote-bus = <0>;

            battery: sbs-battery@b {
                compatible = "sbs,sbs-battery";
                reg = <0xb>;
                sbs,poll-retry-count = <1>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

HiSilicon common I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Yicong Yang <yangyicong@hisilicon.com>"

The HiSilicon common I2C controller can be used for many different types of SoC such as Huawei Ascend AI series chips.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "hisilicon,ascend910-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Default value (default): 400000

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

Default value (default): 343

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

Default value (default): 203

i2c-sda-hold-time-ns — not listed as required here #

Default value (default): 830

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

Default value (default): 365

i2c-digital-filter-width-ns — not listed as required here #

Default value (default): 0

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

i2c@38b0000 {
  compatible = "hisilicon,ascend910-i2c";
  reg = <0x38b0000 0x10000>;
  interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
  i2c-sda-falling-time-ns = <56>;
  i2c-scl-falling-time-ns = <56>;
  i2c-sda-hold-time-ns = <56>;
  i2c-scl-rising-time-ns = <56>;
  i2c-digital-filter;
  i2c-digital-filter-width-ns = <0x0>;
  clocks = <&alg_clk>;
  clock-frequency = <400000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

I2C for HiSilicon hix5hd2 chipset platform

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Wei Yan <sledge.yanwei@huawei.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "hisilicon,hix5hd2-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Desired I2C bus frequency in Hz

Default value (default): 100000

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/hix5hd2-clock.h>

i2c@f8b10000 {
    compatible = "hisilicon,hix5hd2-i2c";
    reg = <0xf8b10000 0x1000>;
    interrupts = <0 38 4>;
    clocks = <&clock HIX5HD2_I2C0_RST>;
    #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

HPE GXP SoC I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Nick Hawkins <nick.hawkins@hpe.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "hpe,gxp-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 #

Default value (default): 100000

hpe,sysreg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to the global status and enable interrupt registers shared between each I2C engine controller instance. It enables the I2C engine controller to act as both a master or slave by being able to arm and respond to interrupts from its engine. Each bit in the registers represent the respective bit position.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@2600 {
    compatible = "hpe,gxp-i2c";
    reg = <0x2500 0x70>;
    interrupts = <9>;
    #address-cells = <1>;
    #size-cells = <0>;
    hpe,sysreg = <&sysreg_system_controller>;
    clock-frequency = <10000>;

    eeprom@50 {
        compatible = "atmel,24c128";
        reg = <0x50>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

GPIO-based I2C Arbitration Using a Challenge & Response Mechanism

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/i2c-arb-gpio-challenge.yaml#"

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

Maintainers (maintainers): "Doug Anderson <dianders@chromium.org>", "Peter Rosin <peda@axentia.se>"

This uses GPIO lines and a challenge & response mechanism to arbitrate who is the master of an I2C bus in a multimaster situation.

In many cases using GPIOs to arbitrate is not needed and a design can use the standard I2C multi-master rules. Using GPIOs is generally useful in the case where there is a device on the bus that has errata and/or bugs that makes standard multimaster mode not feasible.

Note that this scheme works well enough but has some downsides:
 * It is nonstandard (not using standard I2C multimaster)
 * Having two masters on a bus in general makes it relatively hard to debug
   problems (hard to tell if i2c issues were caused by one master, another,
   or some device on the bus).

Algorithm: All masters on the bus have a 'bus claim' line which is an output that the others can see. These are all active low with pull-ups enabled. We'll describe these lines as: * OUR_CLAIM: output from us signaling to other hosts that we want the bus * THEIR_CLAIMS: output from others signaling that they want the bus

The basic algorithm is to assert your line when you want the bus, then make sure that the other side doesn't want it also. A detailed explanation is best done with an example.

Let's say we want to claim the bus.  We:
1. Assert OUR_CLAIM.
2. Waits a little bit for the other sides to notice (slew time, say 10
   microseconds).
3. Check THEIR_CLAIMS.  If none are asserted then the we have the bus and we
   are done.
4. Otherwise, wait for a few milliseconds and see if THEIR_CLAIMS are released.
5. If not, back off, release the claim and wait for a few more milliseconds.
6. Go back to 1 (until retry time has expired).

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "i2c-arb-gpio-challenge"

i2c-parent — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The I2C bus that this multiplexer's master-side port is connected to.

our-claim-gpios — required here #

Maximum number of items (maxItems): 1

The GPIO that we use to claim the bus.

slew-delay-us — not listed as required here #

Default value (default): 10

Time to wait for a GPIO to go high.

their-claim-gpios — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

The GPIOs that the other sides use to claim the bus. Note that some implementations may only support a single other master.

wait-free-us — not listed as required here #

Default value (default): 50000

We'll give up after this many microseconds.

wait-retry-us — not listed as required here #

Default value (default): 3000

We'll attempt another claim after this many microseconds.

i2c-arb — required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

I2C arbitration bus node.

Required in this object (required): "compatible", "i2c-arb", "our-claim-gpios", "their-claim-gpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c-arbitrator {
    compatible = "i2c-arb-gpio-challenge";
    i2c-parent = <&i2c_4>;

    our-claim-gpios = <&gpf0 3 GPIO_ACTIVE_LOW>;
    their-claim-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>;
    slew-delay-us = <10>;
    wait-retry-us = <3000>;
    wait-free-us = <50000>;

    i2c-arb {
        #address-cells = <1>;
        #size-cells = <0>;

        sbs-battery@b {
            compatible = "sbs,sbs-battery";
            reg = <0xb>;
            sbs,poll-retry-count = <1>;
        };

        embedded-controller@1e {
            compatible = "google,cros-ec-i2c";
            reg = <0x1e>;
            interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
            interrupt-parent = <&gpx1>;
            pinctrl-names = "default";
            pinctrl-0 = <&ec_irq>;
            wakeup-source;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Common i2c address translator properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>"

An I2C Address Translator (ATR) is a device with an I2C slave parent ("upstream") port and N I2C master child ("downstream") ports, and forwards transactions from upstream to the appropriate downstream port with a modified slave address. The address used on the parent bus is called the "alias" and is (potentially) different from the physical slave address of the child bus. Address translation is done by the hardware.

Properties and child nodes (properties) #

i2c-alias-pool — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

I2C alias pool is a pool of I2C addresses on the main I2C bus that can be used to access the remote peripherals on the serializer's I2C bus. The addresses must be available, not used by any other peripheral. Each remote peripheral is assigned an alias from the pool, and transactions to that address will be forwarded to the remote peripheral, with the address translated to the remote peripheral's real address. This property is not needed if there are no I2C addressable remote peripherals.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Pinctrl-based I2C Bus Demultiplexer

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/i2c-demux-pinctrl.yaml#"

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

Maintainers (maintainers): "Wolfram Sang <wsa+renesas@sang-engineering.com>"

This binding describes an I2C bus demultiplexer that uses pin multiplexing to route the I2C signals, and represents the pin multiplexing configuration using the pinctrl device tree bindings. This may be used to select one I2C IP core at runtime which may have a better feature set for a given task than another I2C IP core on the SoC. The most simple example is to fall back to GPIO bitbanging if your current runtime configuration hits an errata of the internal IP core.

    +-------------------------------+
    | SoC                           |
    |                               |   +-----+  +-----+
    |   +------------+              |   | dev |  | dev |
    |   |I2C IP Core1|--\           |   +-----+  +-----+
    |   +------------+   \-------+  |      |        |
    |                    |Pinctrl|--|------+--------+
    |   +------------+   +-------+  |
    |   |I2C IP Core2|--/           |
    |   +------------+              |
    |                               |
    +-------------------------------+

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "i2c-demux-pinctrl"

i2c-parent — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Maximum number of items (maxItems): 1

List of phandles of I2C masters available for selection. The first one will be used as default.

i2c-bus-name — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

The name of this bus. Also needed as pinctrl-name for the I2C parents.

Required in this object (required): "compatible", "i2c-parent", "i2c-bus-name"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

gpioi2c2: i2c-9 {
    #address-cells = <1>;
    #size-cells = <0>;
    compatible = "i2c-gpio";
    scl-gpios = <&gpio5 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
    sda-gpios = <&gpio5 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
    i2c-gpio,delay-us = <5>;

    // The I2C controller must have its status "disabled".  The I2C bus
    // demultiplexer will enable it at runtime when needed.
    status = "disabled";
};

iic2: i2c@e6520000 {
    reg = <0xe6520000 0x425>;
    pinctrl-0 = <&iic2_pins>;
    // The pinctrl property for the parent I2C controller needs a pinctrl
    // state with the same name as i2c-bus-name in the I2C bus demultiplexer
    // node, not "default"!
    pinctrl-names = "i2c-hdmi";

    clock-frequency = <100000>;

    // The I2C controller must have its status "disabled".  The I2C bus
    // demultiplexer will enable it at runtime when needed.
    status = "disabled";
};

i2c2: i2c@e6530000 {
    reg = <0 0xe6530000 0 0x40>;
    pinctrl-0 = <&i2c2_pins>;
    // The pinctrl property for the parent I2C controller needs a pinctrl
    // state with the same name as i2c-bus-name in the I2C bus demultiplexer
    // node, not "default"!
    pinctrl-names = "i2c-hdmi";

    clock-frequency = <100000>;

    // The I2C controller must have its status "disabled".  The I2C bus
    // demultiplexer will enable it at runtime when needed.
    status = "disabled";
};

// Example for a bus to be demuxed.  It contains various I2C clients for
// HDMI, so the bus is named "i2c-hdmi":
i2chdmi: i2c-mux3 {
    compatible = "i2c-demux-pinctrl";
    i2c-parent = <&iic2>, <&i2c2>, <&gpioi2c2>;
    i2c-bus-name = "i2c-hdmi";
    #address-cells = <1>;
    #size-cells = <0>;

    ak4643: codec@12 {
        compatible = "asahi-kasei,ak4643";
        #sound-dai-cells = <0>;
        reg = <0x12>;
    };

    composite-in@20 {
        compatible = "adi,adv7180";
        reg = <0x20>;

        port {
            adv7180: endpoint {
                bus-width = <8>;
                remote-endpoint = <&vin1ep0>;
            };
        };
    };

    hdmi@39 {
        compatible = "adi,adv7511w";
        reg = <0x39>;
        interrupt-parent = <&gpio1>;
        interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
        clocks = <&cec_clock>;
        clock-names = "cec";

        avdd-supply = <&fixedregulator1v8>;
        dvdd-supply = <&fixedregulator1v8>;
        pvdd-supply = <&fixedregulator1v8>;
        dvdd-3v-supply = <&fixedregulator3v3>;
        bgvdd-supply = <&fixedregulator1v8>;

        adi,input-depth = <8>;
        adi,input-colorspace = "rgb";
        adi,input-clock = "1x";

        ports {
            #address-cells = <1>;
            #size-cells = <0>;

            port@0 {
                reg = <0>;
                adv7511_in: endpoint {
                    remote-endpoint = <&lvds0_out>;
                };
            };

            port@1 {
                reg = <1>;
                adv7511_out: endpoint {
                    remote-endpoint = <&hdmi_con_out>;
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Samsung's High Speed I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

The Samsung's High Speed I2C controller is used to interface with I2C devices at various speeds ranging from 100kHz to 3.4MHz.

In case the HSI2C controller is encapsulated within USI block (it's the case e.g. for Exynos850 and Exynos Auto V9 SoCs), it might be also necessary to define USI node in device tree file, choosing "i2c" configuration. Please see Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml for details.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "samsung,exynos5250-hsi2c", "samsung,exynos5260-hsi2c", "samsung,exynos7-hsi2c", "samsung,exynos8895-hsi2c", "samsung,exynosautov9-hsi2c"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos5433-hsi2c", "samsung,exynos7870-hsi2c", "tesla,fsd-hsi2c"

Item 2

Exact value (const): "samsung,exynos7-hsi2c"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos8890-hsi2c"

Item 2

Exact value (const): "samsung,exynos8895-hsi2c"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "google,gs101-hsi2c", "samsung,exynos2200-hsi2c", "samsung,exynos850-hsi2c", "samsung,exynos990-hsi2c"

Item 2

Exact value (const): "samsung,exynosautov9-hsi2c"

Rule 5

Exact value (const): "samsung,exynos5-hsi2c"

Deprecated (deprecated): true

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 #

Default value (default): 100000

Desired operating frequency in Hz of the bus. If not specified, the bus operates in fast-speed mode at 100kHz. If specified, the bus operates in high-speed mode only if the clock-frequency is >= 1MHz.

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

I2C operating clock

Item 2

Bus clock (APB)

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "hsi2c"

Item 2

Exact value (const): "hsi2c_pclk"

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

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): "samsung,exynosautov9-hsi2c"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

clock-names — required here

Minimum number of items (minItems): 2

Required in this object (required): "clock-names"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos5420.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

hsi2c_8: i2c@12e00000 {
    compatible = "samsung,exynos5250-hsi2c";
    reg = <0x12e00000 0x1000>;
    interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;
    clock-frequency = <100000>;
    clocks = <&clock CLK_USI4>;
    clock-names = "hsi2c";

    pmic@66 {
        /* compatible = "samsung,s2mps11-pmic"; */
        reg = <0x66>;
    };
};
#include <dt-bindings/clock/exynos850.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

hsi2c_2: i2c@138c0000 {
    compatible = "samsung,exynosautov9-hsi2c";
    reg = <0x138c0000 0xc0>;
    interrupts = <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;
    clocks = <&cmu_peri CLK_GOUT_HSI2C2_IPCLK>,
             <&cmu_peri CLK_GOUT_HSI2C2_PCLK>;
    clock-names = "hsi2c", "hsi2c_pclk";

    pmic@66 {
        /* compatible = "samsung,s2mps11-pmic"; */
        reg = <0x66>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 25: Exynos5250 and Exynos5420

Line 26: Exynos5260

Line 27: Exynos7

Line 47: Exynos5250 and Exynos5420

Common i2c gate properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"

An i2c gate is useful to e.g. reduce the digital noise for RF tuners connected to the i2c bus. Gates are similar to arbitrators in that you need to perform some kind of operation to access the i2c bus past the arbitrator/gate, but there are no competing masters to consider for gates and therefore there is no arbitration happening for gates.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml

Properties and child nodes (properties) #

$nodename — not listed as required here #

Exact value (const): "i2c-gate"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Examples (examples) #

i2c-gate {
    #address-cells = <1>;
    #size-cells = <0>;
    ak8975@c {
        compatible = "asahi-kasei,ak8975";
        reg = <0x0c>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

GPIO bitbanged I2C

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Wolfram Sang <wsa@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "i2c-gpio"

sda-gpios — required here #

gpio used for the sda signal, this should be flagged as active high using open drain with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) from <dt-bindings/gpio/gpio.h> since the signal is by definition open drain.

Maximum number of items (maxItems): 1

scl-gpios — required here #

gpio used for the scl signal, this should be flagged as active high using open drain with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) from <dt-bindings/gpio/gpio.h> since the signal is by definition open drain.

Maximum number of items (maxItems): 1

i2c-gpio,sda-output-only — not listed as required here #

sda as output only

Value type (type): "boolean"

i2c-gpio,scl-output-only — not listed as required here #

scl as output only

Value type (type): "boolean"

i2c-gpio,delay-us — not listed as required here #

delay between GPIO operations (may depend on each platform)

i2c-gpio,timeout-ms — not listed as required here #

timeout to get data

gpios — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

sda and scl gpio, alternative for {sda,scl}-gpios

i2c-gpio,sda-open-drain — not listed as required here #

Value type (type): "boolean"

Deprecated (deprecated): true

this means that something outside of our control has put the GPIO line used for SDA into open drain mode, and that something is not the GPIO chip. It is essentially an inconsistency flag.

i2c-gpio,scl-open-drain — not listed as required here #

Value type (type): "boolean"

Deprecated (deprecated): true

this means that something outside of our control has put the GPIO line used for SCL into open drain mode, and that something is not the GPIO chip. It is essentially an inconsistency flag.

i2c-gpio,sda-has-no-pullup — not listed as required here #

Value type (type): "boolean"

sda is used in a non-compliant way and has no pull-up. Therefore disable open-drain. This property is mutually-exclusive with i2c-gpio,sda-open-drain.

i2c-gpio,scl-has-no-pullup — not listed as required here #

Value type (type): "boolean"

scl is used in a non-compliant way and has no pull-up. Therefore disable open-drain. This property is mutually-exclusive with i2c-gpio,scl-open-drain.

Property dependencies (dependencies) #

i2c-gpio,sda-has-no-pullup — applies when this property is present #

This rule must not match (not) #

Required in this object (required): "i2c-gpio,sda-open-drain"

i2c-gpio,scl-has-no-pullup — applies when this property is present #

This rule must not match (not) #

Required in this object (required): "i2c-gpio,scl-open-drain"

Required in this object (required): "compatible", "sda-gpios", "scl-gpios"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Line 50: Deprecated properties, do not use in new device tree sources:

Freescale Low Power Inter IC (LPI2C) for i.MX

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/i2c-imx-lpi2c.yaml#"

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

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx7ulp-lpi2c"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8qxp-lpi2c", "fsl,imx8dxl-lpi2c", "fsl,imx8qm-lpi2c", "fsl,imx8ulp-lpi2c", "fsl,imx93-lpi2c", "fsl,imx94-lpi2c", "fsl,imx95-lpi2c"

Item 2

Exact value (const): "fsl,imx7ulp-lpi2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

assigned-clock-parents — not listed as required here #

true — No constraints added by this property rule.

assigned-clock-rates — not listed as required here #

true — No constraints added by this property rule.

assigned-clocks — not listed as required here #

true — No constraints added by this property rule.

clock-frequency — not listed as required here #

true — No constraints added by this property rule.

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "per"

Item 2

Exact value (const): "ipg"

clocks — required here #

Maximum number of items (maxItems): 2

dmas — not listed as required here #

Array item rules (items) #

Item 1

DMA controller phandle and request line for TX

Item 2

DMA controller phandle and request line for RX

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx7ulp-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

i2c@40a50000 {
    compatible = "fsl,imx7ulp-lpi2c";
    reg = <0x40A50000 0x10000>;
    interrupt-parent = <&intc>;
    interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks IMX7ULP_CLK_LPI2C7>,
             <&clks IMX7ULP_CLK_NIC1_BUS_DIV>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale Inter IC (I2C) and High Speed Inter IC (HS-I2C) for i.MX

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "fsl,imx1-i2c"

Rule 2

Exact value (const): "fsl,imx21-i2c"

Rule 3

Exact value (const): "fsl,vf610-i2c"

Rule 4

Exact value (const): "nxp,s32g2-i2c"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "fsl,ls1012a-i2c", "fsl,ls1021a-i2c", "fsl,ls1028a-i2c", "fsl,ls1043a-i2c", "fsl,ls1046a-i2c", "fsl,ls1088a-i2c", "fsl,ls208xa-i2c", "fsl,lx2160a-i2c"

Item 2

Exact value (const): "fsl,vf610-i2c"

Rule 6

Array item rules (items)

Item 1

Exact value (const): "fsl,imx35-i2c"

Item 2

Exact value (const): "fsl,imx1-i2c"

Rule 7

Array item rules (items)

Item 1

Exact value (const): "fsl,imx7d-i2c"

Item 2

Exact value (const): "fsl,imx21-i2c"

Rule 8

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx25-i2c", "fsl,imx27-i2c", "fsl,imx31-i2c", "fsl,imx50-i2c", "fsl,imx51-i2c", "fsl,imx53-i2c", "fsl,imx6q-i2c", "fsl,imx6sl-i2c", "fsl,imx6sx-i2c", "fsl,imx6sll-i2c", "fsl,imx6ul-i2c", "fsl,imx7s-i2c", "fsl,imx8mq-i2c", "fsl,imx8mm-i2c", "fsl,imx8mn-i2c", "fsl,imx8mp-i2c"

Item 2

Exact value (const): "fsl,imx21-i2c"

Rule 9

Array item rules (items)

Item 1

Exact value (const): "nxp,s32g3-i2c"

Item 2

Exact value (const): "nxp,s32g2-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "ipg"

clock-frequency — not listed as required here #

Minimum value (minimum): 1

Default value (default): 100000

Maximum value (maximum): 400000

dmas — not listed as required here #

Array item rules (items) #

Item 1

DMA controller phandle and request line for RX

Item 2

DMA controller phandle and request line for TX

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

sda-gpios — not listed as required here #

Maximum number of items (maxItems): 1

scl-gpios — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx5-clock.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c@83fc4000 {
    compatible = "fsl,imx51-i2c", "fsl,imx21-i2c";
    reg = <0x83fc4000 0x4000>;
    interrupts = <63>;
    clocks = <&clks IMX5_CLK_I2C2_GATE>;
};
#include <dt-bindings/clock/vf610-clock.h>

i2c@40066000 {
    compatible = "fsl,vf610-i2c";
    reg = <0x40066000 0x1000>;
    interrupts = <71 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks VF610_CLK_I2C0>;
    clock-names = "ipg";
    dmas = <&edma0 0 50>,
           <&edma0 0 51>;
    dma-names = "rx", "tx";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

I2C-Bus adapter for MPC824x/83xx/85xx/86xx/512x/52xx SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Chris Packham <chris.packham@alliedtelesis.co.nz>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

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): "mpc5200-i2c", "fsl,mpc5200-i2c", "fsl,mpc5121-i2c", "fsl,mpc8313-i2c", "fsl,mpc8543-i2c", "fsl,mpc8544-i2c"

Item 2

Exact value (const): "fsl-i2c"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "fsl,mpc5200b-i2c"

Item 2

Exact value (const): "fsl,mpc5200-i2c"

Item 3

Exact value (const): "fsl-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

fsl,preserve-clocking — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

if defined, the clock settings from the bootloader are preserved (not touched)

fsl,timeout — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Deprecated (deprecated): true

I2C bus timeout in microseconds

fsl,i2c-erratum-a004447 — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Indicates the presence of QorIQ erratum A-004447, which says that the standard i2c recovery scheme mechanism does not work and an alternate implementation is needed.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

/* MPC5121 based board */
i2c@1740 {
    #address-cells = <1>;
    #size-cells = <0>;
    compatible = "fsl,mpc5121-i2c", "fsl-i2c";
    reg = <0x1740 0x20>;
    interrupts = <11 0x8>;
    interrupt-parent = <&ipic>;
    clock-frequency = <100000>;
};
/* MPC5200B based board */
i2c@3d00 {
    #address-cells = <1>;
    #size-cells = <0>;
    compatible = "fsl,mpc5200b-i2c", "fsl,mpc5200-i2c", "fsl-i2c";
    reg = <0x3d00 0x40>;
    interrupts = <2 15 0>;
    interrupt-parent = <&mpc5200_pic>;
    fsl,preserve-clocking;
};
/* MPC8544 base board */
i2c@3100 {
    #address-cells = <1>;
    #size-cells = <0>;
    compatible = "fsl,mpc8544-i2c", "fsl-i2c";
    reg = <0x3100 0x100>;
    interrupts = <43 2>;
    interrupt-parent = <&mpic>;
    clock-frequency = <400000>;
    i2c-transfer-timeout-us = <10000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

MediaTek I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

This driver interfaces with the native I2C controller present in various MediaTek SoCs.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Maintainers (maintainers): "Qii Wang <qii.wang@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "mediatek,mt2712-i2c"

Rule 2

Exact value (const): "mediatek,mt6577-i2c"

Rule 3

Exact value (const): "mediatek,mt6589-i2c"

Rule 4

Exact value (const): "mediatek,mt7622-i2c"

Rule 5

Exact value (const): "mediatek,mt7981-i2c"

Rule 6

Exact value (const): "mediatek,mt7986-i2c"

Rule 7

Exact value (const): "mediatek,mt8168-i2c"

Rule 8

Exact value (const): "mediatek,mt8173-i2c"

Rule 9

Exact value (const): "mediatek,mt8183-i2c"

Rule 10

Exact value (const): "mediatek,mt8186-i2c"

Rule 11

Exact value (const): "mediatek,mt8188-i2c"

Rule 12

Exact value (const): "mediatek,mt8192-i2c"

Rule 13

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7629-i2c", "mediatek,mt8516-i2c"

Item 2

Exact value (const): "mediatek,mt2712-i2c"

Rule 14

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt2701-i2c", "mediatek,mt6797-i2c", "mediatek,mt7623-i2c"

Item 2

Exact value (const): "mediatek,mt6577-i2c"

Rule 15

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt8365-i2c"

Item 2

Exact value (const): "mediatek,mt8168-i2c"

Rule 16

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt6795-i2c"

Item 2

Exact value (const): "mediatek,mt8173-i2c"

Rule 17

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt6878-i2c", "mediatek,mt6991-i2c", "mediatek,mt8189-i2c", "mediatek,mt8196-i2c"

Item 2

Exact value (const): "mediatek,mt8188-i2c"

Rule 18

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt6893-i2c", "mediatek,mt8195-i2c"

Item 2

Exact value (const): "mediatek,mt8192-i2c"

reg — required here #

Array item rules (items) #

Item 1

Physical base address

Item 2

DMA base address

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Main clock for I2C bus

Item 2

Clock for I2C via DMA

Item 3

Bus arbitrator clock

Item 4

Clock for I2C from PMIC

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "main"

Item 2

Exact value (const): "dma"

Item 3

Exact value (const): "arb"

Item 4

Exact value (const): "pmic"

clock-div — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Frequency divider of clock source in I2C module

clock-frequency — not listed as required here #

Default value (default): 100000

SCL frequency to use (in Hz). If omitted, 100kHz is used.

mediatek,have-pmic — not listed as required here #

Platform controls I2C from PMIC side

Value type (type): "boolean"

mediatek,use-push-pull — not listed as required here #

Use push-pull mode I/O config

Value type (type): "boolean"

vbus-supply — not listed as required here #

Phandle to the regulator providing power to SCL/SDA

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "clock-div", "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c0: i2c@1100d000 {
  compatible = "mediatek,mt6577-i2c";
  reg = <0x1100d000 0x70>, <0x11000300 0x80>;
  interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>;
  clocks = <&i2c0_ck>, <&ap_dma_ck>;
  clock-names = "main", "dma";
  clock-div = <16>;
  clock-frequency = <400000>;
  mediatek,have-pmic;

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

GPIO-based I2C Bus Mux

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/i2c-mux-gpio.yaml#"

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

Maintainers (maintainers): "Wolfram Sang <wsa@kernel.org>"

This binding describes an I2C bus multiplexer that uses GPIOs to route the I2C signals.

                                +-----+  +-----+
                                | dev |  | dev |
  +------------+                +-----+  +-----+
  | SoC        |                   |        |
  |            |          /--------+--------+
  |   +------+ |  +------+    child bus A, on GPIO value set to 0
  |   | I2C  |-|--| Mux  |
  |   +------+ |  +--+---+    child bus B, on GPIO value set to 1
  |            |     |    \----------+--------+--------+
  |   +------+ |     |               |        |        |
  |   | GPIO |-|-----+            +-----+  +-----+  +-----+
  |   +------+ |                  | dev |  | dev |  | dev |
  +------------+                  +-----+  +-----+  +-----+

For each I2C child node, an I2C child bus will be created. They will be numbered based on their order in the device tree.

Whenever an access is made to a device on a child bus, the value set in the relevant node's reg property will be output using the list of GPIOs, the first in the list holding the least- significant value.

If an idle state is defined, using the idle-state (optional) property, whenever an access is not being made to a device on a child bus, the GPIOs will be set according to the idle value.

If an idle state is not defined, the most recently used value will be left programmed into hardware whenever no access is being made to a device on a child bus.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "i2c-mux-gpio"

i2c-parent — required here #

phandle of the I2C bus that this multiplexer's master-side port is connected to

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

mux-gpios — required here #

list of GPIOs used to control the muxer

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

idle-state — not listed as required here #

Value to set the muxer to when idle. When no value is given, it defaults to the last value used.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

settle-time-us — not listed as required here #

Delay to wait before doing any transfer when a new bus gets selected.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): i2c-mux.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "i2c-parent", "mux-gpios"

Examples (examples) #

i2cmux {
  compatible = "i2c-mux-gpio";
  #address-cells = <1>;
  #size-cells = <0>;
  mux-gpios = <&gpio1 22 0>, <&gpio1 23 0>;
  i2c-parent = <&i2c1>;

  i2c@1 {
    reg = <1>;
    #address-cells = <1>;
    #size-cells = <0>;

    ssd1307: oled@3c {
      compatible = "solomon,ssd1307fb-i2c";
      reg = <0x3c>;
      pwms = <&pwm 4 3000>;
      reset-gpios = <&gpio2 7 1>;
    };
  };

  i2c@3 {
    reg = <3>;
    #address-cells = <1>;
    #size-cells = <0>;

    pca9555: pca9555@20 {
      compatible = "nxp,pca9555";
      gpio-controller;
      #gpio-cells = <2>;
      reg = <0x20>;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Line 53: Should be enough

General Purpose I2C Bus Mux

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/i2c-mux-gpmux.yaml#"

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

Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"

This binding describes an I2C bus multiplexer that uses a mux controller from the mux subsystem to route the I2C signals.

                                  .-----.  .-----.
                                  | dev |  | dev |
    .------------.                '-----'  '-----'
    | SoC        |                   |        |
    |            |          .--------+--------'
    |   .------. |  .------+    child bus A, on MUX value set to 0
    |   | I2C  |-|--| Mux  |
    |   '------' |  '--+---+    child bus B, on MUX value set to 1
    |   .------. |     |    '----------+--------+--------.
    |   | MUX- | |     |               |        |        |
    |   | Ctrl |-|-----+            .-----.  .-----.  .-----.
    |   '------' |                  | dev |  | dev |  | dev |
    '------------'                  '-----'  '-----'  '-----'

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-mux.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "i2c-mux"

i2c-parent — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of the I2C bus that this multiplexer's master-side port is connected to.

mux-controls — required here #

Maximum number of items (maxItems): 1

The mux-controller states are the I2C sub-bus numbers.

mux-locked — not listed as required here #

Value type (type): "boolean"

Explicitly allow unrelated I2C transactions on the parent I2C adapter at these times: - during setup of the multiplexer - between setup of the multiplexer and the child bus I2C transaction - between the child bus I2C transaction and releasing of the multiplexer - during releasing of the multiplexer

However, I2C transactions to devices behind all I2C multiplexers connected to the same parent adapter that this multiplexer is connected to are blocked for the full duration of the complete multiplexed I2C transaction (i.e. including the times covered by the above list). If mux-locked is not present, the multiplexer is assumed to be parent-locked. This means that no unrelated I2C transactions are allowed on the parent I2C adapter for the complete multiplexed I2C transaction. The properties of mux-locked and parent-locked multiplexers are discussed in more detail in Documentation/i2c/i2c-topology.rst.

Required in this object (required): "compatible", "i2c-parent", "mux-controls"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
mux: mux-controller {
    compatible = "gpio-mux";
    #mux-control-cells = <0>;

    mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>,
                <&pioA 1 GPIO_ACTIVE_HIGH>;
};

i2c-mux {
    compatible = "i2c-mux";
    mux-locked;
    i2c-parent = <&i2c1>;

    mux-controls = <&mux>;

    #address-cells = <1>;
    #size-cells = <0>;

    i2c@1 {
        reg = <1>;
        #address-cells = <1>;
        #size-cells = <0>;

        gpio@20 {
            compatible = "nxp,pca9555";
            gpio-controller;
            #gpio-cells = <2>;
            reg = <0x20>;
        };
    };

    i2c@3 {
        reg = <3>;
        #address-cells = <1>;
        #size-cells = <0>;

        gpio@20 {
            compatible = "nxp,pca9555";
            gpio-controller;
            #gpio-cells = <2>;
            reg = <0x20>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

NXP PCA954x I2C and compatible bus switches

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/i2c-mux-pca954x.yaml#"

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

Maintainers (maintainers): "Laurent Pinchart <laurent.pinchart@ideasonboard.com>"

The NXP PCA954x and compatible devices are I2C bus multiplexer/switches that share the same functionality and register layout. The devices usually have 4 or 8 child buses, which are attached to the parent bus by using the SMBus "Send Byte" command.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "maxim,max7356", "maxim,max7357", "maxim,max7358", "maxim,max7367", "maxim,max7368", "maxim,max7369", "nxp,pca9540", "nxp,pca9542", "nxp,pca9543", "nxp,pca9544", "nxp,pca9545", "nxp,pca9546", "nxp,pca9547", "nxp,pca9548", "nxp,pca9846", "nxp,pca9847", "nxp,pca9848", "nxp,pca9849"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "nxp,pca9646"

Item 2

Exact value (const): "nxp,pca9546"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

i2c-mux-idle-disconnect — not listed as required here #

Value type (type): "boolean"

Forces mux to disconnect all children in idle state. This is necessary for example, if there are several multiplexers on the bus and the devices behind them use same I2C addresses.

idle-state — not listed as required here #

if present, overrides i2c-mux-idle-disconnect

Shared schema rule ($ref): /schemas/mux/mux-controller.yaml#/properties/idle-state

vdd-supply — not listed as required here #

A voltage regulator supplying power to the chip. On PCA9846 the regulator supplies power to VDD2 (core logic) and optionally to VDD1.

maxim,isolate-stuck-channel — not listed as required here #

Value type (type): "boolean"

Allows to use non faulty channels while a stuck channel is isolated from the upstream bus. If not set all channels are isolated from the upstream bus until the fault is cleared.

maxim,send-flush-out-sequence — not listed as required here #

Value type (type): "boolean"

Send a flush-out sequence to stuck auxiliary buses automatically after a stuck channel is being detected.

maxim,preconnection-wiggle-test-enable — not listed as required here #

Value type (type): "boolean"

Send a STOP condition to the auxiliary buses when the switch register activates a channel to detect a stuck high fault. On fault the channel is isolated from the upstream bus.

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-mux.yaml#

Rule 2 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "maxim,max7367", "maxim,max7369", "nxp,pca9542", "nxp,pca9543", "nxp,pca9544", "nxp,pca9545"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

false — Not permitted by this property rule.

#interrupt-cells — not listed as required here

false — Not permitted by this property rule.

interrupt-controller — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "maxim,max7357"

When the condition matches (then) #

Properties and child nodes (properties)

maxim,isolate-stuck-channel — not listed as required here

false — Not permitted by this property rule.

maxim,send-flush-out-sequence — not listed as required here

false — Not permitted by this property rule.

maxim,preconnection-wiggle-test-enable — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    i2c-mux@74 {
        compatible = "nxp,pca9545";
        #address-cells = <1>;
        #size-cells = <0>;
        reg = <0x74>;

        vdd-supply = <&p3v3>;

        interrupt-parent = <&ipic>;
        interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
        interrupt-controller;
        #interrupt-cells = <2>;

        i2c@2 {
            #address-cells = <1>;
            #size-cells = <0>;
            reg = <2>;

            eeprom@54 {
                compatible = "atmel,24c08";
                reg = <0x54>;
            };
        };

        i2c@4 {
            #address-cells = <1>;
            #size-cells = <0>;
            reg = <4>;

            rtc@51 {
                compatible = "nxp,pcf8563";
                reg = <0x51>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Pinctrl-based I2C Bus Mux

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/i2c-mux-pinctrl.yaml#"

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

Maintainers (maintainers): "Wolfram Sang <wsa@kernel.org>"

This binding describes an I2C bus multiplexer that uses pin multiplexing to route the I2C signals, and represents the pin multiplexing configuration using the pinctrl device tree bindings.

                               +-----+  +-----+
                               | dev |  | dev |
  +------------------------+   +-----+  +-----+
  | SoC                    |      |        |
  |                   /----|------+--------+
  |   +---+   +------+     | child bus A, on first set of pins
  |   |I2C|---|Pinmux|     |
  |   +---+   +------+     | child bus B, on second set of pins
  |                   \----|------+--------+--------+
  |                        |      |        |        |
  +------------------------+  +-----+  +-----+  +-----+
                              | dev |  | dev |  | dev |
                              +-----+  +-----+  +-----+

For each named state defined in the pinctrl-names property, an I2C child bus will be created. I2C child bus numbers are assigned based on the index into the pinctrl-names property.

The only exception is that no bus will be created for a state named "idle". If such a state is defined, it must be the last entry in pinctrl-names. For example:

  pinctrl-names = "ddc", "pta", "idle"  ->  ddc = bus 0, pta = bus 1
  pinctrl-names = "ddc", "idle", "pta"  ->  Invalid ("idle" not last)
  pinctrl-names = "idle", "ddc", "pta"  ->  Invalid ("idle" not last)

Whenever an access is made to a device on a child bus, the relevant pinctrl state will be programmed into hardware.

If an idle state is defined, whenever an access is not being made to a device on a child bus, the idle pinctrl state will be programmed into hardware.

If an idle state is not defined, the most recently used pinctrl state will be left programmed into hardware whenever no access is being made of a device on a child bus.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "i2c-mux-pinctrl"

i2c-parent — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of the I2C bus that this multiplexer's master-side port is connected to.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): i2c-mux.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "i2c-parent"

Examples (examples) #

i2cmux {
  compatible = "i2c-mux-pinctrl";
  #address-cells = <1>;
  #size-cells = <0>;

  i2c-parent = <&i2c1>;

  pinctrl-names = "ddc", "pta", "idle";
  pinctrl-0 = <&state_i2cmux_ddc>;
  pinctrl-1 = <&state_i2cmux_pta>;
  pinctrl-2 = <&state_i2cmux_idle>;

  i2c@0 {
    reg = <0>;
    #address-cells = <1>;
    #size-cells = <0>;

    eeprom@50 {
      compatible = "atmel,24c02";
      reg = <0x50>;
    };
  };

  i2c@1 {
    reg = <1>;
    #address-cells = <1>;
    #size-cells = <0>;

    eeprom@50 {
      compatible = "atmel,24c02";
      reg = <0x50>;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Common i2c bus multiplexer/switch properties.

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"

An i2c bus multiplexer/switch will have several child busses that are numbered uniquely in a device dependent manner. The nodes for an i2c bus multiplexer/switch will have one child node for each child bus.

For i2c multiplexers/switches that have child nodes that are a mixture of both i2c child busses and other child nodes, the 'i2c-mux' subnode can be used for populating the i2c child busses. If an 'i2c-mux' subnode is present, only subnodes of this will be considered as i2c child busses.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^(i2c-?)?mux"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^i2c@[0-9a-f]+$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

The mux selector sub-bus number for the child I2C bus.

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Examples (examples) #

/*
 * An NXP pca9548 8 channel I2C multiplexer at address 0x70
 * with two NXP pca8574 GPIO expanders attached, one each to
 * ports 3 and 4.
 */
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    i2c-mux@70 {
        compatible = "nxp,pca9548";
        reg = <0x70>;
        #address-cells = <1>;
        #size-cells = <0>;

        i2c@3 {
            #address-cells = <1>;
            #size-cells = <0>;
            reg = <3>;

            gpio@20 {
                compatible = "nxp,pca9555";
                gpio-controller;
                #gpio-cells = <2>;
                reg = <0x20>;
            };
        };
        i2c@4 {
            #address-cells = <1>;
            #size-cells = <0>;
            reg = <4>;

            gpio@20 {
                compatible = "nxp,pca9555";
                gpio-controller;
                #gpio-cells = <2>;
                reg = <0x20>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Freescale MXS Inter IC (I2C) Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx23-i2c", "fsl,imx28-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 #

Allowed values (enum): 100000, 400000

dmas — required here #

Maximum number of items (maxItems): 1

dma-names — required here #

Exact value (const): "rx-tx"

Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@80058000 {
    compatible = "fsl,imx28-i2c";
    reg = <0x80058000 2000>;
    interrupts = <111>;
    clock-frequency = <100000>;
    dmas = <&dma_apbx 6>;
    dma-names = "rx-tx";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Actions Semi Owl I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>"

This I2C controller is found in the Actions Semi Owl SoCs: S500, S700 and S900.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "actions,s500-i2c", "actions,s700-i2c", "actions,s900-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Phandle of the clock feeding the I2C controller.

Minimum number of items (minItems): 1

clock-frequency — not listed as required here #

Desired I2C bus clock frequency in Hz. As only Standard and Fast modes are supported, possible values are 100000 and 400000.

Allowed values (enum): 100000, 400000

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/actions,s900-cmu.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c@e0170000 {
    compatible = "actions,s900-i2c";
    reg = <0xe0170000 0x1000>;
    interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cmu CLK_I2C0>;
    clock-frequency = <100000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 22: Actions Semi S500 compatible SoCs

Line 23: Actions Semi S700 compatible SoCs

Line 24: Actions Semi S900 compatible SoCs

Marvell MMP I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Rob Herring <robh@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Rule 2 #

Condition (if) #

This rule must not match (not)

Required in this object (required): "mrvl,i2c-polling"

When the condition matches (then) #

Required in this object (required): "interrupts"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mrvl,mmp-twsi", "mrvl,pxa-i2c", "marvell,armada-3700-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

resets — not listed as required here #

Minimum number of items (minItems): 1

mrvl,i2c-polling — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Disable interrupt of i2c controller. Polling status register of i2c controller instead.

mrvl,i2c-fast-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Enable fast mode of i2c controller.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "#address-cells", "#size-cells"

Examples (examples) #

#include <dt-bindings/clock/marvell,mmp2.h>
i2c@d4011000 {
    compatible = "mrvl,mmp-twsi";
    reg = <0xd4011000 0x1000>;
    interrupts = <7>;
    clocks = <&soc_clocks MMP2_CLK_TWSI1>;
    mrvl,i2c-fast-mode;
    #address-cells = <1>;
    #size-cells = <0>;
};

Source notes #

Annotations retained from the schema source

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

Rockchip RK3xxx I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

This driver interfaces with the native I2C controller present in Rockchip RK3xxx SoCs.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rockchip,rv1108-i2c"

Rule 2

Exact value (const): "rockchip,rk3066-i2c"

Rule 3

Exact value (const): "rockchip,rk3188-i2c"

Rule 4

Exact value (const): "rockchip,rk3228-i2c"

Rule 5

Exact value (const): "rockchip,rk3288-i2c"

Rule 6

Exact value (const): "rockchip,rk3399-i2c"

Rule 7

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3036-i2c", "rockchip,rk3128-i2c", "rockchip,rk3368-i2c"

Item 2

Exact value (const): "rockchip,rk3288-i2c"

Rule 8

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,px30-i2c", "rockchip,rk3308-i2c", "rockchip,rk3328-i2c", "rockchip,rk3506-i2c", "rockchip,rk3528-i2c", "rockchip,rk3562-i2c", "rockchip,rk3568-i2c", "rockchip,rk3576-i2c", "rockchip,rk3588-i2c", "rockchip,rv1126-i2c"

Item 2

Exact value (const): "rockchip,rk3399-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

For older hardware (rk3066, rk3188, rk3228, rk3288) there is one clock that is used both to derive the functional clock for the device and as the bus clock. For newer hardware (rk3399) this clock is used to derive the functional clock

Item 2

For newer hardware (rk3399) this is the bus clock

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "i2c"

Item 2

Exact value (const): "pclk"

rockchip,grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Required on RK3066, RK3188 the phandle of the syscon node for the general register file (GRF) On those SoCs an alias with the correct I2C bus ID (bit offset in the GRF) is also required.

clock-frequency — not listed as required here #

Default value (default): 100000

SCL frequency to use (in Hz). If omitted, 100kHz is used.

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

Default value (default): 1000

Number of nanoseconds the SCL signal takes to rise (t(r) in I2C specification). If not specified this is assumed to be the maximum the specification allows(1000 ns for Standard-mode, 300 ns for Fast-mode) which might cause slightly slower communication.

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

Default value (default): 300

Number of nanoseconds the SCL signal takes to fall (t(f) in the I2C specification). If not specified this is assumed to be the maximum the specification allows (300 ns) which might cause slightly slower communication.

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

Default value (default): 300

Number of nanoseconds the SDA signal takes to fall (t(f) in the I2C specification). If not specified we will use the SCL value since they are the same in nearly all cases.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,rk3066-i2c", "rockchip,rk3188-i2c"

When the condition matches (then) #

Required in this object (required): "rockchip,grf"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3188-cru-common.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c0: i2c@2002d000 {
  compatible = "rockchip,rk3188-i2c";
  reg = <0x2002d000 0x1000>;
  interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&cru PCLK_I2C0>;
  clock-names = "i2c";
  rockchip,grf = <&grf>;
  i2c-scl-falling-time-ns = <100>;
  i2c-scl-rising-time-ns = <800>;
  #address-cells = <1>;
  #size-cells = <0>;
};

Source notes #

Annotations retained from the schema source

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

Line 19: Everything else is described in the common file

Virtio I2C Adapter

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Viresh Kumar <viresh.kumar@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/virtio/virtio-device.yaml#

Virtio I2C device, see /schemas/virtio/virtio-device.yaml for more details.

Properties and child nodes (properties) #

$nodename — not listed as required here #

Exact value (const): "i2c"

compatible — required here #

Exact value (const): "virtio,device22"

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

virtio@3000 {
    compatible = "virtio,mmio";
    reg = <0x3000 0x100>;
    interrupts = <41>;

    i2c {
        compatible = "virtio,device22";

        #address-cells = <1>;
        #size-cells = <0>;

        light-sensor@20 {
            compatible = "dynaimage,al3320a";
            reg = <0x20>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

IBM FSI-attached I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Eddie James <eajames@linux.ibm.com>"

This I2C controller is an FSI CFAM engine, providing access to a number of I2C busses. Therefore this node will always be a child of an FSI CFAM node.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ibm,i2c-fsi"

reg — required here #

Array item rules (items) #

Item 1

FSI slave address

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^i2c-bus@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

Required in this object (required): "reg"

All of these rules must match (allOf) #

Rule 1

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@1800 {
    compatible = "ibm,i2c-fsi";
    reg = <0x1800 0x400>;
    #address-cells = <1>;
    #size-cells = <0>;

    i2c-bus@0 {
        reg = <0>;
        #address-cells = <1>;
        #size-cells = <0>;
    };

    i2c-bus@1 {
        reg = <1>;
        #address-cells = <1>;
        #size-cells = <0>;

        eeprom@50 {
            compatible = "atmel,24c64";
            reg = <0x50>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Ingenic SoCs I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^i2c@[0-9a-f]+$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "ingenic,jz4770-i2c", "ingenic,x1000-i2c"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ingenic,jz4780-i2c"

Item 2

Exact value (const): "ingenic,jz4770-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-frequency — required here #

Allowed values (enum): 100000, 400000

dmas — required here #

Array item rules (items) #

Item 1

DMA controller phandle and request line for RX

Item 2

DMA controller phandle and request line for TX

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-frequency", "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/ingenic,jz4780-cgu.h>
#include <dt-bindings/dma/jz4780-dma.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c@10054000 {
  compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c";
  #address-cells = <1>;
  #size-cells = <0>;
  reg = <0x10054000 0x1000>;

  interrupts = <56 IRQ_TYPE_LEVEL_LOW>;

  clocks = <&cgu JZ4780_CLK_SMB4>;
  pinctrl-names = "default";
  pinctrl-0 = <&pins_i2c4_data>;

  dmas = <&dma JZ4780_DMA_SMB4_RX 0xffffffff>,
         <&dma JZ4780_DMA_SMB4_TX 0xffffffff>;
  dma-names = "rx", "tx";

  clock-frequency = <400000>;

  rtc@51 {
    compatible = "nxp,pcf8563";
    reg = <0x51>;

    interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Loongson LS2X I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Binbin Zhou <zhoubinbin@loongson.cn>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "loongson,ls2k-i2c", "loongson,ls7a-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

i2c0: i2c@1fe21000 {
    compatible = "loongson,ls2k-i2c";
    reg = <0x1fe21000 0x8>;
    interrupt-parent = <&extioiic>;
    interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
    #address-cells = <1>;
    #size-cells = <0>;

    eeprom@57 {
        compatible = "atmel,24c16";
        reg = <0x57>;
        pagesize = <16>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Marvell MV64XXX I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

Mediatek MT7621/MT7628 I2C master controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Stefan Roese <sr@denx.de>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mediatek,mt7621-i2c"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "i2c"

resets — required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Exact value (const): "i2c"

Required in this object (required): "compatible", "reg", "resets", "#address-cells", "#size-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt7621-clk.h>
#include <dt-bindings/reset/mt7621-reset.h>

i2c: i2c@900 {
  compatible = "mediatek,mt7621-i2c";
  reg = <0x900 0x100>;
  clocks = <&sysc MT7621_CLK_I2C>;
  clock-names = "i2c";
  resets = <&sysc MT7621_RST_I2C>;
  reset-names = "i2c";

  #address-cells = <1>;
  #size-cells = <0>;

  pinctrl-names = "default";
  pinctrl-0 = <&i2c_pins>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Microchip MPFS I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/microchip,corei2c.yaml#"

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

Maintainers (maintainers): "Daire McNamara <daire.mcnamara@microchip.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

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): "microchip,pic64gx-i2c", "microchip,mpfs-i2c"

Item 2

Exact value (const): "microchip,corei2c-rtl-v7"

Rule 2

Exact value (const): "microchip,corei2c-rtl-v7"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Desired I2C bus clock frequency in Hz. As only Standard and Fast modes are supported, possible values are 100000 and 400000.

Allowed values (enum): 100000, 400000

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@2010a000 {
  compatible = "microchip,mpfs-i2c", "microchip,corei2c-rtl-v7";
  reg = <0x2010a000 0x1000>;
  clocks = <&clkcfg 15>;
  interrupt-parent = <&plic>;
  interrupts = <58>;
  clock-frequency = <100000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 21: Microchip PolarFire SoC compatible SoCs

Line 22: Microchip Fabric based i2c IP core

Line 23: Microchip Fabric based i2c IP core

nuvoton NPCM7XX I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

I2C bus controllers of the NPCM series support both master and slave mode. Each controller can switch between master and slave at run time (i.e. IPMB mode). HW FIFO for TX and RX are supported.

Maintainers (maintainers): "Tali Perry <tali.perry1@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,npcm750-i2c", "nuvoton,npcm845-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Reference clock for the I2C bus

clock-frequency — not listed as required here #

Desired I2C bus clock frequency in Hz. If not specified, the default 100 kHz frequency will be used. possible values are 100000, 400000 and 1000000.

Default value (default): 100000

Allowed values (enum): 100000, 400000, 1000000

nuvoton,sys-mgr — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of system manager register node.

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

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)

Exact value (const): "nuvoton,npcm845-i2c"

When the condition matches (then) #

Required in this object (required): "nuvoton,sys-mgr"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c0: i2c@80000 {
    reg = <0x80000 0x1000>;
    clocks = <&clk NPCM7XX_CLK_APB2>;
    clock-frequency = <100000>;
    interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
    compatible = "nuvoton,npcm750-i2c";
    nuvoton,sys-mgr = <&gcr>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

NVIDIA Tegra186 (and later) BPMP I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/nvidia,tegra186-bpmp-i2c.yaml#"

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

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"

In Tegra186 and later, the BPMP (Boot and Power Management Processor) owns certain HW devices, such as the I2C controller for the power management I2C bus. Software running on other CPUs must perform IPC to the BPMP in order to execute transactions on that I2C bus. This binding describes an I2C bus that is accessed in such a fashion.

The BPMP I2C node must be located directly inside the main BPMP node. See ../firmware/nvidia,tegra186-bpmp.yaml for details of the BPMP binding.

This node represents an I2C controller.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvidia,tegra186-bpmp-i2c"

nvidia,bpmp-bus-id — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Indicates the I2C bus number this DT node represents, as defined by the BPMP firmware.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "#address-cells", "#size-cells", "nvidia,bpmp-bus-id"

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra I2C controller driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Tegra20 has 4 generic I2C controller. This can support master and slave mode of I2C communication. The i2c-tegra driver only support master mode of I2C communication. Driver of I2C controller is only compatible with "nvidia,tegra20-i2c".

Exact value (const): "nvidia,tegra20-i2c"

Rule 2

Tegra20 has specific I2C controller called as DVC I2C controller. This only support master mode of I2C communication. Register interface/offset and interrupts handling are different than generic I2C controller. Driver of DVC I2C controller is only compatible with "nvidia,tegra20-i2c-dvc".

Exact value (const): "nvidia,tegra20-i2c-dvc"

Rule 3

Tegra30 has 5 generic I2C controller. This controller is very much similar to Tegra20 I2C controller with additional feature: Continue Transfer Support. This feature helps to implement M_NO_START as per I2C core API transfer flags. Driver of I2C controller is compatible with "nvidia,tegra30-i2c" to enable the continue transfer support. This is also compatible with "nvidia,tegra20-i2c" without continue transfer support.

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra30-i2c"

Item 2

Exact value (const): "nvidia,tegra20-i2c"

Rule 4

Tegra114 has 5 generic I2C controllers. This controller is very much
similar to Tegra30 I2C controller with some hardware modification:
  - Tegra30/Tegra20 I2C controller has 2 clock source called div-clk
    and fast-clk. Tegra114 has only one clock source called as
    div-clk and hence clock mechanism is changed in I2C controller.
  - Tegra30/Tegra20 I2C controller has enabled per packet transfer
    by default and there is no way to disable it. Tegra114 has this
    interrupt disable by default and SW need to enable explicitly.
Due to above changes, Tegra114 I2C driver makes incompatible with
previous hardware driver. Hence, Tegra114 I2C controller is
compatible with "nvidia,tegra114-i2c".

Exact value (const): "nvidia,tegra114-i2c"

Rule 5

Tegra124 has 6 generic I2C controllers. These controllers are very similar to those found on Tegra114 but also contain several hardware improvements and new registers.

Exact value (const): "nvidia,tegra124-i2c"

Rule 6

Tegra210 has 6 generic I2C controllers. These controllers are very similar to those found on Tegra124.

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra210-i2c"

Item 2

Exact value (const): "nvidia,tegra124-i2c"

Rule 7

Tegra210 has one I2C controller that is on host1x bus and is part of the VE power domain and typically used for camera use-cases. This VI I2C controller is mostly compatible with the programming model of the regular I2C controllers with a few exceptions. The I2C registers start at an offset of 0xc00 (instead of 0), registers are 16 bytes apart (rather than 4) and the controller does not support slave mode.

Exact value (const): "nvidia,tegra210-i2c-vi"

Rule 8

Tegra186 has 9 generic I2C controllers, two of which are in the AON (always-on) partition of the SoC. All of these controllers are very similar to those found on Tegra210.

Exact value (const): "nvidia,tegra186-i2c"

Rule 9

Tegra194 has 8 generic I2C controllers, two of which are in the AON (always-on) partition of the SoC. All of these controllers are very similar to those found on Tegra186. However, these controllers have support for 64 KiB transactions whereas earlier chips supported no more than 4 KiB per transactions.

Exact value (const): "nvidia,tegra194-i2c"

Rule 10

Tegra256 has 8 generic I2C controllers. The controllers are similar to the previous generations, but have a different parent clock and hence the timing parameters are configured differently.

Exact value (const): "nvidia,tegra256-i2c"

Rule 11

Tegra264 has 17 generic I2C controllers, two of which are in the AON (always-on) partition of the SoC. In addition to the features from Tegra194, a SW mutex register is added to support use of the same I2C instance across multiple firmwares.

Exact value (const): "nvidia,tegra264-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

resets — not listed as required here #

Array item rules (items) #

Item 1

Module reset. This property is optional for controllers in Tegra194, Tegra234 etc where an internal software reset is available as an alternative.

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "i2c"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Array item rules (items) #

Item 1

DMA channel for the reception FIFO

Item 2

DMA channel for the transmission FIFO

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

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): "nvidia,tegra20-i2c", "nvidia,tegra30-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "div-clk"

Item 2

Exact value (const): "fast-clk"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra114-i2c", "nvidia,tegra210-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "div-clk"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nvidia,tegra210-i2c-vi"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "div-clk"

Item 2

Exact value (const): "slow"

power-domains — not listed as required here

Array item rules (items)

Item 1

phandle to the VENC power domain

When the condition does not match (else) #

Properties and child nodes (properties)

power-domains — not listed as required here

false — Not permitted by this property rule.

Rule 5 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra194-i2c", "nvidia,tegra256-i2c", "nvidia,tegra264-i2c"

When the condition matches (then) #

Required in this object (required): "resets", "reset-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@7000c000 {
    compatible = "nvidia,tegra20-i2c";
    reg = <0x7000c000 0x100>;
    interrupts = <0 38 0x04>;
    clocks = <&tegra_car 12>, <&tegra_car 124>;
    clock-names = "div-clk", "fast-clk";
    resets = <&tegra_car 12>;
    reset-names = "i2c";
    dmas = <&apbdma 16>, <&apbdma 16>;
    dma-names = "rx", "tx";

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

NXP I2C controller for LPC2xxx/178x/18xx/43xx

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Vladimir Zapolskiy <vz@mleia.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,lpc1788-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

the desired I2C bus clock frequency in Hz

Default value (default): 100000

resets — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include "dt-bindings/clock/lpc18xx-ccu.h"

i2c@400a1000 {
    compatible = "nxp,lpc1788-i2c";
    reg = <0x400a1000 0x1000>;
    interrupts = <18>;
    clocks = <&ccu1 CLK_APB1_I2C0>;
    #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

NXP PCA9541 I2C bus master selector

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/nxp,pca9541.yaml#"

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

Maintainers (maintainers): "Peter Rosin <peda@axentia.se>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,pca9541"

reg — required here #

Maximum number of items (maxItems): 1

i2c-arb — required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

I2C arbitration bus node.

Required in this object (required): "compatible", "reg", "i2c-arb"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    i2c-arbitrator@74 {
        compatible = "nxp,pca9541";
        reg = <0x74>;

        i2c-arb {
            #address-cells = <1>;
            #size-cells = <0>;

            eeprom@54 {
                compatible = "atmel,24c08";
                reg = <0x54>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

NXP PNX I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,pnx-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Default value (default): 100000

Required in this object (required): "compatible", "reg", "interrupts", "#address-cells", "#size-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@400a0000 {
    compatible = "nxp,pnx-i2c";
    reg = <0x400a0000 0x100>;
    interrupt-parent = <&mic>;
    interrupts = <51 0>;
    #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)

OpenCores I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Peter Korsgaard <peter@korsgaard.com>", "Andrew Lunn <andrew@lunn.ch>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

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): "sifive,fu740-c000-i2c", "sifive,fu540-c000-i2c"

Item 2

Exact value (const): "sifive,i2c0"

Rule 2

Allowed values (enum): "opencores,i2c-ocores", "aeroflexgaisler,i2cmst"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

clock-frequency property is meant to control the bus frequency for i2c bus
drivers, but it was incorrectly used to specify i2c controller input clock
frequency. So the following rules are set to fix this situation:
- if clock-frequency is present and neither opencores,ip-clock-frequency nor
  clocks are, then clock-frequency specifies i2c controller clock frequency.
  This is to keep backwards compatibility with setups using old DTB. i2c bus
  frequency is fixed at 100 KHz.
- if clocks is present it specifies i2c controller clock. clock-frequency
  property specifies i2c bus frequency.
- if opencores,ip-clock-frequency is present it specifies i2c controller
  clock frequency. clock-frequency property specifies i2c bus frequency.

Default value (default): 100000

reg-io-width — not listed as required here #

io register width in bytes

Allowed values (enum): 1, 2, 4

reg-shift — not listed as required here #

device register offsets are shifted by this value

Default value (default): 0

regstep — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

deprecated, use reg-shift above

Deprecated (deprecated): true

opencores,ip-clock-frequency — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Frequency of the controller clock in Hz. Mutually exclusive with clocks. See the note above.

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "opencores,ip-clock-frequency"

Rule 2 #

Required in this object (required): "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@a0000000 {
  compatible = "opencores,i2c-ocores";
  reg = <0xa0000000 0x8>;
  #address-cells = <1>;
  #size-cells = <0>;
  interrupts = <10>;
  opencores,ip-clock-frequency = <20000000>;

  reg-shift = <0>;	/* 8 bit registers */
  reg-io-width = <1>;	/* 8 bit read/write */
};

i2c@b0000000 {
  compatible = "opencores,i2c-ocores";
  reg = <0xa0000000 0x8>;
  #address-cells = <1>;
  #size-cells = <0>;
  interrupts = <10>;
  clocks = <&osc>;
  clock-frequency = <400000>; /* i2c bus frequency 400 KHz */

  reg-shift = <0>;	/* 8 bit registers */
  reg-io-width = <1>;	/* 8 bit read/write */
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 21: Opencore based IP block FU740-C000 SoC

Line 22: Opencore based IP block FU540-C000 SoC

Qualcomm Camera Control Interface (CCI) I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Loic Poulain <loic.poulain@linaro.org>", "Robert Foss <robert.foss@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "qcom,msm8226-cci", "qcom,msm8953-cci", "qcom,msm8974-cci", "qcom,msm8996-cci"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,msm8916-cci"

Item 2

Exact value (const): "qcom,msm8226-cci"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "qcom,kaanapali-cci", "qcom,qcm2290-cci", "qcom,qcs8300-cci", "qcom,sa8775p-cci", "qcom,sc7280-cci", "qcom,sc8280xp-cci", "qcom,sdm670-cci", "qcom,sdm845-cci", "qcom,sm6350-cci", "qcom,sm8250-cci", "qcom,sm8450-cci", "qcom,sm8550-cci", "qcom,sm8650-cci", "qcom,sm8750-cci", "qcom,x1e80100-cci"

Item 2

Exact value (const): "qcom,msm8996-cci"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 6

clock-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 6

interrupts — required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^i2c-bus@[01]$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here

Default value (default): 100000

Required in this object (required): "compatible", "clock-names", "clocks", "interrupts", "reg"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8996-cci"

When the condition matches (then) #

Required in this object (required): "power-domains"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8226-cci", "qcom,msm8916-cci"

When the condition matches (then) #

Properties and child nodes (properties)

i2c-bus@1 — 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

Exactly one of these rules must match (oneOf)

Rule 1

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8974-cci"

Rule 2

Exact value (const): "qcom,msm8226-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camss_top_ahb"

Item 2

Exact value (const): "cci_ahb"

Item 3

Exact value (const): "cci"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,kaanapali-cci", "qcom,qcm2290-cci", "qcom,qcs8300-cci", "qcom,sm8750-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ahb"

Item 2

Exact value (const): "cci"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8916-cci", "qcom,msm8953-cci"

Rule 2

Exact value (const): "qcom,msm8996-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camss_top_ahb"

Item 2

Exact value (const): "cci_ahb"

Item 3

Exact value (const): "cci"

Item 4

Exact value (const): "camss_ahb"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sdm670-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camnoc_axi"

Item 2

Exact value (const): "soc_ahb"

Item 3

Exact value (const): "cpas_ahb"

Item 4

Exact value (const): "cci"

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sdm845-cci", "qcom,sm6350-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 6

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camnoc_axi"

Item 2

Exact value (const): "soc_ahb"

Item 3

Exact value (const): "slow_ahb_src"

Item 4

Exact value (const): "cpas_ahb"

Item 5

Exact value (const): "cci"

Item 6

Exact value (const): "cci_src"

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sc7280-cci", "qcom,sm8250-cci", "qcom,sm8450-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camnoc_axi"

Item 2

Exact value (const): "slow_ahb_src"

Item 3

Exact value (const): "cpas_ahb"

Item 4

Exact value (const): "cci"

Item 5

Exact value (const): "cci_src"

Rule 9 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sc8280xp-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camnoc_axi"

Item 2

Exact value (const): "slow_ahb_src"

Item 3

Exact value (const): "cpas_ahb"

Item 4

Exact value (const): "cci"

Rule 10 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sa8775p-cci", "qcom,sm8550-cci", "qcom,sm8650-cci", "qcom,x1e80100-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camnoc_axi"

Item 2

Exact value (const): "cpas_ahb"

Item 3

Exact value (const): "cci"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,camcc-sdm845.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

cci@ac4a000 {
    reg = <0x0ac4a000 0x4000>;
    compatible = "qcom,sdm845-cci", "qcom,msm8996-cci";
    #address-cells = <1>;
    #size-cells = <0>;

    interrupts = <GIC_SPI 460 IRQ_TYPE_EDGE_RISING>;
    power-domains = <&clock_camcc TITAN_TOP_GDSC>;

    clocks = <&clock_camcc CAM_CC_CAMNOC_AXI_CLK>,
             <&clock_camcc CAM_CC_SOC_AHB_CLK>,
             <&clock_camcc CAM_CC_SLOW_AHB_CLK_SRC>,
             <&clock_camcc CAM_CC_CPAS_AHB_CLK>,
             <&clock_camcc CAM_CC_CCI_CLK>,
             <&clock_camcc CAM_CC_CCI_CLK_SRC>;
    clock-names = "camnoc_axi",
                  "soc_ahb",
                  "slow_ahb_src",
                  "cpas_ahb",
                  "cci",
                  "cci_src";

    assigned-clocks = <&clock_camcc CAM_CC_CAMNOC_AXI_CLK>,
                      <&clock_camcc CAM_CC_CCI_CLK>;
    assigned-clock-rates = <80000000>,
                           <37500000>;

    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&cci0_default &cci1_default>;
    pinctrl-1 = <&cci0_sleep &cci1_sleep>;

    i2c-bus@0 {
        reg = <0>;
        clock-frequency = <1000000>;
        #address-cells = <1>;
        #size-cells = <0>;

        camera@10 {
            compatible = "ovti,ov8856";
            reg = <0x10>;

            reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
            pinctrl-names = "default";
            pinctrl-0 = <&cam0_default>;

            clocks = <&clock_camcc CAM_CC_MCLK0_CLK>;
            clock-names = "xvclk";
            assigned-clocks = <&clock_camcc CAM_CC_MCLK0_CLK>;
            assigned-clock-rates = <19200000>;

            dovdd-supply = <&vreg_lvs1a_1p8>;
            avdd-supply = <&cam0_avdd_2v8>;
            dvdd-supply = <&cam0_dvdd_1v2>;

            port {
                ov8856_ep: endpoint {
                    link-frequencies = /bits/ 64 <360000000 180000000>;
                    data-lanes = <1 2 3 4>;
                    remote-endpoint = <&csiphy0_ep>;
                };
            };
        };
    };

    cci_i2c1: i2c-bus@1 {
        reg = <1>;
        clock-frequency = <1000000>;
        #address-cells = <1>;
        #size-cells = <0>;

        camera@60 {
            compatible = "ovti,ov7251";
            reg = <0x60>;

            enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
            pinctrl-names = "default";
            pinctrl-0 = <&cam3_default>;

            clocks = <&clock_camcc CAM_CC_MCLK3_CLK>;
            clock-names = "xclk";
            assigned-clocks = <&clock_camcc CAM_CC_MCLK3_CLK>;
            assigned-clock-rates = <24000000>;

            vdddo-supply = <&vreg_lvs1a_1p8>;
            vdda-supply = <&cam3_avdd_2v8>;

            port {
                ov7251_ep: endpoint {
                    data-lanes = <0>;
                    link-frequencies = /bits/ 64 <240000000 319200000>;
                    remote-endpoint = <&csiphy3_ep>;
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Line 25: CCI v1

Line 44: CCI v2

Qualcomm Geni based QUP I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Andy Gross <agross@kernel.org>", "Bjorn Andersson <bjorn.andersson@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,geni-i2c", "qcom,geni-i2c-master-hub"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-frequency — not listed as required here #

Default value (default): 100000

dmas — not listed as required here #

Maximum number of items (maxItems): 2

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

interconnects — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

interconnect-names — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

interrupts — required here #

Maximum number of items (maxItems): 1

operating-points-v2 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-0 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-1 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "sleep"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

required-opps — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "interrupts", "clocks", "clock-names", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/soc/qcom/qcom,se-common-props.yaml#

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,geni-i2c-master-hub"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "se"

Item 2

Exact value (const): "core"

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.

interconnects — not listed as required here

Maximum number of items (maxItems): 2

interconnect-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "qup-core"

Item 2

Exact value (const): "qup-config"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Exact value (const): "se"

interconnects — not listed as required here

Minimum number of items (minItems): 3

interconnect-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "qup-core"

Item 2

Exact value (const): "qup-config"

Item 3

Exact value (const): "qup-memory"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,gcc-sc7180.h>
#include <dt-bindings/interconnect/qcom,sc7180.h>
#include <dt-bindings/power/qcom-rpmpd.h>

i2c@88000 {
    compatible = "qcom,geni-i2c";
    reg = <0x00880000 0x4000>;
    clock-names = "se";
    clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>;
    pinctrl-names = "default";
    pinctrl-0 = <&qup_i2c0_default>;
    interrupts = <GIC_SPI 601 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;
    interconnects = <&qup_virt MASTER_QUP_CORE_0 0 &qup_virt SLAVE_QUP_CORE_0 0>,
                    <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_QUP_0 0>,
                    <&aggre1_noc MASTER_QUP_0 0 &mc_virt SLAVE_EBI1 0>;
    interconnect-names = "qup-core", "qup-config", "qup-memory";
    power-domains = <&rpmhpd SC7180_CX>;
    required-opps = <&rpmhpd_opp_low_svs>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Qualcomm Universal Peripheral (QUP) I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Andy Gross <agross@kernel.org>", "Bjorn Andersson <bjorn.andersson@linaro.org>", "Krzysztof Kozlowski <krzk@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,i2c-qup-v1.1.1", "qcom,i2c-qup-v2.1.1", "qcom,i2c-qup-v2.2.1"

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "iface"

clock-frequency — not listed as required here #

Default value (default): 100000

dmas — not listed as required here #

Maximum number of items (maxItems): 2

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

interconnects — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

pinctrl-0 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-1 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "sleep"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

required-opps — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clock-names", "clocks", "interrupts", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,gcc-msm8998.h>
#include <dt-bindings/interconnect/qcom,msm8996.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/qcom-rpmpd.h>

i2c@c175000 {
    compatible = "qcom,i2c-qup-v2.2.1";
    reg = <0x0c175000 0x600>;
    interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;

    clocks = <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>,
             <&gcc GCC_BLSP1_AHB_CLK>;
    clock-names = "core", "iface";
    dmas = <&blsp1_dma 6>, <&blsp1_dma 7>;
    dma-names = "tx", "rx";
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&blsp1_i2c1_default>;
    pinctrl-1 = <&blsp1_i2c1_sleep>;
    power-domains = <&rpmpd MSM8909_VDDCX>;
    required-opps = <&rpmpd_opp_svs_krait>;
    interconnects = <&pnoc MASTER_BLSP_1 &bimc SLAVE_EBI_CH0>;
    clock-frequency = <400000>;

    #address-cells = <1>;
    #size-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Line 20: for 8660, 8960 and 8064

Line 21: for 8974 v1

Line 22: for 8974 v2 and later

Realtek RTL I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Chris Packham <chris.packham@alliedtelesis.co.nz>"

RTL9300 SoCs have two I2C controllers. Each of these has an SCL line (which if not-used for SCL can be a GPIO). There are 8 common SDA lines that can be assigned to either I2C controller. RTL9310 SoCs have equal capabilities but support 12 common SDA lines which can be assigned to either I2C controller.

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): "realtek,rtl9302b-i2c", "realtek,rtl9302c-i2c", "realtek,rtl9303-i2c"

Item 2

Exact value (const): "realtek,rtl9301-i2c"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "realtek,rtl9311-i2c", "realtek,rtl9312-i2c", "realtek,rtl9313-i2c"

Item 2

Exact value (const): "realtek,rtl9310-i2c"

Rule 3

Allowed values (enum): "realtek,rtl9301-i2c", "realtek,rtl9310-i2c"

reg — required here #

Array item rules (items) #

Item 1

Register offset and size of this I2C controller.

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

realtek,scl — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The SCL line number of this I2C controller.

Allowed values (enum): 0, 1

Properties matching a name pattern (patternProperties) #

^i2c@[0-9ab]$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — required here

The SDA line number associated with the I2C bus.

Maximum number of items (maxItems): 1

Required in this object (required): "reg"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "realtek,rtl9310-i2c"

When the condition matches (then) #

Required in this object (required): "realtek,scl"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "realtek,rtl9301-i2c"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^i2c@[89ab]$ — name matches this regular expression

false — Not permitted by this property rule.

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@36c {
  compatible = "realtek,rtl9301-i2c";
  reg = <0x36c 0x14>;
  #address-cells = <1>;
  #size-cells = <0>;

  i2c@2 {
    reg = <2>;
    #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)

Renesas EMMA Mobile EV2 IIC Interface

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/renesas,iic-emev2.yaml#"

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

Maintainers (maintainers): "Wolfram Sang <wsa+renesas@sang-engineering.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "renesas,iic-emev2"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "sclk"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "#address-cells", "#size-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

iic0: i2c@e0070000 {
    compatible = "renesas,iic-emev2";
    reg = <0xe0070000 0x28>;
    interrupts = <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>;
    clocks = <&iic0_sclk>;
    clock-names = "sclk";
    #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)

Renesas R-Car I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

Renesas RZ/A and RZ/G2L I2C Bus Interface (RIIC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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 here

Rule 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 here

Maximum number of items (maxItems): 4

interrupt-names — not listed as required here

Maximum 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 here

Minimum number of items (minItems): 8

interrupt-names — not listed as required here

Minimum number of items (minItems): 8

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,riic-r9a07g043", "renesas,riic-r9a07g044", "renesas,riic-r9a07g054", "renesas,riic-r9a09g057"

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/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

Renesas R-Mobile I2C Bus Interface (IIC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

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,iic-r8a7740", "renesas,iic-sh73a0"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Array 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 here

Array item rules (items)

Item 1

Single combined interrupt

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-iic", "renesas,rcar-gen3-iic"

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/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

Renesas RZ/V2M I2C Bus Interface

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/renesas,rzv2m.yaml#"

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

Maintainers (maintainers): "Fabrizio Castro <fabrizio.castro.jz@renesas.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,r9a09g011-i2c"

Item 2

Exact value (const): "renesas,rzv2m-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

Data transmission/reception interrupt

Item 2

Status interrupt

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tia"

Item 2

Exact value (const): "tis"

clock-frequency — not listed as required here #

Default value (default): 100000

Allowed values (enum): 100000, 400000

Desired I2C bus clock frequency in Hz.

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "power-domains", "resets", "#address-cells", "#size-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r9a09g011-cpg.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

i2c0: i2c@a4030000 {
    compatible = "renesas,r9a09g011-i2c", "renesas,rzv2m-i2c";
    reg = <0xa4030000 0x80>;
    interrupts = <GIC_SPI 232 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 236 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "tia", "tis";
    clocks = <&cpg CPG_MOD R9A09G011_IIC_PCLK0>;
    resets = <&cpg R9A09G011_IIC_GPA_PRESETN>;
    power-domains = <&cpg>;
    clock-frequency = <100000>;
    #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 19: RZ/V2M

Samsung S3C/S5P/Exynos SoC I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "samsung,s3c2440-i2c", "samsung,s3c2440-hdmiphy-i2c", "samsung,exynos5-sata-phy-i2c"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos7870-i2c", "samsung,exynos7885-i2c", "samsung,exynos850-i2c"

Item 2

Exact value (const): "samsung,s3c2440-i2c"

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "i2c"

gpios — not listed as required here #

The order of the GPIOs should be the following:: <SDA, SCL>. The GPIO specifier depends on the gpio controller. Required in all cases except for "samsung,s3c2440-hdmiphy-i2c" whose input/output lines are permanently wired to the respective client. This property is deprecated. Use "pinctrl-0" and "pinctrl-names" instead.

Deprecated (deprecated): true

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

samsung,i2c-max-bus-freq — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Desired frequency in Hz of the bus.

Default value (default): 100000

samsung,i2c-sda-delay — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Delay (in ns) applied to data line (SDA) edges.

Default value (default): 0

samsung,i2c-slave-addr — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Slave address in multi-master environment.

Default value (default): 0

samsung,sysreg-phandle — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Pandle to syscon used to control the system registers.

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

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): "samsung,s3c2440-hdmiphy-i2c", "samsung,exynos5-sata-phy-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

gpios — 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): "samsung,s3c2440-i2c", "samsung,s3c2440-hdmiphy-i2c"

When the condition matches (then) #

Required in this object (required): "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos5250.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

i2c@12c60000 {
    compatible = "samsung,s3c2440-i2c";
    reg = <0x12C60000 0x100>;
    interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;
    clocks = <&clock CLK_I2C0>;
    clock-names = "i2c";
    pinctrl-names = "default";
    pinctrl-0 = <&i2c0_bus>;

    samsung,sysreg-phandle = <&sysreg_system_controller>;
    samsung,i2c-sda-delay = <100>;
    samsung,i2c-max-bus-freq = <20000>;
    samsung,i2c-slave-addr = <0x66>;

    eeprom@50 {
        compatible = "samsung,s524ad0xd1", "atmel,24c128";
        reg = <0x50>;
    };
};

i2c@12ce0000 {
    compatible = "samsung,s3c2440-hdmiphy-i2c";
    reg = <0x12CE0000 0x1000>;
    interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;
    clocks = <&clock CLK_I2C_HDMI>;
    clock-names = "i2c";

    samsung,i2c-sda-delay = <100>;
    samsung,i2c-max-bus-freq = <66000>;

    phy-i2c@38 {
        compatible = "samsung,exynos4212-hdmiphy";
        reg = <0x38>;
    };
};

i2c@121d0000 {
    compatible = "samsung,exynos5-sata-phy-i2c";
    reg = <0x121D0000 0x100>;
    #address-cells = <1>;
    #size-cells = <0>;
    clocks = <&clock CLK_SATA_PHYI2C>;
    clock-names = "i2c";

    samsung,i2c-sda-delay = <100>;
    samsung,i2c-max-bus-freq = <40000>;

    phy-i2c@38 {
        compatible = "samsung,exynos-sataphy-i2c";
        reg = <0x38>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 17: For s3c2440-like I2C used inside HDMIPHY block found on several SoCs:

Line 19: For s3c2440-like I2C used as a host to SATA PHY controller on an

Line 20: internal bus:

CP2112 HID USB to SMBus/I2C Bridge

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/silabs,cp2112.yaml#"

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

Maintainers (maintainers): "Danny Kaehn <danny.kaehn@plexus.com>"

The CP2112 is a USB HID device which includes an integrated I2C controller and 8 GPIO pins. Its GPIO pins can each be configured as inputs, open-drain outputs, or push-pull outputs.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "usb10c4,ea90"

reg — required here #

Maximum number of items (maxItems): 1

The USB port number

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — not listed as required here #

Exact value (const): 2

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

i2c — not listed as required here #

The SMBus/I2C controller node for the CP2112

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

clock-frequency — not listed as required here

Minimum value (minimum): 10000

Default value (default): 100000

Maximum value (maximum): 400000

Properties matching a name pattern (patternProperties) #

-hog(-[0-9]+)?$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>

usb {
    #address-cells = <1>;
    #size-cells = <0>;

    cp2112: device@1 {
        compatible = "usb10c4,ea90";
        reg = <1>;

        gpio-controller;
        interrupt-controller;
        #interrupt-cells = <2>;
        #gpio-cells = <2>;
        gpio-line-names = "CP2112_SDA", "CP2112_SCL", "TEST2",
                          "TEST3","TEST4", "TEST5", "TEST6";

        fan-rst-hog {
            gpio-hog;
            gpios = <7 GPIO_ACTIVE_HIGH>;
            output-high;
            line-name = "FAN_RST";
        };

        i2c {
            #address-cells = <1>;
            #size-cells = <0>;
            sda-gpios = <&cp2112 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
            scl-gpios = <&cp2112 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;

            temp@48 {
                compatible = "national,lm75";
                reg = <0x48>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Synopsys DesignWare APB I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Mika Westerberg <mika.westerberg@linux.intel.com>"

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

This rule must not match (not)

Rule for matching array elements (contains)

Exact value (const): "mscc,ocelot-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Generic Synopsys DesignWare I2C controller

Exact value (const): "snps,designware-i2c"

Rule 2

Renesas RZ/N1D I2C controller

Array item rules (items)

Item 1

Exact value (const): "renesas,r9a06g032-i2c"

Item 2

Exact value (const): "renesas,rzn1-i2c"

Item 3

Exact value (const): "snps,designware-i2c"

Rule 3

Baikal-T1 SoC System I2C controller

Exact value (const): "baikal,bt1-sys-i2c"

Rule 4

Mobileye EyeQ DesignWare I2C controller

Array item rules (items)

Item 1

Allowed values (enum): "mobileye,eyeq7h-i2c"

Item 2

Exact value (const): "mobileye,eyeq6lplus-i2c"

Item 3

Exact value (const): "snps,designware-i2c"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "mobileye,eyeq6lplus-i2c", "mscc,ocelot-i2c", "sophgo,sg2044-i2c", "thead,th1520-i2c"

Item 2

Exact value (const): "snps,designware-i2c"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

DW APB I2C controller memory mapped registers

Item 2

ICPU_CFG:TWI_DELAY registers to setup the SDA hold time. This registers are specific to the Ocelot I2C-controller.

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

I2C controller reference clock source

Item 2

APB interface clock source

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "ref"

Item 2

Exact value (const): "pclk"

resets — not listed as required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Desired I2C bus clock frequency in Hz

Allowed values (enum): 100000, 400000, 1000000, 3400000

Default value (default): 400000

i2c-sda-hold-time-ns — not listed as required here #

The property should contain the SDA hold time in nanoseconds. This option is only supported in hardware blocks version 1.11a or newer or on Microsemi SoCs.

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

The property should contain the SCL falling time in nanoseconds. This value is used to compute the tLOW period.

Default value (default): 300

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

The property should contain the SDA falling time in nanoseconds. This value is used to compute the tHIGH period.

Default value (default): 300

dmas — not listed as required here #

Array item rules (items) #

Item 1

TX DMA Channel

Item 2

RX DMA Channel

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

snps,bus-capacitance-pf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

This property indicates the bus capacitance in picofarads (pF). This value is used to compute the tHIGH and tLOW periods for high speed mode.

Allowed values (enum): 100, 400

Default value (default): 100

snps,clk-freq-optimized — not listed as required here #

This property indicates whether the hardware reduce its clock frequency by reducing the internal latency required to generate the high period and low period of SCL line.

Value type (type): "boolean"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

Examples (examples) #

i2c@f0000 {
  compatible = "snps,designware-i2c";
  reg = <0xf0000 0x1000>;
  interrupts = <11>;
  clock-frequency = <400000>;
};
i2c@1120000 {
  compatible = "snps,designware-i2c";
  reg = <0x1120000 0x1000>;
  interrupts = <12 1>;
  clock-frequency = <400000>;
  i2c-sda-hold-time-ns = <300>;
  i2c-sda-falling-time-ns = <300>;
  i2c-scl-falling-time-ns = <300>;
  snps,bus-capacitance-pf = <400>;
  snps,clk-freq-optimized;
};
i2c@2000 {
  compatible = "snps,designware-i2c";
  reg = <0x2000 0x100>;
  #address-cells = <1>;
  #size-cells = <0>;
  clock-frequency = <400000>;
  clocks = <&i2cclk>;
  interrupts = <0>;

  eeprom@64 {
    compatible = "atmel,24c02";
    reg = <0x64>;
  };
};
i2c@100400 {
  compatible = "mscc,ocelot-i2c", "snps,designware-i2c";
  reg = <0x100400 0x100>, <0x198 0x8>;
  pinctrl-0 = <&i2c_pins>;
  pinctrl-names = "default";
  interrupts = <8>;
  clocks = <&ahb_clk>;
};

Source notes #

Annotations retained from the schema source

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

Line 32: RZ/N1D

Line 33: RZ/N1

Socionext SynQuacer I2C Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Ard Biesheuvel <ardb@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "socionext,synquacer-i2c"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "pclk"

clock-frequency — not listed as required here #

Minimum value (minimum): 100000

Maximum value (maximum): 400000

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

i2c@51210000 {
    compatible = "socionext,synquacer-i2c";
    reg = <0x51210000 0x1000>;
    interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;
    clock-names = "pclk";
    clocks = <&clk_i2c>;
    clock-frequency = <400000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

UniPhier I2C controller (FIFO-builtin)

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/socionext,uniphier-fi2c.yaml#"

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

Maintainers (maintainers): "Masahiro Yamada <yamada.masahiro@socionext.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "socionext,uniphier-fi2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Minimum value (minimum): 100000

Maximum value (maximum): 400000

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "interrupts", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c0: i2c@58780000 {
    compatible = "socionext,uniphier-fi2c";
    reg = <0x58780000 0x80>;
    #address-cells = <1>;
    #size-cells = <0>;
    interrupts = <0 41 4>;
    clocks = <&i2c_clk>;
    clock-frequency = <100000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

UniPhier I2C controller (FIFO-less)

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Masahiro Yamada <yamada.masahiro@socionext.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "socionext,uniphier-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Minimum value (minimum): 100000

Maximum value (maximum): 400000

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "interrupts", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c0: i2c@58400000 {
    compatible = "socionext,uniphier-i2c";
    reg = <0x58400000 0x40>;
    #address-cells = <1>;
    #size-cells = <0>;
    interrupts = <0 41 1>;
    clocks = <&i2c_clk>;
    clock-frequency = <100000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

I2C controller embedded in SpacemiT's K1 SoC

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Troy Mitchell <troymitchell988@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "spacemit,k1-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

I2C Functional Clock

Item 2

APB Bus Clock

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "func"

Item 2

Exact value (const): "bus"

clock-frequency — not listed as required here #

K1 support three different modes which running different frequencies standard speed mode: up to 100000 (100Hz) fast speed mode : up to 400000 (400Hz) high speed mode : up to 3300000 (3.3Mhz)

Default value (default): 400000

Maximum value (maximum): 3300000

resets — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c@d4010800 {
    compatible = "spacemit,k1-i2c";
    reg = <0xd4010800 0x38>;
    interrupt-parent = <&plic>;
    interrupts = <36>;
    clocks = <&ccu 32>, <&ccu 84>;
    clock-names = "func", "bus";
    clock-frequency = <100000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Spreadtrum SC9860 I2C controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sprd,sc9860-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

I2C clock

Item 2

I2C source (parent) clock

Item 3

I2C module enable clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "i2c"

Item 2

Exact value (const): "source"

Item 3

Exact value (const): "enable"

clock-frequency — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "clock-frequency"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c@70500000 {
  compatible = "sprd,sc9860-i2c";
  reg = <0x70500000 0x1000>;
  interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&clk_i2c3>, <&ext_26m>, <&clk_ap_apb_gates 11>;
  clock-names = "i2c", "source", "enable";
  clock-frequency = <400000>;
  #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

ST Microelectronics Nomadik I2C

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

The Nomadik I2C host controller began its life in the ST Microelectronics STn8800 SoC, and was then inherited into STn8810 and STn8815. It was part of the prototype STn8500 which then became ST-Ericsson DB8500 after the merge of these two companies wireless divisions.

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "st,nomadik-i2c", "mobileye,eyeq5-i2c", "mobileye,eyeq6h-i2c"

Required in this object (required): "compatible"

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): "st,nomadik-i2c", "mobileye,eyeq5-i2c", "mobileye,eyeq6h-i2c"

Item 2

Exact value (const): "arm,primecell"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "stericsson,db8500-i2c"

Item 2

Exact value (const): "st,nomadik-i2c"

Item 3

Exact value (const): "arm,primecell"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "apb_pclk"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "i2cclk"

Item 2

Exact value (const): "apb_pclk"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Minimum value (minimum): 1

Maximum value (maximum): 3400000

mobileye,olb — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

Phandle to OLB system controller node.

Item 2

Platform-wide controller ID (integer starting from zero).

The phandle pointing to OLB system controller node, with the I2C controller index.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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)

Exact value (const): "mobileye,eyeq5-i2c"

When the condition matches (then) #

Required in this object (required): "mobileye,olb"

When the condition does not match (else) #

Properties and child nodes (properties)

mobileye,olb — not listed as required here

false — Not permitted by this property rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/stericsson,db8500-prcc-reset.h>
#include <dt-bindings/arm/ux500_pm_domains.h>
i2c@80004000 {
  compatible = "stericsson,db8500-i2c", "st,nomadik-i2c", "arm,primecell";
  reg = <0x80004000 0x1000>;
  interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;

  #address-cells = <1>;
  #size-cells = <0>;

  clock-frequency = <400000>;
  clocks = <&prcc_kclk 3 3>, <&prcc_pclk 3 3>;
  clock-names = "i2cclk", "apb_pclk";
  power-domains = <&pm_domains DOMAIN_VAPE>;
  resets = <&prcc_reset DB8500_PRCC_3 DB8500_PRCC_3_RESET_I2C0>;
};

i2c@101f8000 {
  compatible = "st,nomadik-i2c", "arm,primecell";
  reg = <0x101f8000 0x1000>;
  interrupt-parent = <&vica>;
  interrupts = <20>;
  clock-frequency = <100000>;
  #address-cells = <1>;
  #size-cells = <0>;
  clocks = <&i2c0clk>, <&pclki2c0>;
  clock-names = "mclk", "apb_pclk";
};
#include <dt-bindings/interrupt-controller/mips-gic.h>
i2c@300000 {
  compatible = "mobileye,eyeq5-i2c", "arm,primecell";
  reg = <0x300000 0x1000>;
  interrupt-parent = <&gic>;
  interrupts = <GIC_SHARED 1 IRQ_TYPE_LEVEL_HIGH>;
  clock-frequency = <400000>;
  #address-cells = <1>;
  #size-cells = <0>;
  clocks = <&i2c_ser_clk>, <&i2c_clk>;
  clock-names = "i2cclk", "apb_pclk";
  mobileye,olb = <&olb 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 17: Need a custom select here or 'arm,primecell' will match on lots of nodes

Line 54: Clock name in STn8815

Line 58: Clock name in DB8500 or EyeQ

I2C controller embedded in STMicroelectronics STi platform

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Patrice Chotard <patrice.chotard@foss.st.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "st,comms-ssc-i2c", "st,comms-ssc4-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Allowed values (enum): 100000, 400000

Default value (default): 100000

st,i2c-min-scl-pulse-width-us — not listed as required here #

The minimum valid SCL pulse width that is allowed through the deglitch circuit. In units of us.

st,i2c-min-sda-pulse-width-us — not listed as required here #

The minimum valid SDA pulse width that is allowed through the deglitch circuit. In units of us.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stih407-clks.h>
i2c@fed40000 {
    compatible = "st,comms-ssc4-i2c";
    reg = <0xfed40000 0x110>;
    interrupts =  <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clk_s_a0_ls CLK_ICN_REG>;
    clock-names = "ssc";
    clock-frequency = <400000>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_i2c0_default>;
    st,i2c-min-scl-pulse-width-us = <0>;
    st,i2c-min-sda-pulse-width-us = <5>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

I2C controller embedded in STMicroelectronics STM32 I2C platform

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>"

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): "st,stm32f7-i2c", "st,stm32mp13-i2c", "st,stm32mp15-i2c", "st,stm32mp25-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

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

Default value (default): 25

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

Default value (default): 10

When the condition does not match (else) #

Properties and child nodes (properties)

st,syscfg-fmp — 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): "st,stm32f4-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

clock-frequency — not listed as required here

Allowed values (enum): 100000, 400000

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "st,stm32f4-i2c", "st,stm32f7-i2c", "st,stm32mp13-i2c", "st,stm32mp15-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 2

interrupt-names — not listed as required here

Minimum number of items (minItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here

Maximum number of items (maxItems): 1

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "st,stm32f4-i2c", "st,stm32f7-i2c", "st,stm32mp13-i2c", "st,stm32mp15-i2c", "st,stm32mp25-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

interrupt ID for I2C event

Item 2

interrupt ID for I2C error

Minimum number of items (minItems): 1

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "event"

Item 2

Exact value (const): "error"

Minimum number of items (minItems): 1

resets — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Array item rules (items) #

Item 1

RX DMA Channel phandle

Item 2

TX DMA Channel phandle

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

clock-frequency — not listed as required here #

Desired I2C bus clock frequency in Hz. If not specified, the default 100 kHz frequency will be used. For STM32F7, STM32H7 and STM32MP1 SoCs, if timing parameters match, the bus clock frequency can be from 1Hz to 1MHz.

Default value (default): 100000

Minimum value (minimum): 1

Maximum value (maximum): 1000000

st,syscfg-fmp — not listed as required here #

Use to set Fast Mode Plus bit within SYSCFG when Fast Mode Plus speed is selected by slave.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to syscfg

Item 2

register offset within syscfg

Item 3

register bitmask for FMP bit

wakeup-source — not listed as required here #

true — No constraints added by this property rule.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

access-controllers — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/mfd/stm32f7-rcc.h>
#include <dt-bindings/clock/stm32fx-clock.h>
//Example 1 (with st,stm32f4-i2c compatible)
i2c@40005400 {
    compatible = "st,stm32f4-i2c";
    reg = <0x40005400 0x400>;
    interrupts = <31>,
                 <32>;
    resets = <&rcc 277>;
    clocks = <&rcc 0 149>;
    #address-cells = <1>;
    #size-cells = <0>;
};
#include <dt-bindings/mfd/stm32f7-rcc.h>
#include <dt-bindings/clock/stm32fx-clock.h>
//Example 2 (with st,stm32f7-i2c compatible)
i2c@40005800 {
    compatible = "st,stm32f7-i2c";
    reg = <0x40005800 0x400>;
    interrupts = <31>,
                 <32>;
    resets = <&rcc STM32F7_APB1_RESET(I2C1)>;
    clocks = <&rcc 1 CLK_I2C1>;
    #address-cells = <1>;
    #size-cells = <0>;
};
#include <dt-bindings/mfd/stm32f7-rcc.h>
#include <dt-bindings/clock/stm32fx-clock.h>
//Example 3 (with st,stm32mp15-i2c compatible on stm32mp)
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>
i2c@40013000 {
    compatible = "st,stm32mp15-i2c";
    reg = <0x40013000 0x400>;
    interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&rcc I2C2_K>;
    resets = <&rcc I2C2_R>;
    i2c-scl-rising-time-ns = <185>;
    i2c-scl-falling-time-ns = <20>;
    st,syscfg-fmp = <&syscfg 0x4 0x2>;
    #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)

I2C controllers on TI's OMAP and K3 SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Vignesh Raghavendra <vigneshr@ti.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "ti,omap2420-i2c", "ti,omap2430-i2c", "ti,omap3-i2c", "ti,omap4-i2c"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ti,am4372-i2c", "ti,am64-i2c", "ti,am654-i2c", "ti,j721e-i2c"

Item 2

Exact value (const): "ti,omap4-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "fck"

power-domains — not listed as required here #

true — No constraints added by this property rule.

ti,hwmods — not listed as required here #

Must be "i2c<n>", n being the instance number (1-based). This property is applicable only on legacy platforms mainly omap2/3 and ti81xx and should not be used on other platforms.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Deprecated (deprecated): true

mux-states — not listed as required here #

mux controller node to route the I2C signals from SoC to clients.

Maximum number of items (maxItems): 1

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

Allowed values (enum): "ti,omap2420-i2c", "ti,omap2430-i2c", "ti,omap3-i2c", "ti,omap4-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

ti,hwmods — not listed as required here

Array item rules (items)

Item 1

String pattern (pattern): "^i2c([1-9])$"

When the condition does not match (else) #

Properties and child nodes (properties)

ti,hwmods — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

main_i2c0: i2c@2000000 {
    compatible = "ti,j721e-i2c", "ti,omap4-i2c";
    reg = <0x2000000 0x100>;
    interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;
    mux-states = <&i2c_mux 1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Theobroma Systems Mule I2C multiplexer

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/tsd,mule-i2c-mux.yaml#"

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

Maintainers (maintainers): "Farouk Bouabid <farouk.bouabid@cherry.de>", "Quentin Schulz <quentin.schulz@cherry.de>"

Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among which devices that are reachable through an I2C-mux. The devices on the mux can be selected by writing the appropriate device number to an I2C config register.

    +--------------------------------------------------+
    | Mule                                             |
0x18|    +---------------+                             |
-------->|Config register|----+                        |
    |    +---------------+    |                        |
    |                         V_                       |
    |                        |  \          +--------+  |
    |                        |   \-------->| dev #0 |  |
    |                        |   |         +--------+  |
0x6f|                        | M |-------->| dev #1 |  |
---------------------------->| U |         +--------+  |
    |                        | X |-------->| dev #2 |  |
    |                        |   |         +--------+  |
    |                        |   /-------->| dev #3 |  |
    |                        |__/          +--------+  |
    +--------------------------------------------------+

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-mux.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "tsd,mule-i2c-mux"

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c-mux {
    compatible = "tsd,mule-i2c-mux";
    #address-cells = <1>;
    #size-cells = <0>;

    i2c@0 {
        reg = <0x0>;
        #address-cells = <1>;
        #size-cells = <0>;

        rtc@6f {
            compatible = "isil,isl1208";
            reg = <0x6f>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

I2C Controller on WonderMedia WM8505 and related SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

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

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

Maintainers (maintainers): "Alexey Charkov <alchark@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "wm,wm8505-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

Allowed values (enum): 100000, 400000

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c_0: i2c@d8280000 {
    compatible = "wm,wm8505-i2c";
    reg = <0xd8280000 0x1000>;
    interrupts = <19>;
    clocks = <&clki2c0>;
    clock-frequency = <400000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Xilinx IIC controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / I2C bindings

Schema identifier ($id): "http://devicetree.org/schemas/i2c/xlnx,xps-iic-2.00.a.yaml#"

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

Maintainers (maintainers): "info@mocean-labs.com"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "xlnx,axi-iic-2.1", "xlnx,xps-iic-2.00.a"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

clock-name — not listed as required here #

Exact value (const): "pclk"

Input clock name.

clock-frequency — not listed as required here #

Optional I2C SCL clock frequency. If not specified, do not configure in software, rely only on hardware design value.

Default value (default): 100000

Allowed values (enum): 100000, 400000, 1000000

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

axi_iic_0: i2c@40800000 {
  compatible = "xlnx,xps-iic-2.00.a";
  clocks = <&clkc 15>;
  interrupts = < 1 2 >;
  reg = < 0x40800000 0x10000 >;

  #size-cells = <0>;
  #address-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Peios Learn — documentation for Peios software.

Built with Trail.