Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6080655ybh; Wed, 7 Aug 2019 17:00:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5yzVml8nxO9TJlIREG28nfAwMUcV0p9Fo88yS7ihcC+szmQ6ylfVOAR1Pk5vl7cIMCVoz X-Received: by 2002:a17:902:b607:: with SMTP id b7mr4563992pls.100.1565222423995; Wed, 07 Aug 2019 17:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565222423; cv=none; d=google.com; s=arc-20160816; b=QbAeLIdljIwKI0vlBUh5SefSfVMIp5VqcEQuHf4sQrtRWa3pAAjOef6Q9kMbcDAy+9 Kp9osZuX66xewgNtMTmrSSulUHg9FDbq1BE0ACRnaiLLUIdwqaCWNvjLXexbix0lGF8R UjE5Ok1AOZUU6zYgbDLcotVwKH17KuQ8VnTI8a4w/3B7ntCpOdNIoIiXqJ1m+4mP33w4 s3AhBiWkcpvzqCS3aCEW8J5xq5N/Wbt7UwE98f4Zjyi2tnYxMpTOEsmGtKq0PSNNGc97 QyY2f4Glm6eFvBbcufzjjPDQHibZtqjF4ramACQDmZQF+OgJ9bfNCleGhLNrn8BJP3xM y2QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:subject:to:cc :from:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=xWbxodzhlUGdM7RmUK0JqKqEgZT1zwVwI5glT+ysB/M=; b=mx5gP6EL3m4STzCud/5X2sd95p8IJBUuk4mVT5vlXNyawtnBt0pWFuAj1XSKx9QI4r ZT6EwZQkYRWry0O83Yv3VA+tONdeJEMHCP0O5xsZ7iUwC2MNRnzmZFkkxX4wVvdR6HRe eOZaDQxsWOnHiiK7hZSngQnLJwn1Ab+lXmaYckseI9QbdDWHzr/GHccPGweYHaDIW7PX DpLLmIXjlJS8uuWVHriUNGkDTr84k4oCtwPZdwwfTLoltcC9xxSQirkzg53Z/QFMMX80 IpBE5HsBKoD1F/FleZUaZUpK+RhW094dBDGML6Tp3tRmOoeYa0ZKVA8rNDnxPwU2N8js ErwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Rc4GwQf5; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si46345968plm.207.2019.08.07.17.00.06; Wed, 07 Aug 2019 17:00:23 -0700 (PDT) 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=@kernel.org header.s=default header.b=Rc4GwQf5; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388448AbfHGX7Z (ORCPT + 99 others); Wed, 7 Aug 2019 19:59:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:51464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730045AbfHGX7Y (ORCPT ); Wed, 7 Aug 2019 19:59:24 -0400 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9D714217D9; Wed, 7 Aug 2019 23:59:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565222363; bh=xlQGs4Ss1PEAXXFBoCe2f1wiOxkqtY6afXuf8TMA9Xw=; h=In-Reply-To:References:From:Cc:To:Subject:Date:From; b=Rc4GwQf5rpwauL1csS5qRpDY92wjK/Dpk0A1DPPcgh/V0YCa3P+3ZIsWZ5ZhjOmf+ JAq4VaPmsevg5gVvmNGKIQwcxSWHA5UuY8suZLnlz2HFwreM07sWviu+W3xPx2TzJY P4xr+s0CUvYCi/0zj+BnoWFtJ7JU1oJGqMrDMHAw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20190725020551.27034-1-Anson.Huang@nxp.com> <20190725210619.5EB94218D4@mail.kernel.org> From: Stephen Boyd Cc: Anson Huang , devicetree@vger.kernel.org, Fabio Estevam , Sascha Hauer , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-clk , "linux-kernel@vger.kernel.org" , Mark Rutland , Michael Turquette , Sascha Hauer , Shawn Guo , NXP Linux Team To: Rob Herring Subject: Re: [PATCH] dt-bindings: clock: imx8mn: Fix tab indentation for yaml file User-Agent: alot/0.8.1 Date: Wed, 07 Aug 2019 16:59:22 -0700 Message-Id: <20190807235923.9D714217D9@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Rob Herring (2019-07-25 14:37:24) > On Thu, Jul 25, 2019 at 3:06 PM Stephen Boyd wrote: > > > > Quoting Anson.Huang@nxp.com (2019-07-24 19:05:51) > > > From: Anson Huang > > > > > > YAML file can NOT contain tab as indentation, fix it. > > > > > > > Would be nice if checkpatch could check for this. >=20 > Would be nice if folks just ran 'make dt_binding_check'. :) It > wouldn't be hard to add a tab check to checkpatch, but that's just one > potential problem. >=20 Cool, thanks for the pointer. Seems I forgot :) Here's a patch to improve the documentation and make help to answer questions I had about how to work this into my workflow. diff --git a/Documentation/devicetree/writing-schema.md b/Documentation/dev= icetree/writing-schema.md index dc032db36262..17ad67887fde 100644 --- a/Documentation/devicetree/writing-schema.md +++ b/Documentation/devicetree/writing-schema.md @@ -120,6 +120,7 @@ This will first run the `dt_binding_check` which genera= tes the processed schema. It is also possible to run checks with a single schema file by setting the 'DT_SCHEMA_FILES' variable to a specific schema file. =20 +`make dt_binding_check DT_SCHEMA_FILES=3DDocumentation/devicetree/bindings= /trivial-devices.yaml` `make dtbs_check DT_SCHEMA_FILES=3DDocumentation/devicetree/bindings/trivi= al-devices.yaml` =20 =20 diff --git a/Makefile b/Makefile index 9be5834073f8..96bb28aa1c46 100644 --- a/Makefile +++ b/Makefile @@ -1503,8 +1503,10 @@ help: @echo '' @$(if $(dtstree), \ echo 'Devicetree:'; \ - echo '* dtbs - Build device tree blobs for enabled boards'; \ - echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'; \ + echo '* dtbs - Build device tree blobs for enabled boards'; \ + echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'; \ + echo ' dt_binding_check - Validate device tree binding documents'; \ + echo ' dtbs_check - Validate device tree source files'; \ echo '') =20 @echo 'Userspace tools targets:'