From patchwork Mon Nov 12 22:11:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10679385 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 3353814E2 for ; Mon, 12 Nov 2018 22:11:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2261B29DAE for ; Mon, 12 Nov 2018 22:11:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1614A29FEC; Mon, 12 Nov 2018 22:11:56 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 CDA8D29DAE for ; Mon, 12 Nov 2018 22:11:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730692AbeKMIHA (ORCPT ); Tue, 13 Nov 2018 03:07:00 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:36891 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730674AbeKMIG7 (ORCPT ); Tue, 13 Nov 2018 03:06:59 -0500 Received: by mail-pf1-f194.google.com with SMTP id u3-v6so2283537pfm.4 for ; Mon, 12 Nov 2018 14:11:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=26ev3qUdhHe168g6YKc/sElZ0TK98Gp0wg9uJPpctwk=; b=JqxkEHVsTyd3LPmk790xjkZm0XG0U+21vtipyJf4IZknnpDADQmEE1of6Lc52lclZE gAsXoqwBqlYZYUjmWelj90HnP385aq79u76oYpZfyqfTiMbWIpyYdJnrZqzLHSR6QF8f Tfimo6SHWS8B+d825tz8k5QeAZgiuvmcwc86o= 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=26ev3qUdhHe168g6YKc/sElZ0TK98Gp0wg9uJPpctwk=; b=KPqLHHmOKJy1X42Xb2jgASgNK6esU1plhixTAhboKelEF/Ggu7pI74fpxJDo4YPzDZ GqvgNNXMcwYrh80DIOBWlgtJTUde8ZyNoyhJihGpGnAeFtd/gxpuxyRJNQ0j2vaQEN1A DhMIVHfj+7AUu/P1rDD6zSWVLpt8pcbDmQQYOI2TWUSiBxfmx7rnIUvSF9PPX27/9fbE eakILRZNAOiTIejj31mbBiZqA+7vbETTX5klEFtriSyFEH6iRPpeuZq8HgXCX6dQGoJO TIDDJPWMEtRswxyNNjN/8D9y1BqJxGogYJN1/PoLURd0MKG6BVDReL8mRuSo+KxzJz24 doAg== X-Gm-Message-State: AGRZ1gKkaxzbqDiRSCrPHA81d/eGBsEMaUImmaGjNYOWCPzkEZf16OpD PYOJFfi/W7C/4aWPJZsHMkmW5w== X-Google-Smtp-Source: AJdET5f3IBCYS3dMBWmFCQegagEKx6gUpsRglHC+uuk8mn0nBLITce8CHLh20ro6/HVZOI/bKn6pvw== X-Received: by 2002:a62:db44:: with SMTP id f65-v6mr2576275pfg.94.1542060712171; Mon, 12 Nov 2018 14:11:52 -0800 (PST) Received: from mka.mtv.corp.google.com ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id z2sm16166706pgu.4.2018.11.12.14.11.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 14:11:51 -0800 (PST) From: Matthias Kaehlcke To: Andy Gross , David Brown , Rob Herring , Mark Rutland , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Douglas Anderson , Matthias Kaehlcke Subject: [PATCH v6 1/2] dt-bindings: iio: vadc: Add unit address to ADC channel node in example Date: Mon, 12 Nov 2018 14:11:25 -0800 Message-Id: <20181112221126.27142-2-mka@chromium.org> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog In-Reply-To: <20181112221126.27142-1-mka@chromium.org> References: <20181112221126.27142-1-mka@chromium.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 The node has a reg property, therefore its name should include a unit address. Also change the name from 'usb_id_nopull' to 'adc-chan', which is the preferred name for ADC channel nodes. Include headers for constants used in the example. Signed-off-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- Changes in v6: - changed node name to adc-chan@ - added includes for constants used in the example - updated commit message - added 'Reviewed-by: Douglas Anderson ' tag Changes in v5: - patch added to the series --- .../devicetree/bindings/iio/adc/qcom,spmi-vadc.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt index b3c86f4ac7cdb..c81993f8d8c39 100644 --- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt @@ -140,6 +140,10 @@ VADC_GND_REF and VADC_VDD_VADC. Example: +#include +#include +/* ... */ + /* VADC node */ pmic_vadc: vadc@3100 { compatible = "qcom,spmi-vadc"; @@ -151,7 +155,7 @@ Example: io-channel-ranges; /* Channel node */ - usb_id_nopull { + adc-chan@VADC_LR_MUX10_USB_ID { reg = ; qcom,decimation = <512>; qcom,ratiometric;