Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp904805rdb; Fri, 22 Dec 2023 08:19:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1JwiXmPnzmsyu1hmcZvFY+Qn+R/BeqpStqqUE9GJpuo0KZgoAAoTYiLN72ikt6DfkOIiP X-Received: by 2002:a50:ab07:0:b0:552:872e:83c1 with SMTP id s7-20020a50ab07000000b00552872e83c1mr814097edc.59.1703261949563; Fri, 22 Dec 2023 08:19:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703261949; cv=none; d=google.com; s=arc-20160816; b=F0F9nHPwSFbO0klsZ2cw8EzWGWSC7GTG20tzZXSNNESln3Bzp3vWjbGVUpS7MDJTe4 xmrf6UKqe7ZBKa3Kh1Jj2A8gWFVULrg+YWVIcQowlGnwMSwL2DzKfkiQTVn6CnqTLUGp Q7fwQ4JuxxBPB9yV8LN3N1lRxV2toFj1W8oJKrz0wW/G65HTF/u0oG4/p8G9C0JHCVe0 SxXzo2y3eNXgB6ZNz0FmVde+PN/Sgz6iaL/h2iNjQKruPKJf0g2htV2WFP6Fa1s/ukw7 xJa5RQP053NFtOFYrsHr9quqqA6hiLP/QGc0bzlk5UK6oSzxf7rpawUhqqmjDBFPiK62 cOGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:subject:message-id:references:in-reply-to:cc:to:from :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:dkim-signature; bh=HqsSR8ToC+sK+TqEmQrkU90VbgLXRis2ZXIPjj09mBo=; fh=1LF/X7NQgcH/pxXLtqA/dpklDYb+hMRkAziM2usQUN8=; b=n6yqqPdn29l/GiJ8G5Y/cNw7bOOZCCAFNdX5c4Jz9tgEfLlfTp8m83gVR8nuR1WpTD ORxMiWqtVv6uj8BPhUeqZvpt7LnYxDjocDeZHT6zJoZc111ufRm7u64py1eJEWNrvw4t 65K42yHbbpU4fTK6nKKY7HzFpS3H6u9RSijn9812M2jzeyEhAWu1kVg7CBZ2Rn5GBBdM 1iluwVT4Xtv+uAlSs+jpwfuKxbRJkadw+ifXQmwiW/cpvvB+6twvbXZuzGPJwwDOedPh 1R9PJ2OemAUtyIjjw0VWP2I18wkvCaXxXBNvcrt5WHNKXvydcSYGRnmzhtLVSZTV9LwA v41Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UCPpy92g; spf=pass (google.com: domain of linux-kernel+bounces-9876-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9876-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r27-20020a50d69b000000b0055337d0a87dsi1885429edi.426.2023.12.22.08.19.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 08:19:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9876-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UCPpy92g; spf=pass (google.com: domain of linux-kernel+bounces-9876-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9876-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 299001F21546 for ; Fri, 22 Dec 2023 16:19:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6632824215; Fri, 22 Dec 2023 16:18:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UCPpy92g" X-Original-To: linux-kernel@vger.kernel.org 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 89BBB241E9; Fri, 22 Dec 2023 16:18:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1808EC433C7; Fri, 22 Dec 2023 16:18:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703261936; bh=sFyXLqvCSCBVIhDV6X2IZpUbgvA4jiAGHM2EZhVLSlc=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=UCPpy92g601dTI7dvHpzT4blOVWMfSvem7QoBoxijwV4aUK95R8nccnISdSTUHu91 zso3T+h0zkaEPYlWAqpx5PVehlivGfhTcSbM96MZknFHSUiQGMKQELUvhPexkD52Q0 iRScgtx0OfIul3NcKYx/ulXdt2KXtKj6lFv2+E6U5nprGQuFxOUST8Ps7jMqY7IFwb hp5e9AZVDQQ8ISVlltvPGJ+9lCDB8ZsTYVJQ2PvO40EATRYlKf5VDLVmie/v+0ilEX WfbahfO504NHMHQczmsIboru/k5VWYll1/UFhd0LxO8edYIj7sU0FmGSMFxEqHBgcp Yc8K62r5Wb7Tg== Received: (nullmailer pid 2480748 invoked by uid 1000); Fri, 22 Dec 2023 16:18:53 -0000 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 To: Krzysztof Kozlowski Cc: linux-sound@vger.kernel.org, Srinivas Kandagatla , Sean Anderson , Bartosz Golaszewski , Mark Brown , Konrad Dybcio , Conor Dooley , Takashi Iwai , alsa-devel@alsa-project.org, Banajit Goswami , Rob Herring , Bjorn Andersson , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Liam Girdwood , devicetree@vger.kernel.org, Krzysztof Kozlowski , Jaroslav Kysela , Philipp Zabel In-Reply-To: <20231222150133.732662-4-krzysztof.kozlowski@linaro.org> References: <20231222150133.732662-1-krzysztof.kozlowski@linaro.org> <20231222150133.732662-4-krzysztof.kozlowski@linaro.org> Message-Id: <170326193305.2480732.11136927518876044020.robh@kernel.org> Subject: Re: [PATCH 3/4] ASoC: dt-bindings: qcom,wsa8840: Add reset-gpios for shared line Date: Fri, 22 Dec 2023 10:18:53 -0600 On Fri, 22 Dec 2023 16:01:32 +0100, Krzysztof Kozlowski wrote: > On newer Qualcomm platforms, like X1E80100-CRD, the WSA884x speakers > share SD_N GPIOs between two speakers, thus a coordinated assertion is > needed. Linux supports handling shared GPIO lines through "reset-gpios" > property, thus allow specifying either powerdown or reset GPIOs (these > are the same). > > Cc: Bartosz Golaszewski > Cc: Sean Anderson > Signed-off-by: Krzysztof Kozlowski > > --- > > If previous patches are fine, then this commit is independent and could > be taken via ASoC. > --- > .../devicetree/bindings/sound/qcom,wsa8840.yaml | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > 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: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/sound/qcom,wsa8840.yaml: oneOf:0: 'powerdown-gpios' 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/sound/qcom,wsa8840.yaml: oneOf:1: 'reset-gpios' 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/sound/qcom,wsa8840.yaml: oneOf: ['powerdown-gpios', 'reset-gpios'] should not be valid under {'items': {'propertyNames': {'const': 'const'}, 'required': ['const']}} hint: Use 'enum' rather than 'oneOf' + 'const' entries from schema $id: http://devicetree.org/meta-schemas/keywords.yaml# Traceback (most recent call last): File "/usr/local/bin/dt-validate", line 8, in sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.11/dist-packages/dtschema/dtb_validate.py", line 144, in main sg.check_dtb(filename) File "/usr/local/lib/python3.11/dist-packages/dtschema/dtb_validate.py", line 89, in check_dtb self.check_subtree(dt, subtree, False, "/", "/", filename) File "/usr/local/lib/python3.11/dist-packages/dtschema/dtb_validate.py", line 82, in check_subtree self.check_subtree(tree, value, disabled, name, fullname + name, filename) File "/usr/local/lib/python3.11/dist-packages/dtschema/dtb_validate.py", line 82, in check_subtree self.check_subtree(tree, value, disabled, name, fullname + name, filename) File "/usr/local/lib/python3.11/dist-packages/dtschema/dtb_validate.py", line 82, in check_subtree self.check_subtree(tree, value, disabled, name, fullname + name, filename) File "/usr/local/lib/python3.11/dist-packages/dtschema/dtb_validate.py", line 77, in check_subtree self.check_node(tree, subtree, disabled, nodename, fullname, filename) File "/usr/local/lib/python3.11/dist-packages/dtschema/dtb_validate.py", line 33, in check_node for error in self.validator.iter_errors(node, filter=match_schema_file): File "/usr/local/lib/python3.11/dist-packages/dtschema/validator.py", line 403, in iter_errors for error in self.DtValidator(sch, File "/usr/local/lib/python3.11/dist-packages/jsonschema/validators.py", line 288, in iter_errors for error in errors: File "/usr/local/lib/python3.11/dist-packages/jsonschema/_validators.py", line 414, in if_ yield from validator.descend(instance, then, schema_path="then") File "/usr/local/lib/python3.11/dist-packages/jsonschema/validators.py", line 305, in descend for error in self.evolve(schema=schema).iter_errors(instance): File "/usr/local/lib/python3.11/dist-packages/jsonschema/validators.py", line 288, in iter_errors for error in errors: File "/usr/local/lib/python3.11/dist-packages/jsonschema/_validators.py", line 383, in oneOf errs = list(validator.descend(instance, subschema, schema_path=index)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/jsonschema/validators.py", line 305, in descend for error in self.evolve(schema=schema).iter_errors(instance): File "/usr/local/lib/python3.11/dist-packages/jsonschema/validators.py", line 278, in iter_errors scope = id_of(_schema) ^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/jsonschema/validators.py", line 101, in _id_of return schema.get("$id", "") ^^^^^^^^^^ AttributeError: 'str' object has no attribute 'get' doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20231222150133.732662-4-krzysztof.kozlowski@linaro.org 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.