From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754342AbcEYLgF (ORCPT ); Wed, 25 May 2016 07:36:05 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:2799 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753973AbcEYLgD (ORCPT ); Wed, 25 May 2016 07:36:03 -0400 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Wed, 25 May 2016 04:33:32 -0700 From: Venkat Reddy Talla To: MyungJoo Ham , Chanwoo Choi , Rob Herring , Pawel Moll CC: Mark Rutland , Ian Campbell , , Kumar Gala , , Laxman Dewangan , Venkat Reddy Talla Subject: [PATCH v2 2/2] extcon: gpio: add DT binding doc for extcon-gpio Date: Wed, 25 May 2016 17:05:33 +0530 Message-ID: <1464176133-10742-2-git-send-email-vreddytalla@nvidia.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1464176133-10742-1-git-send-email-vreddytalla@nvidia.com> References: <1464176133-10742-1-git-send-email-vreddytalla@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding DT binding doc for extcon gpio device properties. Signed-off-by: Venkat Reddy Talla --- changes in v2: - added description for extcon-gpio - using gpio flag cell to handle gpio active state - change dts property name gpio to gpios - removed prefix for debounce - added description for extcon-gpio,cable-names --- --- .../devicetree/bindings/extcon/extcon-gpio.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/extcon/extcon-gpio.txt diff --git a/Documentation/devicetree/bindings/extcon/extcon-gpio.txt b/Documentation/devicetree/bindings/extcon/extcon-gpio.txt new file mode 100644 index 0000000..2302960 --- /dev/null +++ b/Documentation/devicetree/bindings/extcon/extcon-gpio.txt @@ -0,0 +1,22 @@ +EXTCON FOR GPIO + +extcon-gpio responsible to detect external cable state when +attached or detached. + +Required Properties: + - compatible : Should be "extcon-gpio"; + +Optional Properties: + - extcon-gpio,name: Name of extcon device. + - gpios: gpio number. + - extcon-gpio,irq-flags: IRQ flags for gpio. + - debounce-ms: Debounce time in ms. + - extcon-gpio,cable-names: The unique id of specific external connector + defined in include/linux/extcon.h + +extcon-gpio { + compatible = "extcon-gpio"; + extcon-gpio,name = "VBUS"; + gpios = <&gpio 20 0>; + extcon-gpio,cable-names = ; +}; -- 2.1.4