Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp977271pxb; Fri, 22 Apr 2022 15:47:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+g8wOCd2j2WLLcM5NNXFvun8+wy1Im2Hl40/DUbuO7oQwlKCVN/2Ef0PBLcqFAhA2KPx7 X-Received: by 2002:a17:90b:4c88:b0:1ce:88fc:29fe with SMTP id my8-20020a17090b4c8800b001ce88fc29femr7803154pjb.216.1650667632987; Fri, 22 Apr 2022 15:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650667632; cv=none; d=google.com; s=arc-20160816; b=lX2ZYZ19WeK7d6faBZ+KqnoA7IpTTh6aUYnCgzUftMqgpvHYQUHPL4zXNbLEjEoAeR lpHwpsBhv5w0qCCZswyHAs1HFzw16yvNdgfslLQuP86MSixZYt87b8RPxNv0I4FqTGyv jBhfK5KiF1nHFQgC7XzXwLFtLrgxm/V69FEDoWqfN47kgah+pEZqvjRLopu12WZQMmwd 72L9on5/Rs+9Qd0A+/6JTSiauEKe4WwWa4jbN1gUvVxTrQmrzWz9nJ6XuGGqJalH1NtZ oMZ1LzgQNkRpls3qV2UJII84pdKj51X7SKL0m+KmUoAr2CUtrlzUcRQTlaSB88Qx2pRO V2cw== 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=loZEYdhbLh05kEj+SfWEXqAWNslES1rqU6WiBkJyWCY=; b=zFvDfUEsq6OwB2ZfQaslbwMHEzqHrsb+UAtZ4cEfDi9CXS/ejbtEOlnGDsrBK0DbJG xSfYw1e4COzI5zlG0xxBgA7e2/2YPB5E6xwc+8ZeJHBm58N81O6pL3wrH4mRloT2JK/b s1SeWazdLLZtU3Q5vNKhVG1GMtuMTDxeY8V2tcSlepjYFTWJX2rBo6ljFTSSHK8k5gkn zhAtzQYRtxnN7O5PsRkh8q5QPVbUpjFi/u9zUuI4FRFWuuLpPlBYtULXbMEg2ChrPxk0 KHd75eq2k2b6Ha5zhW1SeFcJI/ebtfV3TyihClgZfAVdJDZpS86NKJX7byRWsvs8KPAC P44A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gZ54Xw4E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d5-20020a170903230500b00153b2d164aasi1489159plh.178.2022.04.22.15.47.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:47:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gZ54Xw4E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4078C3F3D1E; Fri, 22 Apr 2022 13:35:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234672AbiDVSIo (ORCPT + 99 others); Fri, 22 Apr 2022 14:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237303AbiDVSGt (ORCPT ); Fri, 22 Apr 2022 14:06:49 -0400 Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC1E1B245E; Fri, 22 Apr 2022 11:03:52 -0700 (PDT) Received: from relay2-d.mail.gandi.net (unknown [217.70.183.194]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 15A6BC49D4; Fri, 22 Apr 2022 18:03:38 +0000 (UTC) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id C57784000D; Fri, 22 Apr 2022 18:03:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1650650596; 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=loZEYdhbLh05kEj+SfWEXqAWNslES1rqU6WiBkJyWCY=; b=gZ54Xw4E2YxcgCYuiYoziAzsNShsmCvxhLBDcJS/IPRFtpDGScixLyGE5bPV81RpT3tRnA einY2FJMJWcGEk9Z9vcDo/p1zXilfwgsUsLMaCOVQ/oDwIyVwaB1ylEwjotH0viwFqiesW urZoDNZaOmOKdEe/hoT+bJBRw2WYd0K8zwku1gd2hCFBIjG/ADjnYiTTM7cJV7W2N6HSZy mVBbH1ccb5kgJAjfoDxDoRvRxxtk/RxuVA4aaI2Oxqq4IXfNWdAQKW2lLgVJOWuTn2Mxnd /yvmXqhonKr6iNbKZMYtK0dwn+xkw5I3S9KYG4U1gygJfRzwKOxXNwOfmwKYYQ== 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 4/5] net: dt-bindings: Introduce the Qualcomm IPQESS Ethernet controller Date: Fri, 22 Apr 2022 20:03:04 +0200 Message-Id: <20220422180305.301882-5-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220422180305.301882-1-maxime.chevallier@bootlin.com> References: <20220422180305.301882-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 --- .../devicetree/bindings/net/qcom,ipqess.yaml | 94 +++++++++++++++++++ 1 file changed, 94 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..8fec5633692f --- /dev/null +++ b/Documentation/devicetree/bindings/net/qcom,ipqess.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,ipqess.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm IPQ ESS EDMA Ethernet Controller Device Tree Bindings + +allOf: + - $ref: "ethernet-controller.yaml#" + +maintainers: + - Maxime Chevallier + +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 + + phy-mode: true + + fixed-link: true + + mac-address: true + +required: + - compatible + - reg + - interrupts + - clocks + - phy-mode + +unevaluatedProperties: false + +examples: + - | + gmac: ethernet@c080000 { + compatible = "qcom,ipq4019-ess-edma"; + reg = <0xc080000 0x8000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + + status = "okay"; + + phy-mode = "internal"; + fixed-link { + speed = <1000>; + full-duplex; + pause; + asym-pause; + }; + }; + +... -- 2.35.1