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 B7121C636D6 for ; Thu, 23 Feb 2023 19:09:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231330AbjBWTJn (ORCPT ); Thu, 23 Feb 2023 14:09:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbjBWTJh (ORCPT ); Thu, 23 Feb 2023 14:09:37 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D56F51F96 for ; Thu, 23 Feb 2023 11:09:33 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id f41so14982065lfv.13 for ; Thu, 23 Feb 2023 11:09:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ki/+8rKjqaLiO1EXm/3PKBzNTnhWcpNouZYryd40ZXw=; b=xIuTFUJwmjUmo/ZY7Efw7KXI4HDpZwPevKdH4zReUGBB530x2VTfEXIap7soq0xrkt fLxo3HUQXeuriXYqhotDJepEW6dKbiKyscYKjciNlfpIQ7fIuhqj74/8rDCysXnnO0JS 4Rf3qTXcAeSv7w9CaUQ4B3flmF0e7QuqGF5lBxjmALTvorOeudLvwvHwKkIWAMFH6FGY RzPjMj1fh5sESLWEVhNtWl4+eoCT4hsOhoXtes5Embqey5/DrfNuKrjAedYKpFs1dksR kK0cf+naL7g3BnH+Zg0cDxH484/qNt5tBW1W5g+ElnpeGmP/16EUhsw6If9ri8NPv5Js WtKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ki/+8rKjqaLiO1EXm/3PKBzNTnhWcpNouZYryd40ZXw=; b=m2ULgYvvkw1bdoEFA8rfnYWfy6HxOMqTV/nrRIaJOp0emLR5zt6yhfa4h8tJnnM8Ki I35g2Tf+//Dmp/73EQxXcPlGQEaQQjqZsZGsQWDQae61ZEJ7CKw7X9Bali1f3nfEGGcu AU5ApgE+91taYBg8uxxfHBr3i/SUf9zG4XRtBQ/A6ONdPCxXcN1TCKuR7WJCgS4ZIAA4 zbAM/q3wNNMImyuYuUG9LHsnfTM1NDtFs6PFGP16WQ2ZChJMvP6kbPtkdB2CNa4qRJpQ JsbYq0HCmSl721/rXGrVhOJfvJF0WDy3kxhrnaOvtaboCTvU4v/UBZtgo3EFQzAjH6ny Ytkw== X-Gm-Message-State: AO0yUKXc3CgJMn9h8uGRGHJYQdAXrZekLjwL3i0ltA6Qaj7lzcnwbIo9 9e6ytaRH7Rbr0zhZVptWtGtXC8dsNtLkwJJs7nipKQ== X-Google-Smtp-Source: AK7set+1Snm8QmjNNVo8GqQflRkjIgua4+rtwYxMZTP19pOBlpTETTnalWgFkXRsDT/zGvsFyvQiZm0rEv+ZUq9Zrys= X-Received: by 2002:ac2:5387:0:b0:4d5:ca32:7bbb with SMTP id g7-20020ac25387000000b004d5ca327bbbmr4069994lfh.2.1677179371151; Thu, 23 Feb 2023 11:09:31 -0800 (PST) MIME-Version: 1.0 References: <20220929060405.2445745-1-bhupesh.sharma@linaro.org> <20220929060405.2445745-4-bhupesh.sharma@linaro.org> <4e896382-c666-55c6-f50b-5c442e428a2b@linaro.org> <1163e862-d36a-9b5e-2019-c69be41cc220@linaro.org> <9999a1a3-cda0-2759-f6f4-9bc7414f9ee4@linaro.org> <0aeb2c5e-9a5e-90c6-a974-f2a0b866d64f@linaro.org> <2e68d64f-766c-0a52-9df8-74f0681a5973@linaro.org> <20230222202904.mhsbxnaxt3psmwr7@halaney-x13s> In-Reply-To: <20230222202904.mhsbxnaxt3psmwr7@halaney-x13s> From: Bhupesh Sharma Date: Fri, 24 Feb 2023 00:39:19 +0530 Message-ID: Subject: Re: [PATCH v2 3/4] dt-bindings: net: qcom,ethqos: Convert bindings to yaml To: Andrew Halaney Cc: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, agross@kernel.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, netdev@vger.kernel.org, Bjorn Andersson , Rob Herring , Vinod Koul , David Miller Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Feb 2023 at 01:59, Andrew Halaney wrote: > > On Mon, Oct 03, 2022 at 11:32:58AM +0200, Krzysztof Kozlowski wrote: > > On 03/10/2022 10:29, Bhupesh Sharma wrote: > > > On Sun, 2 Oct 2022 at 13:24, Krzysztof Kozlowski > > > wrote: > > >> > > >> On 01/10/2022 14:51, Bhupesh Sharma wrote: > > >>>>> Right, most of them are to avoid the make dtbs_check errors / warnings > > >>>>> like the one mentioned above. > > >>>> > > >>>> All of them should not be here. > > >>> > > >>> I guess only 'snps,reset-gpio' need not be replicated here, as for > > >>> others I still see 'dtbs_check' error, if they are not replicated here: > > >>> > > >>> > > >>> arch/arm64/boot/dts/qcom/sm8150-hdk.dtb: ethernet@20000: Unevaluated > > >>> properties are not allowed ('power-domains', 'resets', 'rx-fifo-depth', > > >>> 'tx-fifo-depth' were unexpected) > > >>> From schema: /Documentation/devicetree/bindings/net/qcom,ethqos.yaml > > >>> > > >>> Am I missing something here? > > >> > > >> Probably the snps,dwmac schema failed. It is then considered > > >> unevaluated, so such properties are unknown for qcom,ethqos schema. Run > > >> check with snps,dwmac and fix all errors first. > > > > > > Running dt_binding_check DT_SCHEMA_FILES=net/snps,dwmac.yaml > > > reports no error currently. > > > > Then it's something in your commits. I don't know what you wrote, as you > > did not sent a commit. I cannot reproduce your errors after removing > > unneeded power-domains. > > > > Just to clarify - I am testing only the dt_binding_check (so only the > > examples - I assume they are meaningful). > > Just a little note before I forget.. > > I picked this up yesterday (in prep for adding sa8540p support here), > and noticed the same thing as Bhupesh when validating dtbs with > the requested changes (not duplicating snsp,dwmac.yaml). I ended up > tracking it down to a (fixed) bug in dtschema: > > https://github.com/devicetree-org/dt-schema/commit/e503ec1115345bdfa06b96c9d6c4496457cbd75b > > And a little test output showing before and after (fix is in the 2022.12 > release): > > (dtschema-2022.11) ahalaney@halaney-x13s ~/git/redhat/stmmac (git)-[stmmac] % make CHECK_DTBS=y DT_SCHEMA_FILES=/net/qcom,ethqos.yaml qcom/sm8150-hdk.dtb > LINT Documentation/devicetree/bindings > CHKDT Documentation/devicetree/bindings/processed-schema.json > SCHEMA Documentation/devicetree/bindings/processed-schema.json > DTC_CHK arch/arm64/boot/dts/qcom/sm8150-hdk.dtb > /home/ahalaney/git/redhat/stmmac/arch/arm64/boot/dts/qcom/sm8150-hdk.dtb: ethernet@20000: Unevaluated properties are not allowed ('power-domains', 'resets', 'rx-fifo-depth', 'snps,tso', 'tx-fifo-depth' were unexpected) > From schema: /home/ahalaney/git/redhat/stmmac/Documentation/devicetree/bindings/net/qcom,ethqos.yaml > (dtschema-2022.11) ahalaney@halaney-x13s ~/git/redhat/stmmac (git)-[stmmac] % pip3 list | grep dtschema > dtschema 2022.11 > (dtschema-2022.11) ahalaney@halaney-x13s ~/git/redhat/stmmac (git)-[stmmac] % > > dtschema) ahalaney@halaney-x13s ~/git/redhat/stmmac (git)-[stmmac] % pip3 list | grep dtschema > dtschema 2023.1 > (dtschema) ahalaney@halaney-x13s ~/git/redhat/stmmac (git)-[stmmac] % make CHECK_DTBS=y DT_SCHEMA_FILES=/net/qcom,ethqos.yaml qcom/sm8150-hdk.dtb > LINT Documentation/devicetree/bindings > CHKDT Documentation/devicetree/bindings/processed-schema.json > SCHEMA Documentation/devicetree/bindings/processed-schema.json > DTC_CHK arch/arm64/boot/dts/qcom/sm8150-hdk.dtb > (dtschema) ahalaney@halaney-x13s ~/git/redhat/stmmac (git)-[stmmac] % > > > I'll go ahead and make the adjustments and pull this series into mine > adding sa8540p support, thanks for starting it! Thanks Andrew. Please feel free to add it to your series. Regards, Bhupesh