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: 10587501 X-Patchwork-Delegate: agross@codeaurora.org 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 EF292679F for ; Tue, 4 Sep 2018 15:19:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E142E29C83 for ; Tue, 4 Sep 2018 15:19:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D414F29BA3; Tue, 4 Sep 2018 15:19:10 +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=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 7A2E429BA3 for ; Tue, 4 Sep 2018 15:19:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727186AbeIDTol (ORCPT ); Tue, 4 Sep 2018 15:44:41 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51893 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727388AbeIDToj (ORCPT ); Tue, 4 Sep 2018 15:44:39 -0400 Received: by mail-wm0-f66.google.com with SMTP id y2-v6so4872255wma.1 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=B8lZJ0lyhG2ni1lTwL/2fjzgLqgxShf1t8tnPtyO/A94MCQDZwghNjAuudgWUI0FLh NCnjVnQmmyDofFvDg1SEbHJQzknBHgY2Fzfor6M1lMl3WO1oWXAqEjLEPyvTOLsLtQB3 SHyTLg56lnvt95Fo9VrSwBBKnieKnX/JcDBjZsgI8nLqf2VNVtXQITtipLSV9v7VM1h0 ByFcFVcaMsjDe+ooABcdMJjepcdhUPPsH+PYEdEI1q1MYnA1y1hwMN4RNYKg9rqS1FNi KlOZ4HJoYg4HajSgkieIH4Hl5OZYGPbTIaDEXw1Clf6Gpp8VfEfbDpoUGlH5wQgg8WwM 57VA== X-Gm-Message-State: APzg51BtqD2/qyjxWBY+0pJ1WY5SJbQQ0tdaPxAVaHOsiYScEWrGjr0N p6p9tGFgioyLEF7N7Roh1qZNRg== 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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