From patchwork Thu May 25 11:17:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 766927 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wYRdt6xLwz9s8N for ; Thu, 25 May 2017 21:20:50 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423662AbdEYLUX (ORCPT ); Thu, 25 May 2017 07:20:23 -0400 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:12675 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423387AbdEYLUU (ORCPT ); Thu, 25 May 2017 07:20:20 -0400 X-IronPort-AV: E=Sophos;i="5.38,391,1491289200"; d="scan'208";a="3372788" Received: from exsmtp01.microchip.com (HELO email.microchip.com) ([198.175.253.37]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES128-SHA; 25 May 2017 04:20:08 -0700 Received: from eh-station.mchp-main.com (10.10.76.4) by CHN-SV-EXCH01.mchp-main.com (10.10.76.37) with Microsoft SMTP Server id 14.3.181.6; Thu, 25 May 2017 04:20:08 -0700 From: Eugen Hristev To: , , , , , , , , CC: Subject: [PATCH v3 2/4] Documentation: dt: iio: at91-sama5d2_adc: add adtrg trigger binding Date: Thu, 25 May 2017 14:17:12 +0300 Message-ID: <1495711034-28410-3-git-send-email-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495711034-28410-1-git-send-email-eugen.hristev@microchip.com> References: <1495711034-28410-1-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add node information for ADTRG hardware pin and the three possible edge nodes that are available for the driver Signed-off-by: Eugen Hristev --- .../devicetree/bindings/iio/adc/at91-sama5d2_adc.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt b/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt index 3223684..e30ede3 100644 --- a/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt +++ b/Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt @@ -11,6 +11,13 @@ Required properties: - atmel,min-sample-rate-hz: Minimum sampling rate, it depends on SoC. - atmel,max-sample-rate-hz: Maximum sampling rate, it depends on SoC. - atmel,startup-time-ms: Startup time expressed in ms, it depends on SoC. + - atmel,trigger-edge-type: phandle to one of the adtrg possible edge types + +Required adtrg node: + - Required edge nodes: + For each possible edge type for the ADTRG hardware trigger pin, + a specific sub node. The driver recognises only the three possible + edge types: external_rising, external_falling, external_any. Example: @@ -25,4 +32,14 @@ adc: adc@fc030000 { atmel,startup-time-ms = <4>; vddana-supply = <&vdd_3v3_lp_reg>; vref-supply = <&vdd_3v3_lp_reg>; + atmel,trigger-edge-type = <&external_rising>; + + adtrg: adtrg { + external_rising: external_rising { + }; + external_falling: external_falling { + }; + external_any: external_any { + }; + }; }