Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp461770img; Thu, 21 Mar 2019 01:51:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZy0GNPieq5rRDcNUggCnsaiccSD0NEIZRT4sx5saPl85p7L9Lj0sA1c6WGGvmWitGOGhG X-Received: by 2002:a62:a219:: with SMTP id m25mr2201657pff.197.1553158279849; Thu, 21 Mar 2019 01:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553158279; cv=none; d=google.com; s=arc-20160816; b=zI1huiaLebvW2oUWigy5KLfshK9JwQ8OJjwkr9lnKVN97cI1L0CifJXWt+eL7+RkEf gxgjKX2bQmYNoYw7WlzvFzESweny4owTDKlS8uub/Z7xNA90P4lxQbZbnWFZM/LeIG9D 0EAc3xVkIQYIYML+vNPnHLDPYRuju8W7TdhX4a3vYruiiZUSFC817cVTovoArxt66CCR lczFuvXFzE3HZ9RcBW5Pt8aZKzcdBKWd9X6ZP8ilSmGqEMEmP9beqft5LbxthP5cHhjB oH+zA2CeCEPQO/6jJDzbG3w141mthMGSbFHx9ueNpezXC9AxzJhv3Oyy95Rje6AsmHfC iKHw== 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=gD6OFb1Q0l7OrOheHQ9oiSP4zjSyT2KFThSSXNdRK+rI8G+Fu2DruNAG0q8zGCmIZc 5rSceffSERJ5tpmeLx7kBUGiudRvvcYSRnJ+nmFb/wdGCBa8gv7HEmInP6hAUshdS9RC 7LTtsf3NPpG585R4B4Hewb87u0r8yZwv641Y05AHWKN/wq9XFtAypcVZDoGMqTsHdY+P mp72N1Z1q6r1ZdvM1hz7N8N4dHh0FxvA26amrNlxRHn7o2H61DCjKzEgZLAJwnrqzlwC pRE9U3CETRHttnhH29JIaXw9Z4miQVyEMQ5zNNDHvpACPPnlclzxE+HILEUYQ7JkHqH7 ePlw== 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 h9si3671789pgp.280.2019.03.21.01.51.05; Thu, 21 Mar 2019 01:51:19 -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 S1728158AbfCUItN (ORCPT + 99 others); Thu, 21 Mar 2019 04:49:13 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:41508 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728111AbfCUItG (ORCPT ); Thu, 21 Mar 2019 04:49:06 -0400 Received: by wens.csie.org (Postfix, from userid 1000) id 646D9600FD; Thu, 21 Mar 2019 16:48:59 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Lee Jones , Sebastian Reichel Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Hans de Goede Subject: [PATCH v3 9/9] ARM: dts: sun8i: a83t: Enable USB OTG controller on some boards Date: Thu, 21 Mar 2019 16:48:50 +0800 Message-Id: <20190321084850.20769-10-wens@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190321084850.20769-1-wens@kernel.org> References: <20190321084850.20769-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