From patchwork Tue Feb 6 14:25:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 127018 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2989255ljc; Tue, 6 Feb 2018 06:52:23 -0800 (PST) X-Google-Smtp-Source: AH8x224j9We2kkdSLFMB+lvoMpBWhRY8UZtcCtBvPjIcOa5+ey2LpFimZDddaCWouOKjZUyIz5tC X-Received: by 10.80.170.61 with SMTP id o58mr4164407edc.142.1517928743738; Tue, 06 Feb 2018 06:52:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517928743; cv=none; d=google.com; s=arc-20160816; b=dj9jfu+GREc+eTD4ccWCj50KlcjCIEUfTWY6ksuOJwRW+OctebZ2M6PfQ5TFyRdpsL iF9NOY39YZgWRmnw17HQp/FDSB1lDP3a9pPlhc4NcymjA/PL/7Plikt7Y5tdJ9Zv3hce YkCIuwISYWF1DFnpjr7h5Hx0NSfst2zKGXsx5kJES76M2q+ZRagW6kMVlikwnsQ+myBJ AgXBp4zm8c23UnAcc2Lzk5faNBmUjkWY9eVc8lpx5D676dIZfuZPPDVYNLK1ezSEIkjD MgvR0aVarZ/stoXAH/xGn18Gen1CJyyWlKof1li6wg2WfqZuw2+VdwpEZtm/RsLbNYtg hSqA== 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=D6RR3gaSMd6Qt+4vCh4v0G6LOftt5zpx/L+qmA6zWHs=; b=vju97yQ5I0WZSdTZCnHDnOhzt4vk2vOHrVPbJpdIe68ynd5B+redV5PGUooJL2ngfM qJAfILVPX/ALTRgq4u2g4jGONLk934uLN7yL28dOji6jLerhtAjkNVJNV7gUnZizcw+2 gDQm+Q/vNSVjkrC3rrSdIePzTnOZcakhkUzFNqh5uEir8wR7sjuWCt47R+zywxZ763hP a7njNkegRP9C8DjbfjOdiZXZOm8sZ2Oehzw7sdFTKfJPFonEeFL8J0ni6GJF7UV7X/JF aMfxYOiqqn8mJAnVHwzBSDpNMYqL9A4ZBY1Cd/3QolvNijrP35EUQXCBeg7KwUB2nNSj EB8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=bOxseIzV; 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 33si3800245edy.153.2018.02.06.06.52.23; Tue, 06 Feb 2018 06:52:23 -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=bOxseIzV; 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 5D92FC21E37; Tue, 6 Feb 2018 14:40:14 +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_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 26823C21E4C; Tue, 6 Feb 2018 14:38:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D45AFC21DD7; Tue, 6 Feb 2018 14:32:46 +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 4F164C21C3F for ; Tue, 6 Feb 2018 14:32:42 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id f8so1337668plk.11 for ; Tue, 06 Feb 2018 06:32:42 -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=Rml55VfSxyY7AgGZx7TRi2jiiStu5vh57WNCrYnohXw=; b=bOxseIzVy9EjfnswdYdmlL8QOdDwWVU+pNB8jc/F/jtkpgh5wtuaESgvSpTbV5WtJm P4Y9zoa02YB+kRO6KHRnFZYiU8OQvQaIGBNquHfswL1OAx8bOl1drjLaHXIm/qWMTCKj Zehzq28Faq1usT7neuK0Pk6wijK306elVzCeLA66BpHIEk8WqMjFnqcU7IDxrtba0IFm v6wZ1zzPPJ9csUX9oPUI0Uj5ejwzRHwnMu8bkg0jPAJ29uwG/hqpNIce7pazXp0KfoJ/ 7Q1aSMlizJRbFN7Z/dd70CPEGL7bpP4G58/NtzahsijuZzgoMdRUcSidlTdVH2vfql9A gkyg== 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=Rml55VfSxyY7AgGZx7TRi2jiiStu5vh57WNCrYnohXw=; b=AgxkjR5XzgMNQ1g7jPn082kDFkkaMi4rDSS6BoOyGQBVWuoDgqb8pb+l5OyG24mYca Zlg32HK4ASkyDy18vi84Ba1CM8dWc9Y9umPSSfm3fjd62mgakxGrwwHZeF8uhzAIMtyy +zJfRKhKVbo6yHMYuyfMHnXyGbfbuNPg+yvUbr6jHN1B7LDzQiD+ztoq4tZbd7KweIBF N6YK37UvqBIPwh9iNkKUw7u8kAsAhKvb0Fgk72wSNc039jPd41gy3f31gnC73YR2pX3O 1Yw6QBWDJxcll1DYdz3TSPPoMyrpOntEfUBNkq7r9ZH4Q2Fk/7hrJHlupK/UmQ89e5Gt 4+pg== X-Gm-Message-State: APf1xPA6IwSv4r1x0E5CmvEOyJaSDrGS6DHJRYUW61iB7nGB/RSE1MdD r6Ylto/DgTaQ7yLsnA9j865qmAip X-Received: by 2002:a17:902:4464:: with SMTP id k91-v6mr2538606pld.267.1517927560574; Tue, 06 Feb 2018 06:32:40 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id h2sm17457613pgp.65.2018.02.06.06.32.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Feb 2018 06:32:39 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: u-boot@lists.denx.de Date: Tue, 6 Feb 2018 19:55:53 +0530 Message-Id: <1517927164-18197-24-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517927164-18197-1-git-send-email-jagan@amarulasolutions.com> References: <1517927164-18197-1-git-send-email-jagan@amarulasolutions.com> Cc: Marek Vasut , Maxime Ripard Subject: [U-Boot] [PATCH v4 23/34] 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 --- 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>;