Received: by 10.223.164.202 with SMTP id h10csp670062wrb; Wed, 15 Nov 2017 06:10:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMbtNzR8A/fX07EEevg7r1oV8oPwFHewLvbO8ZCV4sFe+mFCVH5sOlZND7EgwlUKnnMqHut/ X-Received: by 10.84.253.131 with SMTP id a3mr15816451plm.65.1510755025419; Wed, 15 Nov 2017 06:10:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510755025; cv=none; d=google.com; s=arc-20160816; b=a0Vk4CkN1C+PlvJgvN38q4qVfVEWIKkqkN97TfZMKeufbQWTXf+Ftyy+XXX0Y367s7 H0M/bVWYr7x39XoeM/sptc1tt/S/+NHevY2wV6SEYCr5KxPJy6yalG3YCv4QfFvfb6VR Q2rQ4CBncTvyqTNPFh3qYUNj8tqE0ZhwVN07aAAcTv4lev2PNGCXYwY4YSj27+iMqimn L4ZVLE/8saBC6mhJG/EuXZEpBLfEHfqgsC8R+uUqlqnAhbsy1eXgqfb55qfXct3yp72C zrjppjq0HPDW5lt6pPO2ooSzrWLyFzruxCEDbDZBciYD5M9Z7lcn7Xef12JanoXU6pvM XXTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=xPejrjnSsYznHExWjzxkt7HBxihwV8POQrhHRLPTLYA=; b=wU7+ublogwi25LfGfBaSjyZMnxb+zTKDXa5G9ZIKlafM6lRAuC2iLXMt508QGQo00N enjNJMvH7dkSkeusXJq3No7uhNW2aWgIQnUnIEDhvaSmt7qJRtl/K4+10U2gG42zG/Dc zTsJ1n0aHFmmt2rgx1/aeO4onNJYCes5xgjIvjmZfxFP9GSWmZJbhWp9UBQrZpJqWuMN qEQUhw8++EULJxccyisblsMpqApybDl/AeyTBY4ywLxnj4QVqWKYZkom4oGg1DadAFRi xlIU1JYGILOg10hdRr9IAvAgy4cPURRBW6O6b6Y1GyyPknlBYo6wFfQCz4/TNQQ0f2oi LATw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4si17806391pgs.38.2017.11.15.06.10.12; Wed, 15 Nov 2017 06:10:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932641AbdKONKA (ORCPT + 90 others); Wed, 15 Nov 2017 08:10:00 -0500 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:32372 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932498AbdKONIx (ORCPT ); Wed, 15 Nov 2017 08:08:53 -0500 X-IronPort-AV: E=Sophos;i="5.43,434,1503385200"; d="scan'208";a="8624123" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 15 Nov 2017 06:08:53 -0700 Received: from eh-station.mchp-main.com (10.10.76.4) by chn-sv-exch07.mchp-main.com (10.10.76.108) with Microsoft SMTP Server id 14.3.352.0; Wed, 15 Nov 2017 06:08:52 -0700 From: Eugen Hristev To: , , , , , , , , CC: Subject: [PATCH v3 1/4] dt-bindings: iio: at91-sama5d2_adc: add optional dma property Date: Wed, 15 Nov 2017 14:56:45 +0200 Message-ID: <1510750608-8697-2-git-send-email-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510750608-8697-1-git-send-email-eugen.hristev@microchip.com> References: <1510750608-8697-1-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added property for DMA configuration of the device. Signed-off-by: Eugen Hristev --- Changes in v3: None, but we discussed on the ML about whether we should have "dma-names" present in the binding even if it's only one. The helpers in the kernel to retrieve the channel info rely on the presence of this property, so I am resending the patch based on this. If another solution is better, please advise and I can try it and resend the patch. Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt b/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt index 552e7a8..6469a4c 100644 --- a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt +++ b/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt @@ -17,6 +17,11 @@ Required properties: This property uses the IRQ edge types values: IRQ_TYPE_EDGE_RISING , IRQ_TYPE_EDGE_FALLING or IRQ_TYPE_EDGE_BOTH +Optional properties: + - dmas: Phandle to dma channel for the ADC. + - dma-names: Must be "rx" when dmas property is being used. + See ../../dma/dma.txt for details. + Example: adc: adc@fc030000 { @@ -31,4 +36,6 @@ adc: adc@fc030000 { vddana-supply = <&vdd_3v3_lp_reg>; vref-supply = <&vdd_3v3_lp_reg>; atmel,trigger-edge-type = ; + dmas = <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | AT91_XDMAC_DT_PERID(25))>; + dma-names = "rx"; } -- 2.7.4 From 1584488219292937999@xxx Sun Nov 19 10:01:59 +0000 2017 X-GM-THRID: 1584488219292937999 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread