From patchwork Sun Jan 28 16:19:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 126078 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp1782229ljd; Sun, 28 Jan 2018 08:27:26 -0800 (PST) X-Google-Smtp-Source: AH8x224rzVVFND02PQ7s7ZfMOXUR9Uu+IzbsxOcwt1JFnXwxj3D6cySH2nk67xHSEFFdYoX3FcJG X-Received: by 10.80.154.225 with SMTP id p88mr43697710edb.256.1517156846932; Sun, 28 Jan 2018 08:27:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517156846; cv=none; d=google.com; s=arc-20160816; b=PWxNBScUC483SUdnWofVSkJsnMU8rYIEwm3O7wKAss+nCZPfbZkzGcuQ6GmkVuNF3s Eee8G2x3KeBXSA4ykrT9u9Pi/4ydnr0zZwXNL8miF+N+gBpgDGiOQ0j+uYOoLM9HGmeY KWjHnGWtXWf04CTrezqVohDh5YSTCGTSVzWzeDMEwI8dYsu3j4u1xJv9N6R2U8O0A54R FPkTrmUF2k1U1/4+Uyf9RVXNuSTy43bzLKPFx8rMwhwwRmyz3XkzVwJcPjC+3YBI/r5w IeE9+KXuQwqcbafBfX5v35a2yjbJMoC7u9jZwEZpCt//DGQfzwW15Kc1lDIlm93VkfEo IlFQ== 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=HrPeLkGA9ejr/zp1ze+F2GY055Tt0nStYBuUpBIP0w8=; b=IIyMhgb2gad9XkQ1+cDeL9BJsUDh2cIp4nknA5Rcoc9P855N0V4frIB1C/V3CIciv9 EhqPFs7gTmRommDQxVQef8NUguUKwW1YDBKPrHjey8ZG37H2qmXAXfJYxXh41MjnN5XT Si9YT2bJdqieUN4xWXYYQnQRqpjw7MDVORlVEjfKlIsAB5OeJhAL2UlxnbtvQPt5tKBG xD6+xdf7X4mCyhnFCj9NR0L0ooRiKIdYl4VXFNyn9nCLwE8hZOq9kGEW5HmleguDBUra w9MEJfkya8jGdyvNCOXshReU/LQv+pavOJb8oM9mX190DHzlsPAl053DywidWUwAcvby 2SNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=INN/g4fC; 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=gmail.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id i92si1417343edi.465.2018.01.28.08.27.26; Sun, 28 Jan 2018 08:27: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=@gmail.com header.s=20161025 header.b=INN/g4fC; 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=gmail.com Received: by lists.denx.de (Postfix, from userid 105) id 5F2D8C2203D; Sun, 28 Jan 2018 16:26:03 +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 3E077C21DA1; Sun, 28 Jan 2018 16:25:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 47D78C21E90; Sun, 28 Jan 2018 16:25:18 +0000 (UTC) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by lists.denx.de (Postfix) with ESMTPS id D0D4EC21F1F for ; Sun, 28 Jan 2018 16:25:12 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id e76so2783316pfk.1 for ; Sun, 28 Jan 2018 08:25:12 -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:in-reply-to:references; bh=gjWi7TqfeW2upiN4vqa4XIjsGX24gWHBX6eeg8t31zg=; b=INN/g4fCNBTyDYHNCNTq6T1sbpadgNhAs1c7hlJjmpp6gLp0gCBezT6brQrOwtjRq+ hUrTUs/WuwCErDGtud7s7hd0T5mFiwRx1ZpGGoo9wXawIY76gvN5htvN7uRRMu0eRiqF pWY/pCqa/SrApODHfco7t6JcDO5jrAT/ESYETcdWzKhnLpNBe1SbHq4TWSnj+63UjrZ7 wlLJI+O4UU3+kJYp72gyuy5Fj0S2oFR9LHPZkIASscLnqR5BwAcXPsKGhIfmUS8QGbHF WNnP6YT9DEG7PHWhsznc/iVr/LcJ0BNCe8KK9S/xaADonYAGhIxd2OCBkoKe02bI7wxA lesw== 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=gjWi7TqfeW2upiN4vqa4XIjsGX24gWHBX6eeg8t31zg=; b=owbzfF+Z23tMH6q1M5pjsj/neH9U4g/jjCTWmX+mQEHh5TpCAElOgFAKBmzHZckTef nTco4VDHW9ItIymwKMenZW4mi8z5fSkwMWzC2FKEzckVe+J5kcbV1QFILFICo4uXi0eL AoDFAIrRL8+EM6r/00slfywDTA3TIB+btT1kbsvlg7a/tE4lDJZvPxOWEs/HLyueKHvo qz0zM9oq8n4zzSCr1pezdZNPMATwKgo75E6s16h2bkBrFrgCA1owN3qPrhW4Vw2EU35+ WkNsqIZIGZWFKyjWZNi8lY1xjhZ333HrB9lmBsptsYcIX81I7dhAN4kiX0zi4ANwZ0xP l9qQ== X-Gm-Message-State: AKwxytdRKFJScIW5NIaJWqPyWVMXaadgq1pt7k/fKzIaXM6zQD2j6QsF 9lNLxyaBJcQ2Ne+CT3oXhMbRp1aL X-Received: by 10.98.202.84 with SMTP id n81mr24291313pfg.226.1517156711194; Sun, 28 Jan 2018 08:25:11 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id y79sm26075776pfb.177.2018.01.28.08.25.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jan 2018 08:25:10 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: u-boot@lists.denx.de Date: Sun, 28 Jan 2018 21:49:22 +0530 Message-Id: <1517156391-11353-2-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517156391-11353-1-git-send-email-jagan@amarulasolutions.com> References: <1517156391-11353-1-git-send-email-jagan@amarulasolutions.com> Cc: Maxime Ripard Subject: [U-Boot] [PATCH v3 01/30] 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" From: Jun Nie 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 [jagan: removed 1/8] from commit message] Signed-off-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>;