From patchwork Wed Dec 7 07:56:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9464157 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5C1EF60236 for ; Wed, 7 Dec 2016 08:04:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CB38280DE for ; Wed, 7 Dec 2016 08:04:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 416172845C; Wed, 7 Dec 2016 08:04:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D976D2847E for ; Wed, 7 Dec 2016 08:04:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEX7D-0008Jv-Gq; Wed, 07 Dec 2016 07:58:11 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEX6a-0007yZ-0Z for linux-arm-kernel@lists.infradead.org; Wed, 07 Dec 2016 07:57:33 +0000 Received: by mail-wm0-x243.google.com with SMTP id u144so26048605wmu.0 for ; Tue, 06 Dec 2016 23:57:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XuZiwSic1kfK3rzQtdSLjQorKw6PFqSLTxIhZC90jmo=; b=Jn2uts15lnIq4qXZU8RYsyFpyYLQZEgrJbgYq3Ci5+YyvrQk9/2xqxVvzGpJGM1ZeA BMTa1BIxbgfLTUGcdcDwJjxSKYAUK2F8xWcqKqbMBjDx+waINTzYCT9cleIg/VqnF3lR 67c1KPqwm8pWJJobrBmkrbD8b2l316jnaSg0GWrUSVrFQ+V7gVTi3jrVPe9Vtp7ZBHGv 5skBqMNDT/1n4VNIgwJZJZC/swaYxwsy7LaziF+aHPVphMS6w1xT6GS8miZOhXTuk0lN MQBqU7rPMxW/JsMEEihMojRdvwt2H3li5FX1gCqBd2f26CWYYAIJSuaRtKibxFL2kGgC rrqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XuZiwSic1kfK3rzQtdSLjQorKw6PFqSLTxIhZC90jmo=; b=UVyK+7piQTZn7BkxJyPx9EnJ0Gll0r6swxLktTtOeiSU0DCAVwmx0ATuRFvd+GUcog UuzCdTc/VXweYBzsylx29pIsfGZRH9YPN49AqF0sFcytId3lhAUX1hMLGEEF+Trq82nB F4pFD8QARdnu9Z8C9u9SvNDZ+A3zAgoYDEQtaLST2XlDW4EYSp96cszWaEdyA0wtE/s7 O/EDaMmm2yhJBpY49KFR4F86MloUfVbK74ATIP0FqeWIvSAMbgDGUwLSYzCwMT4TM+Sq Sbp+Hmmd1qhaBSccPLV9vWqYpVbEyf7T33YdCVjBQ3KyjJ092mr6iDibdHTNcSbw4pgS 0KcQ== X-Gm-Message-State: AKaTC03dA/zuxg4o8plcsZ/wHmgGUbS9NnN9WcYFcUgZ4Kk5Z1ZXDPvq6EkQ/g/LSYAlow== X-Received: by 10.46.7.10 with SMTP id 10mr31329361ljh.60.1481097429723; Tue, 06 Dec 2016 23:57:09 -0800 (PST) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id m81sm4339342lfd.45.2016.12.06.23.57.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 23:57:09 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Florian Fainelli Subject: [PATCH V2 2/5] ARM: BCM5301X: Specify USB controllers in DT Date: Wed, 7 Dec 2016 08:56:52 +0100 Message-Id: <20161207075655.7396-2-zajec5@gmail.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161207075655.7396-1-zajec5@gmail.com> References: <20161207075655.7396-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161206_235732_253561_9D6D9F15 X-CRM114-Status: GOOD ( 11.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Arnd Bergmann , Hauke Mehrtens , Russell King , linux-kernel@vger.kernel.org, Rob Herring , bcm-kernel-feedback-list@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rafał Miłecki There are 3 separated controllers, one per USB /standard/. With PHY drivers in place they can be simply supported with generic drivers. Signed-off-by: Rafał Miłecki Reviewed-by: Ray Jui --- V2: Fix node names and reorder ehci with ohci. Thanks Ray! --- arch/arm/boot/dts/bcm5301x.dtsi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi index f09a2bb..a4614c9 100644 --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -248,8 +248,26 @@ #address-cells = <1>; #size-cells = <1>; + ranges; - phys = <&usb2_phy>; + interrupt-parent = <&gic>; + + ehci: ehci@21000 { + #usb-cells = <0>; + + compatible = "generic-ehci"; + reg = <0x00021000 0x1000>; + interrupts = ; + phys = <&usb2_phy>; + }; + + ohci: ohci@22000 { + #usb-cells = <0>; + + compatible = "generic-ohci"; + reg = <0x00022000 0x1000>; + interrupts = ; + }; }; usb3: usb3@23000 { @@ -257,6 +275,19 @@ #address-cells = <1>; #size-cells = <1>; + ranges; + + interrupt-parent = <&gic>; + + xhci: xhci@23000 { + #usb-cells = <0>; + + compatible = "generic-xhci"; + reg = <0x00023000 0x1000>; + interrupts = ; + phys = <&usb3_phy>; + phy-names = "usb"; + }; }; spi@29000 {