Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2619222pxj; Mon, 10 May 2021 07:09:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKZq3kwUJ4ZEA9gpmIPCNBc+TCiN61EtCkVqwFoaoQL+W0A3LMJLUAKDYl4F3hd/xJbzNk X-Received: by 2002:a92:dace:: with SMTP id o14mr21481013ilq.183.1620655790971; Mon, 10 May 2021 07:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620655790; cv=none; d=google.com; s=arc-20160816; b=ABeNT3oB67eMJ0G8iOvDnGRi/rnwGOEOlBNUE2O2mGgWM3M7JHirFTpH73wxU2I74z TGYpgCIu3z+nHFozsGcEFWKNBryF1NGGd23WRQVz7Ag8X0eK8GQKZah99d6YHLkEwTFP V0hOdp0Fkp/j42zvHRHsAKnuAdYT99THyMK7/crjgSE4t10tT89WkkR7r12EuSR2q7eN orMPov3HnczwCJ/Mrr6f2K5pSGyz2MPDC356CaYQ5BBGaQ/tbpjZ/CQgJKqUyfPQ+n2Z BHTtWu6n2NBme2vK4DPNINdv1dq8wquJdCNpVn+p62xOxpncsFIe2Z47EFjjPCg2qBUc 0XnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:references:in-reply-to :cc:to:from; bh=8x0sdZI0qIf8JEbZCMQjTEtCIV+MctmLL1yQ3iA3/nY=; b=CsLO6PVuPT3TVp8niRZHdGDhnR1Z6vmGFty5QECYiiIJyF2U9CaB0158/FIfTqIpc2 7bUCvrIxGxTRHndKyYdAMdv0s518fc8OpGD7IZsUjbFEmCcXotG2rLQ6e4vNHWsUVlr9 ChILhoS66EhCHHTHhO64wnciNXFEhtSzCPFnhx3nPav5cJpd4ilNbNHlhUwvCB8aOdEa OTEr/qNyx6n6H3mK79/sE62JaNjDHYiOwOpZ/9og/AlF5ITx1PBGRSRNuCcLEvYpZt6f ALRMu3WKJPt9iTp+0YQCNW95BOHD5hOsfJV2fFclQhK2CnR3WCfmqmfUlhSwSZm5MCSf Zrlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i25si5827781ila.96.2021.05.10.07.09.36; Mon, 10 May 2021 07:09:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233917AbhEJOJB (ORCPT + 99 others); Mon, 10 May 2021 10:09:01 -0400 Received: from mail-oi1-f171.google.com ([209.85.167.171]:44915 "EHLO mail-oi1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231157AbhEJOCt (ORCPT ); Mon, 10 May 2021 10:02:49 -0400 Received: by mail-oi1-f171.google.com with SMTP id d21so15836245oic.11; Mon, 10 May 2021 07:01:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:in-reply-to:references:subject:date :message-id; bh=8x0sdZI0qIf8JEbZCMQjTEtCIV+MctmLL1yQ3iA3/nY=; b=oEeGw9lSSyw3WAwz3Jkam+WzRvYACuonG3+S2AGCSVtu5QM+ryylt0osDp1CeR/dQW BYEYQhateE7nDM45wvYAuDyhF74N6dO7mtW2s8lqUl8v/1dTObH58JA0G/9HZeYxnGKS RX005ILosogbPVrs1IuffG2Osq3YRPJc9NTR+8FT/gB72oDPe55jr1M2f1aCq3RvOfpz +41UBYhCXe387P+YSwR+Il+VUne0yaeX8zfaK3A4u6X9lf4vrKwjJK36tFa9OxUSwnMt xEHXQ8p16n2sOHEo+f50rK1dD3mQ+Ief7ACviyKzygDDM5w85in2ZB9W5f5QcxdpQNYt tA5A== X-Gm-Message-State: AOAM532z1TmMWGi+1vV292w+E3nTj6HHAlbm3C0kST/n22RkTNifNmHj JpiML21SFuirgWcGX05TgQ== X-Received: by 2002:aca:c413:: with SMTP id u19mr25938281oif.41.1620655302805; Mon, 10 May 2021 07:01:42 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id u14sm2635014oif.41.2021.05.10.07.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 07:01:41 -0700 (PDT) Received: (nullmailer pid 41434 invoked by uid 1000); Mon, 10 May 2021 14:01:39 -0000 From: Rob Herring To: Ansuel Smith Cc: "David S. Miller" , devicetree@vger.kernel.org, Vivien Didelot , Jakub Kicinski , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Rob Herring , Russell King , Florian Fainelli , Andrew Lunn , Vladimir Oltean In-Reply-To: <20210508002920.19945-24-ansuelsmth@gmail.com> References: <20210508002920.19945-1-ansuelsmth@gmail.com> <20210508002920.19945-24-ansuelsmth@gmail.com> Subject: Re: [RFC PATCH net-next v4 24/28] devicetree: net: dsa: Document use of mdio node inside switch node Date: Mon, 10 May 2021 09:01:39 -0500 Message-Id: <1620655299.775309.41433.nullmailer@robh.at.kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 08 May 2021 02:29:14 +0200, Ansuel Smith wrote: > Switch node can contain mdio node to describe internal mdio and PHYs > connected to the switch ports. > > Signed-off-by: Ansuel Smith > --- > .../devicetree/bindings/net/dsa/dsa.yaml | 28 +++++++++++++++++++ > 1 file changed, 28 insertions(+) > 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/dsa/dsa.yaml:93:1: [error] duplication of key "patternProperties" in mapping (key-duplicates) ./Documentation/devicetree/bindings/net/dsa/dsa.yaml:114:13: [warning] wrong indentation: expected 10 but found 12 (indentation) dtschema/dtc warnings/errors: make[1]: *** Deleting file 'Documentation/devicetree/bindings/net/dsa/dsa.example.dts' Traceback (most recent call last): File "/usr/local/bin/dt-extract-example", line 45, in binding = yaml.load(open(args.yamlfile, encoding='utf-8').read()) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 421, in load return constructor.get_single_data() File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 111, in get_single_data return self.construct_document(node) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 121, in construct_document for _dummy in generator: File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 714, in construct_yaml_map value = self.construct_mapping(node) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 435, in construct_mapping return BaseConstructor.construct_mapping(self, node, deep=deep) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 253, in construct_mapping if self.check_mapping_key(node, key_node, mapping, key, value): File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 284, in check_mapping_key raise DuplicateKeyError(*args) ruamel.yaml.constructor.DuplicateKeyError: while constructing a mapping in "", line 4, column 1 found duplicate key "patternProperties" with value "{}" (original value: "{}") in "", line 93, column 1 To suppress this check see: http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys Duplicate keys will become an error in future releases, and are errors by default when using the new API. make[1]: *** [Documentation/devicetree/bindings/Makefile:20: Documentation/devicetree/bindings/net/dsa/dsa.example.dts] Error 1 make[1]: *** Waiting for unfinished jobs.... ./Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml: while constructing a mapping in "", line 4, column 1 found duplicate key "patternProperties" with value "{}" (original value: "{}") in "", line 93, column 1 To suppress this check see: http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys Duplicate keys will become an error in future releases, and are errors by default when using the new API. ./Documentation/devicetree/bindings/net/dsa/hirschmann,hellcreek.yaml: while constructing a mapping in "", line 4, column 1 found duplicate key "patternProperties" with value "{}" (original value: "{}") in "", line 93, column 1 To suppress this check see: http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys Duplicate keys will become an error in future releases, and are errors by default when using the new API. ./Documentation/devicetree/bindings/net/dsa/arrow,xrs700x.yaml: while constructing a mapping in "", line 4, column 1 found duplicate key "patternProperties" with value "{}" (original value: "{}") in "", line 93, column 1 To suppress this check see: http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys Duplicate keys will become an error in future releases, and are errors by default when using the new API. Traceback (most recent call last): File "/usr/local/bin/dt-doc-validate", line 67, in ret = check_doc(f) File "/usr/local/bin/dt-doc-validate", line 25, in check_doc testtree = dtschema.load(filename, line_number=line_number) File "/usr/local/lib/python3.8/dist-packages/dtschema/lib.py", line 625, in load return yaml.load(f.read()) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 421, in load return constructor.get_single_data() File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 111, in get_single_data return self.construct_document(node) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 121, in construct_document for _dummy in generator: File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 714, in construct_yaml_map value = self.construct_mapping(node) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 435, in construct_mapping return BaseConstructor.construct_mapping(self, node, deep=deep) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 253, in construct_mapping if self.check_mapping_key(node, key_node, mapping, key, value): File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 284, in check_mapping_key raise DuplicateKeyError(*args) ruamel.yaml.constructor.DuplicateKeyError: while constructing a mapping in "", line 4, column 1 found duplicate key "patternProperties" with value "{}" (original value: "{}") in "", line 93, column 1 To suppress this check see: http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys Duplicate keys will become an error in future releases, and are errors by default when using the new API. make[1]: *** Deleting file 'Documentation/devicetree/bindings/processed-schema-examples.json' Traceback (most recent call last): File "/usr/local/bin/dt-mk-schema", line 38, in schemas = dtschema.process_schemas(args.schemas, core_schema=(not args.useronly)) File "/usr/local/lib/python3.8/dist-packages/dtschema/lib.py", line 587, in process_schemas sch = process_schema(os.path.abspath(filename)) File "/usr/local/lib/python3.8/dist-packages/dtschema/lib.py", line 561, in process_schema schema = load_schema(filename) File "/usr/local/lib/python3.8/dist-packages/dtschema/lib.py", line 126, in load_schema return do_load(os.path.join(schema_basedir, schema)) File "/usr/local/lib/python3.8/dist-packages/dtschema/lib.py", line 112, in do_load return yaml.load(tmp) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 421, in load return constructor.get_single_data() File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 111, in get_single_data return self.construct_document(node) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 121, in construct_document for _dummy in generator: File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 714, in construct_yaml_map value = self.construct_mapping(node) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 435, in construct_mapping return BaseConstructor.construct_mapping(self, node, deep=deep) File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 253, in construct_mapping if self.check_mapping_key(node, key_node, mapping, key, value): File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 284, in check_mapping_key raise DuplicateKeyError(*args) ruamel.yaml.constructor.DuplicateKeyError: while constructing a mapping in "", line 4, column 1 found duplicate key "patternProperties" with value "{}" (original value: "{}") in "", line 93, column 1 To suppress this check see: http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys Duplicate keys will become an error in future releases, and are errors by default when using the new API. make[1]: *** [Documentation/devicetree/bindings/Makefile:62: Documentation/devicetree/bindings/processed-schema-examples.json] Error 1 make: *** [Makefile:1414: dt_binding_check] Error 2 See https://patchwork.ozlabs.org/patch/1475695 This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit.