Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5826242ybf; Thu, 5 Mar 2020 07:45:00 -0800 (PST) X-Google-Smtp-Source: ADFU+vsKw1DDRjJxltrgCCuxbsv9RFqQDjujQAbUJbYDFsn1MzIkOf0uNyXvyx7g8fPIyH4W1/j0 X-Received: by 2002:a05:6808:aaf:: with SMTP id r15mr5931518oij.124.1583423100283; Thu, 05 Mar 2020 07:45:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583423100; cv=none; d=google.com; s=arc-20160816; b=F13C/MkAFLfJLZqA+ScaUExvcn9hSJIoYmRz6aQzG38/k51QGde3Lt5cneXzVdkSOB uZu8km9hyJ0Uosyx5OtF9DiEI+jQmRFN8BOO2ZRi44kcDnFYsyqg1Y01J+Y06ZaPUKS8 0SJ2aE0oCQOK4ILJ1IZxWJXz9G2zAkjjXTv59dlhcQN6KiH68w3ZKARXkjOhl1Qq0U6q sSHPLzj57k+rIvGLCGI4GfztWeQSqKlVB+a4Mukvr69wwY3UvVdEnBU532wubRKWIHyD 2UFgTWEmRJlr9Hzx+4p1+qz6ilNj6oL6RTrZqqK589uVNx5GAC049uzgluzfriRVwL3o XSOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=BtkP4rjLPJJ3tMCB0I86aLFGaPPlP5RT1g3Fl+k0ezY=; b=hrS6AtkL0KYHgfHysiKVFZHYrj4zqWBWh646Ckt64n983nE0ExxKjZMXFy4a/x0kZl fdUpAjHKV1xptH8GzJuK1VBX1pfYJPix1cro+6GHk2kr5PafOqqqo6Nh+c3Tomw433N5 UmTmgDhJ6j9a/Edkin/Q3IBqbE3SNZN4PGOF5NaRrBs2CPiTtGv4ZM18jNANgahBoSF6 cU+eT1Tu2HsjGNILIDddB80LpBU1ELy/pP3GLLQm/XtMaCws/mhwo9TPcZ1Y+yybPUu0 zbC+FoDPP7bVWPgZPyx05XdSrI5g/lVY9NewsnDv63hLTePtGn2EMeHfyUg3GuQUcQ+x kqJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lKqr2+6Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 26si3620708oiz.107.2020.03.05.07.44.47; Thu, 05 Mar 2020 07:45:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lKqr2+6Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727026AbgCEPn3 (ORCPT + 99 others); Thu, 5 Mar 2020 10:43:29 -0500 Received: from mail-ua1-f68.google.com ([209.85.222.68]:43694 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbgCEPn2 (ORCPT ); Thu, 5 Mar 2020 10:43:28 -0500 Received: by mail-ua1-f68.google.com with SMTP id o42so2214030uad.10 for ; Thu, 05 Mar 2020 07:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BtkP4rjLPJJ3tMCB0I86aLFGaPPlP5RT1g3Fl+k0ezY=; b=lKqr2+6Y70nMAQIyJl5JRc7tIiLa+hzIz7tEvf/tovFCfmf+e7RuHwdMVi4tryYNTD +pymGTN4XbCQi1CQ2PWP9jPf1sDURpvJEBqC59VhPJF1ZTtb8ifBnbcHDu7/o3b8UX+/ BupJMhndJtlKuYaGJ/ZOifRB1mOciw3bd+8KEN2jkk5w0PbDET9x7GDPdVZcHA4HMCSU DIrYETeAQerh3c1CrVA3ipFhiuj7XLqCfmLKdZLc/gC2IxdYCTgy6CmtM3Qa7kLf6ltZ yiKe1i/cC5h5GYiBTHxi3IJSLiLC9sGHsOuncMXK3UHEnqsauLAX3vSUQXR1vMznxLBR Q4YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BtkP4rjLPJJ3tMCB0I86aLFGaPPlP5RT1g3Fl+k0ezY=; b=gRMldRXAOUQLMe36oBWlGU6L6G6ZSWeR2n587wSbGL7j8+LmVOgCxaqGpz8A1m91cE 5JSTX3fxLRSJYBNefOfqnt2bUIPMJG9iZenGXFphhrtf5KMaH+lBYzyct6jicCDAEuc9 HeDBMq1mH3MzSx0HpKQqNpSpwfUNCVMoJXkufsFke0f+dAC7wXmpaFL5odsgGlnmGOvl BIUVUTizRTFIuFVcUoc1C9oUScflwhecR6W2GxGjrkDcJuiebuCi6gn56FsDRB940bID 5dL3FyLV8N0OLJlkkCC3AhQxjZjEYKvW43WdxeT2PFgKGL4f0G8Mbv/006a1nO92odfR 2dMA== X-Gm-Message-State: ANhLgQ2zvEYgsMc7M8kL0g+iMGUkpBNjzlVgm/Imt8uWs/TXuVpY27F5 PAv+y+oq7hifVvFH837RQeYsQllrz4UDOlj1jQI7nA== X-Received: by 2002:ab0:7518:: with SMTP id m24mr4824318uap.60.1583423006775; Thu, 05 Mar 2020 07:43:26 -0800 (PST) MIME-Version: 1.0 References: <59d24f8ec98e29d119c5cbdb2abe6d4644cc51cf.1582528977.git.amit.kucheria@linaro.org> <20200224184003.GA3607@bogus> In-Reply-To: From: Amit Kucheria Date: Thu, 5 Mar 2020 21:13:15 +0530 Message-ID: Subject: Re: [RFC PATCH v1 3/3] dt-bindings: thermal: Add yaml bindings for thermal zones To: Rob Herring Cc: LKML , linux-arm-msm , Stephen Boyd , Matthias Kaehlcke , Daniel Lezcano , Zhang Rui , Linux PM list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 5, 2020 at 9:08 PM Rob Herring wrote: > > On Thu, Mar 5, 2020 at 6:50 AM Amit Kucheria wrote: > > > > On Tue, Feb 25, 2020 at 12:10 AM Rob Herring wrote: > > > > > > On Mon, 24 Feb 2020 12:55:37 +0530, Amit Kucheria wrote: > > > > As part of moving the thermal bindings to YAML, split it up into 3 > > > > bindings: thermal sensors, cooling devices and thermal zones. > > > > > > > > The thermal-zone binding is a software abstraction to capture the > > > > properties of each zone - how often they should be checked, the > > > > temperature thresholds (trips) at which mitigation actions need to be > > > > taken and the level of mitigation needed at those thresholds. > > > > > > > > Signed-off-by: Amit Kucheria > > > > --- > > > > .../bindings/thermal/thermal-zones.yaml | 302 ++++++++++++++++++ > > > > 1 file changed, 302 insertions(+) > > > > create mode 100644 Documentation/devicetree/bindings/thermal/thermal-zones.yaml > > > > > > > > > > My bot found errors running 'make dt_binding_check' on your patch: > > > > > > Documentation/devicetree/bindings/display/simple-framebuffer.example.dts:21.16-37.11: Warning (chosen_node_is_root): /example-0/chosen: chosen node must be at root node > > > > This one isn't due to my patch, I believe. > > Right, that's the one known warning... > > > > /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/thermal/thermal-zones.example.dt.yaml: thermal-sensor@c263000: interrupt-names: ['uplow'] is too short > > > /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/thermal/thermal-zones.example.dt.yaml: thermal-sensor@c263000: interrupts: [[0, 506, 4]] is too short > > > /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/thermal/thermal-zones.example.dt.yaml: thermal-sensor@c265000: interrupt-names: ['uplow'] is too short > > > /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/thermal/thermal-zones.example.dt.yaml: thermal-sensor@c265000: interrupts: [[0, 507, 4]] is too short > > > > Fixed. Just for my information, did the check somehow figure out that > > this (incomplete) example needed the qcom-tsens.yaml binding (based on > > compatible string?) and then apply those rules to throw this error? > > Yes. And setting DT_SCHEMA_FILES did change that to only check with > the specified schema file. However, that's now changed in linux-next > such that examples are always checked by all schemas and > DT_SCHEMA_FILES just limits which bindings to build and check. DT_SCHEMA_FILES doesn't seem to take wildcards. Individual yaml files worked fine. $ make -k -j`nproc` ARCH=arm64 CROSS_COMPILE="ccache aarch64-linux-gnu-" O=~/work/builds/build-aarch64/ dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/thermal/thermal*.yaml make[1]: Entering directory '/home/amit/work/builds/build-aarch64' make[2]: Circular Documentation/devicetree/bindings/processed-schema.yaml <- Documentation/devicetree/bindings/thermal/thermal-sensor.example.dt.yaml dependency dropped. make[2]: Circular Documentation/devicetree/bindings/thermal/thermal-zones.example.dt.yaml <- Documentation/devicetree/bindings/processed-schema.yaml dependency dropped. make[2]: Circular Documentation/devicetree/bindings/thermal/thermal-cooling-devices.example.dt.yaml <- Documentation/devicetree/bindings/processed-schema.yaml dependency dropped. SCHEMA Documentation/devicetree/bindings/processed-schema.yaml Traceback (most recent call last): File "/home/amit/.local/bin/dt-mk-schema", line 7, in exec(compile(f.read(), __file__, 'exec')) File "/home/amit/work/sources/tools-dt-schema.git/tools/dt-mk-schema", line 32, in schemas = dtschema.process_schemas(args.schemas, core_schema=(not args.useronly)) File "/home/amit/work/sources/tools-dt-schema.git/dtschema/lib.py", line 475, in process_schemas sch = process_schema(os.path.abspath(filename)) File "/home/amit/work/sources/tools-dt-schema.git/dtschema/lib.py", line 435, in process_schema DTValidator.check_schema(schema) File "/home/amit/work/sources/tools-dt-schema.git/dtschema/lib.py", line 582, in check_schema meta_schema = cls.resolver.resolve_from_url(schema['$schema']) TypeError: list indices must be integers or slices, not str make[2]: *** [/home/amit/work/sources/linux-amit.git/Documentation/devicetree/bindings/Makefile:34: Documentation/devicetree/bindings/processed-schema.yaml] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [/home/amit/work/sources/linux-amit.git/Makefile:1262: dt_binding_check] Error 2 make[1]: Leaving directory '/home/amit/work/builds/build-aarch64' make: *** [Makefile:179: sub-make] Error 2 make: Target 'dt_binding_check' not remade because of errors.