From patchwork Fri Jan 5 07:36:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 123475 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp491357qgn; Thu, 4 Jan 2018 23:38:06 -0800 (PST) X-Google-Smtp-Source: ACJfBovkM0JkeJX0Zt93SmEdc/0mDT+vXebnIL43tR0dcv3GDN61PYdwmmTL7SXFU6BTEPXz4ahw X-Received: by 10.80.217.76 with SMTP id u12mr2881443edj.171.1515137886076; Thu, 04 Jan 2018 23:38:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515137886; cv=none; d=google.com; s=arc-20160816; b=enw6+Q0VhXWXW5rLgh6e+i6JC9+PJDMuizHfF+2W1tRkVgEyA1xiEDcsYvI09CZHq8 PSdOxMbJ7/QSQFBeY38o3qaYlVbfypKZOR5uHGS1jUNn2Ar5Eex5h+XThAKzNSGied4Q Nt5Zek7vrh6PQS14V505/CPdsvSL43rPBlNnAIckXPY+5d46Gqq9LY+fvj4BVSQetqAt vSINil38chJU+fh0rHnX3B7XCr3Mtua0U5rMFnktaC9mxDOlTjXDj/sXA7seYufwTGip zSBZIQFLkvEbT0AyR2FsTuxKms9XAM+Loucn9ecCQOy8BRv2nrI0mmzf9tc6NTdkqC4+ ZxOg== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=ujzP99FCQ82UPJghZPcZi55ef8cWZ5kLnZhBwQ3+Ais=; b=sln+sz3RnNlfNZYyw4xQ+K/sLBkQvA/b3hHWWnBXWUzGoo+PLrXc5rFLwDLXY7Ssgx 8wUgiGgYqte6UrgU7f2CnhjJI3lFpFTCBaxmg12PHHbkV5QUku+Az/5aSx7qtbTKWO73 H6l7NQ/Kl2IxGxFX699p3O53W5FFSRbK9e2pvZ9mo0cHWM2aLXbN75CPmqYtWnX+FjvO BYHAcMBtWDcxbDUJr4qKxroKnBLFBNEHBy9Z6pBafUaNMZ7j7GoCZwl2lRbbmblxB8iI Wj7J6p44dPAs006wp/7j55CJtS8dyKM+HSwBtpWyRQ1fbzPqtYbhyg5KO0p025s4Yxru mpzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JwbKGB6R; 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 b15si784245edf.329.2018.01.04.23.38.05; Thu, 04 Jan 2018 23:38:06 -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=JwbKGB6R; 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 A48C1C21E24; Fri, 5 Jan 2018 07:37:44 +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_NONE, 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 09F11C21E35; Fri, 5 Jan 2018 07:37:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 40566C21DD9; Fri, 5 Jan 2018 07:37:32 +0000 (UTC) Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by lists.denx.de (Postfix) with ESMTPS id 60DC7C21DE9 for ; Fri, 5 Jan 2018 07:37:28 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id o2so2621981plk.12 for ; Thu, 04 Jan 2018 23:37:28 -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:in-reply-to:references; bh=h/uiOs8vX/kTZ/RbQ2nhH5QcKDz7Z+zCilPXw739beE=; b=JwbKGB6RuM+xrJWZYHYrflzhycU7lLZbYQg59lC1ndfjXaMKGgAASiwor/YVds1WSr uXuyANtdqC0RGX4eMRNDtGE8WqVuWYuCpglUA7WqJYW9bnA+nvtsIr90ej98/ZH3Ov4+ Cgr2fDrmqzM/QOvfLXVNqQ82EVrWCXp9nMAT0= 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=h/uiOs8vX/kTZ/RbQ2nhH5QcKDz7Z+zCilPXw739beE=; b=AkMggQy+Z5y6XMveCiwPolNpbXHSGADsFVFNPd3BUaLrZxDFTLrHYMs9+dkUqHQUxk IdKrT2NkOaih1E4d+RQMMwPAczyV0D9x0XpO8xyiyGOkP07Ga/lMsqoDEC9McoqMrZOB LWM741bO+BLbAAjOs5kS5A+pc0bVBTLki4iKPNooyLG/tcXXSSpI0nr4ChH59Bk1e6F8 ankshBWMyfOkZfaiPRrQkXBeMGHG3iPU7WGtMMLAnPze51W7IBoIappzC3TN1x9JqrdK 1Uc7uZ4x+Rx18rJt+1J804BK3eDYfABBHlT1PkZRLCj25DUsS9hKE8IvIAGnHnDDryMC 8MTA== X-Gm-Message-State: AKGB3mKU74sn+d6wMhW5DmyjEFxm7zbFaAltqxLSCKnka3QkKKNbW2TO JnejgCuZuWVz0TuEb7GNYDjtkQ== X-Received: by 10.159.206.134 with SMTP id bg6mr2261004plb.311.1515137846947; Thu, 04 Jan 2018 23:37:26 -0800 (PST) Received: from localhost.localdomain ([45.56.153.113]) by smtp.gmail.com with ESMTPSA id b9sm9553789pgs.3.2018.01.04.23.37.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jan 2018 23:37:25 -0800 (PST) From: Jun Nie To: wens@csie.org, maxime.ripard@free-electrons.com, hdegoede@redhat.com Date: Fri, 5 Jan 2018 15:36:56 +0800 Message-Id: <1515137821-30583-2-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1515137821-30583-1-git-send-email-jun.nie@linaro.org> References: <1515137821-30583-1-git-send-email-jun.nie@linaro.org> Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/6] sunxi: h3: add usb_otg and OHCI/EHCI for usbc0 on H3 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" Allwinner H3 have a dual-routed USB PHY0 -- routed to either OHCI/EHCI or MUSB controller. Signed-off-by: Jun Nie --- arch/arm/dts/sun8i-h3.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/sun8i-h3.dtsi b/arch/arm/dts/sun8i-h3.dtsi index afa6079..ae1e861 100644 --- a/arch/arm/dts/sun8i-h3.dtsi +++ b/arch/arm/dts/sun8i-h3.dtsi @@ -218,6 +218,19 @@ #size-cells = <0>; }; + usb_otg: usb@01c19000 { + compatible = "allwinner,sun8i-h3-musb"; + reg = <0x01c19000 0x400>; + clocks = <&ccu CLK_BUS_OTG>; + resets = <&ccu RST_BUS_OTG>; + interrupts = ; + interrupt-names = "mc"; + phys = <&usbphy 0>; + phy-names = "usb"; + extcon = <&usbphy 0>; + status = "disabled"; + }; + usbphy: phy@01c19400 { compatible = "allwinner,sun8i-h3-usb-phy"; reg = <0x01c19400 0x2c>, @@ -250,6 +263,25 @@ #phy-cells = <1>; }; + ehci0: usb@01c1a000 { + compatible = "allwinner,sun8i-h3-ehci", "generic-ehci"; + reg = <0x01c1a000 0x100>; + interrupts = ; + clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>; + resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>; + status = "disabled"; + }; + + ohci0: usb@01c1a400 { + compatible = "allwinner,sun8i-h3-ohci", "generic-ohci"; + reg = <0x01c1a400 0x100>; + interrupts = ; + clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>, + <&ccu CLK_USB_OHCI0>; + resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>; + status = "disabled"; + }; + ehci1: usb@01c1b000 { compatible = "allwinner,sun8i-h3-ehci", "generic-ehci"; reg = <0x01c1b000 0x100>;