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