From patchwork Mon Oct 16 12:16:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10008201 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 7E2F260230 for ; Mon, 16 Oct 2017 12:33:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72F5023794 for ; Mon, 16 Oct 2017 12:33:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67CC4284BD; Mon, 16 Oct 2017 12:33:36 +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.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 203DC2841E for ; Mon, 16 Oct 2017 12:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=/iXFdHzMeh3kWl+qbKO0Kpfb83SU1k447uT7k24aY/8=; b=SNaB/nwMKHwyuPvBGNthDMqe1N qR9uwid742t+R2+MI1Y740wymx7IbtXc0zbVPiB94HaMJQkmt5XaeVIad3Kx44MPXM4uKKpeGYzH8 fQnPwjplVjaZza6JZGgCgMVsn3h0wZ9yUsbfP7VvqU1Z8haFj4WdYyDuRYV8qF/8yuKDJUtT5e4RB UpODaRR4QmGRNasVdrVo7ewX7bfQmU02hv9piqKO+hu667cDb2Y9NEZofz+EBgi0oMtkZXkOOyvEU laVkbT+LmhcpJGE6qK96dPsbDXFm8+qExF7qa/blju7wnuNNyE7/d99JEv8qaz6Io3IS6w4qUZ8cL 4Li/myGA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e44a1-0001tz-9x; Mon, 16 Oct 2017 12:33:13 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e44Zz-0001jw-Sw; Mon, 16 Oct 2017 12:33:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KvgoFSyRmhdg6o5/nlDmhdexQ2rrQHsTqiCKr0tibLU=; b=q+HJhv1KEllb6QEjUOA3kshha yB5gqsXQNXeriovRjPNXDJJbCIKyp4vE9q4oQpQo7TaGNcpz/vhlMUhGsi11+fB1fUboXRXoEITwL GIrWsBjUkeCJhnhuEYH2V5wPgfuvM16MqRtcfWeug/qwQKEUfIpi346flV0z3a0u5m04oCZncAcFJ gU1R5KDidZ+X+hANd69iN+cQPQud6A5XGMgvhI3OY0HuXeICfzy4CAJMsBoeAzCZSZQDMnQwzQnsW /Ik7NZsYzgppWLcgHr977li2HQOcDB791lIy8v4fmF0nL62a9xV3TG620zvy2bajIdD4v03+QIEaf gIdNHnskQ==; Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e44Ln-0004sj-6Q; Mon, 16 Oct 2017 12:18:33 +0000 Received: by mail-pf0-x242.google.com with SMTP id p87so15688182pfj.3; Mon, 16 Oct 2017 05:18:11 -0700 (PDT) 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=KvgoFSyRmhdg6o5/nlDmhdexQ2rrQHsTqiCKr0tibLU=; b=J6EICQ3qZxQxndqHRTR0+MBNQ27EjW8crsajefhYNIJqoS12AFw1ql8YYNCY8RKB3l yVU8Ecb+2SlkeRHsjR4NDFbxdH/N6zjrvAMBT/XvDzCVSMbd2dwFqN3r8F6UozvTDsUI iv7EtZ1MFHWT4Z8UsbDGx22UY60j1Bgotd8RVEdu2j0a26cR1AgaEnjrxCiKXhlimDPd ovrOH6FnfIxpesnG5oW6+GcyN9LbY5M8wQmQ8CYqo9ukur00e5SOeSDeLLqQtwsQWcnT mmEb83axIsiLaiEcWY7b/LbaqbhKIKg6fzxYFdQYewNQnzneoivddjKaEYWrqQ6+C6kD Qqlw== 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=KvgoFSyRmhdg6o5/nlDmhdexQ2rrQHsTqiCKr0tibLU=; b=IrbQxK16wiPGmCSp7Et0lFlb+5jRQ8idJrQSpNGEnMfPALKubRooeYlP/Qnl2usRG3 8CXMJ26XB+PuSqpGUwngeCXKdwF7X5/+tK94hI5WMHESKL7mk43omTkFGavAiTteZ4Tz ge6rTxhsuZaT+BVvNIKFxzy51n+ONq8ax3xJE+6aCl+iHOMHz/rehVDvId+NmMWamnrU wR7HqMWQGXGkUvYJpYG1aooYW67sxjGO8sh6tVLSGPEyXhylDJBMXTusMrHIWtxClNFp dHw1t5sUojrXW6dspooy5WIhm9umFGddS06OcIsjV/FJtrD5/CMSNDh6zNotGWtMTS6t wR6g== X-Gm-Message-State: AMCzsaU1WB3DC8/frtUlSTC4FL1XmFz2NGxR32hbwxBfwG3cijyEX+nb iaNpPQPbhJKVvPsFgSM1Xrp+udpn6j0= X-Google-Smtp-Source: AOwi7QDjlKsywwQHoi42lh0Wtawa2r24AcYpS/tEYyhVLbfrNLUe3Vdh8no8CYuMJR8l2ydWmiEOsQ== X-Received: by 10.98.60.23 with SMTP id j23mr8587395pfa.190.1508156289077; Mon, 16 Oct 2017 05:18:09 -0700 (PDT) Received: from localhost.localdomain ([1.128.10.43]) by smtp.gmail.com with ESMTPSA id r18sm12753490pfi.59.2017.10.16.05.17.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Oct 2017 05:18:07 -0700 (PDT) From: Jagan Teki X-Google-Original-From: Jagan Teki To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 6/9] ARM: dts: rockchip: Add usb host for rk3288-vyasa Date: Mon, 16 Oct 2017 17:46:24 +0530 Message-Id: <1508156187-27519-7-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508156187-27519-1-git-send-email-jagan@amarulasolutions.com> References: <1508156187-27519-1-git-send-email-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171016_131831_433377_4108EFAA X-CRM114-Status: GOOD ( 10.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Heiko Stuebner , Russell King , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Jagan Teki , Michael Trimarchi MIME-Version: 1.0 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 Add usb host support for rk3288-vyasa, board support hub power through phy_pwr_en and usb2 host power through usb2_pwr_en and naming conversion followed as per schematic. Signed-off-by: Jagan Teki --- arch/arm/boot/dts/rk3288-vyasa.dts | 48 ++++++++++++++++++++++++++++++++++ include/dt-bindings/pinctrl/rockchip.h | 1 + 2 files changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-vyasa.dts b/arch/arm/boot/dts/rk3288-vyasa.dts index c79a4c7..c22d674 100644 --- a/arch/arm/boot/dts/rk3288-vyasa.dts +++ b/arch/arm/boot/dts/rk3288-vyasa.dts @@ -105,6 +105,30 @@ vin-supply = <&dc12_vbat>; }; + vsus_5v: vsus-5v { + compatible = "regulator-fixed"; + regulator-name = "vsus_5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vcc_io>; + }; + + vusb2_5v: vusb2-5v { + compatible = "regulator-fixed"; + regulator-name = "vusb2_5v"; + enable-active-high; + gpio = <&gpio8 RK_PB1 GPIO_ACTIVE_HIGH>; /* USB2_PWR_EN */ + pinctrl-names = "default"; + pinctrl-0 = <&usb2_pwr_en>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vsus_5v>; + }; + ext_gmac: external-gmac-clock { compatible = "fixed-clock"; #clock-cells = <0>; @@ -363,6 +387,20 @@ status = "okay"; }; +&usbphy { + status = "okay"; +}; + +&usb_host0_ehci { + status = "okay"; +}; + +&usb_host1 { + pinctrl-names = "default"; + pinctrl-0 = <&phy_pwr_en>; + status = "okay"; +}; + &vopb { status = "okay"; }; @@ -407,4 +445,14 @@ rockchip,pins = ; }; }; + + usb_host { + phy_pwr_en: phy-pwr-en { + rockchip,pins = ; + }; + + usb2_pwr_en: usb2-pwr-en { + rockchip,pins = ; + }; + }; }; diff --git a/include/dt-bindings/pinctrl/rockchip.h b/include/dt-bindings/pinctrl/rockchip.h index aaec8ba..dc3d661 100644 --- a/include/dt-bindings/pinctrl/rockchip.h +++ b/include/dt-bindings/pinctrl/rockchip.h @@ -24,6 +24,7 @@ #define RK_GPIO3 3 #define RK_GPIO4 4 #define RK_GPIO6 6 +#define RK_GPIO8 8 #define RK_PA0 0 #define RK_PA1 1