Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp967305rwl; Fri, 4 Nov 2022 08:20:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7kX3LHmTXgWvA3QbwboK/jybgBYkIDj8PPiQrfFkcfA0UNXVruFQ5SR17q2E6fqoGZ6amg X-Received: by 2002:a05:6402:d0b:b0:458:a244:4e99 with SMTP id eb11-20020a0564020d0b00b00458a2444e99mr36597879edb.46.1667575226402; Fri, 04 Nov 2022 08:20:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667575226; cv=none; d=google.com; s=arc-20160816; b=hqxt0lLA+8cLzAdpNpfzxRSTPkkCmFhfNcuvZ3RAboYdRs+3ubGDfIaByEKkWIT2SG kY5aiDiGhC756GwnWt7Gda3pUKud7ZTGXctCMlY3wvo+AxVsYn9okGWK+SiJTuroZzbB r+tf5vyy4ozsCHLF2pM6QJGlbZVyCzlBI3izrA5zfOKke0c3vvDDf43piuQMlWiAxGLd g9tDdBaPXy30p/jdhELSstJd4HI5LePAjyBHvVp640e4IC78/w5jwU51EUVSG0kccEII H0UZ1/xT7CL+XW8G82/YdO4bHnuW42BGms5o2WeqZkLAzzwpZ05oEnVGzz7RQffHkwsC 2F0Q== 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=YMKrqBrvrhjOOEx8KfpULM5HQVmOJMkZXyEDHB6OoEk=; b=POMt8D1BZas8BWFmQ2Q9h6oRKKHF8HvkGHA9g2Bx+rDP1+vr5baZwFz1vMXPtg6sRf iftryHJstpAaW1pgxR3gOFvIMEO94xuCSPbK7bs60Mk+IH7ImVgDOByJl6kuP052hYR+ aAG1TymSTBQjvJza/U3OMK+RjyNCx9HNavSftF8uSkZJITYUzb9r6s+kDQgCHjgvMNZu VdhsPOxIY8SOmD+xwOOSqzyVVD7w5txvrdvAYl3bRY8zzMzU592nc0QfjzYIwVuWYCvj IJzgnX2TY6DSE6v94WpEiS18Zp2jN7ojz6IqHHcnFPViU+HUgL1KN2SzZ1rLe3nhO+Kh iPow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=iZE1grEY; 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 w16-20020a056402129000b0045da52f303csi4707965edv.213.2022.11.04.08.20.02; Fri, 04 Nov 2022 08:20:26 -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=iZE1grEY; 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 S230041AbiKDOaT (ORCPT + 96 others); Fri, 4 Nov 2022 10:30:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231644AbiKDO3s (ORCPT ); Fri, 4 Nov 2022 10:29:48 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A8AB31228; Fri, 4 Nov 2022 07:27:54 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 749D9240019; Fri, 4 Nov 2022 14:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667572073; 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=YMKrqBrvrhjOOEx8KfpULM5HQVmOJMkZXyEDHB6OoEk=; b=iZE1grEYxIwPxbnaMh8FDybpXJ6OOSWEki1Xa5rtB67VVjPSqFuN+i3JGA7Zgvcdf3MWqA ZyseS5+To03t+mV5HRnZ6c7thAK3ZEi4qg/scSWS+R3uCvz0KP2puXnwrC188CIB8LDEWO iD5E0xTtqRQHbGfteP0cOpqs619yPIwSVJjj83xh5j4HzR2pJcs1BFkLL1YDbin7gjB6+L 2RqnfkfyeQvZ45+tiLXeBfE8Pn/NS6ggEWQttnT2eu3BCEqAtJ24tp19lgI/jT/8nupdfg nd2vbtA33WDREroA0UhfYJv/y9heZo7Se5h0Jj9icF4ya65ncqHt61W6wplqSg== 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 v7 1/5] net: dt-bindings: Introduce the Qualcomm IPQESS Ethernet controller Date: Fri, 4 Nov 2022 15:27:42 +0100 Message-Id: <20221104142746.350468-2-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221104142746.350468-1-maxime.chevallier@bootlin.com> References: <20221104142746.350468-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_H3,RCVD_IN_MSPIKE_WL,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 --- 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