From patchwork Mon Dec 11 16:56:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10105551 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 BD50D602A7 for ; Mon, 11 Dec 2017 16:58:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8F9B297C2 for ; Mon, 11 Dec 2017 16:58:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CB70297C6; Mon, 11 Dec 2017 16:58:23 +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_SIGNED, DKIM_VALID,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 322C22976F for ; Mon, 11 Dec 2017 16:58:23 +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=82IX4hToatd7y/od273vethvwJAhZFxX4Cp5cPmJoeg=; b=Ya8I+Pj+PW9e2ZzC9LLAEOPfUJ h3RG3CkHrjeFVY098/NRDnHHiE5en3fJ4l0fN1NyubB6KLfTU+2mPWRlWHKjhLcZ66yl8waiPR+bX vzE8vuf3eIF1gM0TcCa2A/rKOIyxviSQFxJNzga6nu+8doytfbpvRJ0wVBV9TydZwvmnVt3VBzhPg WNXx3QLp0bnU4mlKXCJNuvEIAFAY7eggXIsghkrqNW0aJAlcapleV/+NJcwZUrC+60AAM5PURrnZS mm8sa0duvnkztkeq+VSKjAo3gskXSoNVwyqi60tDGfxzDUar+0BoArzJG7eT4bRJJdcYaO8KDyZ+a lzNBS3xg==; 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 1eORPK-0006iC-KN; Mon, 11 Dec 2017 16:58:22 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eOROb-0005sB-Lg for linux-arm-kernel@lists.infradead.org; Mon, 11 Dec 2017 16:57:39 +0000 Received: by mail-pf0-x243.google.com with SMTP id u19so11962069pfa.12 for ; Mon, 11 Dec 2017 08:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=A0YTNtQH70uEGG6BtyPAWCI9khAkpFHSiKVy2A63QDo=; b=eAbxuk4zcnuL3J+XGGsP3XXMAI0Iwhac5xJIumDIctlQHNVBEnyJaTHNAfublh+urk vSbmBbCjSGG6BC8VvxZ6r8UMoBteIt4tzxybruwM7uI1cE3q0HHHITTyN02sYRmBEE6R AAJ8EzfreGipqzLqeoJcpqzG/uauQyYdU2MYjXKGrVsA1j/odD3Q3E1E6f/GeeliKZqu PyTIMbShrSJ7VSwL41tbvupId/4M992kZrEuHtbWPwUBgqbHhE114WQzzjYSc0cTO99n aCvuTWRLp5FhvmF05VJQzPXkHviccA9puruhY8u6HwhTdqzLoOdky26YO98mM7XOXuq1 HwNg== 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=A0YTNtQH70uEGG6BtyPAWCI9khAkpFHSiKVy2A63QDo=; b=bdXuBjbKUPsWVMQ/JzdcZkbSojeiZPrBpeKi4m5kMsr/K9GzBXvMkfZrtX6l/k8G27 U/95wu7M1Qs+GSyN9DWzXEwayaQFyCHbsEwtFqSlHw4R+4p4sNdHCVZW1sSQc2QUbz8y jwbHade9moTQf6XRtdudu56vHKdj7JpB0SuSmIFffMljwVz4HpqCnlK5D8RbA6Ms3KDH AMvaDgGbS+46jHO8TgWvlODc61xhS1UumSrtSgmcXpNS/7X+0spKeiBvdFAtOH8tQ7j0 qlg8GrnimYAA3KCYQ153dc9/1eHJ+C7fx/uEVe1lDhCdqRNSbQVQl8sW917pdUbNenFy VqXg== X-Gm-Message-State: AKGB3mKFXto9w7VtNRuPHkirmuGT9EyqAiF+2PTrCA/1hPgy4UDaBvUI mZoAKy33ZUHvXpdzQ5XWEGQlIg== X-Google-Smtp-Source: ACJfBotXkyN+3lp6DInsqCYjIb9kvsEwlkcjkiP72+SkuzE3TswamiDzZu5oeDoaMDcLWG+nQcSbmg== X-Received: by 10.84.252.23 with SMTP id x23mr991802pll.54.1513011437661; Mon, 11 Dec 2017 08:57:17 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id d9sm34848093pfk.117.2017.12.11.08.57.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Dec 2017 08:57:17 -0800 (PST) From: Jagan Teki To: Maxime Ripard Subject: [PATCH v3 3/3] arm64: allwinner: a64: bananapi-m64: add usb otg Date: Mon, 11 Dec 2017 22:26:40 +0530 Message-Id: <1513011400-4120-3-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513011400-4120-1-git-send-email-jagan@amarulasolutions.com> References: <1513011400-4120-1-git-send-email-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171211_085737_754416_F3720BA1 X-CRM114-Status: UNSURE ( 9.38 ) 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, Catalin Marinas , linux-sunxi@googlegroups.com, Will Deacon , linux-kernel@vger.kernel.org, Chen-Yu Tsai , Rob Herring , Jagan Teki , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, Icenowy Zheng 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 bananapi-m64 board, - USB-ID connected with PH9 - USB-DRVVBUS controlled by N_VBUSEN pin from PMIC Signed-off-by: Jagan Teki Reviewed-by: Chen-Yu Tsai --- Changes for v3: - Move the position of reg_drivevbus as per binding documentation. Changes for v2: - add drvvbus regulator - add N_VBUSEN pin .../boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts index 4a8d3f8..a23c113 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts @@ -66,6 +66,10 @@ }; }; +&ehci0 { + status = "okay"; +}; + &ehci1 { status = "okay"; }; @@ -136,6 +140,10 @@ status = "okay"; }; +&ohci0 { + status = "okay"; +}; + &ohci1 { status = "okay"; }; @@ -148,6 +156,7 @@ reg = <0x3a3>; interrupt-parent = <&r_intc>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */ }; }; @@ -247,6 +256,11 @@ regulator-name = "vcc-rtc"; }; +®_drivevbus { + regulator-name = "usb0-vbus"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>; @@ -259,6 +273,13 @@ status = "okay"; }; +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + &usbphy { + usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */ + usb0_vbus-supply = <®_drivevbus>; status = "okay"; };