From patchwork Fri Jan 5 07:36:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 123474 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp490887qgn; Thu, 4 Jan 2018 23:37:26 -0800 (PST) X-Google-Smtp-Source: ACJfBouBv6MbEFymLUyZKxaqgZ3drR68NxGIHOffmJHZuDFuV0QdiP/mE/c2nlCCpSqW+xQcBUjT X-Received: by 10.80.137.195 with SMTP id h3mr2134548edh.285.1515137846028; Thu, 04 Jan 2018 23:37:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515137846; cv=none; d=google.com; s=arc-20160816; b=aAX/X81ezfpFkX3kpg2d6htgOs10iY+hSQozvsTcrPGU9Ij3n/sFnFqSTWVih6cACi U5NLl+5da3yXMx0qK+ZuVV0YcXok5YOfLIOpk83k6M3CPNYhShqemGwLqicd7XrsDflc B+2zu3u8rJEJCxThFLsfl+i2poQtBytrQ3QI2kLPt/nAJXEU0tg9Va6x8nsCzO6rcZDW QVnK7uI61rbBjwj9r1+bWmnhHHIKGHGGRO0wezkQ6VPVbO5XOSTszYA8IqQX6QiPxeAG E6xjOgz3B46fR1CBntdfGj7dZAjG1PpM1GmVreMHUIr5+u6RgnKU+tCOKJqSUcpSdz1r KA8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=7Wp2379HR1effaUoHJfiaPokfzktnEoezreNSVisZNg=; b=GLo/cWENLDp9QOTuosXpiw5MgVLeG1z8Wx1qAJ1PFCrO2EFUm2vyV/h4i3nTQFk9ue Wdk9ncEpzWh71mvcWlHX5f3JNX1UhirLst3LrB8iKz/cYaChEf85AvnKvdk9kDucnZE0 gXVuw24DIdDx4oiK3jnK/RyQdJOJx2n1KQ7/JXvnVQGRGyLI4GZGJX1j3ebURjODU4wq pcLD+fkUjxzqjt8OCp9oYTQb6Am7r1ojBGOvfK2KDbItNa8P2w1dE8vGS4DecSwstdKn srwbkUY1Jv/wZoTdVqOOmsYFjTVeHiM/E9mDcYiWtbxRfaIup/gQZYluCxR9918Kj51k Ww6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WCYmLSIV; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id y21si1254070edi.523.2018.01.04.23.37.25; Thu, 04 Jan 2018 23:37:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WCYmLSIV; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 0EDB8C21DFA; Fri, 5 Jan 2018 07:37:22 +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=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 F1636C21DA5; Fri, 5 Jan 2018 07:37:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8499DC21DA5; Fri, 5 Jan 2018 07:37:19 +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 AED25C21DA2 for ; Fri, 5 Jan 2018 07:37:18 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id t67so1724874pgc.5 for ; Thu, 04 Jan 2018 23:37:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=vjE5fyw8cyJgpKLdmT/isU0RKOlrpMuusNO28cPeBug=; b=WCYmLSIVe81uLeGCy0nYndw+M523iKWgd9AwcgHsNAdqDn1jrMcEsdfuNgcfVIdEGg Ogf0KhOjM68foz/S2aVtFNDywm/9v+Xd+b74/nZWe06Pe85y1qRVdWhkj2J2a3JxP3f0 crcR87aIms3Df8PMm0XBTJbs9+97wlNliBsu0= 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=vjE5fyw8cyJgpKLdmT/isU0RKOlrpMuusNO28cPeBug=; b=OLemd2sra79/oNuekebTow3Oq5VnrFJWvU5SVpbECWMrQZMjyHM0xFRLOZId9WvwAD Bprttp5RWGmB3SekgY8gmVrwrteXkAR3kc7VMIHgCVi+ZqQneFAA6SWWG1PvAg35v4Jn cDzb793fvB3tqbdVmQQUOsGjrjTmdK1jEsjHiwUJ7Dcrur2zVEVtCrBRHGiR7J2C+GmD htwoGUW7vM7uG4J/WTRDEs73wMOsW6vFgq64LFmCq7qs/k57XwBatLwKV5RzWfhZdQYC V5uH7L+Ly18meJDB8pTL9adWI55IVN7HNsO7RiVZsfRyzQYAp43+5HVSmGcdWSFUmooO OLwA== X-Gm-Message-State: AKGB3mJ/Ih80Jz8RGQ+XIBQ9pAbstWNUaZGbaM1ZaARXayxqSm2Pnlat ht4BRv8Rg+6VXd4/f7S2OFWQWg== X-Received: by 10.99.143.65 with SMTP id r1mr1826479pgn.142.1515137837152; Thu, 04 Jan 2018 23:37:17 -0800 (PST) Received: from localhost.localdomain ([45.56.153.113]) by smtp.gmail.com with ESMTPSA id b9sm9553789pgs.3.2018.01.04.23.37.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jan 2018 23:37:16 -0800 (PST) From: Jun Nie To: wens@csie.org, maxime.ripard@free-electrons.com, hdegoede@redhat.com Date: Fri, 5 Jan 2018 15:36:55 +0800 Message-Id: <1515137821-30583-1-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 0/6] Add Bananapi Zero board with OTG supported 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" Add Bananapi Zero board defconfig and device tree. OTG device is supported with enabling clock and adding necessary controller configuration change. USB mass storage is tested as a test case. Jun Nie (6): sunxi: h3: add usb_otg and OHCI/EHCI for usbc0 on H3 sunxi: musb: Add fifo config for H3 sunxi: musb: Enable OTG device clock for H3 sunxi: musb: Hack dynamic fifo support for H3 OTG sunxi: usb_phy: Clear PHYCTL register before writing sunxi: Add initial Banana-Pi Zero support arch/arm/dts/Makefile | 1 + arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 113 ++++++++++++++++++++++++ arch/arm/dts/sun8i-h3.dtsi | 32 +++++++ arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 2 + arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 4 + arch/arm/mach-sunxi/usb_phy.c | 8 +- configs/bananapi_zero_defconfig | 17 ++++ drivers/usb/musb-new/musb_regs.h | 3 +- drivers/usb/musb-new/sunxi.c | 51 +++++++++++ 9 files changed, 229 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts create mode 100644 configs/bananapi_zero_defconfig