ARM: shmobile: armadillo-reference: Move pinctrl mappings to device tree
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 9 May 2013 15:41:59 +0000 (17:41 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 22 Jul 2013 01:12:37 +0000 (10:12 +0900)
Replace the pinctrl mappings in board code by device tree mappings.
For devices that are still instantiated from board code reference the
mappings as the default pin controller state to apply them at boot time.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
arch/arm/mach-shmobile/board-armadillo800eva-reference.c

index 09ea22c26359ab00130898b79e696a2b252b9aae..4a7ae32d471887065adc221f377bc86e02df1681 100644 (file)
                interrupts = <2 0>; /* IRQ10: hwirq 2 on irqpin1 */
        };
 };
+
+&pfc {
+       pinctrl-0 = <&scifa1_pins>;
+       pinctrl-names = "default";
+
+       scifa1_pins: scifa1 {
+               renesas,groups = "scifa1_data";
+               renesas,function = "scifa1";
+       };
+};
index f25b6aaba2a0e8d887ebda5c2f9ddf493352c655..4ddd29995f1db7c04504d81c3f09571e0474384b 100644 (file)
@@ -24,7 +24,6 @@
 #include <linux/kernel.h>
 #include <linux/gpio.h>
 #include <linux/io.h>
-#include <linux/pinctrl/machine.h>
 #include <mach/common.h>
 #include <mach/r8a7740.h>
 #include <asm/mach/arch.h>
  *     usbhsf_power_ctrl()
  */
 
-static const struct pinctrl_map eva_pinctrl_map[] = {
-       /* SCIFA1 */
-       PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.1", "e6050000.pfc",
-                                 "scifa1_data", "scifa1"),
-};
-
 static void __init eva_clock_init(void)
 {
        struct clk *system      = clk_get(NULL, "system_clk");
@@ -169,8 +162,6 @@ static void __init eva_init(void)
        r8a7740_clock_init(MD_CK0 | MD_CK2);
        eva_clock_init();
 
-       pinctrl_register_mappings(eva_pinctrl_map, ARRAY_SIZE(eva_pinctrl_map));
-
        r8a7740_meram_workaround();
 
 #ifdef CONFIG_CACHE_L2X0
This page took 0.025769 seconds and 5 git commands to generate.