ARM: shmobile: r8a7779: Add pin control device to device tree
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 9 May 2013 13:05:57 +0000 (15:05 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 22 Jul 2013 01:12:34 +0000 (10:12 +0900)
Add a pfc node to the r8a7779 device tree and remove manual pinmux
initialization from the corresponding board files.

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

index 7f146c6bf7569dcf01d8c3a1933ba60eb736f579..9dfc438451ef816b72dd08719c9d20a9186c7b8f 100644 (file)
                interrupts = <0 81 0x4>;
        };
 
+       pfc: pfc@fffc0000 {
+               compatible = "renesas,pfc-r8a7779";
+               reg = <0xfffc0000 0x23c>;
+       };
+
        thermal@ffc48000 {
                compatible = "renesas,rcar-thermal";
                reg = <0xffc48000 0x38>;
index 480d882e42c7d586d7326c0600b38a98420737fb..94804f3cec5b5817b5dacbb585b697400b9d9038 100644 (file)
 
 static const struct pinctrl_map marzen_pinctrl_map[] = {
        /* SCIF2 (CN18: DEBUG0) */
-       PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.2", "pfc-r8a7779",
+       PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.2", "fffc0000.pfc",
                                  "scif2_data_c", "scif2"),
        /* SCIF4 (CN19: DEBUG1) */
-       PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.4", "pfc-r8a7779",
+       PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.4", "fffc0000.pfc",
                                  "scif4_data", "scif4"),
        /* SDHI0 */
-       PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779",
+       PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "fffc0000.pfc",
                                  "sdhi0_data4", "sdhi0"),
-       PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779",
+       PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "fffc0000.pfc",
                                  "sdhi0_ctrl", "sdhi0"),
-       PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779",
+       PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "fffc0000.pfc",
                                  "sdhi0_cd", "sdhi0"),
-       PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779",
+       PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "fffc0000.pfc",
                                  "sdhi0_wp", "sdhi0"),
        /* SMSC */
-       PIN_MAP_MUX_GROUP_DEFAULT("smsc911x", "pfc-r8a7779",
+       PIN_MAP_MUX_GROUP_DEFAULT("smsc911x", "fffc0000.pfc",
                                  "intc_irq1_b", "intc"),
-       PIN_MAP_MUX_GROUP_DEFAULT("smsc911x", "pfc-r8a7779",
+       PIN_MAP_MUX_GROUP_DEFAULT("smsc911x", "fffc0000.pfc",
                                  "lbsc_ex_cs0", "lbsc"),
 };
 
@@ -53,7 +53,6 @@ static void __init marzen_init(void)
 {
        pinctrl_register_mappings(marzen_pinctrl_map,
                                  ARRAY_SIZE(marzen_pinctrl_map));
-       r8a7779_pinmux_init();
 
        r8a7779_add_standard_devices_dt();
 }