From patchwork Thu Jun 13 14:42:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 166659 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp867434ilk; Thu, 13 Jun 2019 08:00:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbnXLp2NnKC8s9BTObXYAYofXUljJNp+f+05cy4PFdPiTZR8rcw+mlS1vL9oDuQ129IgJQ X-Received: by 2002:a17:902:106:: with SMTP id 6mr25252504plb.64.1560438043188; Thu, 13 Jun 2019 08:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438043; cv=none; d=google.com; s=arc-20160816; b=J87ceAYy/xNxrsr13Iz/YBdP9Dt7Vl6j/oNfdSmn1NZaCOcYUprVKgs5o5yfyJu8sW 0EFGdREGgxKZvBZtI71Pavsc+ugGxGJi6XFH70lTzsmJXBkNlPyQ7ti3vYxm54D3yXxd 8eKb7kpciOofBBe7JjGJg9xo6OaM5jUqCYB5ivoS9kzqp0G23qlV8q7AIJsYPiiaTTn4 xDL4q/ypX5xdxFyJ6MlVM5iOBv8Vpxt9SbOOTE1javuanhYyGD3feXEFoRap8AI97zKF KBx2Fz+RFajYls6Rz0QMLIttNmQzXfH89zokaGIAc4I3L8Emq14p1PfdNpcOJgHcJ+ev DTVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1RM7GVAGd4N+N3hXFBtvlLtnnqYjb+JcKYi0z7iQ1D8=; b=axTUKBmH8DkCsaHiNOOtTKn7rIT8GiZJq5qb3kQbAL6pi1vP/RlI3z30n3G29PbGQu cb6JtLyx4Uf4Dzy1H1CYKA1RT5BWMLR5UnI5yn4k2vB1fTIU7Dx2A2U6tpBOqCsUZC1K yUIe9gjJPBszWfqL5qvBSo4HE66oyu5MYq63baMwpuyP7hAXkQ3cNrAXSMwVFihK9GXy GsN9WbLtHM60A2TTJ4hQ5efhub1DO1U5sy1jyeEdAMXGB+YO45dv7R5XZ+xZsrrH4yQZ uHg13cRT7tcZ50Olx4HonJvBzbzzmkmI5Qx3MuMwFuEKw49s6TA6P18g9jGLHE+ys45D azsQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 y135si1865669pfg.127.2019.06.13.08.00.42; Thu, 13 Jun 2019 08:00:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732937AbfFMPAm (ORCPT + 25 others); Thu, 13 Jun 2019 11:00:42 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:42591 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732577AbfFMOmQ (ORCPT ); Thu, 13 Jun 2019 10:42:16 -0400 Received: by mail-qt1-f194.google.com with SMTP id s15so22793790qtk.9; Thu, 13 Jun 2019 07:42:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1RM7GVAGd4N+N3hXFBtvlLtnnqYjb+JcKYi0z7iQ1D8=; b=KlxreCzr5Jw9zwiuVWyjRzgmTK9TclKOxS7zAghDjWbByyXLt7E8IVVGeTyIJQo0mv qTRVEKievzdFfcxAHQnl+N2SCCmX2S3IDsv7VOy0Il+bi8BaAjnmFT3gFxmtAAIMf1pz vhRkDA8lMNB2SivJNyuZ+HNj1fpHdCF308PjbNc0Ddgn4mar3O25q+U00q7lpRbU310v RJjy+/MMLJS/hQ/BdLiW97aXeTPHUJY+loM52HTaJXZo+QQUoL4Ur5n/mVKPgA5SkuyT lmW7AKo7dD0iMZ6CAAIChzVae5nV/rnT2s/jRFWiT6mGqI/iutJk4dJik4Rxb5t5fce1 8+IQ== X-Gm-Message-State: APjAAAWS4gNDRuxdboXuSfvwhoYQdOSat5Fw3ZJZWFzWN0C8dD8mUJ41 3jQpCGnBTen17aJKMAcB5CitpZc= X-Received: by 2002:ac8:27bb:: with SMTP id w56mr13808438qtw.211.1560436935486; Thu, 13 Jun 2019 07:42:15 -0700 (PDT) Received: from localhost.localdomain ([64.188.179.243]) by smtp.googlemail.com with ESMTPSA id d38sm2052810qtb.95.2019.06.13.07.42.14 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 13 Jun 2019 07:42:15 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Maxime Ripard Subject: [PATCH 2/2] dt-bindings: Check the examples against the schemas Date: Thu, 13 Jun 2019 08:42:10 -0600 Message-Id: <20190613144210.22181-2-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190613144210.22181-1-robh@kernel.org> References: <20190613144210.22181-1-robh@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, the binding examples are just built with dtc. dtc recently gained the support necessary to output the examples in YAML format (commit 87963ee20693 ("livetree: add missing type markers in generated overlay properties"). Now just switch the output format and the examples will be checked against the schema. Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile index 8a2774b5834b..6b0dfd5c17ba 100644 --- a/Documentation/devicetree/bindings/Makefile +++ b/Documentation/devicetree/bindings/Makefile @@ -25,7 +25,7 @@ DT_DOCS = $(shell \ DT_SCHEMA_FILES ?= $(addprefix $(src)/,$(DT_DOCS)) extra-y += $(patsubst $(src)/%.yaml,%.example.dts, $(DT_SCHEMA_FILES)) -extra-y += $(patsubst $(src)/%.yaml,%.example.dtb, $(DT_SCHEMA_FILES)) +extra-y += $(patsubst $(src)/%.yaml,%.example.dt.yaml, $(DT_SCHEMA_FILES)) $(obj)/$(DT_TMP_SCHEMA): $(DT_SCHEMA_FILES) FORCE $(call if_changed,mk_schema)