Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F97AC6FD19 for ; Thu, 16 Mar 2023 11:36:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230206AbjCPLg0 (ORCPT ); Thu, 16 Mar 2023 07:36:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230189AbjCPLgT (ORCPT ); Thu, 16 Mar 2023 07:36:19 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2559939B93 for ; Thu, 16 Mar 2023 04:36:01 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id y4so6378382edo.2 for ; Thu, 16 Mar 2023 04:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678966559; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=DqDI/M1Af8/sNqbCpEB0H1SmBWIzYviu82ZtF7Bi/bY=; b=rRiEU5oazgQw0R1aSrCBttAqFSEJbGCKYqagvYeE7JYF//DJybGNz6QSbv2vA07802 dlLfQ+Yulm4Iqsuz0cMhG7nEGJfRGeZqyJVaah9azQkwJm1F46Ci4e1AgEY8zzju++/g cEqoPpZjBM7kZVe2+ZcrvrjK6G1JXhVTodHZjT1QIGOE2dIBKG9C5jGGQzviDkwWfDQN C/sdbca1RYlv1W6tQHtImGRS3uNb4EZrh9ITaYedh8GcRQs9VXcnn4NnAAY76T8sdI8F wHLDEHsJcnRzHbhyrcGYBykxBR3sGVENScBstgDamWjuJOIk5QttOiqcWZQMSclPr9PO XkUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678966559; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DqDI/M1Af8/sNqbCpEB0H1SmBWIzYviu82ZtF7Bi/bY=; b=WiPQyo38DnkpsTalucKGopwlypjDbMhBQ5pZT4tpLOvQRvFd/Bvn3bf7solQGVzxoN 8yO9Seheu6kyqzNIWfA+3zFoSHFTy8DctcZB1lKbLZdTLe8enSQHhoIWMPNtQGLBOGTC SMJOhggnuOMlKrheJKS5AQODEYNHQpgwQmcqXEd/1TALeEuSxzcu8Wby06HbhZcly4GO 6sDnfwWbqW6p/UoFZT3nDsJ8oZlLGLeh+AIx7CuAm4xmVojhUO+YfQG5ZZgdARtfayA0 0/D3GNBW78fyF8w2fHOBm9lD+7deneoN9y85jrojMiAeXZ7jT5zSbDOMt7+Uj5QzRhcB Gnbw== X-Gm-Message-State: AO0yUKX9cgHp7tWnCNmujTtzTvoiWn1ffDSMVFs6gdpIzEuIKoitbTT/ Qoa9bfEWwLmJLo9DgL76OYEvUg== X-Google-Smtp-Source: AK7set8sYZiwje7c5FUEwR9UZNt5fMGvnqOF2tI01ccg9IOBFjG/kdx4xLMiQvZ3K+XFDGc8yi4+vg== X-Received: by 2002:aa7:c94e:0:b0:4fb:5089:6e01 with SMTP id h14-20020aa7c94e000000b004fb50896e01mr6438016edt.6.1678966559627; Thu, 16 Mar 2023 04:35:59 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:9827:5f65:8269:a95f? ([2a02:810d:15c0:828:9827:5f65:8269:a95f]) by smtp.gmail.com with ESMTPSA id g24-20020a50d0d8000000b004fd29e87535sm3714492edf.14.2023.03.16.04.35.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Mar 2023 04:35:59 -0700 (PDT) Message-ID: <2751a83d-d3ff-8dbf-4fa3-dedc40d23d45@linaro.org> Date: Thu, 16 Mar 2023 12:35:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v7 4/6] dt-bindings: net: Add support StarFive dwmac Content-Language: en-US To: Guo Samin , linux-riscv@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Richard Cochran , Andrew Lunn , Heiner Kallweit , Peter Geis , Yanhong Wang , Tommaso Merciai References: <20230316043714.24279-1-samin.guo@starfivetech.com> <20230316043714.24279-5-samin.guo@starfivetech.com> <93a3b4bb-35a4-da7c-6816-21225b42f79b@starfivetech.com> <9038dba0-6f72-44a1-9f57-1c08b03b9c31@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/03/2023 11:18, Guo Samin wrote: > > > -------- 原始信息 -------- > Re: [PATCH v7 4/6] dt-bindings: net: Add support StarFive dwmac > From: Krzysztof Kozlowski > to : Guo Samin , linux-riscv@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org > data: 2023/3/16 > >> On 16/03/2023 09:28, Guo Samin wrote: >>> >>> >>> -------- 原始信息 -------- >>> 主题: Re: [PATCH v7 4/6] dt-bindings: net: Add support StarFive dwmac >>> From: Krzysztof Kozlowski >>> 收件人: Guo Samin , linux-riscv@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org >>> 日期: 2023/3/16 >>> >>>> On 16/03/2023 09:15, Guo Samin wrote: >>>>>>>> interrupts: ??? >>>>>>>> >>>>>>> >>>>>>> Hi Krzysztof, >>>>>>> >>>>>>> snps,dwmac.yaml has defined the reg/interrupt/interrupt-names nodes, >>>>>>> and the JH7110 SoC is also applicable. >>>>>>> Maybe just add reg/interrupt/interrupt-names to the required ? >>>>>> >>>>>> You need to constrain them. >>>>> >>>>> >>>>> I see. I will add reg constraints in the next version, thanks. >>>>> >>>>> I have one more question, the interrupts/interrup-names of JH7110 SoC's gmac are exactly the same as snps,dwmac.yaml, >>>>> do these also need to be constrained? >>>> >>>> The interrupts on common binding are variable, so you need to constrain >>>> them - you have fixed number of them, right? >>>> >>>> Best regards, >>>> Krzysztof >>>> >>> >>> Yes, JH7110 fixed is 3 pcs. Thanks, I will constrain them. >> >> Then just minItems: 3, maxItems: 3 here should be enough >> >> Best regards, >> Krzysztof >> > > Hi Krzysztof, > > Thank you for the suggestion. > I'll change it like this in the next version, is right? Yes, looks good for me. Best regards, Krzysztof