Devicetree
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Icenowy Zheng <icenowy@aosc.io>
Cc: Chen-Yu Tsai <wens@csie.org>,
	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
Date: Thu, 2 Nov 2017 16:50:03 +0100	[thread overview]
Message-ID: <20171102155003.vp7uve4ypyn4sb6j@flea> (raw)
In-Reply-To: <8327eaeaa12b99f9962a53c9f02ddd6d@aosc.io>

[-- Attachment #1: Type: text/plain, Size: 1280 bytes --]

On Thu, Nov 02, 2017 at 05:07:30PM +0800, Icenowy Zheng wrote:
> > > +&mmc0 {
> > > +	pinctrl-names = "default";
> > > +	pinctrl-0 = <&mmc0_pins_a>;
> > > +	vmmc-supply = <&reg_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?

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2017-11-02 15:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-01  9:38 [PATCH] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board Icenowy Zheng
     [not found] ` <20171101093814.19177-1-icenowy-h8G6r0blFSE@public.gmane.org>
2017-11-02  9:02   ` Maxime Ripard
2017-11-02  9:07     ` [linux-sunxi] " Icenowy Zheng
2017-11-02 15:50       ` Maxime Ripard [this message]
2017-11-02 23:53         ` Icenowy Zheng
     [not found]           ` <b548b74e04b29ec8c3cddb7cc42f2b4e-h8G6r0blFSE@public.gmane.org>
2017-11-13  8:20             ` Maxime Ripard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171102155003.vp7uve4ypyn4sb6j@flea \
    --to=maxime.ripard@free-electrons.com \
    --cc=devicetree@vger.kernel.org \
    --cc=icenowy@aosc.io \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=wens@csie.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox