Skip to content

Fixes for omap PM for making omap3 DT only

Tony Lindgren linux-arm-kernel linux-devicetree linux-omap 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11ARM: OMAP3: PM: remove access to PRM_VOLTCTRL registerarch/arm/mach-omap2/pm34xx.c+0 -40 replies
2/11ARM: OMAP3: Fix idle mode signaling for sys_clkreq and sys_off_modearch/arm/mach-omap2/pm34xx.c arch/arm/mach-omap2/prm-regbits-34xx.h arch/arm/mach-omap2/vc.c +1 more+87 -32 replies
2/11ARM: OMAP3: Fix idle mode signaling for sys_clkreq and sys_off_mode+0 -01 reply
2/11ARM: OMAP3: Fix idle mode signaling for sys_clkreq and sys_off_mode+0 -01 reply
2/11ARM: OMAP3: Fix idle mode signaling for sys_clkreq and sys_off_mode+0 -00 replies
2/11ARM: OMAP3: Fix idle mode signaling for sys_clkreq and sys_off_mode+0 -00 replies
2/11ARM: OMAP3: Fix idle mode signaling for sys_clkreq and sys_off_modearch/arm/mach-omap2/pm34xx.c arch/arm/mach-omap2/prm-regbits-34xx.h arch/arm/mach-omap2/vc.c +1 more+99 -30 replies
3/11ARM: OMAP3: Disable broken omap3_set_off_timings functionarch/arm/mach-omap2/vc.c+1 -610 replies
4/11ARM: OMAP3: Fix voltage control for deeper idle statesarch/arm/mach-omap2/vc.c+73 -260 replies
4/11ARM: OMAP3: Fix voltage control for deeper idle statesarch/arm/mach-omap2/vc.c+6 -70 replies
4/11ARM: OMAP3: Fix voltage control for deeper idle statesarch/arm/mach-omap2/vc.c+85 -270 replies
5/11ARM: dts: Configure omap3 twl4030 I2C4 pins by defaultarch/arm/boot/dts/twl4030_omap3.dtsi+18 -10 replies
6/11ARM: OMAP2+: Fix voltage scaling init for device treearch/arm/mach-omap2/pm.c+12 -161 reply
6/11ARM: OMAP2+: Fix voltage scaling init for device tree+0 -03 replies
6/11ARM: OMAP2+: Fix voltage scaling init for device tree+0 -00 replies
7/11ARM: dts: Enable N900 keybaord sleep leds by defaultarch/arm/boot/dts/omap3-n900.dts+17 -01 reply
7/11ARM: dts: Enable N900 keybaord sleep leds by defaultDocumentation/devicetree/bindings/mfd/twl4030-power.txt arch/arm/boot/dts/omap3-n900.dts drivers/mfd/twl4030-power.c+237 -140 replies
7/11ARM: dts: Enable N900 keybaord sleep leds by defaultarch/arm/boot/dts/omap3-n900.dts+17 -00 replies
8/11ARM: dts: Fix omap serial wake-up when booted with device treearch/arm/boot/dts/omap3-evm-37xx.dts arch/arm/boot/dts/omap3-n900.dts arch/arm/boot/dts/omap3.dtsi +4 more+50 -60 replies
9/11ARM: OMAP2+: Enable CPUidle in omap2plus_defconfigarch/arm/configs/omap2plus_defconfig+7 -00 replies
10/11mfd: twl-core: Fix idle mode signaling for omaps when booted with device treearch/arm/mach-omap2/omap_twl.c drivers/mfd/twl-core.c+15 -601 reply
10/11mfd: twl-core: Fix idle mode signaling for omaps when booted with device tree+0 -02 replies
11/11pinctrl: single: Clear pin interrupts enabled by bootloaderdrivers/pinctrl/pinctrl-single.c+13 -01 reply
11/11pinctrl: single: Clear pin interrupts enabled by bootloader+0 -01 reply

Reviews trailers per patch

7 of 24 patches have a Reviewed-by or Acked-by.

PatchAaro KoskinenLee JonesLinus Walleij
1/11
2/11
2/11
2/11
2/11
2/11
2/11
3/11
4/11
4/11
4/11
5/11
6/11
6/11
6/11
7/11A-b A-b
7/11A-b A-b
7/11A-b A-b
8/11
9/11
10/11A-b
10/11A-b
11/11A-b
11/11A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/11] Fixes for omap PM for making omap3 DT only

Hi all,

As we're planning to make omap3 device tree only soon, I was poking around and noticed that PM is not working properly. As we're planning to drop about 20k lines of code, I just had to try to fix this so we know what is going on and don't have to go back. I was pretty bummed out to find that we've had non-working PM code in mainline for really long time.

Anyways, I got the voltage scaling and N900 debug leds working, so with those we can notice any future regressions immediately :)

These are against v3.14, then you might want to also apply the following two patches:

[PATCH] of/platform: Fix no irq domain found errors when populating interrupts
https://lkml.org/lkml/2014/4/10/620

[PATCH] serial: omap: Fix missing pm_runtime_resume handling by simplifying code
http://www.spinics.net/lists/linux-omap/msg104782.html

Note that for the actual voltage scaling to happen, the twl4030 PMIC scripts are also needed. I have some uncleaned patches to load those based on the compatible flag, will post those separately. This series alone fixes the idle state signaling to the PMIC, so we can monitor sys_clkreq and sys_off_idle pins properly.

Please review, comment and test,

Tony

Tero Kristo (1):
ARM: OMAP3: PM: remove access to PRM_VOLTCTRL register

Tony Lindgren (10):
ARM: OMAP3: Fix idle mode signaling for sys_clkreq and sys_off_mode
ARM: OMAP3: Disable broken omap3_set_off_timings function
ARM: OMAP3: Fix voltage control for deeper idle states
ARM: dts: Configure omap3 twl4030 I2C4 pins by default
ARM: OMAP2+: Fix voltage scaling init for device tree
ARM: dts: Enable N900 keybaord sleep leds by default
ARM: dts: Fix omap serial wake-up when booted with device tree
ARM: OMAP2+: Enable CPUidle in omap2plus_defconfig
mfd: twl-core: Fix idle mode signaling for omaps when booted with
device tree
pinctrl: single: Clear pin interrupts enabled by bootloader

 arch/arm/boot/dts/omap3-evm-37xx.dts      |   9 ++
 arch/arm/boot/dts/omap3-n900.dts          |  19 +++
 arch/arm/boot/dts/omap3.dtsi              |   6 +-
 arch/arm/boot/dts/omap4-panda-common.dtsi |  15 +++
 arch/arm/boot/dts/omap4-sdp.dts           |   6 +
 arch/arm/boot/dts/omap4.dtsi              |   6 +-
 arch/arm/boot/dts/twl4030_omap3.dtsi      |  19 ++-
 arch/arm/configs/omap2plus_defconfig      |   7 +
 arch/arm/mach-omap2/omap_twl.c            |  60 ---------
 arch/arm/mach-omap2/pm.c                  |  28 ++--
 arch/arm/mach-omap2/pm34xx.c              |   6 +-
 arch/arm/mach-omap2/prm-regbits-34xx.h    |  11 +-
 arch/arm/mach-omap2/vc.c                  | 212 +++++++++++++++++++-----------
 arch/arm/mach-omap2/vc.h                  |   2 +
 drivers/mfd/twl-core.c                    |  15 +++
 drivers/pinctrl/pinctrl-single.c          |  13 ++
 include/dt-bindings/pinctrl/omap.h        |  12 ++
 17 files changed, 281 insertions(+), 165 deletions(-)
Signature · 1 line
1.8.1.1