Skip to content

RFC pinctrl: imx: add support for dt-overlays

Gary Bisson linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest3 patches 8 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3pinctrl: imx: remove const qualifier of imx_pinctrl_soc_infodrivers/pinctrl/freescale/pinctrl-imx.c+17 -172 replies
2/3pinctrl: imx: use radix trees for groups and functionsdrivers/pinctrl/freescale/pinctrl-imx.c drivers/pinctrl/freescale/pinctrl-imx.h+141 -286 replies
3/3pinctrl: imx: add of_notifier for dynamic pinctrl changesdrivers/pinctrl/freescale/pinctrl-imx.c+103 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchFabio Estevam
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [RFC v2 0/3] pinctrl: imx: add support for dt-overlays

Hi all,

This RFC series is a follow-up to my previous RFC patch [1].

This time the series includes one possible of_notifier implementation for people to understand the need of radix_tree (or similar mechanism) as suggested by Fabio.

However, if you wish to try this on, you'll need a tree with patches from the renesas-drivers tree to have configfs support [2].

To ease that process, my testing tree was pushed to github [3] which is based on today's linux-next tree.

Finally, the device tree overlay was also pushed to github [4]. This last repo also contains what is needed to build the overlay out of tree plus some helper script to load the overlay.

With this tree and overlay, two spidev devices can be added from user-space with the proper pinctrl being applied.

The patches of this series include some comment on their purpose / implementation.

Regards,
Gary

[1] http://www.spinics.net/lists/kernel/msg2391326.html
[2] http://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/overlays
[3] https://github.com/gibsson/linux-next/tree/for-next-20161202
[4] https://github.com/gibsson/dt-overlays/tree/dt-overlays-next/overlays

Gary Bisson (3):
pinctrl: imx: remove const qualifier of imx_pinctrl_soc_info
pinctrl: imx: use radix trees for groups and functions
pinctrl: imx: add of_notifier for dynamic pinctrl changes

 drivers/pinctrl/freescale/pinctrl-imx.c | 301 +++++++++++++++++++++++++++-----
 drivers/pinctrl/freescale/pinctrl-imx.h |   5 +-
 2 files changed, 261 insertions(+), 45 deletions(-)
Signature · 1 line
2.9.3