Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932325AbdGXQMs (ORCPT ); Mon, 24 Jul 2017 12:12:48 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:39773 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754160AbdGXQMm (ORCPT ); Mon, 24 Jul 2017 12:12:42 -0400 From: Fabrice Gasnier To: , CC: , , , , , , , , , , , Subject: [PATCH v2 0/3] Allow to tune sampling time on STM32 ADC Date: Mon, 24 Jul 2017 18:10:37 +0200 Message-ID: <1500912640-23927-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG3NODE2.st.com (10.75.127.8) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-07-24_11:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 893 Lines: 22 STM32 ADC allows each channel to be sampled with a different sampling time. This series fixes common clock rate and adds optional device tree property, so minimum sampling time can be tuned. This is done via device tree as it's tightly coupled with hardware (analog source). --- Changes in v2: - Better describe fix patch - Use 'st,min-sample-time-nsecs' instead of 'min-sample-time'. - Add a comment on of_property_read_u32_index() use. Fabrice Gasnier (3): iio: adc: stm32: fix common clock rate dt-bindings: iio: adc: stm32: add optional st,min-sample-time-nsecs iio: adc: stm32: add optional st,min-sample-time-nsecs .../devicetree/bindings/iio/adc/st,stm32-adc.txt | 5 + drivers/iio/adc/stm32-adc-core.c | 10 +- drivers/iio/adc/stm32-adc.c | 140 ++++++++++++++++++++- 3 files changed, 146 insertions(+), 9 deletions(-) -- 1.9.1