From patchwork Tue Jul 16 20:33:23 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: 11046703 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 080CB6C5 for ; Tue, 16 Jul 2019 20:33:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB7B8286AA for ; Tue, 16 Jul 2019 20:33:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEBBD286A8; Tue, 16 Jul 2019 20:33:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 330AD286A8 for ; Tue, 16 Jul 2019 20:33:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388609AbfGPUd1 (ORCPT ); Tue, 16 Jul 2019 16:33:27 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:41843 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728340AbfGPUd1 (ORCPT ); Tue, 16 Jul 2019 16:33:27 -0400 Received: by mail-io1-f67.google.com with SMTP id j5so37964733ioj.8; Tue, 16 Jul 2019 13:33:27 -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=pJc1PcJm9Tt09i+2U5/xWRkjZFmGO/Wn7hMK25ujlGw=; b=EDcEfboTO/4q81ES400SGr8JMyFcPCBa153/+y6Q9dy9FKrrIkzuppMSMvlzr5cJDc Y2E51UVngVr3nk7dFi96rn/orN+6jBun1OKr+jBtrHI5pAhr8tSYweOg/ayHy/gPmlCe sDhJLLmBjOeZ/svkEc7aCSL9IGj/+jnUd7yjFcOzD/26rhwObY/9p/Wds0e5UnkL92hs lv8kd0yJ2IYjSvb1R2p/4RsFcp4vS6jLxTUNAtoXKSE64Ps63yA8hRqypvNljGsv6/J0 oT2vdDSj62MycNabZ91Lp88kEcIVQroPGwXBKyTP7LoVlLY7EsnzuVC31xMKona5a50P h26g== X-Gm-Message-State: APjAAAVvd5p6wLA4QtN6+2izR9fqkLrfUu/n4rcI56pDeQiirRkB7Vdf C4lu8UvnTyVGCQ1rM5ZquQpkFVk= X-Google-Smtp-Source: APXvYqzGKqRg3xuVUiB/PIvC9kmukt3EEX04P6L+1ohND3H//O6fPFUDf9l5Je8IwSruzJXGGRKs9Q== X-Received: by 2002:a6b:7602:: with SMTP id g2mr21037284iom.82.1563309206203; Tue, 16 Jul 2019 13:33:26 -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.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 16 Jul 2019 13:33:25 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, Jonathan Cameron Cc: linux-kernel@vger.kernel.org, Andreas Klinger , linux-iio@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: iio: avia-hx711: Fix avdd-supply typo in example Date: Tue, 16 Jul 2019 14:33:23 -0600 Message-Id: <20190716203324.12198-1-robh@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now that examples are validated against the DT schema, a typo in avia-hx711 example generates a warning: Documentation/devicetree/bindings/iio/adc/avia-hx711.example.dt.yaml: weight: 'avdd-supply' is a required property Fix the typo. Fixes: 5150ec3fe125 ("avia-hx711.yaml: transform DT binding to YAML") Cc: Andreas Klinger Cc: Jonathan Cameron Cc: linux-iio@vger.kernel.org Signed-off-by: Rob Herring --- Jonathan, I have some other fixes I'm sending to Linus and can take these 2 if that's easier. Rob Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml b/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml index 8a4100ceeaf2..d76ece97c76c 100644 --- a/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml +++ b/Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml @@ -61,6 +61,6 @@ examples: compatible = "avia,hx711"; sck-gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>; dout-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; - avdd-suppy = <&avdd>; + avdd-supply = <&avdd>; clock-frequency = <100000>; }; 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 (Arm)" X-Patchwork-Id: 11046705 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 77E996C5 for ; Tue, 16 Jul 2019 20:33:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66136286A8 for ; Tue, 16 Jul 2019 20:33:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 57168286AC; Tue, 16 Jul 2019 20:33:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED8FF286A8 for ; Tue, 16 Jul 2019 20:33:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388782AbfGPUd3 (ORCPT ); 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-Google-Smtp-Source: APXvYqyk2BtdP2A4xOeszThjIfHuGMgL0fUlwZQQzvqXZ2B4o/DIcZpgpjc6LXc9Hnl2+laUR/M1Jw== 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: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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>; + }; }; };