From patchwork Mon Jul 17 07:37:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Enric Balletbo i Serra X-Patchwork-Id: 789279 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 3x9wBZ3m7Jz9sxR for ; Mon, 17 Jul 2017 17:38:14 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751285AbdGQHhn (ORCPT ); Mon, 17 Jul 2017 03:37:43 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:60688 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbdGQHhm (ORCPT ); Mon, 17 Jul 2017 03:37:42 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id E0718260B1B From: Enric Balletbo i Serra To: MyungJoo Ham , Rob Herring , Chanwoo Choi Cc: Lee Jones , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Benson Leung , groeck@chromium.org Subject: [PATCH v3 2/2] dt-bindings: extcon: Add support for cros-ec device Date: Mon, 17 Jul 2017 09:37:20 +0200 Message-Id: <20170717073720.788-2-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170717073720.788-1-enric.balletbo@collabora.com> References: <20170717073720.788-1-enric.balletbo@collabora.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Benson Leung This patch add documentation for binding of USB Type C cable detection mechanism is using EXTCON subsystem. The device can detect the presence of display out but it may also detect other external accessories when external accessories is attached or detached. Signed-off-by: Benson Leung Signed-off-by: Enric Balletbo i Serra Reviewed-by: Chanwoo Choi Acked-by: Rob Herring --- Changes since v2: - Rebase on top v4.13-rc1 Changes since v1: - Added Reviewed-by: Chanwoo Choi Requested by Rob Herring - Remove the Extcon word in the binding and replace it to describe better the h/w. - 'google,extcon-cros-ec' renamed to 'google,extcon-usbc-cros-ec' to indicate this is USB Type C related. .../bindings/extcon/extcon-usbc-cros-ec.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.txt diff --git a/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.txt b/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.txt new file mode 100644 index 0000000..8e8625c --- /dev/null +++ b/Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.txt @@ -0,0 +1,24 @@ +ChromeOS EC USB Type-C cable and accessories detection + +On ChromeOS systems with USB Type C ports, the ChromeOS Embedded Controller is +able to detect the state of external accessories such as display adapters +or USB devices when said accessories are attached or detached. + +The node for this device must be under a cros-ec node like google,cros-ec-spi +or google,cros-ec-i2c. + +Required properties: +- compatible: Should be "google,extcon-usbc-cros-ec". +- google,usb-port-id: Specifies the USB port ID to use. + +Example: + cros-ec@0 { + compatible = "google,cros-ec-i2c"; + + ... + + extcon { + compatible = "google,extcon-usbc-cros-ec"; + google,usb-port-id = <0>; + }; + }