Samsung S3C/S5P/Exynos SoC I2C Controller
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 hereRule 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 hereRule for matching array elements (
contains)Allowed values (
enum):"samsung,s3c2440-i2c","samsung,s3c2440-hdmiphy-i2c"When the condition matches (
then) #
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: