From patchwork Tue Sep 4 15:18:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 10587503 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 4225F14BD for ; Tue, 4 Sep 2018 15:19:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3629829BA3 for ; Tue, 4 Sep 2018 15:19:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2983029C49; Tue, 4 Sep 2018 15:19:11 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable 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 D6A3229BBF for ; Tue, 4 Sep 2018 15:19:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727621AbeIDTol (ORCPT ); Tue, 4 Sep 2018 15:44:41 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:53918 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727186AbeIDToj (ORCPT ); Tue, 4 Sep 2018 15:44:39 -0400 Received: by mail-wm0-f65.google.com with SMTP id b19-v6so4872280wme.3 for ; Tue, 04 Sep 2018 08:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jJ1U4kKx8193jG9tQkZcIBV20/yBv7/sRbP/e4dOMNo=; b=b9touJj3MiUmzSKoxvjisezPgsU3C5H0wSy7lfOqvv9Q74U+Z/gUKMyexrVuiQw4UH WmBROPhbnrKKnkfFKxZrf4ELH8B2Xoy3SoZCZ9heBKRTU57ep03fcJLrLGGOMNpiM0bh Veb16dMqI7pPx/6e79REJsa81mv80TAlyCVP8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jJ1U4kKx8193jG9tQkZcIBV20/yBv7/sRbP/e4dOMNo=; b=oS2zDUplP1jc+hlRDQeM9fB8o5PqEKleeCIzNfPmsOXELLbtzjvnrqWvHskuGZs75S WjAA9Q8WOeOMZaMI9f/n0rViSXZLwNrQc6EWicFWX0ZGJjsnMPNNEh+ub6+pc+z/j045 nA3ehl8lfZHmzntaW+8r8o641nk6czhwBqh6GOFjm74ppy4Pwt9cOA9M3CHtEOUDM7qn D8qxg08JB5xLZJP325AC9YfmfxJoEOoEswGjVulnMrGuUzbVVuYi0u80ovQpBl0Gz+j/ gwUiLAJHVGhKj8/Cmw08ZFwqvTuVCT7lA8S2CAtUEKLGPW9qWyCZqEHab4U0npe8yQUO Bqkg== X-Gm-Message-State: APzg51DQOZ6eXG5aKftr+WAsR9ieZmCopw1WIKGU1crHpJRdYwsyj/f4 cr+5nRONdpfWWLyTveKx2EqW7g== X-Google-Smtp-Source: ANB0VdYvBdfoA3K0eECE7MoLKLoI/f+VHFy1iGpVkHv3kpqxdBD+8XnQccEGRiGtQyMuQUZy7rVYeg== X-Received: by 2002:a1c:b157:: with SMTP id a84-v6mr2873018wmf.18.1536074345443; Tue, 04 Sep 2018 08:19:05 -0700 (PDT) Received: from lpoulain-ThinkPad-T470p.home (AToulouse-654-1-394-222.w90-55.abo.wanadoo.fr. [90.55.193.222]) by smtp.gmail.com with ESMTPSA id l24-v6sm40255033wrb.65.2018.09.04.08.19.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Sep 2018 08:19:04 -0700 (PDT) From: Loic Poulain To: Peter.Chen@nxp.com Cc: linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, david.brown@linaro.org, robh+dt@kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, andy.shevchenko@gmail.com, Loic Poulain Subject: [PATCH v3 2/6] doc: usb: ci-hdrc-usb2: Add pinctrl properties definition Date: Tue, 4 Sep 2018 17:18:56 +0200 Message-Id: <1536074340-14840-2-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536074340-14840-1-git-send-email-loic.poulain@linaro.org> References: <1536074340-14840-1-git-send-email-loic.poulain@linaro.org> 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 Some hardware implementations require to configure pins differently according to the USB role (host/device), this can be an update of the pins routing or a simple GPIO value change. This patch introduces new optional "host" and "device" pinctrls. If these pinctrls are defined by the device, they are respectively selected on host/device role start. Signed-off-by: Loic Poulain --- v2: Add new pin modes documentation (host, device) v3: rebase on usb-next Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt index 2e93181..529e518 100644 --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt @@ -80,6 +80,8 @@ Optional properties: 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. +- pinctrl-names: Names for optional pin modes in "default", "host", "device" +- pinctrl-n: alternate pin modes i.mx specific properties - fsl,usbmisc: phandler of non-core register device, with one