Freescale Inter IC (I2C) and High Speed Inter IC (HS-I2C) for i.MX
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)