Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1401649

Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree

From Boris Brezillon <boris.brezillon@free-electrons.com>
Newsgroups linux.kernel
Subject Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree
Date 2016-05-16 19:20 +0200
Message-ID <rzulr-1pQ-3@gated-at.bofh.it> (permalink)
References <rxGqK-4tl-5@gated-at.bofh.it> <rzlBv-4a7-21@gated-at.bofh.it> <rzlLb-4sk-3@gated-at.bofh.it> <rztIJ-X4-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 16 May 2016 09:30:10 -0700
Moritz Fischer <moritz.fischer@ettus.com> wrote:

> Hi Boris,
> 
> On Mon, May 16, 2016 at 1:05 AM, Boris Brezillon
> <boris.brezillon@free-electrons.com> wrote:
> 
> >> Here are a few questions (I'm assuming the netdev + MAC address case):
> >> - how would you link the net/PHY device to the MTD partition storing
> >>   the MAC address  
> 
> Well in my case I actually planned to use it with the OTP partition of my QSPI
> device using spi_nor_read_usr_prot_reg and friends and I just needed a way
> to get to the struct mtd_info from a child of my network device.
> 
> Right now the OTP 'partitions' are not really exposed to device tree afaik.
> Maybe that would be worthwhile to further look into? Maybe exposing
> (wrapping) that as nvmem
> would be the way to go?

I think so. Now that MTD partitions are defined in a 'partitions'
subnode (see MTD binding doc), we can define an 'otp-partitions'
subnode and define nvmem cells in there.


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

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from  devicetree Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-05-16 10:00 +0200
  Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from  devicetree Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-05-16 10:10 +0200
    Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree Moritz Fischer <moritz.fischer@ettus.com> - 2016-05-16 18:40 +0200
      Re: [PATCH] mtd: Adding of_mtd_info_get to get mtd_info from  devicetree Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-05-16 19:20 +0200

csiph-web