From patchwork Mon Oct 1 19:44:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Badhri Jagan Sridharan X-Patchwork-Id: 10622673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 60CA715E8 for ; Mon, 1 Oct 2018 19:45:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48FB628390 for ; Mon, 1 Oct 2018 19:45:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B55C283C5; Mon, 1 Oct 2018 19:45:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, USER_IN_DEF_DKIM_WL autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D516D28390 for ; Mon, 1 Oct 2018 19:45:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726362AbeJBCY2 (ORCPT ); Mon, 1 Oct 2018 22:24:28 -0400 Received: from mail-pg1-f201.google.com ([209.85.215.201]:55950 "EHLO mail-pg1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726238AbeJBCY1 (ORCPT ); Mon, 1 Oct 2018 22:24:27 -0400 Received: by mail-pg1-f201.google.com with SMTP id d132-v6so16664157pgc.22 for ; Mon, 01 Oct 2018 12:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=udaP/p7JA9sNL+94no8kNxyGH61VvMpNqCPfAcizEOQ=; b=S0Ix9PzTeTETWVziFDdenMCFKp59d3063s6Q3p66CGtdDDrgLFYv//FBKxq9nreyDs 1DeDB/pGJDG6yFo2WurfoseLp8O5PDdzwDU4GconXQd/IsGVt65+XbELa6+rctijCUQX JVDn91lhYwdBZ9Jy3QJ+FyVlrVGg0gQ2ZWzcouzxsIjO5SGQk0F3BmLaXln8dHrdU+yV F9SVkgm2JpVBD7uQChCMli3fY54JlnZ/7dDj5Tc0380gtFHE84S1LCo0xF0eGqnxbu2f GD+JOPT0lr5LpgOXPmOaChPDL3CpKaFby1NF26+lUhml0hivoW3avhM2xZ9NKCfYDACT yptw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=udaP/p7JA9sNL+94no8kNxyGH61VvMpNqCPfAcizEOQ=; b=ftHI8ac3DiyCQwaEJpcFSfoIs24kTvB/7JXyIu969w9OxLmG/Ny+hYwQQHNNDKq/Kq TyyfCmLAXNQ8PW+Z1KdkslVrRDow9veWRtzevNoKNIoKYMri09Y+Lk9ZpVOoP7d37Hvj WjrdFu/bPY3Mwl2oObWnUThmP7+kyQNJ3oLjldQMQU9goM9hASpyc+wjNFrHMim4MjrE P79Ry0MEWeS3/XCWtokTKx+zRBEdljQr129d7BKTfyH5RZxlTCaKmePlSdLgRRl6XtGP +SVdfmIkfkB9OnII6kOl9yenFeFKO9oDFPN5u+ZUgYzdr8oymOY+EmCbE6ERd6Uutgm8 NlZQ== X-Gm-Message-State: ABuFfogGYhb4LSh6Ta9YIMVqGOMwRu4ggGbkPRmVrK/pAOrnpVe269Fb oBF9OFQfNMwWtkF5jEhdLJQ6k0EX+Ds= X-Google-Smtp-Source: ACcGV61R2rvneeiFmOjqbPXQy0Hxj0PyIruH0rAsK13hgcu2ZoZyzVfSvLmOKMua4msck+l210dCjqEWAeY= X-Received: by 2002:a62:ca1a:: with SMTP id n26-v6mr5695133pfg.15.1538423105823; Mon, 01 Oct 2018 12:45:05 -0700 (PDT) Date: Mon, 1 Oct 2018 12:44:59 -0700 Message-Id: <20181001194501.58338-1-badhri@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog Subject: [PATCH v3 1/3] dt-bindings: connector: Add self-powered property From: Badhri Jagan Sridharan To: Rob Herring , Mark Rutland , Heikki Krogerus , Greg Kroah-Hartman , Chanwoo Choi , Andrzej Hajda , Li Jun , linux@roeck-us.net, jackp@codeaurora.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Badhri Jagan Sridharan Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From USB_PD_R3_0 7.1.5 Response to Hard Resets Device operation during and after a Hard Reset is defined as follows: Self-powered devices Should Not disconnect from USB during a Hard Reset (see Section 9.1.2). Bus powered devices will disconnect from USB during a Hard Reset due to the loss of their power source. Therefore it is necessary to know whether the port belongs to a device which is self powered or bus powered. This change adds "self-powered" flag to the connector class which present indicates that the port belongs to a device that is self powered. Else it is bus powered usb device. Signed-off-by: Badhri Jagan Sridharan ------- Changes is v3: - Rebase on top of usb-next - no change w.r.t to this patch. Same as previous versions. No v2 version as the patch was introduced there. Reviewed-by: Heikki Krogerus Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/connector/usb-connector.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/connector/usb-connector.txt b/Documentation/devicetree/bindings/connector/usb-connector.txt index d90e17e2428b..a9a2f2fc44f2 100644 --- a/Documentation/devicetree/bindings/connector/usb-connector.txt +++ b/Documentation/devicetree/bindings/connector/usb-connector.txt @@ -14,6 +14,8 @@ Optional properties: - label: symbolic name for the connector, - type: size of the connector, should be specified in case of USB-A, USB-B non-fullsize connectors: "mini", "micro". +- self-powered: Set this property if the usb device that has its own power + source. Optional properties for usb-c-connector: - power-role: should be one of "source", "sink" or "dual"(DRP) if typec