From patchwork Wed Dec 6 17:51:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10096707 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 724B560210 for ; Wed, 6 Dec 2017 17:51:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 653D120501 for ; Wed, 6 Dec 2017 17:51:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5988D28475; Wed, 6 Dec 2017 17:51:45 +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 DE68820501 for ; Wed, 6 Dec 2017 17:51:44 +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: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:In-Reply-To: References:List-Owner; bh=US/wHUdC3ioJbTatXOjxWK1rh9VJrbqA+X9BVs1a7OE=; b=loO 8ihZLYOFYlHie/Rj3NvcAlA0VPrjapF45DxYt8dMyXhkjmHr6+cUP6TMleo9DPnVPtETnZu7XZVj0 ABZD7MoR7c3MdOCBPJ0okiX+abz+0uKFZRa0LRnRlG31+3fpOThpLSAtLJV7kxntmKL+MdqWgIYtM lyty/RdSom1POFAyoP8DNeogVpwkVoSb9No5SaGA8bwt6RPy4FvBe/6qvKuSc/Wlu76gHvgvnGgX0 HMeCGgPbw8Anes0t9oErW9p/fabzQ1ksCd3T+6lAfXbREliAUL+X4dN08o6y7qnGa3TA78lwOzoxx JZsLE4BZpkJezZpn1n8IFGIrRUWIx1Q==; 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 1eMdrE-00024N-8v; Wed, 06 Dec 2017 17:51:44 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eMdr9-0001p0-3h for linux-arm-kernel@lists.infradead.org; Wed, 06 Dec 2017 17:51:41 +0000 Received: by mail-pl0-x241.google.com with SMTP id d21so1298167pll.1 for ; Wed, 06 Dec 2017 09:51:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=EryRiaYC9PnpSrvv0fdcXavWgLdrkkud9Ru391xCTO0=; b=AFxGOyaBwCJCgLljL7v0agXidgqoT5lEHf1nAnxVV90kAWYuJSlVrPu768MDig6yQf 6rh5KiZZxO+J+u2TmE9ukkyARLfSSscy2KX+hd5oPYLfRjVqYLrXVWkuUpCVBAYHILr1 ZKwYqpcijeE/FIfxq7xTro8mKjgkmlbIJI9oxiMRd/+hSz31PxLczH76azRbVAB9RHbX g/L60kNKgTtB+fFm7whc0NU61QEMX9j94uZi6j01BhP6kcdc3pUGsC/mM4imHKfLPBw6 1zdsm6ytK9AUBFJw8GxqoLsPKTAcCs3vXaJjcEw+dxxX98FgpYuEKrlouZ3tt156FLfz Ol+g== 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; bh=EryRiaYC9PnpSrvv0fdcXavWgLdrkkud9Ru391xCTO0=; b=LWvUPBbBGbvtBy0dRKuiIBXFdY+rJkmECzpE7wQGxQLWulq04DQFjfzbrzTV82cBlP lbTjYntEr4a48u1P9L2Vg0TTVCEVhRt+WS+0Gy1cZtQ3dMdGeCa1XYrwFj8WxznuOgPp yBM48kIRtnF7Ha3Y2PJUK1tLrtFV29rTCZ2z+staC2X0sK4o/RRI/2pTrGu3Lt1aaG0i nXmAGhZzfYP1mF/wcLWP50QBiNXZRwTMdWCFzPSbIbeKsDn0Xem9HUrjfiECHu9scj23 3bDypq0toL5Gx3sEPAc2lD4rF3o2i6cVbrkANjNP3yuspesorv7IiBETL36r2I2qhZb+ 1d9A== X-Gm-Message-State: AKGB3mJiMpZ8stlXAzdDi5Ad7ty15fl5HhvJUFX/i3UOr9Uq2GfJEGER sbWZzCKjfzTMiGNswFR+Los= X-Google-Smtp-Source: AGs4zMZqKL8VyPU8Gzj9ochgSkW7Imcu7Sz4Z2DUW1gXyoN0UtQ0wCgubqqgt6F/H7bKy7cGzU2x1A== X-Received: by 10.159.218.143 with SMTP id w15mr1253551plp.38.1512582678351; Wed, 06 Dec 2017 09:51:18 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id p13sm5850580pgn.32.2017.12.06.09.51.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Dec 2017 09:51:17 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Maxime Ripard Subject: [PATCH 2/2] arm64: allwinner: a64: bananapi-m64: add usb otg Date: Wed, 6 Dec 2017 23:21:04 +0530 Message-Id: <1512582664-24936-1-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171206_095139_232675_65C688DF X-CRM114-Status: UNSURE ( 9.31 ) 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 usb otg on bananapi-m64 has configured with USB-ID with PH9 and USB-DRVVBUS attached with dcdc1 regulatort. Add support for it. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 15 +++++++++++++++ 1 file changed, 15 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..0c74d62 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"; }; @@ -259,6 +267,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 = <®_dcdc1>; status = "okay"; };