Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp518670rwe; Fri, 26 Aug 2022 09:07:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR6GKdAXEBrjzIdihAeP6+HO2mworX/B3Wn1lamjvY0B9MYbj1aiEjVa6T9lI5mA66L59uNq X-Received: by 2002:a65:664a:0:b0:42b:6090:9618 with SMTP id z10-20020a65664a000000b0042b60909618mr3722604pgv.22.1661530035911; Fri, 26 Aug 2022 09:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661530035; cv=none; d=google.com; s=arc-20160816; b=TfcZd5bkBptxjrirxppTCw9S/MaAyiddV5t23lvNDl6nRLo5ubgtAO9cn6bCyQklw+ t9DpLaowMszpNNSGOiJBQ8atJSUB4J7oIQ/4YgfAsWO8Ty3O3OX9R67LipRlNkJD6ubu XaKYStut3TGkm23lu9/vbnCJq8tuXEjuf5BluaY9aDe4Wjay1Mq0XoNf9YpMD7dbb/qj /uSpRn4wTHccKnZyoQRVhxXBERUvlM6ocDOWHqN/UvrJPgL2p5N+7+HTYPOfqLt1BHEd 2DMeYzGkOTUbsndmMKP8bK14QyMqZHPXSmVxG4vgkgQiGdo3O7+0gyJD0/cnG357R1QE CJpA== 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=7IqYp+eWUAMnuA+SNMLF1x9hSKFO4Tyct7UEcbM6sE8=; b=gu98MXWbwjKdOfWNGLQ2LxYINKjRq06bNI7d5V/HKDx9X5zb24kCFUX4hvwhlHNhH9 fsL79anOMAXuADkP01t+swSzgzL5ukJ9UjiOLyxcxYCUHtXPjCTcMZ+XHRvnZqtiwO4F lnrXuEMzeqCuVJ0C95q7ErwnrDrDwNFO9K5d2xrbW88IaAf8pOiMXYhYYcUSThNurc8t baiK9j/i0+gfpidDolFiTy1v4bbKUv7YsBjmnfGdPcjVaI9uCdmt5dk4MttPCZXW14cH YbyW+sYctGI/imEZMbBUBP7GN6q2BfGackR46umg0EODLTS0vCWj/zT+ziYu0JfG+kpF Hjhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hqN8dqsl; 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 m20-20020a63ed54000000b004292e659b6fsi1941231pgk.123.2022.08.26.09.07.04; Fri, 26 Aug 2022 09:07:15 -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=hqN8dqsl; 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 S244060AbiHZPru (ORCPT + 99 others); Fri, 26 Aug 2022 11:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243923AbiHZPrn (ORCPT ); Fri, 26 Aug 2022 11:47:43 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1B677C1B7; Fri, 26 Aug 2022 08:47:05 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id AF54B1BF211; Fri, 26 Aug 2022 15:47:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1661528822; 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=7IqYp+eWUAMnuA+SNMLF1x9hSKFO4Tyct7UEcbM6sE8=; b=hqN8dqslXhCiilpJSr14QEH4P1aVO//fwVTdonrHsfm7CZImRV+miDVelOu5sBsft78mEH mYyyoiDXHElidg2J3DhCTHeMhFWYmCO96cxUuTdlWMl9k4QitWlENUK3R39EOkZP/bEj/F saI6aWin63dm46FU6dxQXtXF1wA+aNeQP2imXLLDqcPjve9vrS8KN8gAdMnIN1mpCXb8pS GaroDkwXltBPIrVuuSbmGjZBtUifJifAmMEBy99SHulbqOYN+mWgkgdyvYw2SUp0rbnY17 kij01fsDxOieH7fUviTLRpptYiBXeMX38WQ2lEo+/E+ki+YVbZiTIN+OwigkDQ== From: Maxime Chevallier To: davem@davemloft.net, Rob Herring 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 v3 4/5] net: dt-bindings: Introduce the Qualcomm IPQESS Ethernet controller Date: Fri, 26 Aug 2022 17:46:49 +0200 Message-Id: <20220826154650.615582-5-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220826154650.615582-1-maxime.chevallier@bootlin.com> References: <20220826154650.615582-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,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --- 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/Documentation/devicetree/bindings/net/qcom,ipqess.yaml new file mode 100644 index 000000000000..38927d0659e3 --- /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,ipq4019e-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 = "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; + asym-pause; + }; + }; + +... -- 2.37.2