Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3293926lqo; Tue, 21 May 2024 12:19:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW80g09ZBq8JT+VrTr+b8XDa6fnwzGPTrM4/wiRQ70ONbZS5y1z2iXfG1BlKFmMHPmp25HWrXYhRmmC7frBpw0CBhgx5AhxeJo0rSvbbA== X-Google-Smtp-Source: AGHT+IE9ssL4NOUw9t1DJ4wl9/Fbac/tux1IZ8uk5qBYrpEKuHs9NeQ1RIVNHCKntmej2kMqEdjT X-Received: by 2002:aa7:88c6:0:b0:6ea:dfbf:13d4 with SMTP id d2e1a72fcca58-6f4e02cadacmr42148601b3a.18.1716319193201; Tue, 21 May 2024 12:19:53 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2b419e7si2504911b3a.347.2024.05.21.12.19.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 12:19:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185374-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=Q3lvAyQA; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-185374-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185374-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 73EEB28388B for ; Tue, 21 May 2024 19:19:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 614EC1494D9; Tue, 21 May 2024 19:19:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q3lvAyQA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 521141494C0; Tue, 21 May 2024 19:19:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716319172; cv=none; b=t8JcO6YcNL8tnyESv89lwBcgeSDtLJ7TLw6nnz2cvQ1xSOBQIblZwrtZbCkjFn40EDC9h7m8Us3dQxLzxFgTj8Tth6WrRqEJKVTK5S2ALgOXscaoIX83GHV3H6SkIJZcNc+HNPygoiOQeFvdUtDSdRSpuV0itDi9d1Arf3Ju8+4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716319172; c=relaxed/simple; bh=fOj4eX/N7m1mFqSJAh9Khjsst54QtD5KtS5epVuErSU=; h=Date:Content-Type:MIME-Version:From:To:Cc:In-Reply-To:References: Message-Id:Subject; b=eq+2iLuNk6JG96+DONE8urumEM7Q+YHjD59Lkls+L1cywdZHjEZcVjzYUge8vyvoDxjLi+qkoK+bZdT6A0kvUFiQwG7MeCYYnMZqwSsaQdYRZfqaCXvDQaVwnAFIsxnESJ+pRM3im/8DH4BcVenh1Nv+9rvq1rHz7wVOK/qzwV8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q3lvAyQA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98C8CC2BD11; Tue, 21 May 2024 19:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716319170; bh=fOj4eX/N7m1mFqSJAh9Khjsst54QtD5KtS5epVuErSU=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=Q3lvAyQAAWgNbO3KgNN0V25wB8P+e3hWIF3A5OfQ+GOD9kgsWPQ0Bv2biExdxOuIO WcUvgVaqkxByj2hiXm6j1VZ5uu6gZMjzCA7pEaN8oNqbtGKTWSUeDWqj5PGvJ2yl/s Ypfv2dgpFYf4Cufdiktw03yOuslIx8VQJXbxjXwLYB8JM4bz1THUHdCZzT4B0+zbWY hDow0v3WVxGitWwgBCU4mpMZzTsJIqyO3grzaV79dFWjj4/wunjvkL+2EAvaDwwrHU 2YwKC2jA645JzUe8auyHH85UIfKY6OpU56J49qvQYQANOMnPcTkGkJ9PFvrRBVTh8f 3GGYjxEEX9dJA== Date: Tue, 21 May 2024 14:19:29 -0500 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "Rob Herring (Arm)" To: Elliot Berman Cc: boot-architecture@lists.linaro.org, devicetree@vger.kernel.org, Rob Herring , Jon Hunter , Frank Rowand , Conor Dooley , Peter Griffin , Krzysztof Kozlowski , Sumit Garg , Doug Anderson , Julius Werner , Simon Glass , "Humphreys, Jonathan" , linux-kernel@vger.kernel.org, Michal Simek , Caleb Connolly , linux-arm-kernel@lists.infradead.org, Andy Gross , Bjorn Andersson , Amrit Anand , Chen-Yu Tsai , linux-arm-msm@vger.kernel.org, Konrad Dybcio In-Reply-To: <20240521-board-ids-v3-5-e6c71d05f4d2@quicinc.com> References: <20240521-board-ids-v3-0-e6c71d05f4d2@quicinc.com> <20240521-board-ids-v3-5-e6c71d05f4d2@quicinc.com> Message-Id: <171631916818.486548.9038805382926415687.robh@kernel.org> Subject: Re: [PATCH RFC v3 5/9] dt-bindings: board: Document board-ids for Qualcomm devices On Tue, 21 May 2024 11:38:02 -0700, Elliot Berman wrote: > Document board identifiers for devices from Qualcomm Technologies, Inc. > These platforms are described with two mechanisms: the hardware SoC > registers and the "CDT" which is in a RO storage. > > The hardware SoC registers describe both the SoC (e.g. SM8650, SC7180) > as well as revision. Add qcom,soc to describe only the SoC itself and > qcom,soc-version when the devicetree only works with a certain revision. > > The CDT describes all other information about the board/platform. > Besides the platform type (e.g. MTP, ADP, CRD), there are 3 further > levels of versioning as well as additional fields to describe the PMIC > and boot storage device attached. The 3 levels of versioning are a > subtype, major, and minor version of the platform. Support describing > just the platform type (qcom,platform), the platform type and subtype > (qcom,platform-type), and all 4 numbers (qcom,platform-version). > > Signed-off-by: Elliot Berman > --- > .../devicetree/bindings/board/qcom,board-id.yaml | 144 +++++++++++++++++++++ > 1 file changed, 144 insertions(+) > My bot found errors running 'make dt_binding_check' on your patch: yamllint warnings/errors: /Documentation/devicetree/bindings/board/qcom,board-id.yaml:15:12: [error] string value is redundantly quoted with any quotes (quoted-strings) /Documentation/devicetree/bindings/board/qcom,board-id.yaml:74:8: [error] empty value in block mapping (empty-values) /Documentation/devicetree/bindings/board/qcom,board-id.yaml:81:8: [error] empty value in block mapping (empty-values) /Documentation/devicetree/bindings/board/qcom,board-id.yaml:88:8: [error] empty value in block mapping (empty-values) /Documentation/devicetree/bindings/board/qcom,board-id.yaml:97:8: [error] empty value in block mapping (empty-values) /Documentation/devicetree/bindings/board/qcom,board-id.yaml:103:8: [error] empty value in block mapping (empty-values) dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/board/qcom,board-id.yaml: allOf:2:if: None is not of type 'object', 'boolean' from schema $id: http://json-schema.org/draft-07/schema# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/board/qcom,board-id.yaml: allOf:3:if: None is not of type 'object', 'boolean' from schema $id: http://json-schema.org/draft-07/schema# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/board/qcom,board-id.yaml: allOf:4:if: None is not of type 'object', 'boolean' from schema $id: http://json-schema.org/draft-07/schema# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/board/qcom,board-id.yaml: allOf:5:if: None is not of type 'object', 'boolean' from schema $id: http://json-schema.org/draft-07/schema# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/board/qcom,board-id.yaml: allOf:6:if: None is not of type 'object', 'boolean' from schema $id: http://json-schema.org/draft-07/schema# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/board/qcom,board-id.yaml: $id: 'http://devicetree.org/schemas/board/qcom,board-id.yaml' does not match 'http://devicetree.org/schemas/.*\\.yaml#' from schema $id: http://devicetree.org/meta-schemas/base.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/board/qcom,board-id.yaml: $schema: 'http://devicetree.org/meta-schemas/core.yaml' is not one of ['http://devicetree.org/meta-schemas/core.yaml#', 'http://devicetree.org/meta-schemas/base.yaml#'] from schema $id: http://devicetree.org/meta-schemas/base.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/board/qcom,board-id.yaml: ignoring, error in schema: allOf: 2: if Documentation/devicetree/bindings/board/qcom,board-id.example.dts:26:56: error: macro "QCOM_BOARD_ID" passed 4 arguments, but takes just 3 26 | qcom,platform-version = , | ^ In file included from Documentation/devicetree/bindings/board/qcom,board-id.example.dts:4: /scripts/dtc/include-prefixes/dt-bindings/arm/qcom,ids.h:279: note: macro "QCOM_BOARD_ID" defined here 279 | #define QCOM_BOARD_ID(a, major, minor) \ | Documentation/devicetree/bindings/board/qcom,board-id.example.dts:27:56: error: macro "QCOM_BOARD_ID" passed 4 arguments, but takes just 3 27 | ; | ^ /scripts/dtc/include-prefixes/dt-bindings/arm/qcom,ids.h:279: note: macro "QCOM_BOARD_ID" defined here 279 | #define QCOM_BOARD_ID(a, major, minor) \ | make[2]: *** [scripts/Makefile.lib:427: Documentation/devicetree/bindings/board/qcom,board-id.example.dtb] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/builds/robherring/dt-review-ci/linux/Makefile:1430: dt_binding_check] Error 2 make: *** [Makefile:240: __sub-make] Error 2 doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240521-board-ids-v3-5-e6c71d05f4d2@quicinc.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. 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 after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.