Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp775483yba; Thu, 18 Apr 2019 09:19:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzokPv0XXEAei5VppEFNdCYUCYjUPoFJ1LGDD5c5kuvBUiYinyc/fs7MeWnPSYBt3UU0MwP X-Received: by 2002:a65:4342:: with SMTP id k2mr9715054pgq.178.1555604365600; Thu, 18 Apr 2019 09:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555604365; cv=none; d=google.com; s=arc-20160816; b=VjuBHfOVqTGVHxzYhgQ98dDlouEhMO+KpEo7J7w3wfojIG6B8dt1fL7DTB+fFXjuFj UgnNr/SNJ3vDekr773YxENZrC3lvQ92UvGMI2f9e7g67YccxLOlYAebiN8sx+md2duTC fIqRlUr+nM+M39wATTfbSpODUUbtLqVXfxXkWmAOB6CDynbBZmT4+/esC+H7QNliLKTL AAgcC2+Jdsa83Yl7w78uJ4eXFiPd0XZpjz/Ms7ls9wkPzpklh1tlzHipyadt5Nm6NIxf W61LEJw5g/lcXrT9Pr4nIiudJ6hyqfl8AbuEh1q+m6x8AOJ7kDEtgXHj/i+U23fWVMZv hl7g== 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=p9EIUSqfgFwEDYaoUKK58giSydvc3KP4VKIop9s5hwQ=; b=nFXgBAbWb9ke9UPcvWMCKD/XCC6mpqaC7ljmZfrye/mVRL/3nErZGCPyqvaA4IXAbE kk4IY9LSrTqA2ciy7DykyAcLvT7Q/TpmZtsBnrEIO3YCXMFa0e+/jxgvbTZO/95XvCwC hcYstsS2Xd+ygxKt6NP2sHoWGM3wf+LIpkGVwU8sVBgGYXL270khLb2R1wamXxs5NEty GM5dj6FNRTo6QKayXZBpz2FUn75c2iXDqJ8nQQC1jZCccBxsggYuM2U/xd/TKpQfTuib N60/kNSl9AwN8LR1Qgte3LeuJ9uWMHnwsP10Q9WKHimU87db1i8QlGRHb2uo2YKchIJq eRdA== 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 r15si2604012pfn.4.2019.04.18.09.19.10; Thu, 18 Apr 2019 09:19:25 -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 S2389706AbfDRQSR (ORCPT + 99 others); Thu, 18 Apr 2019 12:18:17 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:34390 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388401AbfDRQSH (ORCPT ); Thu, 18 Apr 2019 12:18:07 -0400 Received: by wens.csie.org (Postfix, from userid 1000) id 5F11D602D3; Fri, 19 Apr 2019 00:18:05 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Lee Jones Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: allwinner: a64: bananapi-m64: Enable PMIC USB power supply Date: Fri, 19 Apr 2019 00:18:04 +0800 Message-Id: <20190418161804.17723-4-wens@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190418161804.17723-1-wens@kernel.org> References: <20190418161804.17723-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 M64 has a micro-USB connector with USB OTG support (that is already enabled). VBUS from this connector is wired to the PMIC's VBUS input. Enable the PMIC's USB power supply on this board, and also hook it up to the USB PHY. Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 5 +++++ 1 file changed, 5 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 0a56c0c23ba1..855d1044b9a2 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts @@ -394,8 +394,13 @@ status = "okay"; }; +&usb_power_supply { + status = "okay"; +}; + &usbphy { usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */ + usb0_vbus_power-supply = <&usb_power_supply>; usb0_vbus-supply = <®_drivevbus>; status = "okay"; }; -- 2.20.1