lkml.org 
[lkml]   [2011]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH v2 0/4] pinctrl: imx: add pinnmux support
Date
The new patch series shows the basic idea of parsing data from device tree.
The implementation bases on the assumption that board knows the function uses
which pin group and it only passes one group per one function to ease the parsing
effort. The core driver will construct the structure dynamically by parsing
the data from dts file in probe.

For DT support, there's still one issue that for pinmux_map,
since it's board specific, i wonder if it can be parsed by pinctrl
subsystem via dt rather than by each driver.
but pinctrl still does not supported that, i still only called
it in mach-imx6q.c which seems not a correct place.

The patch still has a few other work to do like add pinconf, gpio support and
one know issue is that when add pinconf support, the trick that using pin->id
to calculate the reg offset may not work since pin config registers are not
layout regularly and we may find a better way to do that.

So it's mainly for discussion on the visiable issues.

Changes since v1:
* add a cover letter
* remove the pin functon and group defines out of driver
* parsing data from device tree for imx6q support
* a few minor fixes suggested by Shawn

Dong Aisheng (4):
dt: add of_get_child_number helper function
pinctrl: imx: add pinmux imx driver
ARM: imx6q: using pinmux subsystem
mmc: sdhci-esdhc-imx: using pinmux subsystem

arch/arm/boot/dts/imx6q-sabreauto.dts | 22 ++
arch/arm/boot/dts/imx6q.dtsi | 1 +
arch/arm/mach-imx/Kconfig | 1 +
arch/arm/mach-imx/mach-imx6q.c | 8 +-
drivers/mmc/host/sdhci-esdhc-imx.c | 20 ++
drivers/pinctrl/Kconfig | 20 ++
drivers/pinctrl/Makefile | 3 +
drivers/pinctrl/pinmux-imx-core.c | 435 ++++++++++++++++++++++++++++++++
drivers/pinctrl/pinmux-imx-core.h | 86 +++++++
drivers/pinctrl/pinmux-imx53.c | 443 +++++++++++++++++++++++++++++++++
drivers/pinctrl/pinmux-imx6q.c | 433 ++++++++++++++++++++++++++++++++
include/linux/of.h | 17 ++
12 files changed, 1488 insertions(+), 1 deletions(-)
create mode 100644 drivers/pinctrl/pinmux-imx-core.c
create mode 100644 drivers/pinctrl/pinmux-imx-core.h
create mode 100644 drivers/pinctrl/pinmux-imx53.c
create mode 100644 drivers/pinctrl/pinmux-imx6q.c




\
 
 \ /
  Last update: 2011-12-14 16:55    [W:0.214 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site