From patchwork Fri Oct 21 12:45:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Chevallier X-Patchwork-Id: 6683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp679414wrr; Fri, 21 Oct 2022 05:52:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM68BGnqZt7/jqdmPwDZQ6DFdcCkcKl0NOwxkWKkXtDXhFLdZ2AvgeIrKLxqkOUDJ+F45Wxc X-Received: by 2002:a17:907:25c5:b0:782:978d:c3da with SMTP id ae5-20020a17090725c500b00782978dc3damr15014734ejc.623.1666356734206; Fri, 21 Oct 2022 05:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666356734; cv=none; d=google.com; s=arc-20160816; b=JRfx3Xszqkt3svatMaFc1VdD8U/KbbhCpVrDRDvID2O+bFq0k+zliEOns0dhXnmqWE LNbjP8mArFE9NCsddym8GlYXRAgw1v/2GvVzCLvsdJCa2wfFURzPxJAj5DZ/7p8vMBJ6 Tg2OYn6GeKoH/3t8QJR9e/LxhwXipuLWy4bdKiYTUogkfpXf6E9m15vkpywPUo7UblZv 3bhErY2frmXfxoLi3o6DURfJZXAx9vU35ycMyv1UMWnGkcWb85e/eYTUayyZ0q9O0l19 Dtw9aQC+shQaztnmEyjTDMXT5SFYRTrT3UY1P00Oh7WPXBF15JNINelndOK+BhcN1eH0 YvYA== 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=sNKyVWvTDx1R8uHFHMDm4ku2j7NOnETnpJhTviSfIMM=; b=MPMmuxUTkWvZfrzMuMqriE+9sLb+DqSLqy0i6/wCBv26CxqSfi3P9IiX1oHNIYQuNt JaEO3HxDKO9z3qqnOoI1Z2o7Cy1CytMid+OwE+2pop26epTIxOf91K2Uk0k4KxZIxj8j OJnqajf6xhOxIwKPy28F9NyvKGPq/TLHzSYGuh4shpNUF0W8JWT+IcUAEaMlZ95CuiL/ JUBDaCShWvO9Rzi8C6QbwxwleexSpiGzEDoUmgTjkIGRiMjCjVaX5WPxu97JFEMc9dBX BHLS4wBPqHZGxQ91sZgkW9YcYQMrLjbtwGKZWSTIqY6Jfwwvl/PXX7gkJeZXYYENGF3Z FEDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NpJriSox; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v8-20020a50c408000000b0045744c3c3d8si18911852edf.515.2022.10.21.05.51.48; Fri, 21 Oct 2022 05:52:14 -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=NpJriSox; 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 S229975AbiJUMqP (ORCPT + 99 others); Fri, 21 Oct 2022 08:46:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbiJUMqG (ORCPT ); Fri, 21 Oct 2022 08:46:06 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79DD12623F7; Fri, 21 Oct 2022 05:46:03 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 29CEE60004; Fri, 21 Oct 2022 12:46:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1666356362; 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=sNKyVWvTDx1R8uHFHMDm4ku2j7NOnETnpJhTviSfIMM=; b=NpJriSoxRfyJj5VLnW+pIsps33c/eD5/64FK2QZF/LojNcX8zR7OytnD/HH70pQiBcV19t dSFxgnwYhAJCiZQe6agGSSk+Gs3EkWSUiqsDQBbxlzWF9jpOR3OKCbycYRfSqfNppDSBO2 KAZPQjvnh34PIrtHeIh8vMusVloOt7TvuE0xDDCuS0wAzXhpw1tDJI5VvQ42I3LIWWMnSQ aDaqvk3uqF2LaPJfCYdZ8f1+iK+dEv9GfeMWAVt4nsnTCaWBFthnBD4B4LfhkM85cJLETt I2H1HEEXrlKZiUjJ0ixnWKw4Zi4c9/opImt9aC1EP6X6+XDBcv4PHjOIXPowKA== 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 v5 1/5] net: dt-bindings: Introduce the Qualcomm IPQESS Ethernet controller Date: Fri, 21 Oct 2022 14:45:52 +0200 Message-Id: <20221021124556.100445-2-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221021124556.100445-1-maxime.chevallier@bootlin.com> References: <20221021124556.100445-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 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,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747301678708339594?= X-GMAIL-MSGID: =?utf-8?q?1747301678708339594?= 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 --- 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 | 95 +++++++++++++++++++ 1 file changed, 95 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..6892145d9154 --- /dev/null +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-ess-edma.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 = "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; + }; + }; + +...