ARM: davinci: da850: add pinctrl driver DT entries
authorKumar, Anil <anilkumar.v@ti.com>
Wed, 16 Jan 2013 09:07:39 +0000 (14:37 +0530)
committerSekhar Nori <nsekhar@ti.com>
Mon, 21 Jan 2013 12:21:07 +0000 (17:51 +0530)
For DT, DaVinci platform can use pinctrl-single driver for handling
padconf registers.

Enable PINCTRL Kconfig for MACH_DA8XX_DT platform. Add required
pinctrl DT entries in da850 dts file.

 Test procedure
  1)Populate DT file with NAND node information.
  2)Populate board DT file with pinmux information for NAND.
  3)Boot and confirm NAND is detected by the kernel.
  4)cat /proc/mtd to show partitions.

Signed-off-by: Kumar, Anil <anilkumar.v@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/boot/dts/da850-evm.dts
arch/arm/boot/dts/da850.dtsi
arch/arm/mach-davinci/Kconfig

index 37dc5a3243b87017ecb8614c29c33dcbb8f1ca69..087ba28285d28a56cb40451fddd9535e699476cc 100644 (file)
@@ -15,6 +15,9 @@
        model = "DA850/AM1808/OMAP-L138 EVM";
 
        soc {
+               pmx_core: pinmux@1c14120 {
+                       status = "okay";
+               };
                serial0: serial@1c42000 {
                        status = "okay";
                };
index 640ab75c20db201e3a7061fb959cf68d2b226f8a..f74740d0994b414be10e9354eb2177ddeb9adcee 100644 (file)
                #size-cells = <1>;
                ranges = <0x0 0x01c00000 0x400000>;
 
+               pmx_core: pinmux@1c14120 {
+                       compatible = "pinctrl-single";
+                       reg = <0x14120 0x50>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       pinctrl-single,bit-per-mux;
+                       pinctrl-single,register-width = <32>;
+                       pinctrl-single,function-mask = <0xffffffff>;
+                       status = "disabled";
+               };
                serial0: serial@1c42000 {
                        compatible = "ns16550a";
                        reg = <0x42000 0x100>;
index 0153950f606806e77eca03b622c2961438221129..a075b3e0c5c7a5229aa87163e732d9c6b49a7a50 100644 (file)
@@ -62,6 +62,7 @@ config MACH_DA8XX_DT
        bool "Support DA8XX platforms using device tree"
        default y
        depends on ARCH_DAVINCI_DA8XX
+       select PINCTRL
        help
          Say y here to include support for TI DaVinci DA850 based using
          Flattened Device Tree. More information at Documentation/devicetree