From: Fil Dunsky Date: Mon, 23 Nov 2026 08:10:37 +0300 Subject: [PATCH v7 1/2] dt-bindings: i2c: Add Cortina Systems CS7542 I2C controller MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261123-cs75xx-i2c-v7-1-42080ecf30be@gmail.com> References: <20261123-cs75xx-i2c-v7-0-42080ecf30be@gmail.com> In-Reply-To: <20261123-cs75xx-i2c-v7-0-42080ecf30be@gmail.com> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795410652; l=1877; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=Mzt932NWHbMP6cNTGXOVF/25Jv1slV/2vvPLoA2toCU=; b=2tl3xJcvvYkzaLDpD6OPx3Kioh7YkbIeIFOrypeoevgitlqd3X5WID8y+HaPvOT/G6eVEjdPb Q2aEwENKPmiCQr4FNp82Gm37XOQQ0HN4NTPb15txPYxPx14v+MqOaMC X-Developer-Key: i=filipp.dunsky@gmail.com; a=ed25519; pk=JAYP8e2rJ54DHOmhNtXud8rl1igAaAXoOHxtJmVXI1g= X-Endpoint-Received: by B4 Relay for filipp.dunsky@gmail.com/20260930 with auth_id=1085 List-Id: B4 Relay Submissions Add a binding for the I2C ("Bi-Wire") controller of the Cortina Systems CS75xx SoCs. Reviewed-by: Rob Herring (Arm) Signed-off-by: Fil Dunsky --- .../bindings/i2c/cortina,cs7542-i2c.yaml | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/cortina,cs7542-i2c.yaml b/Documentation/devicetree/bindings/i2c/cortina,cs7542-i2c.yaml new file mode 100644 index 000000000..ef31284c1 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/cortina,cs7542-i2c.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/cortina,cs7542-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cortina Systems CS7542 I2C controller + +maintainers: + - Fil Dunsky + +description: + The I2C ("Bi-Wire") controller of the Cortina Systems CS75xx (Goldengate + G2) SoCs. It transfers one byte per command and runs from the peripheral + (APB) clock through a 16-bit prescaler. + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +properties: + compatible: + const: cortina,cs7542-i2c + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-frequency: + maximum: 400000 + default: 100000 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - interrupts + +unevaluatedProperties: false + +examples: + - | + i2c@f00700e8 { + compatible = "cortina,cs7542-i2c"; + reg = <0xf00700e8 0x28>; + clocks = <&apb_clk>; + clock-frequency = <400000>; + interrupt-parent = <&intc>; + interrupts = <11>; + #address-cells = <1>; + #size-cells = <0>; + }; -- 2.53.0