From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752430AbdBOQ57 (ORCPT ); Wed, 15 Feb 2017 11:57:59 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:39468 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752280AbdBOQ5Q (ORCPT ); Wed, 15 Feb 2017 11:57:16 -0500 From: Fabrice Gasnier To: , , , , , CC: , , , , , , , Subject: [PATCH 1/2] dt-bindings: iio: stm32-adc: add option to set resolution Date: Wed, 15 Feb 2017 17:55:56 +0100 Message-ID: <1487177757-19427-2-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1487177757-19427-1-git-send-email-fabrice.gasnier@st.com> References: <1487177757-19427-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG3NODE1.st.com (10.75.127.7) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-02-15_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for 'st,adc-res' dt optional property. Signed-off-by: Fabrice Gasnier --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt index 5dfc88e..45f7ff2 100644 --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt @@ -57,6 +57,9 @@ Optional properties: - dmas: Phandle to dma channel for this ADC instance. See ../../dma/dma.txt for details. - dma-names: Must be "rx" when dmas property is being used. +- st,adc-res: Resolution (bits) to use for conversions. Must match device + available resolutions (e.g. can be 6, 8, 10 or 12 on stm32f4). Default + is maximum resolution if unset. Example: adc: adc@40012000 { @@ -84,6 +87,7 @@ Example: st,adc-channels = <8>; dmas = <&dma2 0 0 0x400 0x0>; dma-names = "rx"; + st,adc-res = <8>; }; ... other adc child nodes follow... -- 1.9.1