Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3327489rdb; Thu, 16 Nov 2023 06:47:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IET3BK0YV99dCOXnxyeev7AUUSv3+RQ4CGAvbqYIzMv7k8tAFF10fKuWQ1bYH//KHyfkb1y X-Received: by 2002:a17:90a:e7c7:b0:26d:17da:5e9f with SMTP id kb7-20020a17090ae7c700b0026d17da5e9fmr14356225pjb.1.1700146067924; Thu, 16 Nov 2023 06:47:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700146067; cv=none; d=google.com; s=arc-20160816; b=ZxxHXGf0MYRpeMSqNEdtRkuITL5xV27xGAgkmz/qSV5ZTcXlUvN1D2X1Xyq31pvDTi Ca+Gy+MVjRGRd12uYapmp00f0ltA6xt7AoMQcZfqrOjel3WjrgwsX4h/ICwb6u9FyFfo Yox55cYhuXAcnwIQHrdWHXNISsmOEp2+B7pQ/fD6rjPr6yJ2JRhxT3SSMSoqOkY5C8lH Jf0jzN1wJPnYPfOrvcLaI1xmkSYxeOab15Y+mUX8qSfCjnM98gPp+3nYAyJLPnK4E1fs +WzkIj8XgST3z9M/1q9MEEKZtCkdNxFK3InISszodGdxQZyTUYP/sp2D+/duYQXIqeJD id7Q== 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=tJLCa9BJUO9S4zHRYogwFMFK2PMpkEI3l/l2BEdzPTY=; fh=6oC8mie6PaARdJ6AMwPv7u78TM1r1MuDOfXZtXwYUnI=; b=Sg8cWmgzNpxS2EzQiHzNAanE2yXQ/2zvFnRqgXeLQetX6x0/Y0L+8j2/UmQjRcOOfv XYxIPOcjhdcYRdctNpNrf4T4geqqJ91spTN0e1DTO00NI853wOf3JOl7y3Jg0SXzo5aw sDI0MCDA0tga8qCxIEi7sJxLxvtDyf14gk1pYXLKv95G3uNEzGRftryoRulGaMq2S/wa XGUUhM8x1y5K/fAzDCSlNiGTRqnQzv+6yrTPwnoTIgX3HXJ2X8CixiaaQkSx+WXyuSkS BezRt6Hnkq2YAF3lTVgqvVh7dO8N6+iTJVFlVxqf/JkL6xpExSt01iXiVp+WayidMTVJ vQwg== 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 sj14-20020a17090b2d8e00b00278f6d616aasi2255296pjb.71.2023.11.16.06.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:47:47 -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 61E98821ADA9; Thu, 16 Nov 2023 06:47:46 -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 S1345328AbjKPOrp (ORCPT + 99 others); Thu, 16 Nov 2023 09:47:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345299AbjKPOro (ORCPT ); Thu, 16 Nov 2023 09:47:44 -0500 Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D7D119D; Thu, 16 Nov 2023 06:47:40 -0800 (PST) Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-3b3f6dd612cso499478b6e.3; Thu, 16 Nov 2023 06:47:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700146060; x=1700750860; 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=tJLCa9BJUO9S4zHRYogwFMFK2PMpkEI3l/l2BEdzPTY=; b=II/3nozZBuvzZaHdSpiKd/u4o7GZpL/vpKj4u7pxFtNruthycxNXL8bNjagp4+Q4M4 s2wln6Tq9BINnwFlHWVXvoQdHg0vvieQ70l02m3Cy28v6zVOA6e2rJjWmWfzHID4Gw3d HCg2YwUsSj4TQYiZWjPYub04PJcX5li3xYOs55V+RU4P0nuEcFQHjMDfOdU7IOO78Ehq 51MMSTcqD7nEBPNzcwJwQV9+ynZrG5YhJ2haJAJU3XE0JCvxb3pKHD9rjsLrLq4dxk8f Bqy5T2p1lz3FlS6kBxkotXkQxmTtmTBYmnpB89btythbCT+WdyJWxkyHXMGU+q/Q8oTK 9D7Q== X-Gm-Message-State: AOJu0YzAXY/Jh9hFz3msWQwCKFxDOwH17BpOp83B0VhyP2VfG/qg8/Mr 9TyuewIvZ6RwIB+B+j6Pyw== X-Received: by 2002:a54:479a:0:b0:3b3:e64e:e0a4 with SMTP id o26-20020a54479a000000b003b3e64ee0a4mr17693802oic.54.1700146059680; Thu, 16 Nov 2023 06:47:39 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id dj4-20020a056808418400b003b2f369a932sm1835291oib.49.2023.11.16.06.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:47:39 -0800 (PST) Received: (nullmailer pid 2201084 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: =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= Cc: Zhang Rui , Daniel Lezcano , Matthias Brugger , linux-pm@vger.kernel.org, AngeloGioacchino Del Regno , Rob Herring , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= , Sascha Hauer , Lukasz Luba In-Reply-To: <20231116131316.5897-1-zajec5@gmail.com> References: <20231116131316.5897-1-zajec5@gmail.com> Message-Id: <170014605188.2201020.9043410621344203853.robh@kernel.org> Subject: Re: [PATCH V2] dt-bindings: thermal: convert Mediatek Thermal to the json-schema 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_H2, 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:46 -0800 (PST) On Thu, 16 Nov 2023 14:13:16 +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > This helps validating DTS files. > > Signed-off-by: Rafał Miłecki > --- > V2: Add "maintainers" > > .../bindings/thermal/mediatek-thermal.txt | 52 --------- > .../bindings/thermal/mediatek-thermal.yaml | 101 ++++++++++++++++++ > 2 files changed, 101 insertions(+), 52 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/thermal/mediatek-thermal.txt > create mode 100644 Documentation/devicetree/bindings/thermal/mediatek-thermal.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: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/thermal/mediatek-thermal.yaml: properties:resets: 'Reference to the reset controller controlling the thermal controller.' 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/thermal/mediatek-thermal.yaml: properties:resets: 'Reference to the reset controller controlling the thermal controller.' is not of type 'object', 'boolean' 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 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 332, in properties yield from validator.descend( 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/20231116131316.5897-1-zajec5@gmail.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.