Ingenic SoCs I2C controller

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)

Edit this page