From patchwork Tue Jul 16 20:33:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 169078 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp6512ilk; Tue, 16 Jul 2019 13:33:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGX+kOjjp5pwsXm9bYG3zb+IAqTnrFy0MB5Ogu9bdwGXWUBJ19FKQAEzMbDRkIUJSMJ/oX X-Received: by 2002:a17:902:9896:: with SMTP id s22mr36622976plp.4.1563309210510; Tue, 16 Jul 2019 13:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563309210; cv=none; d=google.com; s=arc-20160816; b=wwRw9XGueqKsGzayg5qjiY2FfAY4uXn+Ssb3Ob7ubQxC1MMlQ3yrNsh4OIAI/ZgCHs smpjOPQwvdfv/BICSmndPlDhnoLHQr0vGFgiKEll+J9vW4pcsEtYyvnu45cRM4lxMTCO vOviAzbh8QNybZAMJEh4t9ThqW8h2xOGai99oTzSYI72swDK9rb3rsKxNr3R+StzPEdv +BmbdO3ALqa8VoNvqhDurd6Gl8FAkDQeaL30ccvGW/89P0HNwGeYuHqui7oR+1LYn3KY d6DmFS6vNXZNkFYoLv/JvhEVHzUFJbkAhzCiNksgljvuLaawGUIp+Zt/SMhgYWWYnQNq cY6Q== 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=seqk9J0ooH5AhAm3aq6IH0gSWsrdcbTHmh1T2bCLVs0=; b=X3yFeGhR70ssdB0ujk23Rpaa3gItH1Vh84lIQTg0kZI/ye9Zyil9xFt0t/BGsO6eib RQ6i1b9DxvGgtAfeDRM5lo5jHdHoxOnVDkMhwKjnVbO1iDwuAHnFvSQVEz6DIUSm/9Gy t0OTFPhJnkCDySJQRWhk3IitDpiYlBNcdicLJ7Ujl0h9mz4Z/VJVMmVj14uIGFjIMZYk WBJ+EZ/T1fCKl8KbMARo7U8wh8wQjGJr8928TQU+nPw2XIolszGXSgTn+++PfxKOfspT oVvAk9N3gjQoGncnesS6patOLgIdqHstI5nkbE5GY8mnbaiRvS2fi57I3F6VjcdaictX sxYA== ARC-Authentication-Results: i=1; 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; 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 m128si20980191pfm.97.2019.07.16.13.33.30; Tue, 16 Jul 2019 13:33:30 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728340AbfGPUd3 (ORCPT + 8 others); Tue, 16 Jul 2019 16:33:29 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:45891 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388778AbfGPUd3 (ORCPT ); Tue, 16 Jul 2019 16:33:29 -0400 Received: by mail-io1-f65.google.com with SMTP id g20so42119238ioc.12; Tue, 16 Jul 2019 13:33:28 -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=seqk9J0ooH5AhAm3aq6IH0gSWsrdcbTHmh1T2bCLVs0=; b=iO7xZLvdujsw4yCLGZgY5fwtmKWPf96vvy+UUw3uYI/ScB+MkzurjxUIxmPMWq18/V pxh2lWqLU+kUO+Wc9a3HHvOQVNWFlSDLie1bvawujnRwA3I5SvTcEvue/KqfDdDMRRBP zMJ/zpbCHqsBB98KvqoAbieaZwh+zWyZgSr2LllUyCqDw4LHTIDGjO1iUK2iVZDHUB7J /WvpIbNGWkKTKR5RWTFipvmpN0dCY6A/YaIG61iDVF4pXe8DlzQMQhh8lmnyjAHdXRDX 3RyxW/dyJsmIuQhf1jEKVdfV9/LCYR20p1OuQfyQfHsvNeT0BAjz19f5TN9Wkagw+nBq KQzw== X-Gm-Message-State: APjAAAXl8ljzVdEKhBQ1PPcONkggFOKIsiPv3U9AKA1bSrtGxF7Lx+W9 tFG24YFunKw8sIgSj51B0RXr0m0= X-Received: by 2002:a6b:dd18:: with SMTP id f24mr133937ioc.97.1563309207583; Tue, 16 Jul 2019 13:33:27 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.249]) by smtp.googlemail.com with ESMTPSA id k2sm16605168iom.50.2019.07.16.13.33.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 16 Jul 2019 13:33:26 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, Jonathan Cameron Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: iio: ad7124: Fix dtc warnings in example Date: Tue, 16 Jul 2019 14:33:24 -0600 Message-Id: <20190716203324.12198-2-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190716203324.12198-1-robh@kernel.org> References: <20190716203324.12198-1-robh@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org With the conversion to DT schema, the examples are now compiled with dtc. The ad7124 binding example has the following warning: Documentation/devicetree/bindings/iio/adc/adi,ad7124.example.dts:19.11-21: \ Warning (reg_format): /example-0/adc@0:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1) There's a default #size-cells and #address-cells values of 1 for examples. For examples needing different values such as this one on a SPI bus, they need to provide a SPI bus parent node. Fixes: 26ae15e62d3c ("Convert AD7124 bindings documentation to YAML format.") Cc: Jonathan Cameron Cc: linux-iio@vger.kernel.org Signed-off-by: Rob Herring --- .../bindings/iio/adc/adi,ad7124.yaml | 71 ++++++++++--------- 1 file changed, 38 insertions(+), 33 deletions(-) -- 2.20.1 diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml index cf494a08b837..9692b7f719f5 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml @@ -114,42 +114,47 @@ patternProperties: examples: - | - adc@0 { - compatible = "adi,ad7124-4"; - reg = <0>; - spi-max-frequency = <5000000>; - interrupts = <25 2>; - interrupt-parent = <&gpio>; - refin1-supply = <&adc_vref>; - clocks = <&ad7124_mclk>; - clock-names = "mclk"; - + spi { #address-cells = <1>; #size-cells = <0>; - channel@0 { + adc@0 { + compatible = "adi,ad7124-4"; reg = <0>; - diff-channels = <0 1>; - adi,reference-select = <0>; - adi,buffered-positive; - }; - - channel@1 { - reg = <1>; - bipolar; - diff-channels = <2 3>; - adi,reference-select = <0>; - adi,buffered-positive; - adi,buffered-negative; - }; - - channel@2 { - reg = <2>; - diff-channels = <4 5>; - }; - - channel@3 { - reg = <3>; - diff-channels = <6 7>; + spi-max-frequency = <5000000>; + interrupts = <25 2>; + interrupt-parent = <&gpio>; + refin1-supply = <&adc_vref>; + clocks = <&ad7124_mclk>; + clock-names = "mclk"; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + diff-channels = <0 1>; + adi,reference-select = <0>; + adi,buffered-positive; + }; + + channel@1 { + reg = <1>; + bipolar; + diff-channels = <2 3>; + adi,reference-select = <0>; + adi,buffered-positive; + adi,buffered-negative; + }; + + channel@2 { + reg = <2>; + diff-channels = <4 5>; + }; + + channel@3 { + reg = <3>; + diff-channels = <6 7>; + }; }; };