1f8bbde72SMaxime Ripard# SPDX-License-Identifier: GPL-2.0 2f8bbde72SMaxime Ripard%YAML 1.2 3f8bbde72SMaxime Ripard--- 4f8bbde72SMaxime Ripard$id: http://devicetree.org/schemas/i2c/marvell,mv64xxx-i2c.yaml# 5f8bbde72SMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml# 6f8bbde72SMaxime Ripard 7f8bbde72SMaxime Ripardtitle: Marvell MV64XXX I2C Controller Device Tree Bindings 8f8bbde72SMaxime Ripard 9f8bbde72SMaxime Ripardmaintainers: 10f8bbde72SMaxime Ripard - Gregory CLEMENT <gregory.clement@bootlin.com> 11f8bbde72SMaxime Ripard 12f8bbde72SMaxime Ripardproperties: 13f8bbde72SMaxime Ripard compatible: 14f8bbde72SMaxime Ripard oneOf: 15f8bbde72SMaxime Ripard - const: allwinner,sun4i-a10-i2c 16f8bbde72SMaxime Ripard - items: 17f8bbde72SMaxime Ripard - const: allwinner,sun7i-a20-i2c 18f8bbde72SMaxime Ripard - const: allwinner,sun4i-a10-i2c 19f8bbde72SMaxime Ripard - const: allwinner,sun6i-a31-i2c 20f8bbde72SMaxime Ripard - items: 213567932cSAndre Przywara - enum: 223567932cSAndre Przywara - allwinner,sun8i-a23-i2c 233567932cSAndre Przywara - allwinner,sun8i-a83t-i2c 24e01f242aSSamuel Holland - allwinner,sun8i-v536-i2c 253567932cSAndre Przywara - allwinner,sun50i-a64-i2c 263567932cSAndre Przywara - allwinner,sun50i-h6-i2c 27e01f242aSSamuel Holland - const: allwinner,sun6i-a31-i2c 28e01f242aSSamuel Holland - description: Allwinner SoCs with offload support 29e01f242aSSamuel Holland items: 30e01f242aSSamuel Holland - enum: 31e01f242aSSamuel Holland - allwinner,sun20i-d1-i2c 32e01f242aSSamuel Holland - allwinner,sun50i-a100-i2c 333567932cSAndre Przywara - allwinner,sun50i-h616-i2c 34e01f242aSSamuel Holland - allwinner,sun50i-r329-i2c 35e01f242aSSamuel Holland - const: allwinner,sun8i-v536-i2c 36f8bbde72SMaxime Ripard - const: allwinner,sun6i-a31-i2c 37f8bbde72SMaxime Ripard - const: marvell,mv64xxx-i2c 38f8bbde72SMaxime Ripard - const: marvell,mv78230-i2c 39f8bbde72SMaxime Ripard - const: marvell,mv78230-a0-i2c 40f8bbde72SMaxime Ripard 41f8bbde72SMaxime Ripard description: 42f8bbde72SMaxime Ripard Only use "marvell,mv78230-a0-i2c" for a very rare, initial 43f8bbde72SMaxime Ripard version of the SoC which had broken offload support. Linux 44f8bbde72SMaxime Ripard auto-detects this and sets it appropriately. 45f8bbde72SMaxime Ripard 46f8bbde72SMaxime Ripard reg: 47f8bbde72SMaxime Ripard maxItems: 1 48f8bbde72SMaxime Ripard 49f8bbde72SMaxime Ripard interrupts: 50f8bbde72SMaxime Ripard maxItems: 1 51f8bbde72SMaxime Ripard 52f8bbde72SMaxime Ripard clocks: 53f8bbde72SMaxime Ripard minItems: 1 54f8bbde72SMaxime Ripard items: 55f8bbde72SMaxime Ripard - description: Reference clock for the I2C bus 56f8bbde72SMaxime Ripard - description: Bus clock (Only for Armada 7K/8K) 57f8bbde72SMaxime Ripard 58f8bbde72SMaxime Ripard clock-names: 59f8bbde72SMaxime Ripard minItems: 1 60f8bbde72SMaxime Ripard items: 61f8bbde72SMaxime Ripard - const: core 62f8bbde72SMaxime Ripard - const: reg 63f8bbde72SMaxime Ripard description: 64f8bbde72SMaxime Ripard Mandatory if two clocks are used (only for Armada 7k and 8k). 65f8bbde72SMaxime Ripard 66f8bbde72SMaxime Ripard resets: 67f8bbde72SMaxime Ripard maxItems: 1 68f8bbde72SMaxime Ripard 69*d2601193SSamuel Holland dmas: 70*d2601193SSamuel Holland items: 71*d2601193SSamuel Holland - description: RX DMA Channel 72*d2601193SSamuel Holland - description: TX DMA Channel 73*d2601193SSamuel Holland 74*d2601193SSamuel Holland dma-names: 75*d2601193SSamuel Holland items: 76*d2601193SSamuel Holland - const: rx 77*d2601193SSamuel Holland - const: tx 78*d2601193SSamuel Holland 79*d2601193SSamuel Hollanddependencies: 80*d2601193SSamuel Holland dmas: [ dma-names ] 81*d2601193SSamuel Holland 82f8bbde72SMaxime Ripardrequired: 83f8bbde72SMaxime Ripard - compatible 84f8bbde72SMaxime Ripard - reg 85f8bbde72SMaxime Ripard - interrupts 86f8bbde72SMaxime Ripard 87f8bbde72SMaxime RipardallOf: 88f8bbde72SMaxime Ripard - $ref: /schemas/i2c/i2c-controller.yaml# 89f8bbde72SMaxime Ripard - if: 90f8bbde72SMaxime Ripard properties: 91f8bbde72SMaxime Ripard compatible: 92f8bbde72SMaxime Ripard contains: 93f8bbde72SMaxime Ripard enum: 94f8bbde72SMaxime Ripard - allwinner,sun4i-a10-i2c 95f8bbde72SMaxime Ripard - allwinner,sun6i-a31-i2c 96f8bbde72SMaxime Ripard 97f8bbde72SMaxime Ripard then: 98f8bbde72SMaxime Ripard required: 99f8bbde72SMaxime Ripard - clocks 100f8bbde72SMaxime Ripard 101f8bbde72SMaxime Ripard - if: 102f8bbde72SMaxime Ripard properties: 103f8bbde72SMaxime Ripard compatible: 104f8bbde72SMaxime Ripard contains: 105f8bbde72SMaxime Ripard const: allwinner,sun6i-a31-i2c 106f8bbde72SMaxime Ripard 107f8bbde72SMaxime Ripard then: 108f8bbde72SMaxime Ripard required: 109f8bbde72SMaxime Ripard - resets 110f8bbde72SMaxime Ripard 111454f5d9dSMaxime RipardunevaluatedProperties: false 112f8bbde72SMaxime Ripard 113f8bbde72SMaxime Ripardexamples: 114f8bbde72SMaxime Ripard - | 115f8bbde72SMaxime Ripard i2c@11000 { 116f8bbde72SMaxime Ripard compatible = "marvell,mv64xxx-i2c"; 117f8bbde72SMaxime Ripard reg = <0x11000 0x20>; 118f8bbde72SMaxime Ripard interrupts = <29>; 119f8bbde72SMaxime Ripard clock-frequency = <100000>; 120f8bbde72SMaxime Ripard }; 121f8bbde72SMaxime Ripard 122f8bbde72SMaxime Ripard - | 123f8bbde72SMaxime Ripard i2c@11000 { 124166f28c3SMaxime Ripard compatible = "marvell,mv78230-i2c"; 125f8bbde72SMaxime Ripard reg = <0x11000 0x100>; 126f8bbde72SMaxime Ripard interrupts = <29>; 127f8bbde72SMaxime Ripard clock-frequency = <100000>; 128f8bbde72SMaxime Ripard }; 129f8bbde72SMaxime Ripard 130f8bbde72SMaxime Ripard - | 131f8bbde72SMaxime Ripard i2c@701000 { 132f8bbde72SMaxime Ripard compatible = "marvell,mv78230-i2c"; 133f8bbde72SMaxime Ripard reg = <0x701000 0x20>; 134f8bbde72SMaxime Ripard interrupts = <29>; 135f8bbde72SMaxime Ripard clock-frequency = <100000>; 136f8bbde72SMaxime Ripard clock-names = "core", "reg"; 137f8bbde72SMaxime Ripard clocks = <&core_clock>, <®_clock>; 138f8bbde72SMaxime Ripard }; 139f8bbde72SMaxime Ripard 140f8bbde72SMaxime Ripard... 141