All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <monstr@monstr.eu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/2] misc: i2c_eeprom: add paritioning and size query
Date: Thu, 28 May 2020 11:27:08 +0200	[thread overview]
Message-ID: <CAHTX3dJW=oLd_8xq1RcK+hvOBRZqXTx0ScMDk6-60c3uOkt3ew@mail.gmail.com> (raw)
In-Reply-To: <20191028182906.5486-1-bob.beckett@collabora.com>

HI Robert and Heiko,

po 28. 10. 2019 v 19:32 odes?latel Robert Beckett
<bob.beckett@collabora.com> napsal:
>
> Add ability to specify paritions for eeprom in device tree, and query
> eeprom device sizes.
> Each partition creates a child device, allowing board code to
> find the eeprom parition by name.
>
>
> Robert Beckett (2):
>   misc: i2c_eeprom: add fixed partitions support
>   misc: i2c_eeprom: add size query
>
>  drivers/misc/i2c_eeprom.c | 243 +++++++++++++++++++++++++++++++++++---
>  include/i2c_eeprom.h      |  12 ++
>  2 files changed, 236 insertions(+), 19 deletions(-)

What's the recommended way to work with i2c_eeprom_partitions?

I have them probed but curious how I should work with them.
 i2c           1  [ + ]   i2c_mux_bus_drv       |   |       |--
i2c at ff030000->i2c-mux at 74->i2c at 0
 i2c_eeprom    0  [ + ]   i2c_eeprom            |   |       |   `-- eeprom at 54
 i2c_eeprom    1  [   ]   i2c_eeprom_partition  |   |       |
|-- board-sn at 0
 i2c_eeprom    2  [   ]   i2c_eeprom_partition  |   |       |
|-- eth-mac at 20
 i2c_eeprom    3  [   ]   i2c_eeprom_partition  |   |       |
|-- board-name at d0
 i2c_eeprom    4  [   ]   i2c_eeprom_partition  |   |       |
`-- board-revision at e0

Is there any u-boot command for reading values from these partitions?
Or are you just referencing them by
fdt_path_offset/uclass_get_device_by_of_offset?

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

  parent reply	other threads:[~2020-05-28  9:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-28 18:29 [U-Boot] [PATCH 0/2] misc: i2c_eeprom: add paritioning and size query Robert Beckett
2019-10-28 18:29 ` [U-Boot] [PATCH 1/2] misc: i2c_eeprom: add fixed partitions support Robert Beckett
2019-10-28 18:29   ` [U-Boot] [PATCH 2/2] misc: i2c_eeprom: add size query Robert Beckett
2019-11-20  6:32     ` Heiko Schocher
2019-12-17 12:00     ` [U-Boot][PATCH " Heiko Schocher
2019-11-20  6:24   ` [U-Boot] [PATCH 1/2] misc: i2c_eeprom: add fixed partitions support Heiko Schocher
2019-12-17 11:59   ` [U-Boot][PATCH " Heiko Schocher
2020-05-28  9:27 ` Michal Simek [this message]
2020-05-28  9:38   ` [U-Boot] [PATCH 0/2] misc: i2c_eeprom: add paritioning and size query Michal Simek

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='CAHTX3dJW=oLd_8xq1RcK+hvOBRZqXTx0ScMDk6-60c3uOkt3ew@mail.gmail.com' \
    --to=monstr@monstr.eu \
    --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.