Skip to content

power: add generic power sequence framework

Peter Chen linux-arm-kernel linux-devicetree linux-mmc linux-pm 1 version New

Get series with b4
b4 am 20160620112737.GB26936@shlinux2

Versions newest first

  1. v1 Latest5 of 12 patches 0 repliesNew

5 of 12 patches are in this archive. The cover letter announces 12.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
7/12power: pwrseq: rename file name for generic driver+0 -00 replies
8/12doc: binding: pwrseq-usb-generic: add binding doc for generic usb power sequence driver+0 -03 replies
8/12doc: binding: pwrseq-usb-generic: add binding doc for generic usb power sequence driver+0 -03 replies
8/12doc: binding: pwrseq-usb-generic: add binding doc for generic usb power sequence driver+0 -00 replies
8/12doc: binding: pwrseq-usb-generic: add binding doc for generic usb power sequence driver+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] power: add generic power sequence framework
Quoted 35 lines · Maciej S. Szmigiero

Hi Peter,

Quoted 25 lines · Peter Chen

Hi all,

We have an well-known problem that the device needs to do some power sequence before it can be recognized by related host, the typical example like hard-wired mmc devices and usb devices. This power sequence is hard to be described at device tree and handled by related host driver, so we have created a common power sequence framework to handle this requirement. The generic code is supplied some common helpers from host driver, and individual power sequence driver handles kinds of power sequence for devices.

Since the MMC has already done the similar things, and this power sequence handling can be generic, we use mmc power sequence code as base to create this framework.

This patch set is based on Krzysztof Kozlowski's RFC patch set (v4.7-rc1) [1], and making some changes which can let it be generic. After that, we create a generic power sequence driver for USB devices which handles below things, it includes all input signals for devices I can consider.

- Clock and its frequencies
- GPIO for reset and the duration time
- GPIO for enable
- Regulator for power

Quoted 6 lines

This patch set is tested on i.mx6 sabresx evk using a dts change, I use two hot-plug devices to simulate this use case. The udoo board changes were tested using my last power sequence patch set. [2]

@Maciej S. Szmigiero, Oscar, would you please test them on imx6qdl udoo boards?

Quoted 7 lines

Thanks for the patch set, just tested them on my UDOO Quad board and can confirm that USB and on-board hub work fine.

Maciej

Many thanks, Maciej.

Signature · 2 lines
Best Regards,
Peter Chen