All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCHv4 3/3] ARM64: poplar: hi3798cv200: u-boot support for Poplar 96Boards
Date: Thu, 25 May 2017 18:09:46 -0400	[thread overview]
Message-ID: <20170525220946.GH10782@bill-the-cat> (raw)
In-Reply-To: <CAPnjgZ108cTmhu=i6hPRPkY06WBv3KNwMWoKmerM4vKH422nPw@mail.gmail.com>

On Thu, May 25, 2017 at 03:21:04PM -0600, Simon Glass wrote:
> Hi Tom,
> 
> On 25 May 2017 at 15:12, Tom Rini <trini@konsulko.com> wrote:
> > On Thu, May 25, 2017 at 10:58:20PM +0200, Jorge Ramirez wrote:
> >> On 05/25/2017 10:55 PM, Jorge Ramirez wrote:
> >> >On 05/25/2017 10:31 PM, Tom Rini wrote:
> >> >>On Thu, May 25, 2017 at 08:38:47PM +0200, Jorge Ramirez wrote:
> >> >>>On 05/18/2017 12:06 AM, Tom Rini wrote:
> >> >>>>>>>having platform data.
> >> >>>>>>No, I think we're going for overkill here by not doing
> >> >>>>>>serial_pl01x.c as
> >> >>>>>>platform data.  ns16550 does platform data for this already.  This
> >> >>>>>>sounds like the lowest overhead way to get the clock
> >> >>>>>>populated and not
> >> >>>>>>have some DT data that's not going to be accepted upstream.
> >> >>>>>>
> >> >>>>>ummmm I am a bit lost at this point, could we recap please?
> >> >>>>Lets update the recap:
> >> >>>>- Please re-submit the dts file, now with whatever form is
> >> >>>>in v4.12-rc1,
> >> >>>>   saying as such in the commit (if it's just the commit message that
> >> >>>>   changes, that's fine and great).
> >> >>>The DTS file in v4.12-rc2 still does NOT contain the usb node.
> >> >>>
> >> >>>==> Should I then not use the DM on USB so I can avoid DTS changes?
> >> >>Well, you can either put it in the -u-boot.dtsi file for the board, and
> >> >>remove that later once it's upstream.
> >>
> >>
> >> yes I'll do that. thanks.
> >>
> >> >
> >> >>
> >> >>>>- Please update serial_pl01x.c to be able to get the clock
> >> >>>>via platform
> >> >>>>   data, update and test your board to confirm it works.
> >> >>>um, It gets tricky;
> >> >>>I can not use platform_data since I can not use SERIAL_DM because
> >> >>>the device tree does have a UART node which gets picked up.
> >> >>How about disabling the node in -u-boot.dtsi for the board and then you
> >> >>can use platform data,
> >> >
> >>
> >> I dont think that would because CONFIG_OF is enabled for USB; so the
> >> kernel dtsi that contains the uart node (without the clock!) will be
> >> picked by u-boot and the uart will not be initialized properly.
> >> I still think that the simplest solution is to let me merge with the
> >> kernel's device tree plus this u-boot.dtsi [1];
> >> then just get rid of the file when possible (and NEIHER the source
> >> code NOR the configs) would need to change
> >>
> >> [1] https://github.com/ldts/poplar-u-boot/blob/upstream/arch/arm/dts/hi3798cv200-u-boot.dtsi
> >
> > Yes, sorry.  [1] needs to be updated to disable uart0 so that you can
> > use platform data, at least for now.  I do want to talk more with Rob
> > about the general problem this exposes.
> 
> Using platform data because we cannot put a clock frequency in the DT
> node seems unfortunate to me. With a little flexibility, DT can be
> made to work. But IMO the sort of pedantry makes great the enemy of
> good.

This, and the alias issue we talked about the other day (wrt mmc) do
highlight what I see as problems of the dts being too kernel-centric.
But I also really want to wait for Rob to chime in before we get too far
here.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170525/46d18186/attachment.sig>

  reply	other threads:[~2017-05-25 22:09 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-08 16:36 [U-Boot] Patchset v4 Poplar 96Boards EE Jorge Ramirez-Ortiz
2017-05-08 16:36 ` [U-Boot] [PATCHv4 1/3] ARM64: dts: hi3798cv200-poplar: add device tree bindings Jorge Ramirez-Ortiz
2017-05-08 16:36 ` [U-Boot] [PATCHv4 2/3] driver: mmc: update debug info Jorge Ramirez-Ortiz
2017-05-08 16:36 ` [U-Boot] [PATCHv4 3/3] ARM64: poplar: hi3798cv200: u-boot support for Poplar 96Boards Jorge Ramirez-Ortiz
2017-05-08 17:29   ` Tom Rini
2017-05-08 18:36     ` Jorge Ramirez
2017-05-08 21:37       ` Tom Rini
2017-05-09 15:27     ` Jorge Ramirez
2017-05-10  2:30       ` Tom Rini
2017-05-10  9:33         ` Jorge Ramirez
2017-05-10 14:49           ` Tom Rini
2017-05-10 16:33             ` Rob Herring
2017-05-10 17:45               ` Tom Rini
2017-05-10 18:09                 ` Simon Glass
2017-05-10 19:09                 ` Rob Herring
2017-05-10 19:42                   ` Simon Glass
2017-05-10 21:19                     ` Jorge Ramirez
2017-05-10 21:31                       ` Simon Glass
2017-05-11 11:45                         ` Jorge Ramirez
2017-05-11 12:35                     ` Tom Rini
2017-05-11 14:34                       ` Jorge Ramirez
2017-05-11 22:32                         ` Tom Rini
2017-05-12  8:16                           ` Jorge Ramirez
2017-05-12 12:35                             ` Tom Rini
2017-05-15 21:38                               ` Rob Herring
2017-05-17 13:33                                 ` Tom Rini
2017-05-17 14:38                                   ` Rob Herring
2017-05-17 22:13                                     ` Tom Rini
2017-05-17 22:06                         ` Tom Rini
2017-05-25 18:38                           ` Jorge Ramirez
2017-05-25 20:31                             ` Tom Rini
2017-05-25 20:55                               ` Jorge Ramirez
2017-05-25 20:58                                 ` Jorge Ramirez
2017-05-25 21:12                                   ` Tom Rini
2017-05-25 21:16                                     ` Jorge Ramirez
2017-05-25 22:08                                       ` Tom Rini
2017-05-26  7:28                                         ` Jorge Ramirez
2017-05-26  7:46                                           ` Jorge Ramirez
2017-05-26 12:46                                           ` Tom Rini
2017-05-26 12:58                                             ` Jorge Ramirez Ortiz
2017-05-26 16:09                                               ` Tom Rini
2017-05-29  9:00                                                 ` Jorge Ramirez
2017-05-29 11:57                                                   ` Tom Rini
2017-05-29 12:18                                                     ` Jorge Ramirez
2017-05-29 12:23                                                       ` Jorge Ramirez
2017-05-29 12:26                                                       ` Tom Rini
2017-05-29 12:28                                                         ` Jorge Ramirez
2017-05-25 21:21                                     ` Simon Glass
2017-05-25 22:09                                       ` Tom Rini [this message]
2017-05-10 17:49               ` Jorge Ramirez
2017-05-10 18:21                 ` Rob Herring
2017-05-10 18:37                   ` Jorge Ramirez
2017-05-25 16:08   ` Andreas Färber

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=20170525220946.GH10782@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.