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: 21f8bbde72SMaxime Ripard - const: allwinner,sun8i-a23-i2c 22f8bbde72SMaxime Ripard - const: allwinner,sun6i-a31-i2c 23f8bbde72SMaxime Ripard - items: 24f8bbde72SMaxime Ripard - const: allwinner,sun8i-a83t-i2c 25f8bbde72SMaxime Ripard - const: allwinner,sun6i-a31-i2c 26f8bbde72SMaxime Ripard - items: 27f8bbde72SMaxime Ripard - const: allwinner,sun50i-a64-i2c 28f8bbde72SMaxime Ripard - const: allwinner,sun6i-a31-i2c 29f8bbde72SMaxime Ripard 30f8bbde72SMaxime Ripard - const: marvell,mv64xxx-i2c 31f8bbde72SMaxime Ripard - const: marvell,mv78230-i2c 32f8bbde72SMaxime Ripard - const: marvell,mv78230-a0-i2c 33f8bbde72SMaxime Ripard 34f8bbde72SMaxime Ripard description: 35f8bbde72SMaxime Ripard Only use "marvell,mv78230-a0-i2c" for a very rare, initial 36f8bbde72SMaxime Ripard version of the SoC which had broken offload support. Linux 37f8bbde72SMaxime Ripard auto-detects this and sets it appropriately. 38f8bbde72SMaxime Ripard 39f8bbde72SMaxime Ripard reg: 40f8bbde72SMaxime Ripard maxItems: 1 41f8bbde72SMaxime Ripard 42f8bbde72SMaxime Ripard interrupts: 43f8bbde72SMaxime Ripard maxItems: 1 44f8bbde72SMaxime Ripard 45f8bbde72SMaxime Ripard clocks: 46f8bbde72SMaxime Ripard minItems: 1 47f8bbde72SMaxime Ripard maxItems: 2 48f8bbde72SMaxime Ripard items: 49f8bbde72SMaxime Ripard - description: Reference clock for the I2C bus 50f8bbde72SMaxime Ripard - description: Bus clock (Only for Armada 7K/8K) 51f8bbde72SMaxime Ripard 52f8bbde72SMaxime Ripard clock-names: 53f8bbde72SMaxime Ripard minItems: 1 54f8bbde72SMaxime Ripard maxItems: 2 55f8bbde72SMaxime Ripard items: 56f8bbde72SMaxime Ripard - const: core 57f8bbde72SMaxime Ripard - const: reg 58f8bbde72SMaxime Ripard description: 59f8bbde72SMaxime Ripard Mandatory if two clocks are used (only for Armada 7k and 8k). 60f8bbde72SMaxime Ripard 61f8bbde72SMaxime Ripard resets: 62f8bbde72SMaxime Ripard maxItems: 1 63f8bbde72SMaxime Ripard 64f8bbde72SMaxime Ripardrequired: 65f8bbde72SMaxime Ripard - compatible 66f8bbde72SMaxime Ripard - reg 67f8bbde72SMaxime Ripard - interrupts 68f8bbde72SMaxime Ripard 69f8bbde72SMaxime RipardallOf: 70f8bbde72SMaxime Ripard - $ref: /schemas/i2c/i2c-controller.yaml# 71f8bbde72SMaxime Ripard - if: 72f8bbde72SMaxime Ripard properties: 73f8bbde72SMaxime Ripard compatible: 74f8bbde72SMaxime Ripard contains: 75f8bbde72SMaxime Ripard enum: 76f8bbde72SMaxime Ripard - allwinner,sun4i-a10-i2c 77f8bbde72SMaxime Ripard - allwinner,sun6i-a31-i2c 78f8bbde72SMaxime Ripard 79f8bbde72SMaxime Ripard then: 80f8bbde72SMaxime Ripard required: 81f8bbde72SMaxime Ripard - clocks 82f8bbde72SMaxime Ripard 83f8bbde72SMaxime Ripard - if: 84f8bbde72SMaxime Ripard properties: 85f8bbde72SMaxime Ripard compatible: 86f8bbde72SMaxime Ripard contains: 87f8bbde72SMaxime Ripard const: allwinner,sun6i-a31-i2c 88f8bbde72SMaxime Ripard 89f8bbde72SMaxime Ripard then: 90f8bbde72SMaxime Ripard required: 91f8bbde72SMaxime Ripard - resets 92f8bbde72SMaxime Ripard 93f8bbde72SMaxime Ripard# FIXME: We should set it, but it would report all the generic 94f8bbde72SMaxime Ripard# properties as additional properties. 95f8bbde72SMaxime Ripard# additionalProperties: false 96f8bbde72SMaxime Ripard 97f8bbde72SMaxime Ripardexamples: 98f8bbde72SMaxime Ripard - | 99f8bbde72SMaxime Ripard i2c@11000 { 100f8bbde72SMaxime Ripard compatible = "marvell,mv64xxx-i2c"; 101f8bbde72SMaxime Ripard reg = <0x11000 0x20>; 102f8bbde72SMaxime Ripard interrupts = <29>; 103f8bbde72SMaxime Ripard clock-frequency = <100000>; 104f8bbde72SMaxime Ripard }; 105f8bbde72SMaxime Ripard 106f8bbde72SMaxime Ripard - | 107f8bbde72SMaxime Ripard i2c@11000 { 108f8bbde72SMaxime Ripard compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c"; 109f8bbde72SMaxime Ripard reg = <0x11000 0x100>; 110f8bbde72SMaxime Ripard interrupts = <29>; 111f8bbde72SMaxime Ripard clock-frequency = <100000>; 112f8bbde72SMaxime Ripard }; 113f8bbde72SMaxime Ripard 114f8bbde72SMaxime Ripard - | 115f8bbde72SMaxime Ripard i2c@701000 { 116f8bbde72SMaxime Ripard compatible = "marvell,mv78230-i2c"; 117f8bbde72SMaxime Ripard reg = <0x701000 0x20>; 118f8bbde72SMaxime Ripard interrupts = <29>; 119f8bbde72SMaxime Ripard clock-frequency = <100000>; 120f8bbde72SMaxime Ripard clock-names = "core", "reg"; 121f8bbde72SMaxime Ripard clocks = <&core_clock>, <®_clock>; 122f8bbde72SMaxime Ripard }; 123f8bbde72SMaxime Ripard 124f8bbde72SMaxime Ripard... 125