From patchwork Sun Jan 28 16:19:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 866847 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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hVWjmxTz"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zTykg23FZz9sCZ for ; Mon, 29 Jan 2018 03:28:43 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B236FC22002; Sun, 28 Jan 2018 16:25:46 +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.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 6B9D7C21F1F; Sun, 28 Jan 2018 16:25:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0610DC21CB6; Sun, 28 Jan 2018 16:25:14 +0000 (UTC) Received: from mail-pg0-f48.google.com (mail-pg0-f48.google.com [74.125.83.48]) by lists.denx.de (Postfix) with ESMTPS id 30308C21FEC for ; Sun, 28 Jan 2018 16:25:10 +0000 (UTC) Received: by mail-pg0-f48.google.com with SMTP id y27so2602561pgc.5 for ; Sun, 28 Jan 2018 08:25:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=glmSBggsvyxQtdV7cNAutqU3I+Rw64BakCd4XBuXvL8=; b=hVWjmxTzVw93FP1DN/9qyOf4U7BHm9PqMCHU3MCw5jRXdYOX+u/A0875m2dM40tb9p m+ANqFJlQ3InzG5pyDciTFyKvYmoEldJYaKJ43bkmueTMCQ51pVBS5UkTLIfUX4WAzl6 1K/wgYGGXZyVFpFRDOX93an+buZ5oz/p8kxtbi3s6IlUr3duX6UW5xKY6BWKaaMjRW2v OyqIa88PrllBwxKPWkZ4r0xhBlFHPJVyYQ/VB4ZdgiZIvulvdwF1uXUDsQJOf2dCVo0n LVBiqb40qp38/gk99eaJmxCrokJU4xBh41ZobiS9pbRAeoZ2v7UBMKmQtWkX2h7Lat74 njSg== 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=glmSBggsvyxQtdV7cNAutqU3I+Rw64BakCd4XBuXvL8=; b=GIbg+kvDLt8aIuelz9JwESilD/a4wIfBYX2Rfnpfya8dUUh6vefmv14Wjpv8cvAjY3 CfPwM962n/unkK7lXP4BfwhlxXUWXz8xUCOB6eOkiCnOo/HdFe9Hg2Ms2/Biawh1Pmp7 8AGgvYBsY+Tq3XxgfQRGdHOBEg9Ow/eIn5+F8dZtXpSe6aQCNSySNw83s3Dbd6irgXwZ skCVaP7pHFoj6HdGJtC7pywPN6xXsyHqV95cs14Xk/K8hLv8sOER3wjQovQt5BQT1ttD 67cvomQ1edHnR8y5p74zsAbKzv7PnqX9jiQvkNw8Vi1RquNVcZuy+yIV4EFN6NHF95TE PXoA== X-Gm-Message-State: AKwxytdjRFutbLeAq3jiyZD7cCyNURS1gAegRob2trCBj+furwAwNrCc UG2ObSQuoBsJ5JtSTaxuU/J9IMgj X-Google-Smtp-Source: AH8x226j55XbbCQWx5MtPe+jJP9lbdvg2+CqsgIdgoVO0bPMGecFqz6+jIKshdZgMJsGUhf5Z7DGoQ== X-Received: by 10.98.87.2 with SMTP id l2mr24037789pfb.46.1517156708234; Sun, 28 Jan 2018 08:25:08 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id y79sm26075776pfb.177.2018.01.28.08.25.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jan 2018 08:25:07 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: u-boot@lists.denx.de Date: Sun, 28 Jan 2018 21:49:21 +0530 Message-Id: <1517156391-11353-1-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 Cc: Maxime Ripard Subject: [U-Boot] [PATCH v3 00/30] musb: sunxi: Add OTG-Peripheral support for Allwineer H3/H5/A64 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" This is rework of previous A64 musb[1] and H3 musb series with OTG Peripheral support for Allwineer H3/H5/A64. Will submit another series on host support since A64 need AXP PMIC. Series start with Jun Nie H3 musb changes followed by H5 and A64 musb changes. All changes available at u-boot-sunxi/otg-peripheral branch. [1] https://patchwork.ozlabs.org/cover/847375/ thanks! Jagan. Chen-Yu Tsai (2): sunxi: Fix USB PHY index for H3/H5/A64 sunxi: usb_phy: setup USB PHY passby for USB0 on H3/H5/A64 Jagan Teki (23): sunxi: usb_phy: Clear PHYCTL register before writing ARM: dts: sun8i-h3: bananapi-m2-plus: Sync usb otg nodes from Linux configs: bananapi-m2-plus: Enable USB OTG peripheral mode configs: sun50i: Drop CONFIG_USB_MAX_CONTROLLER_COUNT msub: sunxi: Update proper fifo config for H5 configs: sun50i: Set proper USB PHY count for H5 sunxi: usb_phy: Fix phy_config to handle all SOC's musb: sunxi: Add phy0 dual route support arm64: allwinner: h5: orangepi-pc2: Order nodes in alphabetic sunxi: arm64: Increase u-boot size on MMC environment sunxi: Add uENV partition on gpt partition table arm64: allwinner: h5: orangepi-pc2: Sync usb otg nodes from Linux configs: orangepi-pc2: Enable USB OTG peripheral mode arm64: allwinner: h5: orangepi-prime: Sync usb otg nodes from Linux configs: orangepi-prime: Enable USB OTG peripheral mode sunxi: clock: Fix clock gating for A64 configs: sun50i: Set proper USB PHY count for A64 musb: sunxi: Add support for A64 sunxi: usb_phy: Clear SIDDP for A64 arm64: allwinner: a64: bananapi-m64: Sync usb_otg node from Linux configs: bananapi-m64: Enable USB OTG peripheral mode arm64: allwinner: a64: olinuxino: Sync usb_otg from Linux configs: a64-olinuxino: Enable USB OTG peripheral mode Jun Nie (5): sunxi: h3: Sync OTG and HCI nodes from Linux DT sunxi: musb: Add fifo config for H3 sunxi: musb: Hack dynamic fifo support for H3 OTG sunxi: musb: Enable OTG device clock for H3 sunxi: H3: set different otg base address per mode arch/arm/dts/sun50i-a64-bananapi-m64.dts | 10 ++++ arch/arm/dts/sun50i-a64-olinuxino.dts | 5 ++ arch/arm/dts/sun50i-h5-orangepi-pc2.dts | 54 +++++++++++++-------- arch/arm/dts/sun50i-h5-orangepi-prime.dts | 13 +++++ arch/arm/dts/sun8i-h3-bananapi-m2-plus.dts | 13 +++++ arch/arm/dts/sun8i-h3.dtsi | 32 +++++++++++++ arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 37 ++++++++------- arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 4 ++ arch/arm/include/asm/arch-sunxi/usb_phy.h | 1 + arch/arm/mach-sunxi/usb_phy.c | 68 ++++++++++++++++++--------- configs/Sinovoip_BPI_M2_Plus_defconfig | 1 + configs/a64-olinuxino_defconfig | 1 + configs/bananapi_m64_defconfig | 1 + configs/orangepi_pc2_defconfig | 1 + configs/orangepi_prime_defconfig | 1 + drivers/usb/host/ehci-sunxi.c | 9 +++- drivers/usb/host/ohci-sunxi.c | 9 +++- drivers/usb/musb-new/musb_regs.h | 3 +- drivers/usb/musb-new/sunxi.c | 47 ++++++++++++++++++ env/Kconfig | 3 +- include/configs/sun50i.h | 7 ++- include/configs/sunxi-common.h | 3 +- 22 files changed, 258 insertions(+), 65 deletions(-)