devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
To: Karsten Merker <merker-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
Cc: Siarhei Siamashka
	<siarhei.siamashka-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [PATCH V4 1/2] ARM: dts: sun6i: Add dts file for MSI Primo81 tablet
Date: Sun, 28 Jun 2015 22:25:45 +0200	[thread overview]
Message-ID: <20150628202545.GW2266@lukather> (raw)
In-Reply-To: <20150625172219.GA1773-Hlt6eto4P0pdWf7zwHaZWbNAH6kLmebB@public.gmane.org>

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

On Thu, Jun 25, 2015 at 07:22:19PM +0200, Karsten Merker wrote:
> > > +&ehci0 {
> > > +	/* rtl8188etv wifi is connected here */
> > 
> > No need to mention it, it's what discoverable buses are made for.
> 
> Hello Maxime,
> 
> using the same reasoning that caused you to ask for a description
> of the uart0 config (no external connector available, so why is
> there a uart0 enabled and how is it usable), I think it makes
> sense to leave this comment in the dts.  The Primo 81 doesn't
> have any external USB host connectors and the fact that the
> internal Realtek USB WLAN chip is connected there is the only
> reason that the EHCI controller gets enabled in the dts at all. 
> If you really prefer, I'll remove the comment in a V5; in that
> case please let me know.

Except that you have no way to magically find out where you're
supposed to get the UART from, while the WiFi module will be magically
discovered, reported in the logs, without any kind of user
interaction, and you actually don't even care.

> > > +&uart0 {
> > > +	/* The default uart0 pins (PH20: TX, PH21: RX) are not accessible
> > > +	 * on an external connector. Possible ways to get physical access
> > > +	 * to uart0 include:
> > > +	 * - disabling mmc0, changing the pinmuxing for the SD card pins
> > > +	 *   to the uart0 function (PF2: TX, PF4: RX) and using an SD card
> > > +	 *   breakout board
> > > +	 * - opening the case and finding appropriate test points connected
> > > +	 *   to PH20 and PH21
> > > +	 */
> > 
> > You already made a choice here, so just document the choice you
> > made. I'm guessing from what you said that it's the latter, in which
> > case please document which test points you're talking about.
> 
> Upwards in this thread you wrote:
> > [Karsten Merker wrote]
> > > I have tagged this patch RFC as I am unsure what to do with the
> > > /chosen/stdout-path node. For now, I have set Siarhei's original
> > > choice (first serial port), but I am unsure whether this is the
> > > right thing to do as the Primo81 does by default not have a
> > > user-accessible serial port.  The only way to get a serial
> > > console is to either break the case open and find some test
> > > points that carry the RX/TX lines (which with the Primo81 case
> > > poses a high risk of breaking the display glass), or to use an SD
> > > card breakout board and change the pinmuxing for the SD card pins
> > > to the "serial" function.  The latter would not work without
> > > modifying the dts, so the SD-breakout case doesn't really count
> > > for setting the default stdout-path in the general use case.
> >
> > Having that as a comment on top of whatever uart you've been using
> > would be great, so that people know where to look at on their device
> > to find it.
> 
> Maybe I have misunderstood you, but to my understanding the
> comment I added represents exactly what you asked me to do above?

Sorry if I haven't been clear enough.

> I cannot tell which test points carry the TX/RX lines from PH20
> and PH21 as I have not opened the case (and to my knowledge
> nobody else @linunx-sunxi has done that), due to the fact that
> the Primo 81 doesn't have one of typical cheap two-part plastic
> cases which can be easily opened without destroying anything, but
> a one-part aluminum case which fits tightly with the display
> glass.  To pry open the aluminium case one would have to apply
> pressure to the glass and I don't want to void my warranty and
> risk breaking the display while doing that.
>
> The u-boot and the android kernel that come preinstalled on the
> tablet use PH20 and PH21 for uart0, so there is an extremely high
> probability that there are test points on the board that carry
> these lines, but I cannot tell which ones.

So you enable a device that you have never actually tested, and you
document a procedure you have never seen to be working? I really hope
the rest of the DTS is not made that way too.

> So the same question as above: if you really want me to do
> that, I'll remove the SD card breakout info in a V5 (just tell me
> so), but I think it makes sense to leave it in the dts.

Don't enable what you haven't tested, or anything that isn't used for
what it's been intended to. Which means don't put any UART on there.

Maxime

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

  parent reply	other threads:[~2015-06-28 20:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-27  7:37 [PATCH 1/2] ARM: dts: sun6i: Add dts file for MSI Primo81 tablet Siarhei Siamashka
     [not found] ` <1419665841-22629-1-git-send-email-siarhei.siamashka-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-12-27  7:37   ` [PATCH 2/2] ARM: dts: sun7i: Add dts file for MSI Primo73 tablet Siarhei Siamashka
2015-01-08  9:52   ` [PATCH 1/2] ARM: dts: sun6i: Add dts file for MSI Primo81 tablet Maxime Ripard
2015-06-14 18:55     ` [PATCH V2] " Karsten Merker
     [not found]       ` <1434308106-27704-1-git-send-email-merker-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
2015-06-14 18:55         ` Karsten Merker
     [not found]           ` <1434308106-27704-2-git-send-email-merker-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
2015-06-16  9:40             ` Maxime Ripard
2015-06-16 19:11               ` [RFC PATCH V3] " Karsten Merker
     [not found]                 ` <1434481869-9432-1-git-send-email-merker-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
2015-06-16 19:11                   ` Karsten Merker
2015-06-18 11:58                   ` Maxime Ripard
2015-06-23 17:02                     ` [PATCH V4 0/2] MSI Primo 81 dts Karsten Merker
     [not found]                       ` <1435078949-3383-1-git-send-email-merker-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
2015-06-23 17:02                         ` [PATCH V4 1/2] ARM: dts: sun6i: Add dts file for MSI Primo81 tablet Karsten Merker
     [not found]                           ` <1435078949-3383-2-git-send-email-merker-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
2015-06-25 10:44                             ` Maxime Ripard
     [not found]                               ` <20150625172219.GA1773@excalibur.cnev.de>
     [not found]                                 ` <20150625172219.GA1773-Hlt6eto4P0pdWf7zwHaZWbNAH6kLmebB@public.gmane.org>
2015-06-28 20:25                                   ` Maxime Ripard [this message]
2015-06-23 17:02                         ` [PATCH V4 2/2] devicetree: Add msi to the vendor-prefix list Karsten Merker
     [not found]                           ` <1435078949-3383-3-git-send-email-merker-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
2015-06-25 10:42                             ` 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=20150628202545.GW2266@lukather \
    --to=maxime.ripard-wi1+55scjutkeb57/3fjtnbpr1lh4cv8@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=merker-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org \
    --cc=siarhei.siamashka-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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;
as well as URLs for NNTP newsgroup(s).