From patchwork Thu Dec 7 19:04:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10100895 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 3397160325 for ; Thu, 7 Dec 2017 19:05:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2625D285E5 for ; Thu, 7 Dec 2017 19:05:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A8C62860C; Thu, 7 Dec 2017 19:05:53 +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 BF54B285E5 for ; Thu, 7 Dec 2017 19:05:52 +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=WeM8qkx4BEJ2y8VV4b2QVe30w3K4BPEFNZMPLtAFtaE=; b=fW39+AF/RCsqrTYkRz5NUWEWzh SjMn/e9ZcjkBinAB9UK5qhYWeeQ3RDU9qdGAqh3yPHftKiTc33db2OuuzoNe/eRuxSf4fy1zqf/qA mmZxI+0bY15el/c85tmwkMe8FkxI4Vy31GhJ92vtaxQO357EVdiMao/wCDiGT6XnA4JFIcUcONYzO NzMxmrjKt6/gUVJnSEeHSq0wyTLjSAH+RZOj4Lj4Nqeht/h0SCFBFt6g8zuM8Nxbaj+d9d0zuSga5 BfjcHz3smZaAf4zgX+6Keaabzn8/aCvbKrjVrSl04VPCT7WFVCu56WK/oX3HZJpXPJtret+o9zReM V8tlp0rQ==; 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 1eN1UW-00016k-6N; Thu, 07 Dec 2017 19:05:52 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eN1UA-0008UV-Ad for linux-arm-kernel@lists.infradead.org; Thu, 07 Dec 2017 19:05:38 +0000 Received: by mail-pf0-x241.google.com with SMTP id y89so5375323pfk.0 for ; Thu, 07 Dec 2017 11:05:10 -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:in-reply-to:references; bh=7UqPEhKg/6Li9o6IaqgIF2WNqhvrJO52Wtyu+w3xFBc=; b=bPOYgmxm7b47bMNC9nBxAO5PwJKD08LK/5bwcEcmD9qFf523SB+oQHhbxkMhBqymF2 +VKyyllAf1MlWE8DgBii+Wh/HHiBTq0hPcnHSJfp4JSvoYG2FUr+uMobs4AzecGRyh97 i4kIPNjwaQoTnqM61WVzZTIDcAB3RSTUi9+UzOx9nuW9uHvEbrnc1nlX77UCieKkO194 LVF4n9JSJ5w+ZHBsImB54ekSL4pp1P2zO/LVLw+JTUS6OM0pNPC3H6RtdahQqdRCchkJ BBBmUZsNFVMT8ig9pJjGoPCclsmARI7HX+teWmYX9eNbLH3cPKPFiQv30XmKLD5adqW7 MszQ== 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=7UqPEhKg/6Li9o6IaqgIF2WNqhvrJO52Wtyu+w3xFBc=; b=EpRet4ethzQEhtoHlydE6L2kF5p3gv/3J9Vp85jX13juSTkYFfkaYkvHz/9Xj3lTMr 2AwRH78Thq1UIWv6setMFg2WmKWhLLZWrqGnXZJbMHtf9xloWPDvD6qdFossargx5tRK ytOBsKz8K73sF+A3TkTCOcW9hQoBW8FdABBE15xKMtPkg6bJnk9CA4S/pHPVjnGlNxf8 FFKWuApQx/qxWzKxRvECev463eJORaa+Ou+A3nQH92+I0PhOiag1RO1rpYmSxXCpd9H6 7Ze9+2OZZymJHjyY45XjlX0eoTk4YpTVFXzjR6Z4WZa2OJ3Sgq4qb0ipC9vhzmY/RcX+ LhZw== X-Gm-Message-State: AJaThX7JA8drvUoqXTOHii6w/V471AE0Uq2AloIEMkLLgKkcrOaooNsZ CrPHym8nzFbLTpx9A/3cEuA= X-Google-Smtp-Source: AGs4zMbj3JCUiRepsI2qgoTTAXrXd/qUaSDaXk0DfDqd1OYlo3UUCuoWN2ghRO0VVu2VVFkbM5dSww== X-Received: by 10.159.240.134 with SMTP id p6mr26946911plr.344.1512673509286; Thu, 07 Dec 2017 11:05:09 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id j62sm10550867pfc.18.2017.12.07.11.05.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Dec 2017 11:05:07 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Maxime Ripard Subject: [PATCH v2 3/3] arm64: allwinner: a64: bananapi-m64: add usb otg Date: Fri, 8 Dec 2017 00:34:20 +0530 Message-Id: <1512673460-7865-3-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512673460-7865-1-git-send-email-jagan@amarulasolutions.com> References: <1512673460-7865-1-git-send-email-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171207_110531_575795_5C62D788 X-CRM114-Status: UNSURE ( 9.80 ) 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 --- 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..e4b2d8e 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 */ }; }; @@ -243,6 +252,11 @@ regulator-name = "vdd-cpus"; }; +®_drivevbus { + regulator-name = "usb0-vbus"; + status = "okay"; +}; + ®_rtc_ldo { regulator-name = "vcc-rtc"; }; @@ -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"; };