
On Sun, Mar 10, 2013 at 11:53 PM, Akshay Saraswat akshay.s@samsung.com wrote:
This patch adds fdt nodes for peripherals which require pin muxing and configuration. Device tree bindings for pinctrl are kept same as required for Linux. Existing pinmux code modified to retrieve gpio range and function related info from fdt.
Depends-on: [U-Boot] [PATCH 0/4 V3] EXYNOS5: Add GPIO numbering feature URL: http://lists.denx.de/pipermail/u-boot/2013-February/146151.html
Signed-off-by: Akshay Saraswat akshay.s@samsung.com
Acked-by: Simon Glass sjg@chromium.org
Changes since v1: - Device tree bindings changed to linux style. - Added documentation for samsung pinctrl.
Changes since v2: - Rebased as per new version of GPIO numbering patch-set.
Changes since v3: - Added comments to reduce ambiguity and increase readability. - Fixed few other nits.
Changes since v4: - Added support for reading peripheral pinctrl subnode names from preipheral's node instead of hard coding.
Changes since v5: - Changed compatible strings for uart, mshc, i2s and pinctrl to make them similar to kernel in lib/fdtdec.c. - Changed "samsung,pinctrl-names" to "pinctrl-names" in exynos5250.dtsi to make it same as kernel. - Added explanation for "pinctrl-names" in bindings documentation samsung-pinctrl.txt.
arch/arm/cpu/armv7/exynos/pinmux.c | 357 +++++++------- arch/arm/dts/exynos5250-pinctrl.dtsi | 675 +++++++++++++++++++++++++++ arch/arm/dts/exynos5250.dtsi | 88 ++++ board/samsung/dts/exynos5250-smdk5250.dts | 11 + doc/device-tree-bindings/samsung-pinctrl.txt | 258 ++++++++++ include/fdtdec.h | 4 + lib/fdtdec.c | 4 + 7 files changed, 1232 insertions(+), 165 deletions(-) create mode 100644 arch/arm/dts/exynos5250-pinctrl.dtsi create mode 100644 doc/device-tree-bindings/samsung-pinctrl.txt