1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/i2c/ingenic,i2c.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7*8bab661aSEmmanuel Vadottitle: Ingenic SoCs I2C controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Paul Cercueil <paul@crapouillou.net> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel VadotallOf: 13c66ec88fSEmmanuel Vadot - $ref: /schemas/i2c/i2c-controller.yaml# 14c66ec88fSEmmanuel Vadot 15c66ec88fSEmmanuel Vadotproperties: 16c66ec88fSEmmanuel Vadot $nodename: 17c66ec88fSEmmanuel Vadot pattern: "^i2c@[0-9a-f]+$" 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadot compatible: 206be33864SEmmanuel Vadot oneOf: 216be33864SEmmanuel Vadot - enum: 226be33864SEmmanuel Vadot - ingenic,jz4770-i2c 23c66ec88fSEmmanuel Vadot - ingenic,x1000-i2c 246be33864SEmmanuel Vadot - items: 256be33864SEmmanuel Vadot - const: ingenic,jz4780-i2c 266be33864SEmmanuel Vadot - const: ingenic,jz4770-i2c 27c66ec88fSEmmanuel Vadot 28c66ec88fSEmmanuel Vadot reg: 29c66ec88fSEmmanuel Vadot maxItems: 1 30c66ec88fSEmmanuel Vadot 31c66ec88fSEmmanuel Vadot interrupts: 32c66ec88fSEmmanuel Vadot maxItems: 1 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot clocks: 35c66ec88fSEmmanuel Vadot maxItems: 1 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadot clock-frequency: 38c66ec88fSEmmanuel Vadot enum: [ 100000, 400000 ] 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot dmas: 41c66ec88fSEmmanuel Vadot items: 42c66ec88fSEmmanuel Vadot - description: DMA controller phandle and request line for RX 43c66ec88fSEmmanuel Vadot - description: DMA controller phandle and request line for TX 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot dma-names: 46c66ec88fSEmmanuel Vadot items: 47c66ec88fSEmmanuel Vadot - const: rx 48c66ec88fSEmmanuel Vadot - const: tx 49c66ec88fSEmmanuel Vadot 50c66ec88fSEmmanuel Vadotrequired: 51c66ec88fSEmmanuel Vadot - compatible 52c66ec88fSEmmanuel Vadot - reg 53c66ec88fSEmmanuel Vadot - interrupts 54c66ec88fSEmmanuel Vadot - clocks 55c66ec88fSEmmanuel Vadot - clock-frequency 56c66ec88fSEmmanuel Vadot - dmas 57c66ec88fSEmmanuel Vadot - dma-names 58c66ec88fSEmmanuel Vadot 59c66ec88fSEmmanuel VadotunevaluatedProperties: false 60c66ec88fSEmmanuel Vadot 61c66ec88fSEmmanuel Vadotexamples: 62c66ec88fSEmmanuel Vadot - | 638cc087a1SEmmanuel Vadot #include <dt-bindings/clock/ingenic,jz4780-cgu.h> 64c66ec88fSEmmanuel Vadot #include <dt-bindings/dma/jz4780-dma.h> 65c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 66c66ec88fSEmmanuel Vadot i2c@10054000 { 676be33864SEmmanuel Vadot compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c"; 68c66ec88fSEmmanuel Vadot #address-cells = <1>; 69c66ec88fSEmmanuel Vadot #size-cells = <0>; 70c66ec88fSEmmanuel Vadot reg = <0x10054000 0x1000>; 71c66ec88fSEmmanuel Vadot 72c9ccf3a3SEmmanuel Vadot interrupts = <56 IRQ_TYPE_LEVEL_LOW>; 73c66ec88fSEmmanuel Vadot 74c66ec88fSEmmanuel Vadot clocks = <&cgu JZ4780_CLK_SMB4>; 75c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 76c66ec88fSEmmanuel Vadot pinctrl-0 = <&pins_i2c4_data>; 77c66ec88fSEmmanuel Vadot 78c66ec88fSEmmanuel Vadot dmas = <&dma JZ4780_DMA_SMB4_RX 0xffffffff>, 79c66ec88fSEmmanuel Vadot <&dma JZ4780_DMA_SMB4_TX 0xffffffff>; 80c66ec88fSEmmanuel Vadot dma-names = "rx", "tx"; 81c66ec88fSEmmanuel Vadot 82c66ec88fSEmmanuel Vadot clock-frequency = <400000>; 83c66ec88fSEmmanuel Vadot 84c66ec88fSEmmanuel Vadot rtc@51 { 85c66ec88fSEmmanuel Vadot compatible = "nxp,pcf8563"; 86c66ec88fSEmmanuel Vadot reg = <0x51>; 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel Vadot interrupts = <30 IRQ_TYPE_LEVEL_LOW>; 89c66ec88fSEmmanuel Vadot }; 90c66ec88fSEmmanuel Vadot }; 91