From patchwork Tue Apr 17 13:53:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yossi Mansharoff X-Patchwork-Id: 10345129 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2D106601D7 for ; Tue, 17 Apr 2018 13:54:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EEDB27E01 for ; Tue, 17 Apr 2018 13:54:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2351427EE2; Tue, 17 Apr 2018 13:54:12 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 9F36227E01 for ; Tue, 17 Apr 2018 13:54:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753801AbeDQNxw (ORCPT ); Tue, 17 Apr 2018 09:53:52 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:34890 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753783AbeDQNxv (ORCPT ); Tue, 17 Apr 2018 09:53:51 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id BCED5603AF; Tue, 17 Apr 2018 13:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523973230; bh=rAfAanirv6aiK2rKntfGhdzq450yPwd7P+ATUOgBhUo=; h=From:To:Cc:Subject:Date:From; b=l4NpdZmmI536RR7eROyD7DqxnfQk88hnU3jpge/oo2CdeZKDbnnpy0yoGxqKoAG0N Kg/NMpUjO6+tWByYl4d3HKNvtdKDU40SrZivQ1+bRkOkpRCsdyGE2/fObQDHPVJsmO rfc4nhUgZkOnFdZBlDMkxHgUOCcGDcRwkAfMeW7U= Received: from lx-platforms-5.mea.qualcomm.com (unknown [185.23.60.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: yossim@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2892C603AF; Tue, 17 Apr 2018 13:53:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523973230; bh=rAfAanirv6aiK2rKntfGhdzq450yPwd7P+ATUOgBhUo=; h=From:To:Cc:Subject:Date:From; b=l4NpdZmmI536RR7eROyD7DqxnfQk88hnU3jpge/oo2CdeZKDbnnpy0yoGxqKoAG0N Kg/NMpUjO6+tWByYl4d3HKNvtdKDU40SrZivQ1+bRkOkpRCsdyGE2/fObQDHPVJsmO rfc4nhUgZkOnFdZBlDMkxHgUOCcGDcRwkAfMeW7U= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2892C603AF Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=yossim@codeaurora.org From: Yossi Mansharoff To: Greg Kroah-Hartman , Rob Herring , Mark Rutland , linux-usb@vger.kernel.org (open list:USB SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: swboyd@chromium.org, Yossi Mansharoff Subject: [PATCH v2] doc: usb: ci-hdrc-usb2: Add property "mux-controls" Date: Tue, 17 Apr 2018 16:53:25 +0300 Message-Id: <1523973206-2165-1-git-send-email-yossim@codeaurora.org> X-Mailer: git-send-email 1.9.1 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 The chipidea usb controller may be connected, in some platforms, to an external mux to toggle between different usb ports for different roles (host and device). The mux-controller property, if set, binds the chipidea usb controller with a mux for this use. Signed-off-by: Yossi Mansharoff Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt index 0e03344..2e93181 100644 --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt @@ -76,6 +76,10 @@ Optional properties: needs to make sure it does not send more than 90% maximum_periodic_data_per_frame. The use case is multiple transactions, but less frame rate. +- mux-controls: The mux control for toggling host/device output of this + controller. It's expected that a mux state of 0 indicates device mode and a + mux state of 1 indicates host mode. +- mux-control-names: Shall be "usb_switch" if mux-controls is specified. i.mx specific properties - fsl,usbmisc: phandler of non-core register device, with one @@ -102,4 +106,6 @@ Example: rx-burst-size-dword = <0x10>; extcon = <0>, <&usb_id>; phy-clkgate-delay-us = <400>; + mux-controls = <&usb_switch>; + mux-control-names = "usb_switch"; };