From patchwork Mon Oct 23 20:21:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 10023035 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 B17A060381 for ; Mon, 23 Oct 2017 20:23:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D95628994 for ; Mon, 23 Oct 2017 20:23:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29AA828A2E; Mon, 23 Oct 2017 20:23:05 +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 55DCA28A5D for ; Mon, 23 Oct 2017 20:22:41 +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=GBOH6w2meNad3O30TiaAdaxMfTrq8WbxxbHMuqojl+Q=; b=kor0XIWTpJkHVdi7ygSSDpBLCm E//ItiYSCV3N/JUdIh+Kc7IB9gMkofoilHPmYEZp7rjrcNC+6MhFMzGJ+jJEjueDhR3AEjqtenBuS L12njGZRTP7t4Wl4wOCuA+HALPCeKTMtG+J6654at9iKMvdkUeua+U4GF0FM3ObeUn139ykZKvaSg 38DbEiZ/2mr6Zgje2DNSpWZRwK43pucW/MxUPSlV/Zjrfic8c3JJ2ilymUF2T6Eqk3B18RhNi3oMN xgkxm9mo8aKrn3hkZmpHtW4JfU99M+IS4T0f29vZGqZPY3IfS7CTpKoqyl7F+BQRTNmccKS3/nhzn ReLHod5Q==; 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 1e6jF7-0003Os-6X; Mon, 23 Oct 2017 20:22:37 +0000 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e6jF2-0003FD-5j for linux-arm-kernel@lists.infradead.org; Mon, 23 Oct 2017 20:22:34 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 5C807206D8; Mon, 23 Oct 2017 22:22:09 +0200 (CEST) Received: from localhost (unknown [213.151.82.4]) by mail.free-electrons.com (Postfix) with ESMTPSA id 17E44206E1; Mon, 23 Oct 2017 22:21:59 +0200 (CEST) From: Maxime Ripard To: Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v2 2/2] ARM: dts: sun8i: a711: Enable USB OTG Date: Mon, 23 Oct 2017 22:21:56 +0200 Message-Id: <819a4ac0ceae513a5ba0df8fa0a3516edfcaa144.1508790064.git-series.maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171023_132232_445566_268F053E X-CRM114-Status: UNSURE ( 9.33 ) 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: linux-arm-kernel@lists.infradead.org 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 The TBS A711 has a micro-USB connector that can be used in OTG mode. Enable it. Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index 786937a3af78..94fb01564304 100644 --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts @@ -337,7 +337,14 @@ status = "okay"; }; +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + &usbphy { + usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ + usb0_vbus-supply = <®_drivevbus>; usb1_vbus_supply = <®_vmain>; usb2_vbus_supply = <®_vmain>; status = "okay";