From patchwork Sun Jun 23 16:19:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13708676 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2B61F9F0; Sun, 23 Jun 2024 16:20:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719159632; cv=none; b=siWnZqtu5z2J9TNf7mjiQTdgWcI1LVIvPphXCT6gev2DDtCc6ETjQL2UBwXhc6i7dpsgm1nvrsS5ojoqh/VMxU4JWkSr5UGIrBh0rXZ6S6TPJK2ZGJBc9aPj7uRDF++wcHTUeM5TrB5r4PKja1gQmWLQAlP02kOG9mOgc3V9YLk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719159632; c=relaxed/simple; bh=2oEg9p+sb3PiR3FtGbar3qqDX/m/RemJwn7MDaQyIH4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NTaKB8Ci1X551gLbKBVg5HeT3FhIy0Z/1hvbq8sB4ljcBEsWgpnaynbae2pKSz+UjmRAAraHYAocBuB2Njk6RxlxKaV7LXJdTujYRe12M+UpZgG5hHo52Is+i5k+4zh+AiR5teOH8D18/FgFtr9X94xragGMFVABJ0Zzd1tgmy4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p7mcMGL8; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p7mcMGL8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6A32C2BD10; Sun, 23 Jun 2024 16:20:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719159632; bh=2oEg9p+sb3PiR3FtGbar3qqDX/m/RemJwn7MDaQyIH4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p7mcMGL8Y30FFGd0cHuLoEGdKUZ22DVn/nW9bT8AQSYUT0CHCPcgvT6gJj1Gn/aW5 N7kLnRJa5rrJDHftoWHfKg9BIxxCJP70tooKHLjL+sU8X1ldOsFIwUdYGOanywfw13 JWrH64/OIB4WGDswk1kBpoQQPatZEd3n8KzHDYfToHEDwpKD6NX7R+8yvaL9cwy4Tu ubXhGj/diavVeqv6Zy7wyZdewZm+x0xbyPI6edpWNy1HFp10VK3ftlZnrVd1CIWQM3 EygPHn5V18W+n9UiaUoec/DjDSbw6RKMAU0Gs/WLK4VJoq6vOnKvtfktlKsm3SZI6j 1DnzN3jRQNkYw== From: Lorenzo Bianconi To: netdev@vger.kernel.org Cc: nbd@nbd.name, lorenzo.bianconi83@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor@kernel.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com, benjamin.larsson@genexis.eu, rkannoth@marvell.com, sgoutham@marvell.com, andrew@lunn.ch Subject: [PATCH v3 net-next 1/2] dt-bindings: net: airoha: Add EN7581 ethernet controller Date: Sun, 23 Jun 2024 18:19:56 +0200 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Introduce device-tree binding documentation for Airoha EN7581 ethernet mac controller. Signed-off-by: Lorenzo Bianconi --- .../bindings/net/airoha,en7581-eth.yaml | 108 ++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml new file mode 100644 index 000000000000..e25a462a75d4 --- /dev/null +++ b/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml @@ -0,0 +1,108 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/airoha,en7581-eth.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha EN7581 Frame Engine Ethernet controller + +allOf: + - $ref: ethernet-controller.yaml# + +maintainers: + - Lorenzo Bianconi + +description: + The frame engine ethernet controller can be found on Airoha SoCs. + These SoCs have dual GMAC ports. + +properties: + compatible: + enum: + - airoha,en7581-eth + + reg: + items: + - description: Frame engine base address + - description: QDMA0 base address + - description: QDMA1 base address + + reg-names: + items: + - const: fe + - const: qdma0 + - const: qdma1 + + interrupts: + maxItems: 10 + + resets: + maxItems: 8 + + reset-names: + items: + - const: fe + - const: pdma + - const: qdma + - const: xsi-mac + - const: hsi0-mac + - const: hsi1-mac + - const: hsi-mac + - const: xfp-mac + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +required: + - compatible + - reg + - interrupts + - resets + - reset-names + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + eth0: ethernet@1fb50000 { + compatible = "airoha,en7581-eth"; + reg = <0 0x1fb50000 0 0x2600>, + <0 0x1fb54000 0 0x2000>, + <0 0x1fb56000 0 0x2000>; + reg-names = "fe", "qdma0", "qdma1"; + + resets = <&scuclk 44>, + <&scuclk 30>, + <&scuclk 31>, + <&scuclk 6>, + <&scuclk 15>, + <&scuclk 16>, + <&scuclk 17>, + <&scuclk 26>; + reset-names = "fe", "pdma", "qdma", "xsi-mac", + "hsi0-mac", "hsi1-mac", "hsi-mac", + "xfp-mac"; + + interrupts = , + , + , + , + , + , + , + , + , + ; + }; + };