From nobody Mon Apr 6 06:10:02 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 386FCECAAD3 for ; Fri, 9 Sep 2022 15:26:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232397AbiIIP0W (ORCPT ); Fri, 9 Sep 2022 11:26:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232353AbiIIPZU (ORCPT ); Fri, 9 Sep 2022 11:25:20 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 188E2754B0; Fri, 9 Sep 2022 08:25:15 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 4B686FF80D; Fri, 9 Sep 2022 15:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1662737113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=59+6ULtGFNywxRd7fqK+8cW0a5MhZ6Z4qdRlVJWr/+Q=; b=icbckqlVb77Vx5vubaXKqzdSEI9nGCBmHfqmGl+LEjIScMzJBb4H+SJ/0VHQHaDk/P+nyg uimydJrx2gdq8CuFU83rePUP3sS3zmHMaEKFA2jwJnJER9pysUcegLvE1tF0usHeaVTq0C 9UfBYSNYcre78P7BLb67ukir/5+s4SWHMtv8f8gjLgeVu3bbDq/vY3+R9S/OH7IxFoVOnL ZUDgRe4FSI1o0UYXr7C0zW3FmnR4RXM0idZeQtKYKKnJ8tg3w5vv2PzaelmnLAiIHn0jrX hsucugBFTa/1Uu+jcotA/Na7/p+h+WIzDnvQjzA3Zpb2mEsSLVAKfKDkj/fd4Q== From: Maxime Chevallier To: davem@davemloft.net, Rob Herring , Krzysztof Kozlowski Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Vladimir Oltean , Luka Perkov , Robert Marko Subject: [PATCH net-next v4 4/5] net: dt-bindings: Introduce the Qualcomm IPQESS Ethernet controller Date: Fri, 9 Sep 2022 17:24:53 +0200 Message-Id: <20220909152454.7462-5-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220909152454.7462-1-maxime.chevallier@bootlin.com> References: <20220909152454.7462-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add the DT binding for the IPQESS Ethernet Controller. This is a simple controller, only requiring the phy-mode, interrupts, clocks, and possibly a MAC address setting. Signed-off-by: Maxime Chevallier --- V3->V4: - Fix a binding typo in the compatible string V2->V3: - Cleanup on reset and clock names V1->V2: - Fixed the example - Added reset and clocks - Removed generic ethernet attributes .../devicetree/bindings/net/qcom,ipqess.yaml | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/qcom,ipqess.yaml diff --git a/Documentation/devicetree/bindings/net/qcom,ipqess.yaml b/Docum= entation/devicetree/bindings/net/qcom,ipqess.yaml new file mode 100644 index 000000000000..3d2f790647cd --- /dev/null +++ b/Documentation/devicetree/bindings/net/qcom,ipqess.yaml @@ -0,0 +1,95 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/qcom,ipqess.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm IPQ ESS EDMA Ethernet Controller + +maintainers: + - Maxime Chevallier + +allOf: + - $ref: "ethernet-controller.yaml#" + +properties: + compatible: + const: qcom,ipq4019-ess-edma + + reg: + maxItems: 1 + + interrupts: + minItems: 2 + maxItems: 32 + description: One interrupt per tx and rx queue, with up to 16 queues. + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - resets + - phy-mode + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + gmac: ethernet@c080000 { + compatible =3D "qcom,ipq4019-ess-edma"; + reg =3D <0xc080000 0x8000>; + resets =3D <&gcc ESS_RESET>; + clocks =3D <&gcc GCC_ESS_CLK>; + interrupts =3D , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + + phy-mode =3D "internal"; + fixed-link { + speed =3D <1000>; + full-duplex; + pause; + asym-pause; + }; + }; + +... --=20 2.37.2