Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2895363yba; Mon, 15 Apr 2019 23:41:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIXE88rY/q+4tItHsFrksAJOvZBOt9htnKbkyq2VKRscuhYBeZiipvqcJgi2s1/zJ/xGAv X-Received: by 2002:aa7:8c86:: with SMTP id p6mr81884094pfd.37.1555396906347; Mon, 15 Apr 2019 23:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555396906; cv=none; d=google.com; s=arc-20160816; b=LtnR4R/tjVlifMa3GLzFlhTwI1Wfnz0hbd7CyJD1mY5PXLzSIyVtC2Yf9tGBQSo6q6 l334P9tc0rBDhdvixgZwPsSZJ76aIYXd9z87kZ0hJ2EHnsctfvrZ3+JkEbr+/Z/bZYy+ a4w+rR241OCbd/8/JExDm1RfRcI+37HXvi/DQzZE6VFJSWQzwA8BQ+actHtVlBC0zyB8 m7sL4Sh88BjaZejIIfVexQl1QeCbAvkYmGINh9nR0AHyAi+RMNTBbEwFTCCqEFmH8pJD hzv324h5KOigNlOqUcKgwEuJh31GsTxVFdQz+sBEFAKpX8kEo026J76qLS5S5dU6vLKg sTCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=mVRuGhmdRn01ANlRgwl0C6s1AOYeUo+6u03UCeUcH5Q=; b=Hh4qRTCIKV48dPfQMTBwrb2LtUvmKBpbXW82+Vou2Jxw0QtTX+sijiMXyhXJxo+teJ FmBPangFZ99dPpL43E8ay6c115oUluuJ7DDzEypdttylVA+lKgNRU/BmjoZFM5hWIL4Q nFTt8z+k502ae9iqM/C1viQlJLIpCSbYIy70OC46+ydm9+9EuUsPPu6CqulfCfWHxWkC y9nwELHswGDwyVv5r8p13fRFpeVmDuhoSeEHUgrqCkIuQTRd5mpevZUgE/WlDaghBPnY Ca/D1Cw0qee8ubJ9EPUAOP4zvV+NlVBfboRsb9+6KA9sXhXChLaxHYnAgpmtvbicNIvy MOZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1si20561606pls.43.2019.04.15.23.41.30; Mon, 15 Apr 2019 23:41:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728556AbfDPGkg (ORCPT + 99 others); Tue, 16 Apr 2019 02:40:36 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:34028 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728416AbfDPGka (ORCPT ); Tue, 16 Apr 2019 02:40:30 -0400 Received: by wens.csie.org (Postfix, from userid 1000) id ADEFE602FC; Tue, 16 Apr 2019 14:40:25 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Sebastian Reichel Cc: Chen-Yu Tsai , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Hans de Goede Subject: [PATCH v4 7/7] ARM: dts: sun8i: a83t: Enable USB OTG controller on some boards Date: Tue, 16 Apr 2019 14:40:24 +0800 Message-Id: <20190416064024.20414-8-wens@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190416064024.20414-1-wens@kernel.org> References: <20190416064024.20414-1-wens@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai The Bananapi M3 and Cubietruck Plus both have USB OTG ports wired to the SoC and PMIC in the same way, with the N_VBUSEN pin on the PMIC controlling VBUS output, the PMIC's VBUS input for sensing VBUS, and PH11 on the SoC for sensing the ID pin. Enable OTG on both boards. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 12 ++++++++++++ arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts index 838be7b3715f..9d34eabba121 100644 --- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts @@ -389,7 +389,19 @@ }; }; +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + +&usb_power_supply { + status = "okay"; +}; + &usbphy { + usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ + usb0_vbus_power-supply = <&usb_power_supply>; + usb0_vbus-supply = <®_drivevbus>; usb1_vbus-supply = <®_usb1_vbus>; status = "okay"; }; diff --git a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts index fcbec3d7ccd7..ea299d3d84d0 100644 --- a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts +++ b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts @@ -420,7 +420,19 @@ }; }; +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + +&usb_power_supply { + status = "okay"; +}; + &usbphy { + usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ + usb0_vbus_power-supply = <&usb_power_supply>; + usb0_vbus-supply = <®_drivevbus>; usb1_vbus-supply = <®_usb1_vbus>; usb2_vbus-supply = <®_usb2_vbus>; status = "okay"; -- 2.20.1