From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 0/17] dm: Add I2C support and convert sandbox, tegra
Date: Fri, 21 Nov 2014 08:27:22 +0100 [thread overview]
Message-ID: <546EE95A.50700@denx.de> (raw)
In-Reply-To: <CAPnjgZ0mwh6UfJiE+7DjA24TDDwbmbYBTuH4nCX+PkDHBVuFfw@mail.gmail.com>
Hello Simon,
Am 20.11.2014 18:31, schrieb Simon Glass:
> Hi Heiko,
>
> On 19 November 2014 13:08, Heiko Schocher <hs@denx.de> wrote:
>> Hello Masahiro,
>>
>> Am 19.11.2014 09:27, schrieb Masahiro Yamada:
>>
>>> Hi Simon,
>>>
>>>
>>>
>>> On Tue, 11 Nov 2014 10:46:16 -0700
>>> Simon Glass <sjg@chromium.org> wrote:
>>>
>>>>
>>>> This series adds I2C support to driver model. It has become apparent that
>>>> this is a high priority as it is widely used. It follows along to some
>>>> extent from the SPI conversion.
>>>>
>>>> Several changes are made from the original I2C implementations.
>>>>
>>>> Firstly it is not necessary to specify the chip address with every call,
>>>> since each chip knows its own address - it is stored in struct
>>>> dm_i2c_chip
>>>> which is attached to each chip on the I2C bus. However, this information
>>>> *is* passed to the driver since I presume most drivers need it and it
>>>> would
>>>> be cumbersome to look up in every call.
>>>>
>>>> Secondly there is no concept of a 'current' I2C bus so all associated
>>>> logic
>>>> is removed. With driver model i2c_set_bus_num() and i2c_get_bus_num() are
>>>> not available. Since the chip device specifies both the bus and the chip
>>>> address, there is no need for this concept. It also causes problems when
>>>> one driver changes the current bus and forgets to change it back.
>>>>
>>>> Thirdly initialisation is handled by driver model's normal probe() method
>>>> on each device so there should be no need for i2c_init_all(), i2c_init(),
>>>> i2c_init_board(), i2c_board_late_init() and board_i2c_init().
>>>>
>>>> I2C muxes are not yet supported. To support these we will need to
>>>> maintain
>>>> state of the current mux settings to avoid resetting every mux every
>>>> time.
>>>> Probably we need to add a sandbox I2C mux driver to permit testing of
>>>> this.
>>>> This can probably be done later.
>>>>
>>>> Platform data is not yet supported either, only device tree. The
>>>
>>>
>>> This statement implies that platform data will (should) be supported
>>> in the future, I think.
>>
>>
>> There was a discussion on the ELCE2014 and I think, I thought such
>> a thread also on the list, if we should only support device tree with
>> DM ...
>>
>>> As you know, I have a strong belief that device tree should be left
>>> optional.
>>
>>
>> Yes, I think in this direction too ... as I do not know, if
>> all archs ever support DT ... and in the SPL case we should
>> have a memory friendlier option too ...
>
> My feeling is that if Linux uses FDT for a platform (e.g. ARM) we
> should do so in U-Boot.
Yes, but we have architectures without FDT support yet ... and we boot
also non linux OSes ...
>>> If platform data is supported someday, that's OK.
>>
>>
>> Patches welcome ... I have this on my ToDo list, but find currently
>> no time ...
>
> I'm going to play around with a PPC board at some point, so will see
> what happens there.
Great, but powerpc should work with DT too...
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
prev parent reply other threads:[~2014-11-21 7:27 UTC|newest]
Thread overview: 87+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-11 17:46 [U-Boot] [PATCH v2 0/17] dm: Add I2C support and convert sandbox, tegra Simon Glass
2014-11-11 17:46 ` [U-Boot] [PATCH v2 01/17] dm: i2c: Move error reporting into a common function Simon Glass
2014-11-17 0:46 ` Tom Rini
2014-11-17 6:27 ` Heiko Schocher
2014-11-23 12:59 ` Simon Glass
2014-11-11 17:46 ` [U-Boot] [PATCH v2 02/17] dm: core: Allow access to the device's driver_id data Simon Glass
2014-11-17 0:46 ` Tom Rini
2014-11-17 6:28 ` Heiko Schocher
2014-11-19 8:25 ` Masahiro Yamada
2014-11-19 9:35 ` Simon Glass
2014-11-20 6:06 ` Masahiro Yamada
2014-11-20 18:39 ` Simon Glass
2014-11-23 12:59 ` Simon Glass
2014-11-11 17:46 ` [U-Boot] [PATCH v2 03/17] dm: core: Add functions to find parent and OF data Simon Glass
2014-11-17 0:46 ` Tom Rini
2014-11-17 6:28 ` Heiko Schocher
2014-11-19 8:27 ` Masahiro Yamada
2014-11-19 9:37 ` Simon Glass
2014-11-23 13:00 ` Simon Glass
2014-11-11 17:46 ` [U-Boot] [PATCH v2 04/17] dm: fdt: Correct handling of aliases with embedded digits Simon Glass
2014-11-17 0:46 ` Tom Rini
2014-11-17 5:57 ` Simon Glass
2014-11-17 18:32 ` Tom Rini
2014-11-23 13:00 ` Simon Glass
2014-11-17 6:28 ` Heiko Schocher
2014-11-11 17:46 ` [U-Boot] [PATCH v2 05/17] dm: Add a function to bind a device by driver name Simon Glass
2014-11-11 18:23 ` Jagan Teki
2014-11-17 6:29 ` Heiko Schocher
2014-11-23 13:00 ` Simon Glass
2014-11-11 17:46 ` [U-Boot] [PATCH v2 06/17] dm: spi: Correct handling of SPI chip selects in sandbox Simon Glass
2014-11-11 18:20 ` Jagan Teki
2014-11-17 6:29 ` Heiko Schocher
2014-11-23 13:00 ` Simon Glass
2014-11-11 17:46 ` [U-Boot] [PATCH v2 07/17] dm: spi: Use device_bind_driver() instead of our own function Simon Glass
2014-11-11 18:24 ` Jagan Teki
2014-11-17 6:29 ` Heiko Schocher
2014-11-23 13:00 ` Simon Glass
2014-11-11 17:46 ` [U-Boot] [PATCH v2 08/17] dm: i2c: Add a uclass for I2C Simon Glass
2014-11-17 0:46 ` Tom Rini
2014-11-17 6:37 ` Heiko Schocher
2014-11-18 12:32 ` Masahiro Yamada
2014-11-18 12:35 ` Heiko Schocher
2014-11-19 8:56 ` Masahiro Yamada
2014-11-19 9:02 ` Masahiro Yamada
2014-11-19 10:24 ` Simon Glass
2014-11-20 6:05 ` Masahiro Yamada
2014-11-20 14:04 ` Simon Glass
2014-11-21 7:24 ` Heiko Schocher
2014-11-21 8:18 ` Masahiro Yamada
2014-11-21 22:30 ` Simon Glass
2014-11-21 8:04 ` Masahiro Yamada
2014-11-21 22:29 ` Simon Glass
2014-11-23 12:04 ` Albert ARIBAUD
2014-11-11 17:46 ` [U-Boot] [PATCH v2 09/17] dm: i2c: Implement driver model support in the i2c command Simon Glass
2014-11-17 0:46 ` Tom Rini
2014-11-17 6:38 ` Heiko Schocher
2014-11-11 17:46 ` [U-Boot] [PATCH v2 10/17] dm: i2c: Add I2C emulation driver for sandbox Simon Glass
2014-11-17 0:46 ` Tom Rini
2014-11-17 6:39 ` Heiko Schocher
2014-11-11 17:46 ` [U-Boot] [PATCH v2 11/17] dm: i2c: Add a sandbox I2C driver Simon Glass
2014-11-17 0:46 ` Tom Rini
2014-11-17 6:39 ` Heiko Schocher
2014-11-11 17:46 ` [U-Boot] [PATCH v2 12/17] dm: i2c: Add an I2C EEPROM simulator Simon Glass
2014-11-17 0:46 ` Tom Rini
2014-11-17 6:39 ` Heiko Schocher
2014-11-11 17:46 ` [U-Boot] [PATCH v2 13/17] dm: i2c: config: Enable I2C for sandbox using driver model Simon Glass
2014-11-17 0:47 ` Tom Rini
2014-11-17 6:39 ` Heiko Schocher
2014-11-11 17:46 ` [U-Boot] [PATCH v2 14/17] dm: i2c: dts: Add an I2C bus for sandbox Simon Glass
2014-11-17 0:47 ` Tom Rini
2014-11-17 6:40 ` Heiko Schocher
2014-11-19 8:29 ` Masahiro Yamada
2014-11-19 10:36 ` Simon Glass
2014-11-11 17:46 ` [U-Boot] [PATCH v2 15/17] dm: Add a simple EEPROM driver Simon Glass
2014-11-17 0:47 ` Tom Rini
2014-11-17 6:40 ` Heiko Schocher
2014-11-11 17:46 ` [U-Boot] [PATCH v2 16/17] dm: i2c: Add tests for I2C Simon Glass
2014-11-17 0:47 ` Tom Rini
2014-11-17 6:40 ` Heiko Schocher
2014-11-11 17:46 ` [U-Boot] [PATCH v2 17/17] dm: i2c: tegra: Convert to driver model Simon Glass
2014-11-17 6:41 ` Heiko Schocher
2014-11-17 6:42 ` [U-Boot] [PATCH v2 0/17] dm: Add I2C support and convert sandbox, tegra Heiko Schocher
2014-11-17 6:52 ` Simon Glass
2014-11-19 8:27 ` Masahiro Yamada
2014-11-19 13:08 ` Heiko Schocher
2014-11-20 17:31 ` Simon Glass
2014-11-21 7:27 ` Heiko Schocher [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=546EE95A.50700@denx.de \
--to=hs@denx.de \
--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.