From patchwork Thu Jun 13 14:42:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 166660 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp867494ilk; Thu, 13 Jun 2019 08:00:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyE8BpxX9KeyneLe6R+prZ3VAW6z0OZp4mh0pkS4Q1Rx35Eg1GW2NsBw6CGQfNPqg2eT+YV X-Received: by 2002:a17:902:8b8b:: with SMTP id ay11mr88242607plb.63.1560438045830; Thu, 13 Jun 2019 08:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438045; cv=none; d=google.com; s=arc-20160816; b=NkWXLhgw+zZu12vnoPSndx9j++t/GYMw1p/DxgjLheJmwGD1rSFTtMjNT0DZfF7cIM pJNWyP2UgBxoQ+FWOVmM9XHyTfKr3tWYqJhegXwgXg4NAA8lt+g/axSbQUSAcs3AqerG 6/gMnv0lbPIuVHnz4yBDAxmpupuP/qclEXGDqJjO+ShZOAREe/ysJjj5kqFGOgsa/5sh UcKHdHwV1Bd0UWYb2CVaAvbc5vr66+BRr5OgQKhscsaaBMlO5iDE6CxYCLR8GU4iW2Jo Xsrmd8FcMqNh6+OYbHYca2scv3crD2YUXXw4cv9O1L5AgpzcJsLhJwCtT+waNujL0Zg2 VdEg== 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 :message-id:date:subject:cc:to:from; bh=JKH5sFy8+WUQIQRjDUBH3ut64hE9XedmFz/Phqo/jiU=; b=TnohMaa8rvbrSUMO4VSaz5WRYm2Ce+YdPMJNUwN57mdhfqIjIzJhyE+3Mgj3N/YC5r aGasWnwQazkfe5u2BEQQLbmDMTHrYbtqJRBk8LaXmxQQH2KFQg5zMIFuWFxXeapc4Kwu nOgm9aiKbCyXOJGKW5FbL5o0n5sWFTjxzf7rf0MsXGckMsPNaxaQG3vrhP8IcHQjWeBa 9usFfHXWw7cINNn0/fsAO9iWNJb/8DeEvj2W6lmzB7xymhQ4galXcj4vUC48RnOB2ZJL /F65FcBGt7op4U54v66wsovLY/j9e3TstQnBX9xtMatavVBe2sWRUWEjBNhuI5JstsdB QG0A== 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 p91si3539980plb.61.2019.06.13.08.00.45; Thu, 13 Jun 2019 08:00:45 -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 S1732953AbfFMPAo (ORCPT + 25 others); Thu, 13 Jun 2019 11:00:44 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:45419 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732576AbfFMOmP (ORCPT ); Thu, 13 Jun 2019 10:42:15 -0400 Received: by mail-qt1-f194.google.com with SMTP id j19so22797837qtr.12; Thu, 13 Jun 2019 07:42:14 -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:mime-version :content-transfer-encoding; bh=JKH5sFy8+WUQIQRjDUBH3ut64hE9XedmFz/Phqo/jiU=; b=uJcXacSh/Qcn1YPznAJbN0ts3c29kkhqmTuPDc9dQTIXFp4nmT1FZeNYwrvEjGTv/t vZQvhbut2KfLxvQfM1CYK9TqDcon0AYx8wMjo6R63JwcDYFHRZEgaiGRadIssTEwVNfq 8ju9Iv7AYpeuE9V6pTRoWJm9ZkLLzfSYzCD9gfVAh++SjQxTR1ZMsmmtS+JHctaFUmMy jI+azAN1PlxM+Vhse3WOG9V+ESMApHNcLAAmMXJVZmIhhNlWnTssvrdpkhwQlJb77d0n lfRmIOVFsBhsqAEezRlv8EZuytv8tMtg4+nIMEe1/UfZ9Csa5qabM/2vUwK36XcKj1U8 mGcA== X-Gm-Message-State: APjAAAUWMm7MaR/+6cpRyUOFgTxHscdqBe5ioKFY2hu8MYFzdIU4Bl84 vsP2EzdfDO3SqC82Za8vtfHt5P0= X-Received: by 2002:ac8:4442:: with SMTP id m2mr54157029qtn.107.1560436933881; Thu, 13 Jun 2019 07:42:13 -0700 (PDT) Received: from localhost.localdomain ([64.188.179.243]) by smtp.googlemail.com with ESMTPSA id d38sm2052810qtb.95.2019.06.13.07.42.11 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 13 Jun 2019 07:42:12 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Maxime Ripard Subject: [PATCH 1/2] dt-bindings: vendor-prefixes: Also allow node names starting with '_' Date: Thu, 13 Jun 2019 08:42:09 -0600 Message-Id: <20190613144210.22181-1-robh@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Generated nodes for overlays begin with '_'. The binding examples are built as overlays in order to allow unresolved phandles, so we need to allow the generated node names. Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index e68c839e9f51..a777168432d0 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1028,7 +1028,7 @@ patternProperties: # Normal property name match without a comma # These should catch all node/property names without a prefix - "^[a-zA-Z0-9#][a-zA-Z0-9+\\-._@]{0,63}$": true + "^[a-zA-Z0-9#_][a-zA-Z0-9+\\-._@]{0,63}$": true "^[a-zA-Z0-9+\\-._]*@[0-9a-zA-Z,]*$": true "^#.*": true 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 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)