Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1236401rwl; Fri, 4 Nov 2022 11:22:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4CEOAdua6HRv483LL1gHjM6vsLelUbQrluFcL57ufhQFmYmEsh9Nl571B+b75g8YXRDhz7 X-Received: by 2002:a05:6402:1cb0:b0:463:5904:d0fd with SMTP id cz16-20020a0564021cb000b004635904d0fdmr29270758edb.302.1667586132364; Fri, 04 Nov 2022 11:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667586132; cv=none; d=google.com; s=arc-20160816; b=RL8k6fVAQDFzrBc4ZZ7Co/uFAdOIvTyGXN0x2sMsTRBb0AiOmqQMLjvYOB5ES5iSgM XYgViqPYZoIatVFUcj7gkVmBStON+uZCCFq1ANp2yRdSbbJB4TzSJDUK66zsWSuFhnCt f+6rvS/GQLNfqiSR2lRhfISIQDhEraM4P9n338bm84y+VwO23tQrq/dYoUQfntr+78I4 6JTX2ch5wD5z+bCE8vrNvcuertzdjzIYRBeiiRN+/Cnh1l9WwnhFZ91zaj7blyu/7SaW wtZQXJ1mTleXYpqja/K61i60URUM7U7EH5Zna9K3Iq6bbQLjeOr0PVVxW7hTRwAIJXLs HzTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VaqNhcCsyEJ16B0InYJGOoRmdP2AVgx3prsDz04/DPs=; b=pbSzOvlTsEYz02Gdy6qTCRaYMOMRwf5GOTrlFdQFk3NFHfYIdbooDFV5ge5o3DpVD6 XVhx2c3p0LROHihVoXLCWzlRT4NvflGLqx/y+7Q0oidlK54gfdp/C7T5CCpfoetFFhkz qcAw9bT3mG8/NPby2lWArmJupEmMhMqkBVSgxX2dp+N3Noeztqyyx+ylYhTzMnt3ZGSe xLaDO3wE6qTyUFN4dN368cYB0EEj4bp7jinA9qx3dDLZsMN9EbkL56f7dAEmk7tJq26E vq0PzO3atrTY9EPxxvasewMrP8xTT/wCAvw3Z0KdL2gmLnAtaBDqTHf/eNYyHTi2jFze vW1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dOvUd4KM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a170906714a00b007313312730esi4578692ejj.85.2022.11.04.11.21.49; Fri, 04 Nov 2022 11:22:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dOvUd4KM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231756AbiKDRmT (ORCPT + 96 others); Fri, 4 Nov 2022 13:42:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231440AbiKDRmA (ORCPT ); Fri, 4 Nov 2022 13:42:00 -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 B85DD45EC5; Fri, 4 Nov 2022 10:41:58 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 9DF38FF806; Fri, 4 Nov 2022 17:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667583717; 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=VaqNhcCsyEJ16B0InYJGOoRmdP2AVgx3prsDz04/DPs=; b=dOvUd4KMYt0JtypuMUATyfgaHXv5q1W2lsfwvWb3q3Zd6lal1OpVL2OU9HCNXDJg8UpSU8 ihhiDLEsBNOqfbYMhCpOYNp4ag6oEJf0kkNQF1G6M/HancA2Jjmjgv9jtHZX9LTjrZGgp1 pRsslRjByYSB2C8u7FlpEZYLfmDPNHG1l539o7mMWjTs/OrS8/Nlw7bfbLX8KXSNjtRII8 97KAcrOHtNAcpQela0gn6ZS7sIuS7A/fyl+6tsSepbggWuXJtQ7NWFy0V33naq+S31vkfl 5Cg8m/79TQ1PFxmwYFzOQo2mNyXJAE9QnkkjmiawI0UY5RcjLi9+bC7/iv/4Ow== From: Maxime Chevallier To: davem@davemloft.net, Rob Herring , Krzysztof Kozlowski Cc: Maxime Chevallier , Jakub Kicinski , Eric Dumazet , Paolo Abeni , 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 , Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski Subject: [PATCH net-next v8 1/5] net: dt-bindings: Introduce the Qualcomm IPQESS Ethernet controller Date: Fri, 4 Nov 2022 18:41:47 +0100 Message-Id: <20221104174151.439008-2-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221104174151.439008-1-maxime.chevallier@bootlin.com> References: <20221104174151.439008-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Krzysztof Kozlowski --- V7->V8: - No changes V6->V7: - Fixed a typo (firts -> first) V5->V6: - Fixed the $id that used the wrong compatible - Force passing all the per-queue interrupts V4->V5: - Remove stray quotes arount the ref property - Rename the binding to match the compatible string 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 .../bindings/net/qcom,ipq4019-ess-edma.yaml | 94 +++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/qcom,ipq4019-ess-edma.yaml diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-ess-edma.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-ess-edma.yaml new file mode 100644 index 000000000000..a16e707a4694 --- /dev/null +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-ess-edma.yaml @@ -0,0 +1,94 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/qcom,ipq4019-ess-edma.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: + maxItems: 32 + description: One interrupt per tx and rx queue, the first 16 are rx queues + and the last 16 are the tx 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 = "qcom,ipq4019-ess-edma"; + reg = <0xc080000 0x8000>; + resets = <&gcc ESS_RESET>; + clocks = <&gcc GCC_ESS_CLK>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + + phy-mode = "internal"; + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + +... -- 2.37.3