From patchwork Fri Jan 5 16:15:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 856104 X-Patchwork-Delegate: jagannadh.teki@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; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ZrQNhPvt"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zCqYl6R4Pz9s1h for ; Sat, 6 Jan 2018 03:16:59 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 7B9C6C21EAE; Fri, 5 Jan 2018 16:16:43 +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_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 27AA0C21E48; Fri, 5 Jan 2018 16:16:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5AFA0C21E90; Fri, 5 Jan 2018 16:16:29 +0000 (UTC) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by lists.denx.de (Postfix) with ESMTPS id 7A22EC21E88 for ; Fri, 5 Jan 2018 16:16:25 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id d23so2354537pfe.9 for ; Fri, 05 Jan 2018 08:16:25 -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=E+qJrtFshJURgHVgPn0xNxYuilswYNhZzD/4gj3s3/o=; b=ZrQNhPvtyaTFVi8BJXjueJtRXwP/zm1Ig/6EkuQWRZGg6qyo/K2U3AFqF9q7JXIY/J FywWsH3ASAd/DD2EKlPwQm3QcF1tSdsaStdiURZaYFxAkabXPO6laE8Ik4Lfm3f+TGaw rpbaZcPzuogPqJ2Xub4moYvmup/Gf5NII1Vic= 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=E+qJrtFshJURgHVgPn0xNxYuilswYNhZzD/4gj3s3/o=; b=mGlKiauHTZHVJTHDHmn0TdV+41ANSHpGM+02+4RhJNFsWuhomDw12JoK+e1XGPBWW1 4kddih0KuXSJz+vNrkmD2rKVjZkCkKlFDIIOGZgnZFZv8KnA7+2rwn0kCFCCEn8Dlzco iyMX+rBGa+YeENCwVEoxUS4CdxuQzIgiqMu+hOhHTbfppHRjDBzOh+v3AeOvvendgBUS JL/iytUQ0xiHQT5nBgTx5RcvUJFManiaoEhwRZ8b4pbOLQl6uugE4f+fJf3oow8tIhDE /OzSgy/tmgZeC9452VrwHaQSZfuZ8LbHXB1AAJmznSiK3L072DXM5+/WWcZyBKJpC2nl Vflg== X-Gm-Message-State: AKGB3mKR7wGsh6Qisz1Vpiv8LJTTxlope8s0Hy99TBWn4TZUIM+kydiX b8OpzZRul+QETF6lnSXVUN0bYg== X-Google-Smtp-Source: ACJfBovZalKp+xg9NeaoSUtfcDWtyIC0M9UkpaN+wDFXU8oh1m8bGISUYKm3YlTONULrYvfc8jhX4Q== X-Received: by 10.98.28.4 with SMTP id c4mr3452417pfc.109.1515168984018; Fri, 05 Jan 2018 08:16:24 -0800 (PST) Received: from localhost.localdomain (61-216-91-114.HINET-IP.hinet.net. [61.216.91.114]) by smtp.gmail.com with ESMTPSA id k80sm14337459pfh.30.2018.01.05.08.16.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 08:16:23 -0800 (PST) From: Jun Nie To: jagannadh.teki@gmail.com, wens@csie.org, maxime.ripard@free-electrons.com, hdegoede@redhat.com Date: Sat, 6 Jan 2018 00:15:53 +0800 Message-Id: <1515168960-18960-2-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1515168960-18960-1-git-send-email-jun.nie@linaro.org> References: <1515168960-18960-1-git-send-email-jun.nie@linaro.org> Cc: u-boot@lists.denx.de Subject: [U-Boot] [[PATCH v2] 1/8] sunxi: h3: Sync OTG and HCI nodes from Linux DT 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 Reviewed-by: Jagan Teki --- 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..d9728a7 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@1c19000 { + 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@1c1a000 { + 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@1c1a400 { + 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>;