Received: by 10.223.185.116 with SMTP id b49csp513222wrg; Fri, 23 Feb 2018 02:22:02 -0800 (PST) X-Google-Smtp-Source: AH8x227XITXhxzZ1FquWCv4j4of7GtWxRAtsx7saC2cscZ38XaCH1hjhesgBC6l406X9mHHUsrzP X-Received: by 2002:a17:902:6985:: with SMTP id l5-v6mr1318543plk.14.1519381322726; Fri, 23 Feb 2018 02:22:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519381322; cv=none; d=google.com; s=arc-20160816; b=TnWZMyjNXCYESn/rDqHhMxdjyJzmF12Zv80pCnQk7kleZvI/ctpWkzRFlsPnMrBtS7 E1YX5AXcPYqKTaVAhTyIv8n3pStKbQwf4jOiUbUixccK0aXvFwb5t755FyHjBc8MArq+ NS7U6aMGvtzBxBSPLnxkF03MnV+QKX1r4fZY6Nkizfpa+FOmYvf3Pqysn9aZbHwzPY2h oPfDrtrPqibdYIIe0Unsd7Gq4GBxSStuG/qe+B+t31DhXB64rY+Y9NGD8z7no04fplAb mf4VZD+vSLqyKKGvTbI2fL14gGwCEr+nfCUX11uDIFoiLX8becwn78zmKUxBoz7lxLOc MIpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=QcZMIZehtzdncqnY7bsmB7kr/pU+mYMawR9fTuZR5Xk=; b=0nzSbPlpMoZhD39VXDXsD5uvcpFsNUPKiwaEc7IKs5M9gZNn0Ew7SfzOyH9WSuQEj6 AjDOyqqS8dJnbFYP7coYNTZojcbxd/+LpqgPIhqRTlLZXHkArSclFYEUKDVKYTqip5+0 zazqLGEzm3YqvjIJ0hI+MI9US3UQilGAUJOdcO9jN2dwqDZr195DlOKxVohlDZuhBk/J bhy8Vmel7eJXSwk9whk5yvPtIdio/HQ1VxyC7j2Iplj2YuBSzsTUdK8W1mf5dSUBJwYO MgTZ0avvE24psSXMszOUoSeUWdH8HnaG8aQfBcnf0P5OwIHCBhVYvoY3rCiANzNJCWQK GgVg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o2si1341888pgq.565.2018.02.23.02.21.48; Fri, 23 Feb 2018 02:22:02 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751847AbeBWKUo (ORCPT + 99 others); Fri, 23 Feb 2018 05:20:44 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:59743 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751430AbeBWKQy (ORCPT ); Fri, 23 Feb 2018 05:16:54 -0500 X-UUID: 45d2a05a60c9416f8f15ce30672286be-20180223 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1765073079; Fri, 23 Feb 2018 18:16:50 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 23 Feb 2018 18:16:49 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 23 Feb 2018 18:16:49 +0800 From: To: , , , , CC: , , Sean Wang , Subject: [PATCH v1 06/19] arm: dts: mt7623: fix USB initialization fails on bananapi-r2 Date: Fri, 23 Feb 2018 18:16:26 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Fix that USB initialization fails as below runtime log is present during booting on bananapi-r2 board by adding missing regulators the USB device requires. Current regulators USB device uses are being updated with the correct ones to reflect real configurations which are all from fixed regulators rather than MT6323 one's output. [ 6.473958] xhci-mtk 1a1c0000.usb: fail to get vbus [ 6.479313] xhci-mtk 1a240000.usb: fail to get vbus Cc: stable@vger.kernel.org Fixes: f4ff257cd160 ("arm: dts: mt7623: add support for Bananapi R2 (BPI-R2) board") Signed-off-by: Sean Wang --- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts index ec11e14..f660d15 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -39,6 +39,24 @@ }; }; + reg_3p3v: regulator-3p3v { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + reg_5v: regulator-5v { + compatible = "regulator-fixed"; + regulator-name = "fixed-5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + regulator-always-on; + }; + gpio_keys { compatible = "gpio-keys"; pinctrl-names = "default"; @@ -502,12 +520,14 @@ }; &usb1 { - vusb33-supply = <&mt6323_vusb_reg>; + vusb33-supply = <®_3p3v>; + vbus-supply = <®_5v>; status = "okay"; }; &usb2 { - vusb33-supply = <&mt6323_vusb_reg>; + vusb33-supply = <®_3p3v>; + vbus-supply = <®_5v>; status = "okay"; }; -- 2.7.4