From patchwork Wed May 9 06:05:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 910675 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="jbUqePn+"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40gm7s0Kvnz9s47 for ; Wed, 9 May 2018 16:06:15 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id D4E2DC21F1B; Wed, 9 May 2018 06:06:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id EAEFFC21E1B; Wed, 9 May 2018 06:06:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D9C39C21DFB; Wed, 9 May 2018 06:06:03 +0000 (UTC) Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by lists.denx.de (Postfix) with ESMTPS id 5F5A7C21DF9 for ; Wed, 9 May 2018 06:06:02 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id l2-v6so22186397pgc.7 for ; Tue, 08 May 2018 23:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id; bh=fBdNdgf79cwLHOMA4LMczcOnZDP3mmEGoQa64aMrD7M=; b=jbUqePn+mX9yiR4oTwmhHj+d2W72Y65ogN/EnJLwPx6g3AghRwnbVTrM2BbA3vnipf VD4ocEi9hoH9QDGeBF+OSfYZj529sXjHhMmHhOwgwGxJdovW7OgA/AlNTkSy1LUsqnZq 4e6gZTZp2BlJ2xCPK22zWhEmCJRbn+k9edmt0= 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; bh=fBdNdgf79cwLHOMA4LMczcOnZDP3mmEGoQa64aMrD7M=; b=m4enA0DFfiBDHEljuLd9ncdkfsPWwgD0z8na/SawNvc4WhKwjF6+ify2o90DvROGYQ F59auS5VuilG2Rz571Fy45aZDalSSMQ+cGgnjSCRCqvov2PKh00Dgn1gXAoITMBPWYHF c26LR8N/D3wVUBh6pZSVbJSOeF7t77vntQZN9MgLO959ZtjyXyuTUTSqXdEo549EyU2O 5SRlAK2NQDttLFhT/OsF66oFzDKmD2nNHjSpYTvY3kBcYxeQeFl8tHUsZdJVYFW6hHDb JIb45hguZ7HZQTLV42CqQB3ggap2WIYDw79lHkFfIJ8MilfC720/Za9UHP4js3ocn3jY VhIA== X-Gm-Message-State: ALQs6tADnvhSM4KmIklfK9ANuQBBuLoXuFltJ0c5tubU+7rHqcFAYS4l ZB04jePCrmAJ9TM+5sSBNx5F/8EWATU= X-Google-Smtp-Source: AB8JxZpqigF1xxL6gLW8R2htAL3RX0o2t/N7YK6Xtq05yVIgsugtJzCJeLzcOCnuOfFpbuCGHRT/Bg== X-Received: by 10.98.35.215 with SMTP id q84mr42510232pfj.31.1525845960341; Tue, 08 May 2018 23:06:00 -0700 (PDT) Received: from localhost.localdomain ([183.82.228.172]) by smtp.gmail.com with ESMTPSA id j10sm17263665pfj.7.2018.05.08.23.05.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 23:05:59 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Date: Wed, 9 May 2018 11:35:51 +0530 Message-Id: <20180509060551.5173-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 Cc: Maxime Ripard , Marek Vasut , linux-sunxi@googlegroups.com Subject: [U-Boot] [PATCH v9 06/35] device-tree-bindings: phy: Sync sun4i-usb-phy bindings X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Sync sun4i-usb-phy bindings from Linux, since the drivers/phy/allwinner/phy-sun4i-usb.c follow similar. Sync changes from Linux with below commit: "phy: sun4i-usb: add support for R40 USB PHY" (sha1: f3d96f8d23d8e6d0b7642ee946b9b2ac3418fb4d) Signed-off-by: Jagan Teki --- Changes for v9: - Update last commit change of sun4i-usb-phy.txt from Linux instead of merge commit Changes for v8: - %s/follw/follow - Added merge commit from Linux doc/device-tree-bindings/phy/sun4i-usb-phy.txt | 65 ++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 doc/device-tree-bindings/phy/sun4i-usb-phy.txt diff --git a/doc/device-tree-bindings/phy/sun4i-usb-phy.txt b/doc/device-tree-bindings/phy/sun4i-usb-phy.txt new file mode 100644 index 0000000000..c1ce5a0a65 --- /dev/null +++ b/doc/device-tree-bindings/phy/sun4i-usb-phy.txt @@ -0,0 +1,65 @@ +Allwinner sun4i USB PHY +----------------------- + +Required properties: +- compatible : should be one of + * allwinner,sun4i-a10-usb-phy + * allwinner,sun5i-a13-usb-phy + * allwinner,sun6i-a31-usb-phy + * allwinner,sun7i-a20-usb-phy + * allwinner,sun8i-a23-usb-phy + * allwinner,sun8i-a33-usb-phy + * allwinner,sun8i-a83t-usb-phy + * allwinner,sun8i-h3-usb-phy + * allwinner,sun8i-v3s-usb-phy + * allwinner,sun50i-a64-usb-phy +- reg : a list of offset + length pairs +- reg-names : + * "phy_ctrl" + * "pmu0" for H3, V3s and A64 + * "pmu1" + * "pmu2" for sun4i, sun6i, sun7i, sun8i-a83t or sun8i-h3 + * "pmu3" for sun8i-h3 +- #phy-cells : from the generic phy bindings, must be 1 +- clocks : phandle + clock specifier for the phy clocks +- clock-names : + * "usb_phy" for sun4i, sun5i or sun7i + * "usb0_phy", "usb1_phy" and "usb2_phy" for sun6i + * "usb0_phy", "usb1_phy" for sun8i + * "usb0_phy", "usb1_phy", "usb2_phy" and "usb2_hsic_12M" for sun8i-a83t + * "usb0_phy", "usb1_phy", "usb2_phy" and "usb3_phy" for sun8i-h3 +- resets : a list of phandle + reset specifier pairs +- reset-names : + * "usb0_reset" + * "usb1_reset" + * "usb2_reset" for sun4i, sun6i, sun7i, sun8i-a83t or sun8i-h3 + * "usb3_reset" for sun8i-h3 + +Optional properties: +- usb0_id_det-gpios : gpio phandle for reading the otg id pin value +- usb0_vbus_det-gpios : gpio phandle for detecting the presence of usb0 vbus +- usb0_vbus_power-supply: power-supply phandle for usb0 vbus presence detect +- usb0_vbus-supply : regulator phandle for controller usb0 vbus +- usb1_vbus-supply : regulator phandle for controller usb1 vbus +- usb2_vbus-supply : regulator phandle for controller usb2 vbus +- usb3_vbus-supply : regulator phandle for controller usb3 vbus + +Example: + usbphy: phy@01c13400 { + #phy-cells = <1>; + compatible = "allwinner,sun4i-a10-usb-phy"; + /* phy base regs, phy1 pmu reg, phy2 pmu reg */ + reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>; + reg-names = "phy_ctrl", "pmu1", "pmu2"; + clocks = <&usb_clk 8>; + clock-names = "usb_phy"; + resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>; + reset-names = "usb0_reset", "usb1_reset", "usb2_reset"; + pinctrl-names = "default"; + pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; + usb0_id_det-gpios = <&pio 7 19 GPIO_ACTIVE_HIGH>; /* PH19 */ + usb0_vbus_det-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */ + usb0_vbus-supply = <®_usb0_vbus>; + usb1_vbus-supply = <®_usb1_vbus>; + usb2_vbus-supply = <®_usb2_vbus>; + };