Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1949432rwb; Fri, 2 Dec 2022 03:30:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf7c7GKaMr/iFZd1jghqw4Um2PsfFQYgMJ84R7rnDPpMuyxdvYxs9j5WGPQqrwUw8AjK79wn X-Received: by 2002:a17:906:1797:b0:7c0:c805:42a with SMTP id t23-20020a170906179700b007c0c805042amr1500015eje.324.1669980638797; Fri, 02 Dec 2022 03:30:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669980638; cv=none; d=google.com; s=arc-20160816; b=PQCYUW7ulXUNKpYfQ7Grd7dPIJe4c2kXRUcfsh5ordPNaTJiAl4KR0C3CczvFdfBh8 BnlnMNPDcJec/tjPjJG0ra/xRTTmJvGKsM9lnhX1U5OVrnLFb2QqN1AuQMg86o3w4cy4 49Aemv5kAaHwwtru4lso4Y8JDOwg4xDtQLHHtGK9nSegXbnVWPNR5vWv9zHDDPxMob1Y TbyDMaTQyazRa6TsqpBSfFCxQrDxdoWznG+Hpcx3p22ZFmx3kBgHIAxRCVKnQn7ddZu2 P15vz02ZXwJCZBS14XKajWvYP2oEEt8TBSwpZr8POSLqf+OIGKXvoY6ciazzszW5AiWF X72w== 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=ozG/UpJ3bPaswuvxlA6GlaGwfzIvrdrSod17QPiF3RU=; b=q0+faHIpY4XxzZ797Odfx33RpvaUbWmOrCcNTs6fx2cnKrJFDyLi7B7yiLtd6TzZDu G63jUO6fz9JmPKeEg4RvE8e8e6GpNyHqpvtpK9cXJyq3n3soxdSR+F02LNtbWSURAy8Y 9G1RfEcYqUnwh9pgvBM9bCoGlklJ8NH2P1q1JzOi+NtcrT4xF5ViqvxKys8FkyDyjM9K dNavemC2GNmmriCfbHpqgGKMOpyYQti7gcAuZDdFWUeWlq6wsFDFXCAud93B+jM8PMqE +UQZx9FCv9kY8WHcMo/u0SSeb8pJlLg8KT/EvbQL00BynCYYXHLE819QXpjDPBmVll77 fDWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VnRfxu9n; 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 h11-20020a05640250cb00b0045d3e06e4d5si6601397edb.389.2022.12.02.03.30.16; Fri, 02 Dec 2022 03:30:38 -0800 (PST) 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=VnRfxu9n; 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 S233006AbiLBKyG (ORCPT + 83 others); Fri, 2 Dec 2022 05:54:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232833AbiLBKxh (ORCPT ); Fri, 2 Dec 2022 05:53:37 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8396F9381A for ; Fri, 2 Dec 2022 02:53:02 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id x6so4969982lji.10 for ; Fri, 02 Dec 2022 02:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=ozG/UpJ3bPaswuvxlA6GlaGwfzIvrdrSod17QPiF3RU=; b=VnRfxu9nNzzswT8wEXi/i183yZLJRDzC4A1K/Fiw/h2bpk3Sw8aOKG7jTN62zP4qJk orl6/lzBhRZ9GCycb806ntQgMFusHnDXYp8YNnYu72LcScqY0/ycnzDJfmarUJA35rjd o+UsA3ICCh89hAioEY5k7YQ8dAQsy4Oocqs46VFNEZNBdCDtz1BDMJtte9QpYpXEScRS rpvuuHQ47yCpXaboEhGzSEt3xZIHgXUlhslFK1jy2sNWUiFUyOew8e0Emwq59QKG236Y VkNClbkGA0sP43zbSRdGjkEPyAYIv+5+N/fpuUA25N+1UaGQUGDFPDv7m2ASEymVG/Z/ YScw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=ozG/UpJ3bPaswuvxlA6GlaGwfzIvrdrSod17QPiF3RU=; b=BlbTTaBmIWjknEy2MobtnsLAiHWmjnzRSnootvuksmxn6S3fhtI/iGcGjcWeGuuXEc ogxx2UF3Iad2oc4MwWKd4Ywpe4Bn5uRT8RFcJEAq2yA+AtP0yCGk8f45vzsyoMiR4N2v m5Sgktz4sswLXJMJMD14iQmV+35Es8u3ef3cUekVtgtr+rUWicyy+NTIWVGoC9b+C3Vq YofMgNjlDVxEPPGKK60fFSSFiOdTvcFkdwfFuOl9nk+AbwfA9FzyZmw5EoipnmYd8mt1 faZSVi8QGtWX4FFyuJAB0Sp4vQRl8zcC1g00FvOyh33TAJ0lBrHOQ/DJ42k7bkHYeKr7 JbLg== X-Gm-Message-State: ANoB5pn12u7w/2e27jBjfl4oCauT+F8CONq5lk6xomXCsLenwxwoA62R eGIIKKtZ5ZNkYbxrsKBTz0rQyHLHIOeDnvuqUNI= X-Received: by 2002:a2e:a263:0:b0:276:be89:5616 with SMTP id k3-20020a2ea263000000b00276be895616mr15253849ljm.347.1669978380884; Fri, 02 Dec 2022 02:53:00 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id u8-20020a05651c130800b0026fb5525ee4sm588660lja.116.2022.12.02.02.52.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Dec 2022 02:53:00 -0800 (PST) Message-ID: <624cba7f-1be9-7100-91d7-f9232c855d9f@linaro.org> Date: Fri, 2 Dec 2022 11:52:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v1 3/7] dt-bindings: net: Add bindings for StarFive dwmac Content-Language: en-US To: Conor Dooley , Rob Herring , Yanhong Wang Cc: Andrew Lunn , Krzysztof Kozlowski , Paolo Abeni , Rob Herring , Eric Dumazet , Jakub Kicinski , Peter Geis , Emil Renner Berthing , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, "David S . Miller" , devicetree@vger.kernel.org, Heiner Kallweit , Richard Cochran References: <20221201090242.2381-1-yanhong.wang@starfivetech.com> <20221201090242.2381-4-yanhong.wang@starfivetech.com> <166990139276.476262.15116409959152660279.robh@kernel.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 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 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 01/12/2022 17:45, Conor Dooley wrote: > Hey Yanhong, > > On Thu, Dec 01, 2022 at 07:36:29AM -0600, Rob Herring wrote: >> >> On Thu, 01 Dec 2022 17:02:38 +0800, Yanhong Wang wrote: >>> Add bindings for the StarFive dwmac module on the StarFive RISC-V SoCs. >>> >>> Signed-off-by: Yanhong Wang >>> --- >>> .../devicetree/bindings/net/snps,dwmac.yaml | 1 + >>> .../bindings/net/starfive,dwmac-plat.yaml | 106 ++++++++++++++++++ >>> MAINTAINERS | 5 + >>> 3 files changed, 112 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/net/starfive,dwmac-plat.yaml >>> >> >> My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' >> on your patch (DT_CHECKER_FLAGS is new in v5.13): >> >> yamllint warnings/errors: >> ./Documentation/devicetree/bindings/net/starfive,dwmac-plat.yaml:30:16: [warning] wrong indentation: expected 14 but found 15 (indentation) >> >> dtschema/dtc warnings/errors: >> ./Documentation/devicetree/bindings/net/starfive,dwmac-plat.yaml: $id: relative path/filename doesn't match actual path or filename >> expected: http://devicetree.org/schemas/net/starfive,dwmac-plat.yaml# >> Documentation/devicetree/bindings/net/starfive,dwmac-plat.example.dts:21:18: fatal error: dt-bindings/clock/starfive-jh7110.h: No such file or directory >> 21 | #include > > Perhaps, rather than putting a long list of "prerequisite-patch-id" in > your cover letters etc, you drop the need for headers from your bindings > entirely? Otherwise, you need to wait for the clock bindings to be applied > before any of your other peripherals etc can have drivers/bindings upstream. > > AFAIU, and Rob/Krzk please correct me, the example in a dt-binding > really is an *example* and there's no requirement for it to match the > jh7110 dts exactly. Because of that you can drop the header & just do > something like `clocks = <&clk 7>, <&clk 77>;` etc and the example is > still valid. Same goes for all of the other driver patchsets for new > StarFive stuff, like the pmu or crypto, that also have dt-bindings. > > The only person who has to worry then about dependencies is me when I > apply the .dts patches :) It's nice when example looks good and matching final DTS, but that's not a requirement. Pretty often clocks/resets/domains are mocked for the example. Best regards, Krzysztof