From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932330AbcECFu0 (ORCPT ); Tue, 3 May 2016 01:50:26 -0400 Received: from nat-hk.nvidia.com ([203.18.50.4]:30423 "EHLO hkmmgate101.nvidia.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751729AbcECFuW (ORCPT ); Tue, 3 May 2016 01:50:22 -0400 X-PGP-Universal: processed; by hkpgpgate101.nvidia.com on Mon, 02 May 2016 22:50:15 -0700 From: Venkat Reddy Talla To: MyungJoo Ham , Chanwoo Choi , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala CC: , , "Laxman Dewangan" , Venkat Reddy Talla Subject: [PATCH 2/2] extcon: gpio: add DT binding doc for extcon-gpio Date: Tue, 3 May 2016 11:19:51 +0530 Message-ID: <1462254591-8907-2-git-send-email-vreddytalla@nvidia.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1462254591-8907-1-git-send-email-vreddytalla@nvidia.com> References: <1462254591-8907-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 Addiing DT binding doc for the extcon gpios properties. Signed-off-by: Venkat Reddy Talla --- .../devicetree/bindings/extcon/extcon-gpio.txt | 19 +++++++++++++++++++ 1 file changed, 19 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..4a49c23 --- /dev/null +++ b/Documentation/devicetree/bindings/extcon/extcon-gpio.txt @@ -0,0 +1,19 @@ +EXTCON FOR GPIO + +Required Properties: + - compatible : Should be "extcon-gpio"; + +Optional Properties: + - extcon-gpio,name: Name of extcon device. + - gpio: gpio number. + - extcon-gpio,irq-flags: IRQ flags for GPIO. + - extcon-gpio,debounce: Debounce time in ms. + - extcon-gpio,connection-state-low: boolean, Connection state with + gpio state. True if gpio low means connected. + +extcon-gpio { + compatible = "extcon-gpio"; + extcon-gpio,name = "VBUS"; + gpio = <&gpio 20 0>; + extcon-gpio,cable-names = ; +}; -- 2.1.4