From patchwork Tue Jan 24 17:45:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 92380 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1829785qgi; Tue, 24 Jan 2017 09:45:38 -0800 (PST) X-Received: by 10.98.65.148 with SMTP id g20mr41359187pfd.44.1485279938122; Tue, 24 Jan 2017 09:45:38 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si19984577pgh.266.2017.01.24.09.45.37; Tue, 24 Jan 2017 09:45:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750783AbdAXRph (ORCPT + 7 others); Tue, 24 Jan 2017 12:45:37 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:32894 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbdAXRpg (ORCPT ); Tue, 24 Jan 2017 12:45:36 -0500 Received: by mail-ot0-f194.google.com with SMTP id f9so20467664otd.0; Tue, 24 Jan 2017 09:45:36 -0800 (PST) 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; bh=X1EC37lze0eCHOqctAafl+77oC+rH8s8P6tPDueuifk=; b=Krx2quPN/j8cohSad5vkd4YW1rf2dPJKy2hjUDHI/neJxWx79n5elnlSbfCX+o7f0f tdX8qsOlMSTaHXpTlJESV72ODCDFvs9nMVW7RbMzmh9cY6MSFBSeQIhC+jwHuVswmWXI qpuZfh9X33FgCc+E08fcP40TCuwHzTMRe7Go/xUOIJdM2flM6EtMfgm/9WV/QnRfUfmr O4SCcEN4GB71iT1zhypPFaH4AmfRyCqFMO63VziMeava0IJEsAAJD7nPbcvDNlKMEMxg QvTQkj32a3aUXz6hmJObZsVsehHm2+GAmYo5IqDf0R8Xi0g1eWiF/9HK05fo7PXVr60I AXOA== X-Gm-Message-State: AIkVDXKj/PayRJhQdfk58M2JOI/8E4blppxkrN1anrOL6gXBJPRdBRAmxKFv5+k1MbzsHQ== X-Received: by 10.157.40.171 with SMTP id s40mr18943124ota.68.1485279935847; Tue, 24 Jan 2017 09:45:35 -0800 (PST) Received: from rob-hp-laptop.herring.priv (72-48-98-129.dyn.grandenetworks.net. [72.48.98.129]) by smtp.googlemail.com with ESMTPSA id w84sm10736088oiw.21.2017.01.24.09.45.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jan 2017 09:45:35 -0800 (PST) From: Rob Herring To: David Gibson Cc: devicetree@vger.kernel.org, devicetree-compiler@vger.kernel.org Subject: [PATCH 0/5] dtc unit-address and character set checks Date: Tue, 24 Jan 2017 11:45:29 -0600 Message-Id: <20170124174534.3865-1-robh@kernel.org> X-Mailer: git-send-email 2.10.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This is reviving a series of checks I started on a while back. The motivation for this series is to add checks for trivial issues often found in binding reviews. The first 2 patches restrict the character set for node and property names to what's the recommended practice. These are quite noisy when enabled mainly due to '_', but that's most often what needs fixing. The 3rd patch checks for leading 0s and '0x' on unit addresses. The last 2 patches add infrastructure for setting the bus type of nodes and bus specific checks for those nodes. Initially, PCI is the only supported bus type. Unlike the RFC, there's no default/simple bus. Rob Rob Herring (5): checks: Add Warning for stricter property name character checking checks: Add Warning for stricter node name character checking checks: Warn on node name unit-addresses with '0x' or leading 0s checks: Add infrastructure for setting bus type of nodes checks: Add bus checks for PCI buses checks.c | 199 +++++++++++++++++++++++++++++++++++++++-- dtc.h | 11 +++ tests/run_tests.sh | 2 + tests/unit-addr-leading-0s.dts | 10 +++ tests/unit-addr-leading-0x.dts | 10 +++ 5 files changed, 227 insertions(+), 5 deletions(-) create mode 100644 tests/unit-addr-leading-0s.dts create mode 100644 tests/unit-addr-leading-0x.dts -- 2.10.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html