Samsung's High Speed I2C controller

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

Edit this page