Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3327558rdb; Thu, 16 Nov 2023 06:47:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEi4Jt4EZxBLL+NCVklVl4hoVXafjJr4bB/ZvGeSSfnec4OEcsJ3yvpmC3QgznsASo9w+Bn X-Received: by 2002:a05:6a21:99a7:b0:186:b1e4:81b0 with SMTP id ve39-20020a056a2199a700b00186b1e481b0mr11975064pzb.57.1700146075510; Thu, 16 Nov 2023 06:47:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700146075; cv=none; d=google.com; s=arc-20160816; b=Emj8L6tivAVcX9HfruqWdpXC4k7HGUqTXzaNH5SUvracA0XVsk0hvqKmd1Wx0COXcu 9GwAvMN2YxwHy+tP8OOQ1yGqsM84bA/LKOhDN0xbir2NlZPILqwIh6tGgHwbsFI3ihIE xYxwi4Nratshax+sEJ77O4zKfDOg/vld2E34/WaqRx2V+xwvy87KRb0pUUSu6eUe2YBL J0caAgbp/yvtBjwB4RVbDI0foMIFYl+aWqqkfNDaesps1YN0cX4MJSmhw21s3W499bJD C6lSKpX7TV+YLc8Ss5Jb+FaQV5dma5BQvNX5RTDfMINQ2lyhoRqKwniyFAVW9GsvQ2rV zq2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:subject:message-id:references:in-reply-to :cc:to:from:mime-version:content-transfer-encoding; bh=ywzV03Ne2cC3N1HoVXd0+whAvyRwozy4MhAxh2O+GR0=; fh=NQxpf+gRzPONWpw2+3yHPjhwu6PF1Lyo05ck71DHe1U=; b=zFex8topNTan6yzX5mvqWIzfKugW0Uk08Y1rmqpmHilfl3j8QoyVoTK3f05BByoVMc FuWfpYejHFszmcjN5FrrZgZDOibfb5bkamnV5Y6k0Jd1w4EPImyHZjxetyvi2FC2k1zJ TgUSz1mH9hRwYaPCUmx2IjuM+JfR0BxWFGTlHt/l7nrFFhehv0oO3rvjp4x+HR4paLqK CJ2ymKH3Gz/VD+x04rmp97Ci4ntSLvJH7iLdn3A8PZDNfo2VoQT8o29r6f2/L1zDcNDv tXyilI04EP9o/Df9Yl6y9lcTy15+IiZSEX8lS9jDxRG2pep08ji+fLkxuIQYukaQb+Lu +KgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bi5-20020a056a02024500b00573f885c4easi13737724pgb.753.2023.11.16.06.47.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:47:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 572DC82224CE; Thu, 16 Nov 2023 06:47:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345348AbjKPOrw (ORCPT + 99 others); Thu, 16 Nov 2023 09:47:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345338AbjKPOrr (ORCPT ); Thu, 16 Nov 2023 09:47:47 -0500 Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4739E1AD; Thu, 16 Nov 2023 06:47:43 -0800 (PST) Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-6ce37683cf6so475891a34.3; Thu, 16 Nov 2023 06:47:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700146062; x=1700750862; h=date:subject:message-id:references:in-reply-to:cc:to:from :mime-version:content-transfer-encoding:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ywzV03Ne2cC3N1HoVXd0+whAvyRwozy4MhAxh2O+GR0=; b=vTA+p2HnNazclFbesSfL9l+r5338yIPFsl1tFZFS9FQbKH1HWEEUwoLYum4PYp91SJ M6G0Vb0gv2eIr06R4ugQBpYcpioMVgwoavfKux0ycMLsh3d+twtZLQbOa9W8cWbP4JAc c1EY/HDfqlV+4jJeCP2qKwYaeMdWHXNzFSGUi6jlHRBOSHJ5TusftpRy4UncrRRUGSsZ cun7SE7qf0MEaeIhWNfhTCpu6rVmmbzI8c1G/w1wFWQQEg3dprQu1qlwo23QJ53S/snW YfWDocKV3VlusevqbKk2yzIONra5Prum+UUQAknfxe8VHVacSvnibauHm8O8JbzcWaAt 9rEw== X-Gm-Message-State: AOJu0Yyv0n6+NzdTKkeXS4TpwPnGRMtwLIs3aS/WSXLXLBvFf5jZkm3B l0BxSYxaJJKusTCZj4uchQ== X-Received: by 2002:a05:6830:1651:b0:6d6:49ec:c559 with SMTP id h17-20020a056830165100b006d649ecc559mr9242520otr.5.1700146062482; Thu, 16 Nov 2023 06:47:42 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id l3-20020a9d7343000000b006d64e44566esm923864otk.72.2023.11.16.06.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:47:41 -0800 (PST) Received: (nullmailer pid 2201087 invoked by uid 1000); Thu, 16 Nov 2023 14:47:32 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Rob Herring To: mitrutzceclan Cc: Ceclan Dumitru , linux-gpio@vger.kernel.org, Conor Dooley , devicetree@vger.kernel.org, Conor Dooley , Hugo Villeneuve , Andy Shevchenko , linux-iio@vger.kernel.org, Rob Herring , andy@kernel.org, Mike Looijmans , Lars-Peter Clausen , Jonathan Cameron , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Haibo Chen , Arnd Bergmann , linus.walleij@linaro.org, Michael Walle , ChiaEn Wu , =?utf-8?q?Leonard_G=C3=B6hrs?= , brgl@bgdev.pl, Niklas Schnelle In-Reply-To: <20231116134655.21052-1-user@HYB-hhAwRlzzMZb> References: <20231116134655.21052-1-user@HYB-hhAwRlzzMZb> Message-Id: <170014605249.2201068.12986036457606296227.robh@kernel.org> Subject: Re: [PATCH v4 1/2] dt-bindings: adc: add AD7173 Date: Thu, 16 Nov 2023 08:47:32 -0600 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_FILL_THIS_FORM_SHORT, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 06:47:54 -0800 (PST) On Thu, 16 Nov 2023 15:46:54 +0200, mitrutzceclan wrote: > From: Dumitru Ceclan > > The AD7173 family offer a complete integrated Sigma-Delta ADC solution > which can be used in high precision, low noise single channel applications > or higher speed multiplexed applications. The Sigma-Delta ADC is intended > primarily for measurement of signals close to DC but also delivers > outstanding performance with input bandwidths out to ~10kHz. > > Reviewed-by: Conor Dooley # except reference_select > Signed-off-by: Dumitru Ceclan > --- > V3 -> V4 > - include supply attributes > - add channel attribute for selecting conversion reference > > .../bindings/iio/adc/adi,ad7173.yaml | 166 ++++++++++++++++++ > 1 file changed, 166 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7173.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/iio/adc/adi,ad7173.yaml:109:10: [error] empty value in block mapping (empty-values) dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml: properties:required: ['compatible', 'reg', 'interrupts'] 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/iio/adc/adi,ad7173.yaml: allOf:1:then: 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/iio/adc/adi,ad7173.yaml: allOf:1:else:patternProperties:^channel@[0-9a-f]$:properties:enum: [0, 2, 3] 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/iio/adc/adi,ad7173.yaml: allOf:1:else:patternProperties:^channel@[0-9a-f]$:properties: 'enum' should not be valid under {'$ref': '#/definitions/json-schema-prop-names'} hint: A json-schema keyword was found instead of a DT property name. from schema $id: http://devicetree.org/meta-schemas/keywords.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml: allOf:1:else:patternProperties:^channel@[0-9a-f]$:properties:enum: [0, 2, 3] is not of type 'object', 'boolean' from schema $id: http://devicetree.org/meta-schemas/keywords.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml: properties: 'dependencies' should not be valid under {'$ref': '#/definitions/json-schema-prop-names'} hint: A json-schema keyword was found instead of a DT property name. from schema $id: http://devicetree.org/meta-schemas/keywords.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml: properties: 'required' should not be valid under {'$ref': '#/definitions/json-schema-prop-names'} hint: A json-schema keyword was found instead of a DT property name. from schema $id: http://devicetree.org/meta-schemas/keywords.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml: properties:dependencies: 'anyOf' conditional failed, one must be fixed: 'refin2-supply' is not one of ['$ref', 'additionalItems', 'additionalProperties', 'allOf', 'anyOf', 'const', 'contains', 'default', 'dependencies', 'dependentRequired', 'dependentSchemas', 'deprecated', 'description', 'else', 'enum', 'exclusiveMaximum', 'exclusiveMinimum', 'items', 'if', 'minItems', 'minimum', 'maxItems', 'maximum', 'multipleOf', 'not', 'oneOf', 'pattern', 'patternProperties', 'properties', 'required', 'then', 'typeSize', 'unevaluatedProperties', 'uniqueItems'] 'type' was expected from schema $id: http://devicetree.org/meta-schemas/keywords.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml: properties:required: ['compatible', 'reg', 'interrupts'] is not of type 'object', 'boolean' from schema $id: http://devicetree.org/meta-schemas/keywords.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml: dependencies: missing type definition 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 393, 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 362, in allOf yield from 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 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 239, in evolve NewValidator = validator_for(schema, default=cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/jsonschema/validators.py", line 1148, in validator_for if schema is True or schema is False or "$schema" not in schema: ^^^^^^^^^^^^^^^^^^^^^^^ TypeError: argument of type 'NoneType' is not iterable doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20231116134655.21052-1-user@HYB-hhAwRlzzMZb 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.