mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: [RFC 1/2] misc: Add MAC address mapper "driver"
Date: Tue, 2 Feb 2016 17:09:26 -0800	[thread overview]
Message-ID: <CAHQ1cqGUQ0OFv6vQLWyxu4up3+JyDqYVpOx8k4uHvGqkRRoGTw@mail.gmail.com> (raw)
In-Reply-To: <20160201101007.GA4118@pengutronix.de>

>
> I wonder if the correct way to do this wouldn't be nvmem, see
> Documentation/devicetree/bindings/nvmem/nvmem.txt in the Kernel.
> This would mandate a binding like:
>
>         ocotp {
>                 mac1: mac@88 {
>                         reg = <0x88 0x6>;
>                 };
>         };
>
>         &fec {
>                 nvmem-cells = <&mac1>;
>                 nvmem-cell-names = "mac-address";
>         };

I completely forgot about that API! I think you are right that would
be a better way to implement what I am trying to do. I'll do some
experimentation with this approach and see what I can come up with.

Thanks,
Andrey

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2016-02-03  1:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-01  5:57 Andrey Smirnov
2016-02-01  5:57 ` [RFC 2/2] arm/dts: i.MX6: Use generic MAC address mapper Andrey Smirnov
2016-02-01 10:10 ` [RFC 1/2] misc: Add MAC address mapper "driver" Sascha Hauer
2016-02-01 19:18   ` Trent Piepho
2016-02-03  1:14     ` Andrey Smirnov
2016-02-03 18:40       ` Trent Piepho
2016-02-03 20:16         ` Andrey Smirnov
2016-02-03  1:09   ` Andrey Smirnov [this message]

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=CAHQ1cqGUQ0OFv6vQLWyxu4up3+JyDqYVpOx8k4uHvGqkRRoGTw@mail.gmail.com \
    --to=andrew.smirnov@gmail.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox