Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2108405iob; Sun, 15 May 2022 08:13:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAgOHLb3maVDekF8BLkCUomxj9TKQ44qu5T4a+Gs7l5Vd6zBye+Cv2DCeSSQiMs3KjpkKk X-Received: by 2002:a05:6000:12d0:b0:20d:4ce:4f49 with SMTP id l16-20020a05600012d000b0020d04ce4f49mr2707109wrx.575.1652627587314; Sun, 15 May 2022 08:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652627587; cv=none; d=google.com; s=arc-20160816; b=TR1Ki5eXA5gTUK5owAMoCiwLDOkOsIhNU2ZfSH/wMHzKWYegE9+68GUqbsbciJVL0h CK3CX09PZX0cNwoefPFHzR7g7axcdrlYeZ8fVTJ4hNvLY12ArbJxsMA7esKFFK0fGXC2 r3MvTjfoi9vdMm82+qFmtP6ySrtNta9UGF5c2isdQ4Y0gCoZr3XxZE7V0GYN4ddED7m7 siivmunlH1jMnd0HIqykj+ojtX6ImPxHhf7sHXuAnccHO1HB2q6RyiT3h24UqeUEZ7wm DqhgoT+uDXrUvgUdTnVZRGcbDi8vOGTfcIQegBI0PxozXfxFE4qQcTY3ts2FIHd/W0ge Vq5Q== 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=hC30/SLz6XazxPL7Fa+2b6y49n9vWCDjkwDkFuvzVh8=; b=p+a1JfXYFNynnQGFY+zSCuaa4I5aqXfta8Qm8VtJSmUrVV4z+xeuAIRosMgpIFmZQX E2mw+CF/h86P2zqmUyqYwsr93Jzcf43S+uc9sjddJEgVrTVUblpLY74eKcL5ctLRV573 R+DDLCPsqTZcIeX1Rthrq29M0d2wxe62Dtq5QSzNX1Mtw1FQgJtXHl3y5KiR49PyP2ZX IET/OfJw4iymLQyXi1NkksDXHZ69+P2rJZsVgWjDMtCEz5VdfSM80ax06/SRNhTz1Yd4 +oAqn793MgmRPxkV1KLoTWjoXTakGwqcS79xAzCJQWSNnfXtAra+GKXk3yGcv5uAnNQi Jv1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Pm/jh2St"; 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 u7-20020a5d6da7000000b0020ab32ef588si7471653wrs.162.2022.05.15.08.12.29; Sun, 15 May 2022 08:13:07 -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="Pm/jh2St"; 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 S233857AbiENPHh (ORCPT + 99 others); Sat, 14 May 2022 11:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233778AbiENPHK (ORCPT ); Sat, 14 May 2022 11:07:10 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C01FB7CD; Sat, 14 May 2022 08:07:08 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 47B1FC0012; Sat, 14 May 2022 15:07:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1652540827; 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=hC30/SLz6XazxPL7Fa+2b6y49n9vWCDjkwDkFuvzVh8=; b=Pm/jh2Stp2sSxqcKuGO7pKSyN+nA8qv0r19drSt+yqveuF5b3vMliRkv2z2dqotFm6k8ay QcFfHAK31q9HUuTW2DaWfQSv4dEIYEP+GHCKBxQUcvJatscqhCS2FCn65IY0ZE5oHLQAQK 3i/ZXjKlxCz31W4ccBwERg+W/POkFBrhWCuq/vrlypOIJk6TRQEe1xcSjJWstn44EAXs7d 4MOxa1gKmlaSfp+YE8uJ4QHZGm/s9uaNmF5FF61NAJsWB6xVJDqCCNYhy/2PN/I1WVYCys xhaOskLFexxDlThHfgamAOROXu9wAz9KKXYJ7W2xp7CVk3BwKgmjU0oFhzxrAw== 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 v2 4/5] net: dt-bindings: Introduce the Qualcomm IPQESS Ethernet controller Date: Sat, 14 May 2022 17:06:55 +0200 Message-Id: <20220514150656.122108-5-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220514150656.122108-1-maxime.chevallier@bootlin.com> References: <20220514150656.122108-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 --- V1->V2: - Fixed the example - Added reset and clocks - Removed generic ethernet attributes .../devicetree/bindings/net/qcom,ipqess.yaml | 104 ++++++++++++++++++ 1 file changed, 104 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..ea0023509737 --- /dev/null +++ b/Documentation/devicetree/bindings/net/qcom,ipqess.yaml @@ -0,0 +1,104 @@ +# 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 + + clock-names: + const: ess + + resets: + maxItems: 1 + + reset-names: + const: ess + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - phy-mode + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + gmac: ethernet@c080000 { + compatible = "qcom,ipq4019-ess-edma"; + reg = <0xc080000 0x8000>; + resets = <&gcc ESS_RESET>; + reset-names = "ess"; + clocks = <&gcc GCC_ESS_CLK>; + clock-names = "ess"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + + phy-mode = "internal"; + fixed-link { + speed = <1000>; + full-duplex; + pause; + asym-pause; + }; + }; + +... -- 2.36.1