Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2755422pxb; Mon, 25 Apr 2022 01:28:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHsRFsVrB+8PhW4NXhGcXagQN3C/L6oVKfiDv0xWK0VMcN6ENrip9mXE9QevkKZC84/wht X-Received: by 2002:a17:907:7f19:b0:6ef:fe0b:71aa with SMTP id qf25-20020a1709077f1900b006effe0b71aamr15032909ejc.493.1650875334045; Mon, 25 Apr 2022 01:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650875334; cv=none; d=google.com; s=arc-20160816; b=GhuW5z7Dy3CRCsGkz60skS3bkL2DUMmGx5cE5UAhosrPx/szitO6gOgZelcwztQ0W6 4TsTC+WXSA09g3x5ZMwlQEfS4Kj79ol2OVD9anBollNXF2VFm/0vMfqbJY6rOkgh0Yvu MvSE5p8JcuzYzkscyaAv/CIRwSwCeIhEDY6oMC+NGQ/7GOoBJR3cqLMfCqOv+MompODI x2Asidz+gBucKxi8JJ4mpmCcIf3s8Xindo0aDzIUB99/NuMqfM+F/PWT6drClR4WOyL8 yzENsBkKoXeqWuOGT6zgp7nr2T+n1wafBjRiyPyz3aDLPyEgBsOQ3vPM4hVQuLx2crmK vNAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zzTlr5i1vBH3eZkwgYdNgfi9JX5fLc8qr1ql93tJV/Y=; b=G5waKCNf1zp08om3WarbzPe6SshhduCkECcAv4pNH8EVjXzDnSg9CQAe68VjADKZCj PwBV8cRxZ6qGPW1j2bSde2Wtc3PMK1EOpMfV43vWS3ZWXusO/oD0F5OgO+gbxahTW2xh E+uC8ld3r4oThjXqD8SMdPHxX8+d811Z8pwC7nJ9h50JP1nSfZn+U3mTTspmG8bPOjxR dTCHMwP4kGUI/ePnhN3VOUzMa4kvk7/RzBsg4HSf4kUZS69eFVrGIjr0I+2fuSWHevH+ FkDOSxICbc+HSg1r4ZY75NAvTKBx2IRxxVyLPPs7Mktb2iINIwea1eG7SFkwBr7ZR/0q P3+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K+1SaZwz; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd37-20020a17090762a500b006f01fd542c2si12288203ejc.606.2022.04.25.01.28.28; Mon, 25 Apr 2022 01:28:54 -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=@linaro.org header.s=google header.b=K+1SaZwz; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236691AbiDWRwr (ORCPT + 99 others); Sat, 23 Apr 2022 13:52:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236681AbiDWRwb (ORCPT ); Sat, 23 Apr 2022 13:52:31 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B7FB338B9 for ; Sat, 23 Apr 2022 10:49:33 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id a1so8336748edt.3 for ; Sat, 23 Apr 2022 10:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=zzTlr5i1vBH3eZkwgYdNgfi9JX5fLc8qr1ql93tJV/Y=; b=K+1SaZwztaHUvVqD4eNlYpZBN76mjtx6X5TywZ3y38vEWUlCs3d3C8MG++H7IoHYDC obAlZ/MFE+RmLzK9BST6KuGjJgj2nvuxyf+EArxIFmALpq7dutV6VEVcrWnef1iZqfqu gsvljKL8WC0w2kuY/LP5FZJr0Cljwtb0q6RJYd5mHPwTHiHZQMBsMsbMIkawn+YRaPV5 xR6zfWn6NS16/H+5Phh3JIRq6JLCN3166AGSz5ZSR/j3UDt27gwBrNEW3Jjy3UFAYwl/ O5ehOaVT1XdJYZaveHMdsVPQP/+X762VrAFvmtHYQHPLhYENkSK48IKmGKBAYGwuZ0vC ol5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=zzTlr5i1vBH3eZkwgYdNgfi9JX5fLc8qr1ql93tJV/Y=; b=5N/P6MNisfEdtIN0TU6LlmIfzgTOfrxOgE72Eene8wmuiEztnlXz5wKBeQEG6Gd2Iz hXkw3zm+vWvhy6oK3Tx6u75S704Vxvm3VBspR4xNPOgDsvDSun/uZHbEey9jHjv6m46A d4mWFuc99zXUSXMv30xXRjSQVQLsoMK23ol56fpobfA63oEuXkKYw9gYPK6C0do17ZiH zx3wvpaoKkFRGgqbDASSkiCiBhdrITc/qnAUBZEQjpCRUWbAVD98YUujVf8RbMflwqZS 5hiUCLzPfC3uT388TVbfRpncVAVSLImKLXaIS06z7KgALrZYz8fX4qpqVo3zOF4sFgsz KE2A== X-Gm-Message-State: AOAM531sX2x0cHykPIiBkl92HF4XVEh7miTDfNFNrs4lEWuAako5Hkys fU55C2cyR+6afgi9RH1jFRZLkg== X-Received: by 2002:a05:6402:4493:b0:41d:83ca:35d6 with SMTP id er19-20020a056402449300b0041d83ca35d6mr10731655edb.89.1650736172007; Sat, 23 Apr 2022 10:49:32 -0700 (PDT) Received: from [192.168.0.234] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id r22-20020a17090638d600b006d584aaa9c9sm1871730ejd.133.2022.04.23.10.49.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Apr 2022 10:49:31 -0700 (PDT) Message-ID: <34d3bfdc-cf8c-bf63-4f67-57c8d6c9b780@linaro.org> Date: Sat, 23 Apr 2022 19:49:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH net-next 4/5] net: dt-bindings: Introduce the Qualcomm IPQESS Ethernet controller Content-Language: en-US To: Maxime Chevallier , davem@davemloft.net, Rob Herring Cc: 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 References: <20220422180305.301882-1-maxime.chevallier@bootlin.com> <20220422180305.301882-5-maxime.chevallier@bootlin.com> From: Krzysztof Kozlowski In-Reply-To: <20220422180305.301882-5-maxime.chevallier@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 22/04/2022 20:03, Maxime Chevallier wrote: > 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 s/Device Tree Bindings// > + > +allOf: > + - $ref: "ethernet-controller.yaml#" allOf goes after maintainers. > + > +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 You don't need all these three. They come from ethernet-controller and you use unevaluatedProperties. > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - phy-mode > + > +unevaluatedProperties: false > + > +examples: > + - | > + gmac: ethernet@c080000 { > + compatible = "qcom,ipq4019-ess-edma"; > + reg = <0xc080000 0x8000>; > + interrupts = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + > + status = "okay"; No status in the example. > + > + phy-mode = "internal"; > + fixed-link { > + speed = <1000>; > + full-duplex; > + pause; > + asym-pause; > + }; > + }; > + > +... Best regards, Krzysztof