From patchwork Mon Oct 16 12:16:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10008157 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 EB73F601D5 for ; Mon, 16 Oct 2017 12:20:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E526128567 for ; Mon, 16 Oct 2017 12:20:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7F0D2857D; Mon, 16 Oct 2017 12:20:29 +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=ham 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 59D071FF40 for ; Mon, 16 Oct 2017 12:20:29 +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=sFWBT6MXLYJaYbApP2O3y/tYyOo67WP7VMMp1yCP4o8=; b=L+/sJaMIUnTeGqD9O/eoJvJpYh LS6c6EukcIcK88fnXTykB3lnPjqfD4HaFJL6f7or0SRHU21f4DiQrB6UBTkVJlLI3tFMrfkG9VLO2 kosN4QY13NCsjQtQquv5390Eo4ixq3PpLdiyK4m+ugfFGsj9pq/uaP+O2+9XLXBBMdLm3IDP6Kzjb StWqG7+3wEOJP8wOwYDq3TL7+VZebQ4W8bCYn3iF3qRe2D9Ah/Os7I4+uLPhnLsXsq1bykiGbis/Z YBgMDewxcqZ4mqVAORcfQ8MQReuOr2YxGyoxOeQ4otdCKqPFiObt8xWVd6y0I0V7lr+7uksgV7/GC AGt+Gl7g==; 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 1e44NK-0000vx-DF; Mon, 16 Oct 2017 12:20:06 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e44Ly-0007vL-Bn; Mon, 16 Oct 2017 12:18:53 +0000 Received: by mail-pg0-x241.google.com with SMTP id y7so6660993pgb.7; Mon, 16 Oct 2017 05:18:22 -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=3XhmYF6TpOZRXIYIRIONorKJUARo8TrreMnT/g4SiU4=; b=DSE1cQS59hfTxUIuZC3I6Uqupv5VLOGGOehr7NE/qehNFsmv2Mr7ifdo4UC4sWIq8N Fpz7yYIBFh2H5CNS/GDso5GSwQyFZ8d0XWjbXuN3gAf/iBY/k70LxGIdbKZPiYeFqb6/ MNj/gdE1DWTTUVtk4xlgRL104NkqyEpcLP5+u6E1IF+ly9lb/IYMg4T1yCd8jpVULN4y jgt72wBfMt7rpv/B04A4ZvjWAUN+rXpnDogNOTKS4bhlvXe8xWTYXmikCmL4lhaKvgn4 hACJf2bFn5ykCQz5XJXdobmeSPHBt6ntyjxYsZFI2chIhcogeAyagwSRW9r9k6/xydOP JfOA== 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=3XhmYF6TpOZRXIYIRIONorKJUARo8TrreMnT/g4SiU4=; b=Stw9d0ZVarCp+2ZeUXfzFRsPbuAV8qtKmG2aALSCXnyk6TNUk/jXyMCCaw6zFCu7UX nqB24EjPXWU6cUCu/l19EQQK3UKHT3dsfypHTzbH3yxeyBLIK76HwfvVy5M7okoR+FTa VVtMCef9JfZg7wf+w5TEOpwjxh0IpNY/qX9ygwUBgdf7lWECJAvCqdYDsJi9t5BC8x/T t3NXsS3NkO0zM2J9ryDWiifkA2ECQkgvM1leTHLjNecytKdUJtVM1NkyAXtKM8MWQL7v 6ja1cMlTZbvw4FG0Dgxd1A5UvEG6nJxhAeBMjo1sjtV+zu4t62hIVLkNQ3E4hxcV0msA iUjA== X-Gm-Message-State: AMCzsaUmnw5OrrxqkLi7BQ+/OyTzbYqxqe26mioJe2EBtqdzxpaTsufc IADDGnTojiOFr83TP2C43+WcBPsOvGs= X-Google-Smtp-Source: AOwi7QA6GEdBSTl8MckSsYGRxcifb2JNS8KkEEmwHMNp2DJoMS17Ty2VDW0pFlXNBShmd+w6dlKeuA== X-Received: by 10.99.143.88 with SMTP id r24mr7905050pgn.224.1508156301373; Mon, 16 Oct 2017 05:18:21 -0700 (PDT) Received: from localhost.localdomain ([1.128.10.43]) by smtp.gmail.com with ESMTPSA id r18sm12753490pfi.59.2017.10.16.05.18.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Oct 2017 05:18:20 -0700 (PDT) From: Jagan Teki X-Google-Original-From: Jagan Teki To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 7/9] ARM: dts: rockchip: Add usb otg for rk3288-vyasa Date: Mon, 16 Oct 2017 17:46:25 +0530 Message-Id: <1508156187-27519-8-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_051843_176363_60E43E2C X-CRM114-Status: UNSURE ( 8.77 ) X-CRM114-Notice: Please train this message. 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 otg support for rk3288-vyasa, board support usb1 otg power through otg_vbus_drv and naming conversion followed as per schematic. Signed-off-by: Jagan Teki --- Note: g_ether/g_serial fired an issue with mainline tree https://paste.ubuntu.com/25752571/ arch/arm/boot/dts/rk3288-vyasa.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-vyasa.dts b/arch/arm/boot/dts/rk3288-vyasa.dts index c22d674..2f1389a 100644 --- a/arch/arm/boot/dts/rk3288-vyasa.dts +++ b/arch/arm/boot/dts/rk3288-vyasa.dts @@ -115,6 +115,20 @@ vin-supply = <&vcc_io>; }; + vusb1_5v: vusb1-5v { + compatible = "regulator-fixed"; + regulator-name = "vusb1_5v"; + enable-active-high; + gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; /* OTG_VBUS_DRV */ + pinctrl-names = "default"; + pinctrl-0 = <&otg_vbus_drv>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vsus_5v>; + }; + vusb2_5v: vusb2-5v { compatible = "regulator-fixed"; regulator-name = "vusb2_5v"; @@ -401,6 +415,10 @@ status = "okay"; }; +&usb_otg { + status = "okay"; +}; + &vopb { status = "okay"; }; @@ -455,4 +473,11 @@ rockchip,pins = ; }; }; + + usb_otg { + otg_vbus_drv: otg-vbus-drv { + rockchip,pins = ; + + }; + }; };