From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934648AbdKBXxT (ORCPT ); Thu, 2 Nov 2017 19:53:19 -0400 Received: from hermes.aosc.io ([199.195.250.187]:34950 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932201AbdKBXxS (ORCPT ); Thu, 2 Nov 2017 19:53:18 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 03 Nov 2017 07:53:17 +0800 From: Icenowy Zheng To: Maxime Ripard Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [linux-sunxi] Re: [PATCH] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board In-Reply-To: <20171102155003.vp7uve4ypyn4sb6j@flea> References: <20171101093814.19177-1-icenowy@aosc.io> <20171102090248.wnvj7dpphn5uqsut@flea> <8327eaeaa12b99f9962a53c9f02ddd6d@aosc.io> <20171102155003.vp7uve4ypyn4sb6j@flea> Message-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2017-11-02 23:50,Maxime Ripard 写道: > On Thu, Nov 02, 2017 at 05:07:30PM +0800, Icenowy Zheng wrote: >> > > +&mmc0 { >> > > + pinctrl-names = "default"; >> > > + pinctrl-0 = <&mmc0_pins_a>; >> > > + vmmc-supply = <®_vcc3v3>; >> > > + bus-width = <4>; >> > > + /* >> > > + * In different revisions the board have different card detect >> > > + * configuration. >> > > + */ >> > >> > Which ones? >> >> In the sample batch (1.2V fixed voltage) the card detect is normal >> (PF6 low as inserted), however in the final batch (1.1V/1.3V >> switchable) it's inverted at PF6 (high as inserted). > > Then just use the final version's. > >> > > +&usbphy { >> > > + usb0_id_det-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ >> > > + /* USB OTG VBUS is directly connected to 5V without any regulators >> > > */ >> > >> > So it cannot operate in OTG, but it's host only? >> >> It can operate in OTG -- you can power the board via the OTG port, >> as the VBUS is not gated from 5V at all, so 5V power at VBUS will >> power up the board. Yes, it's a bit unsafe, but the board designer >> did it. > > What will provide the 5v in the first place then if a USB device is > connected to the micro-USB connector? There're two micro-USB connectors, one is power-only and another is OTG. The Vbus of these two connectors are connected together, so the external USB device will be powered just by the power input from the power-only USB port. > > Maxime