From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 863F7C2D0D0 for ; Mon, 23 Dec 2019 11:58:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5CEE12073A for ; Mon, 23 Dec 2019 11:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577102333; bh=QyuoZyIhNs4xmOxwsNxxEhCCg7Gu9hD6h7ZqKd7+bQY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=PoprsEoYQGEst/tkLu/GcPkL4+bWH0/0QeJt15BS4ztFNmJ5nyTsGMTJtju6IZapZ OpHfxnOyGYDGQ3O2adT5Whzn9UDLgsMC1ovQ++1ppP4hHfKXxhntWTrVR5TgOs2BXC MJqH6fczw6iqcuXDtu43+MY/V5z9KBCIotZHLgxQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726679AbfLWL6w (ORCPT ); Mon, 23 Dec 2019 06:58:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:34474 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726257AbfLWL6w (ORCPT ); Mon, 23 Dec 2019 06:58:52 -0500 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 40F3E20709; Mon, 23 Dec 2019 11:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577102332; bh=QyuoZyIhNs4xmOxwsNxxEhCCg7Gu9hD6h7ZqKd7+bQY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OYvEt+yz5urzWr1WlgfkJ4G2hB4fZdPGZ/uPQp5TtdxwDerjLj47mX9ylrJ49Qo/j HRYwoqj30Xd68PMERLUotZFsxD7O+uwplwlj0IsjbuwF+SROc6LUpXwt/lcepFujDO 1QkGz5jX+nZyK8+2dTCa7JcaJuQtyIYuZqLCWdEg= Date: Mon, 23 Dec 2019 11:58:47 +0000 From: Jonathan Cameron To: Cc: , , , , , , , , , Subject: Re: [PATCH 02/10] dt-bindings: iio: adc: at91-sama5d2: add rtc-trigger optional property Message-ID: <20191223115847.244c1406@archlinux> In-Reply-To: <1576686157-11939-3-git-send-email-eugen.hristev@microchip.com> References: <1576686157-11939-1-git-send-email-eugen.hristev@microchip.com> <1576686157-11939-3-git-send-email-eugen.hristev@microchip.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed, 18 Dec 2019 16:23:58 +0000 wrote: > From: Eugen Hristev > > Add property to connect RTC-type trigger to the ADC block. > The ADC is connected internally with a line to the RTC block. > The RTC can provide a trigger signal to the ADC to start conversions. > > Signed-off-by: Eugen Hristev As discussed, might want to just be the rtc handle rather than a new trigger one. > --- > Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt b/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt > index 4a3c1d4..1980f0e 100644 > --- a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt > +++ b/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt > @@ -23,6 +23,9 @@ Optional properties: > See ../../dma/dma.txt for details. > - #io-channel-cells: in case consumer drivers are attached, this must be 1. > See for details. > + - atmel,rtc-trigger: The ADC IP block can be triggered by the RTC block > +inside the SoC. This property is a phandle to a node that provides a > +trigger device, if the ADC block supports it. Do we want to be more specific on devices that do support it? Maybe it's enough of a complex mess that we don't. > > Properties for consumer drivers: > - Consumer drivers can be connected to this producer device, as specified > @@ -44,6 +47,7 @@ adc: adc@fc030000 { > vddana-supply = <&vdd_3v3_lp_reg>; > vref-supply = <&vdd_3v3_lp_reg>; > atmel,trigger-edge-type = ; > + atmel,rtc-trigger = <&rtc_adc_trigger>; > dmas = <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | AT91_XDMAC_DT_PERID(25))>; > dma-names = "rx"; > #io-channel-cells = <1>;