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: 145933 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3791556ljw; Tue, 4 Sep 2018 08:19:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbmtLTu5offIYhXEtrHej7UwcCXglhdQy2crc4RgJUd3tNbGymUqvYhoa5WUt4aoPMLcMrk X-Received: by 2002:a63:6746:: with SMTP id b67-v6mr11372126pgc.330.1536074350802; Tue, 04 Sep 2018 08:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536074350; cv=none; d=google.com; s=arc-20160816; b=xmFBznamPAk8H7b6mnZYHkd/BCaficOJfq4fI6/l3HWWDPAI36IVRg1ezAhZv1VJYR WKTBqu4/wiv2wtu8xNoWqJwOPhsvKYPol0sEjrjzAqTXr7KZ6sJjx6WqXoXCVNmGrUt4 ZuQRx1Df6+KtC61UV++dfypuZh/2ODW9zwcqZUh6IzlS4Ks9pf2uKGtX+mdOePrXkLq8 53Me7wt1d72eX1tu1+2jqqZaWx3eA2mRfD+jhiSSlqWPNkjfFoADTm2+jVV3MvCPfZJB cdfoFGm7rGE2N+EK0JhxFQjnCE1vgTOnIJ4zikg8PJlg9LPAsWXMwMssZw6hXKrIm4qt y5PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=jJ1U4kKx8193jG9tQkZcIBV20/yBv7/sRbP/e4dOMNo=; b=PHJgaSAjtUpVFSnmvLajDovjekFMPWbD+GUjPlwnlAYxnily6pEfCq/yJcEuylja1K ShBveyJSUh1fjcwwPaPDirPoKU3edBAWTnc9yxkyP1YWBgoSRaFlqxan//YU8n6ne4eh Fd+saMc/iU3px89v0U4dPvua9wF9DAtmaQlpEABMdgRoZCrcStq1Y7JcuW68xRmCI4aF 8aytGXTi+0w7S6r19hk3QRQljt/c0/PcvSugfsjbaz1hOlV8H/An0cZwe0HKBP8/5o1H tk8F38yr9aoqz1dFvrDw1rpU8wcs5H2arNbEEbbG2TJxNDQItVsq0c65mCO/MG9BkQxg SHtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b9touJj3; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n15-v6si23319017pgc.309.2018.09.04.08.19.10; Tue, 04 Sep 2018 08:19:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b9touJj3; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727186AbeIDTol (ORCPT + 13 others); 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-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 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(+) -- 2.7.4 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