* [PATCH v2 00/10] OMAP4: Add DT support for i2c and twl6030
@ 2011-12-09 13:50 Benoit Cousson
2011-12-09 13:50 ` [PATCH v2 01/10] ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT Benoit Cousson
2011-12-09 14:01 ` [PATCH v2 00/10] OMAP4: Add DT support for i2c and twl6030 Cousson, Benoit
0 siblings, 2 replies; 5+ messages in thread
From: Benoit Cousson @ 2011-12-09 13:50 UTC (permalink / raw)
To: tony, rob.herring
Cc: devicetree-discuss, grant.likely, linux-omap, linux-arm-kernel,
Benoit Cousson
Hi Tony and Rob,
Here is the updated version of the i2c + twl DT adaptation.
This update, compared to v1 [1], is mainly due to the merge into 3.2 of
Andy's i2c cleanup series that was introducing a lot of pdata accesses
at runtime.
The pm.c was updated to prevent the SR / VP initialization in the DT
context since none of them is DT aware for the moment.
A couple of basic i2c devices are added for panda, beagle and sdp board.
Patches are based on for_3.3/2_dt_irq, to get the latest GIC binding,
and are available here:
git://gitorious.org/omap-pm/linux.git for_3.3/3_omap_dt_i2c_twl
Tested on Beagle and sdp4430.
Comments are welcome.
Regards,
Benoit
[1] http://lists.ozlabs.org/pipermail/devicetree-discuss/2011-September/007821.html
Benoit Cousson (10):
ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT
i2c: OMAP: Add DT support for i2c controller
mfd: twl-core: Add initial DT support for twl4030/twl6030
rtc: rtc-twl: Add DT support for RTC inside twl4030/twl6030
arm/dts: OMAP4: Add i2c controller nodes
arm/dts: OMAP3: Add i2c controller nodes
arm/dts: omap4-panda: Add twl6030 and i2c EEPROM
arm/dts: omap4-sdp: Add twl6030, i2c3 and i2c4 devices
arm/dts: omap3-beagle: Add twl4030 and i2c EEPROM
ARM: OMAP2+: board-generic: Remove i2c static init
Documentation/devicetree/bindings/i2c/omap-i2c.txt | 42 ++++++++
.../devicetree/bindings/mfd/twl-familly.txt | 47 +++++++++
Documentation/devicetree/bindings/rtc/twl-rtc.txt | 12 +++
arch/arm/boot/dts/omap3-beagle.dts | 38 ++++++++
arch/arm/boot/dts/omap3.dtsi | 28 ++++++
arch/arm/boot/dts/omap4-panda.dts | 45 +++++++++
arch/arm/boot/dts/omap4-sdp.dts | 63 ++++++++++++
arch/arm/boot/dts/omap4.dtsi | 28 ++++++
arch/arm/mach-omap2/board-generic.c | 48 +---------
arch/arm/mach-omap2/pm.c | 8 ++
drivers/i2c/busses/i2c-omap.c | 100 +++++++++++++-------
drivers/mfd/twl-core.c | 53 ++++++++++-
drivers/rtc/rtc-twl.c | 10 ++-
13 files changed, 435 insertions(+), 87 deletions(-)
create mode 100644 Documentation/devicetree/bindings/i2c/omap-i2c.txt
create mode 100644 Documentation/devicetree/bindings/mfd/twl-familly.txt
create mode 100644 Documentation/devicetree/bindings/rtc/twl-rtc.txt
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 01/10] ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT
2011-12-09 13:50 [PATCH v2 00/10] OMAP4: Add DT support for i2c and twl6030 Benoit Cousson
@ 2011-12-09 13:50 ` Benoit Cousson
2011-12-10 1:32 ` Kevin Hilman
2011-12-09 14:01 ` [PATCH v2 00/10] OMAP4: Add DT support for i2c and twl6030 Cousson, Benoit
1 sibling, 1 reply; 5+ messages in thread
From: Benoit Cousson @ 2011-12-09 13:50 UTC (permalink / raw)
To: tony, rob.herring
Cc: devicetree-discuss, grant.likely, linux-omap, linux-arm-kernel,
Benoit Cousson, Kevin Hilman
In the case of DT, the PMIC and SR initialization will be done using
a completely different mechanism.
Disable this part if a DT blob is available.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Kevin Hilman <khilman@ti.com>
---
arch/arm/mach-omap2/pm.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index 1881fe9..ad4f693 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -227,6 +227,14 @@ postcore_initcall(omap2_common_pm_init);
static int __init omap2_common_pm_late_init(void)
{
+ /*
+ * In the case of DT, the PMIC and SR initialization will be done using
+ * a completely different mechanism.
+ * Disable this part if a DT blob is available.
+ */
+ if (of_have_populated_dt())
+ return 0;
+
/* Init the voltage layer */
omap_pmic_late_init();
omap_voltage_late_init();
--
1.7.0.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 00/10] OMAP4: Add DT support for i2c and twl6030
2011-12-09 13:50 [PATCH v2 00/10] OMAP4: Add DT support for i2c and twl6030 Benoit Cousson
2011-12-09 13:50 ` [PATCH v2 01/10] ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT Benoit Cousson
@ 2011-12-09 14:01 ` Cousson, Benoit
1 sibling, 0 replies; 5+ messages in thread
From: Cousson, Benoit @ 2011-12-09 14:01 UTC (permalink / raw)
To: tony, rob.herring
Cc: Benoit Cousson, devicetree-discuss, grant.likely, linux-omap,
linux-arm-kernel
Mmm, the send-email was aborted because Manju's email is not valid anymore.
I'll repost after removing the email from the patches.
Sorry for the noise.
Regards,
Benoit
On 12/9/2011 2:50 PM, Benoit Cousson wrote:
> Hi Tony and Rob,
>
> Here is the updated version of the i2c + twl DT adaptation.
>
> This update, compared to v1 [1], is mainly due to the merge into 3.2 of
> Andy's i2c cleanup series that was introducing a lot of pdata accesses
> at runtime.
>
> The pm.c was updated to prevent the SR / VP initialization in the DT
> context since none of them is DT aware for the moment.
>
> A couple of basic i2c devices are added for panda, beagle and sdp board.
>
> Patches are based on for_3.3/2_dt_irq, to get the latest GIC binding,
> and are available here:
> git://gitorious.org/omap-pm/linux.git for_3.3/3_omap_dt_i2c_twl
>
> Tested on Beagle and sdp4430.
>
> Comments are welcome.
>
> Regards,
> Benoit
>
> [1] http://lists.ozlabs.org/pipermail/devicetree-discuss/2011-September/007821.html
>
>
> Benoit Cousson (10):
> ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT
> i2c: OMAP: Add DT support for i2c controller
> mfd: twl-core: Add initial DT support for twl4030/twl6030
> rtc: rtc-twl: Add DT support for RTC inside twl4030/twl6030
> arm/dts: OMAP4: Add i2c controller nodes
> arm/dts: OMAP3: Add i2c controller nodes
> arm/dts: omap4-panda: Add twl6030 and i2c EEPROM
> arm/dts: omap4-sdp: Add twl6030, i2c3 and i2c4 devices
> arm/dts: omap3-beagle: Add twl4030 and i2c EEPROM
> ARM: OMAP2+: board-generic: Remove i2c static init
>
> Documentation/devicetree/bindings/i2c/omap-i2c.txt | 42 ++++++++
> .../devicetree/bindings/mfd/twl-familly.txt | 47 +++++++++
> Documentation/devicetree/bindings/rtc/twl-rtc.txt | 12 +++
> arch/arm/boot/dts/omap3-beagle.dts | 38 ++++++++
> arch/arm/boot/dts/omap3.dtsi | 28 ++++++
> arch/arm/boot/dts/omap4-panda.dts | 45 +++++++++
> arch/arm/boot/dts/omap4-sdp.dts | 63 ++++++++++++
> arch/arm/boot/dts/omap4.dtsi | 28 ++++++
> arch/arm/mach-omap2/board-generic.c | 48 +---------
> arch/arm/mach-omap2/pm.c | 8 ++
> drivers/i2c/busses/i2c-omap.c | 100 +++++++++++++-------
> drivers/mfd/twl-core.c | 53 ++++++++++-
> drivers/rtc/rtc-twl.c | 10 ++-
> 13 files changed, 435 insertions(+), 87 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/i2c/omap-i2c.txt
> create mode 100644 Documentation/devicetree/bindings/mfd/twl-familly.txt
> create mode 100644 Documentation/devicetree/bindings/rtc/twl-rtc.txt
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 00/10] OMAP4: Add DT support for i2c and twl6030
@ 2011-12-09 14:02 Benoit Cousson
0 siblings, 0 replies; 5+ messages in thread
From: Benoit Cousson @ 2011-12-09 14:02 UTC (permalink / raw)
To: tony, rob.herring
Cc: devicetree-discuss, grant.likely, linux-omap, linux-arm-kernel,
Benoit Cousson
Hi Tony and Rob,
Here is the updated version of the i2c + twl DT adaptation.
This update, compared to v1 [1], is mainly due to the merge into 3.2 of
Andy's i2c cleanup series that was introducing a lot of pdata accesses
at runtime.
The pm.c was updated to prevent the SR / VP initialization in the DT
context since none of them is DT aware for the moment.
A couple of basic i2c devices are added for panda, beagle and sdp board.
Patches are based on for_3.3/2_dt_irq, to get the latest GIC binding,
and are available here:
git://gitorious.org/omap-pm/linux.git for_3.3/3_omap_dt_i2c_twl
Tested on Beagle and sdp4430.
Comments are welcome.
Regards,
Benoit
[1] http://lists.ozlabs.org/pipermail/devicetree-discuss/2011-September/007821.html
Benoit Cousson (10):
ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT
i2c: OMAP: Add DT support for i2c controller
mfd: twl-core: Add initial DT support for twl4030/twl6030
rtc: rtc-twl: Add DT support for RTC inside twl4030/twl6030
arm/dts: OMAP4: Add i2c controller nodes
arm/dts: OMAP3: Add i2c controller nodes
arm/dts: omap4-panda: Add twl6030 and i2c EEPROM
arm/dts: omap4-sdp: Add twl6030, i2c3 and i2c4 devices
arm/dts: omap3-beagle: Add twl4030 and i2c EEPROM
ARM: OMAP2+: board-generic: Remove i2c static init
Documentation/devicetree/bindings/i2c/omap-i2c.txt | 42 ++++++++
.../devicetree/bindings/mfd/twl-familly.txt | 47 +++++++++
Documentation/devicetree/bindings/rtc/twl-rtc.txt | 12 +++
arch/arm/boot/dts/omap3-beagle.dts | 38 ++++++++
arch/arm/boot/dts/omap3.dtsi | 28 ++++++
arch/arm/boot/dts/omap4-panda.dts | 45 +++++++++
arch/arm/boot/dts/omap4-sdp.dts | 63 ++++++++++++
arch/arm/boot/dts/omap4.dtsi | 28 ++++++
arch/arm/mach-omap2/board-generic.c | 48 +---------
arch/arm/mach-omap2/pm.c | 8 ++
drivers/i2c/busses/i2c-omap.c | 100 +++++++++++++-------
drivers/mfd/twl-core.c | 53 ++++++++++-
drivers/rtc/rtc-twl.c | 10 ++-
13 files changed, 435 insertions(+), 87 deletions(-)
create mode 100644 Documentation/devicetree/bindings/i2c/omap-i2c.txt
create mode 100644 Documentation/devicetree/bindings/mfd/twl-familly.txt
create mode 100644 Documentation/devicetree/bindings/rtc/twl-rtc.txt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 01/10] ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT
2011-12-09 13:50 ` [PATCH v2 01/10] ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT Benoit Cousson
@ 2011-12-10 1:32 ` Kevin Hilman
0 siblings, 0 replies; 5+ messages in thread
From: Kevin Hilman @ 2011-12-10 1:32 UTC (permalink / raw)
To: Benoit Cousson
Cc: tony, rob.herring, devicetree-discuss, grant.likely, linux-omap,
linux-arm-kernel
Benoit Cousson <b-cousson@ti.com> writes:
> In the case of DT, the PMIC and SR initialization will be done using
> a completely different mechanism.
>
> Disable this part if a DT blob is available.
>
> Signed-off-by: Benoit Cousson <b-cousson@ti.com>
> Cc: Kevin Hilman <khilman@ti.com>
Acked-by: Kevin Hilman <khilman@ti.com>
> ---
> arch/arm/mach-omap2/pm.c | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
> index 1881fe9..ad4f693 100644
> --- a/arch/arm/mach-omap2/pm.c
> +++ b/arch/arm/mach-omap2/pm.c
> @@ -227,6 +227,14 @@ postcore_initcall(omap2_common_pm_init);
>
> static int __init omap2_common_pm_late_init(void)
> {
> + /*
> + * In the case of DT, the PMIC and SR initialization will be done using
> + * a completely different mechanism.
> + * Disable this part if a DT blob is available.
> + */
> + if (of_have_populated_dt())
> + return 0;
> +
> /* Init the voltage layer */
> omap_pmic_late_init();
> omap_voltage_late_init();
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-12-10 1:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09 13:50 [PATCH v2 00/10] OMAP4: Add DT support for i2c and twl6030 Benoit Cousson
2011-12-09 13:50 ` [PATCH v2 01/10] ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT Benoit Cousson
2011-12-10 1:32 ` Kevin Hilman
2011-12-09 14:01 ` [PATCH v2 00/10] OMAP4: Add DT support for i2c and twl6030 Cousson, Benoit
-- strict thread matches above, loose matches on Subject: below --
2011-12-09 14:02 Benoit Cousson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).