From patchwork Fri Apr 29 10:59:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 8979951 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E06499F372 for ; Fri, 29 Apr 2016 11:01:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 25DC020212 for ; Fri, 29 Apr 2016 11:01:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2CBD7201E4 for ; Fri, 29 Apr 2016 11:01:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752992AbcD2LAQ (ORCPT ); Fri, 29 Apr 2016 07:00:16 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:32695 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752954AbcD2LAN (ORCPT ); Fri, 29 Apr 2016 07:00:13 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O6E00CKW6K8AT80@mailout1.w1.samsung.com>; Fri, 29 Apr 2016 12:00:09 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-93-57233eb8f6e0 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id DF.55.05254.8BE33275; Fri, 29 Apr 2016 12:00:08 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O6E00M736K3GJ20@eusync4.samsung.com>; Fri, 29 Apr 2016 12:00:08 +0100 (BST) From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Chanwoo Choi , Liam Girdwood , Mark Brown , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-usb@vger.kernel.org Cc: linux.amoon@gmail.com, tjakobi@math.uni-bielefeld.de, m.szyprowski@samsung.com, hverkuil@xs4all.nl, Bartlomiej Zolnierkiewicz Subject: [RFT PATCH 2/3] ARM: dts: exynos: Provide regulator for usb3503 on Odroid to fix device detection Date: Fri, 29 Apr 2016 12:59:50 +0200 Message-id: <1461927591-7864-3-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1461927591-7864-1-git-send-email-k.kozlowski@samsung.com> References: <1461927591-7864-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPLMWRmVeSWpSXmKPExsVy+t/xa7o77JTDDZZPMrXYOGM9q8XUh0/Y LK5/ec5qMf/IOVaL5sXr2SxOTX7GZPH6haFF/+PXzBbfrnQwWWx6fI3V4vKuOWwWM87vY7JY tKyV2WLdxlvsFmuP3GW3aFv9gdVBwGPnrLvsHptWdbJ57J+7ht1j85J6j3/H2D36tqxi9Pi8 Sc7j1NfP7AEcUVw2Kak5mWWpRfp2CVwZE28sYi5YzVWxZtUm9gbGExxdjJwcEgImEgteTmSG sMUkLtxbz9bFyMUhJLCUUaKz+ygrhNPIJDHt01uwKjYBY4nNy5eAVYkITGeW2P3iIAuIwyyw gFHiy/LZ7CBVwgI5Eu9fvWMCsVkEVCV+r28Hs3kF3CTaj0xlgdgnJ3Hy2GRWEJtTwF3i/qzv YBuEgGrWHXnPNoGRdwEjwypG0dTS5ILipPRcQ73ixNzi0rx0veT83E2MkGD+soNx8TGrQ4wC HIxKPLwz7imFC7EmlhVX5h5ilOBgVhLhPWqrHC7Em5JYWZValB9fVJqTWnyIUZqDRUmcd+6u 9yFCAumJJanZqakFqUUwWSYOTqkGxpQNKbsSmH4f2c48h1engfuW6rG5SSxyyda3fomzXnrw 5A7D3H2/p6j38v1wfrR8z2yrrqOmz06l6PEUv5vpzSI2898BPrunF7JOPP8tZVHy5a32/bBL H5gUii9ohS0OuDnHcrZj+Llr14oCZ+XqzV3IyFbwysnhrfq5wOObLANWfkkIP65kz6DEUpyR aKjFXFScCAAIyeoRYgIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Odroid U3 (Exynos4412-based) board if USB was initialized by bootloader (in U-Boot "usb start" before tftpboot), the HUB after successful probing was not visible in the system ("lsusb"). Connected devices were not visible neither. The USB3503 takes optional regulator so provide one - buck8 on Odroid U3. Additionally switch the control of buck8 to GPIO mode. It is faster than I2C/register mode and it is the easiest way to disable it (regulator state is a logical OR state of GPIO and register value). Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4412-odroidu3.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts index d73aa6c58fe3..5308a955ede4 100644 --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts @@ -74,6 +74,7 @@ regulator-name = "BUCK8_P3V3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + maxim,ena-gpios = <&gpa1 1 GPIO_ACTIVE_HIGH>; }; /* VDDQ for MSHC (eMMC card) */ @@ -98,6 +99,7 @@ clock-names = "refclk"; clocks = <&pmu_system_controller 0>; refclk-frequency = <24000000>; + vdd33-supply = <&buck8_reg>; }; &ehci {