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: 123539 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1000204qgn; Fri, 5 Jan 2018 08:17:00 -0800 (PST) X-Google-Smtp-Source: ACJfBoswfiLmCVh3w7rj9z4qmCuAOphjy8gqw4CBjKIOhKPPbO1dwA8I/tqsXcKz5AaQ7Mt2NQki X-Received: by 10.80.207.134 with SMTP id h6mr4794236edk.133.1515169019935; Fri, 05 Jan 2018 08:16:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515169019; cv=none; d=google.com; s=arc-20160816; b=H6Y2qYBeUt8dzFeVbRlIUOQvLHFfZkPzSBwRAAtkuGo27/+CGsss9ZZM1PgCI2sA1r wbKdplK8J7I342SCz65+aYFsrnIzrK4b1uEQiWQ5hDhfs7mgjfGwFao65gRzWdebMfYU femvcfYMkWujugZtBQtiNm6XTNC9w61r1dlU/dPrZH9a+uEYR2i+vhh6CaAkp0NQTAZd AOeXmbuyyV7kwFnWSebD3GrfO/vrGW9d+6QuB2ZTgQDc7ZbqXnhBleU2UIEIBJDFOsq1 ied3s4XBBZstZJsCn/kJ57zbj3ju086Zni+aMIvidYNxob1RBMzeefBucen+sA3jTFi7 grtA== 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=gRsCC4c/X+AUI27v7r56qylyq+MSjIoE8Gq9lGdREI0=; b=TjwHV0T/fBuiIzLAIquFD3L+DSHozxwaWmcegQEc2HHfAVj2M8Qcvhetf2CBH+YESQ YAPqHxg+smj0hgdHrhzxaOhRRYZ/raWgWz1oC9Eu65IDFPbHzePIo+RShAfpwvZvBgY4 ztH7ApiVUF4PqlMaChYjfh61tUUdKs/GBAVoh2eek3gSkb27zlfpzWmJ6/EwrSkwOFcO H1v5S+3P5yjWtMn+aTDEQGHGu1CzwLclyPmswiCDFn964vDX0FoiySGFIkK8haXflsLH hSmjHyOt3MOnZzUI6aXYmMm7MI1UgFaDK8Rk697s/hsvugnu5umghteuK0l+ySmQJ1TG RiVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZrQNhPvt; 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 x23si1647407edi.317.2018.01.05.08.16.59; Fri, 05 Jan 2018 08:16:59 -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=ZrQNhPvt; 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 88349C21EC2; Fri, 5 Jan 2018 16:16:42 +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-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>;