Skip to content

ARM: davinci: use gpio descriptors for mmc pins

Axel Haslam linux-arm-kernel lkml 1 version Applied

Status from this message: Applied to v4.10/soc

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 2 repliesApplied

Changes in v2 from the cover letter

*Convert da850-evm and da830-evm
*keep hack board pins as they are not compatible with lcdk (Sekhar)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3ARM: davinci: hawk: use gpio descriptor for mmc pinsarch/arm/mach-davinci/board-omapl138-hawk.c+11 -311 reply
2/3ARM: davinci: da850-evm: use gpio descriptor for mmc pinsarch/arm/mach-davinci/board-da850-evm.c+10 -251 reply
3/3ARM: davinci: da830-evm: use gpio descriptor for mmc pinsarch/arm/mach-davinci/board-da830-evm.c+11 -300 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] ARM: davinci: use gpio descriptors for mmc pins

For the boards that use gpios managed by the davinci gpio driver, we can use gpio descriptors to control the the mmc pins.

This will let the mmc driver register an interrupt for the card detect pin, and also allows us to remove the dependency on platform callbacks for these boards.

For boards using a CPLD or an MSP the conversion is not yet done, and they still rely on the platform callbacks and polling. More work is needed to be able to manage those pins with gpio descriptors. Once that is done, we would be able to remove completely platform callbacks.

Changes v1->v2
*Convert da850-evm and da830-evm
*keep hack board pins as they are not compatible with lcdk (Sekhar)

Dependency:
This patch depends on a mmc driver patch currently in linux-next.
MMC: davinci: fix card detect and write protect
https://lkml.org/lkml/2016/11/15/592

Axel Haslam (3):
ARM: davinci: hawk: use gpio descriptor for card detect
ARM: davinci: da850-evm: use gpio descriptor for mmc pins
ARM: davinci: da830-evm: use gpio descriptor for mmc pins

 arch/arm/mach-davinci/board-da830-evm.c     | 41 ++++++++--------------------
 arch/arm/mach-davinci/board-da850-evm.c     | 35 +++++++-----------------
 arch/arm/mach-davinci/board-omapl138-hawk.c | 42 ++++++++---------------------
 3 files changed, 32 insertions(+), 86 deletions(-)
Signature · 1 line
2.9.3