aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2013-03-19 13:38:50 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-03-21 09:03:50 -0400
commita463f731766e8273f44ba397233bfc7ecf752f98 (patch)
treeb2eb94e1db4287a9a934b292b1cf24cdcf965252 /arch/arm
parent54ca74ef09a98fcbd77887bb6ff38986ff593955 (diff)
ARM: shmobile: kzm9g-reference: fix device-tree bindings and device names
Fix several device-tree bindings, that haven't been updated for newest versions of respective drivers, and device names and pin numbers, left over from non-DT and old pinctrl versions. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/sh73a0.dtsi12
-rw-r--r--arch/arm/mach-shmobile/board-kzm9g-reference.c27
2 files changed, 19 insertions, 20 deletions
diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi
index c89be386cd37..3e4d383ac6d9 100644
--- a/arch/arm/boot/dts/sh73a0.dtsi
+++ b/arch/arm/boot/dts/sh73a0.dtsi
@@ -109,36 +109,36 @@
109 }; 109 };
110 110
111 sdhi0: sdhi@0xee100000 { 111 sdhi0: sdhi@0xee100000 {
112 compatible = "renesas,shmobile-sdhi"; 112 compatible = "renesas,r8a7740-sdhi";
113 reg = <0xee100000 0x100>; 113 reg = <0xee100000 0x100>;
114 interrupt-parent = <&gic>; 114 interrupt-parent = <&gic>;
115 interrupts = <0 83 4 115 interrupts = <0 83 4
116 0 84 4 116 0 84 4
117 0 85 4>; 117 0 85 4>;
118 toshiba,mmc-has-idle-wait; 118 cap-sd-highspeed;
119 status = "disabled"; 119 status = "disabled";
120 }; 120 };
121 121
122 /* SDHI1 and SDHI2 have no CD pins, no need for CD IRQ */ 122 /* SDHI1 and SDHI2 have no CD pins, no need for CD IRQ */
123 sdhi1: sdhi@0xee120000 { 123 sdhi1: sdhi@0xee120000 {
124 compatible = "renesas,shmobile-sdhi"; 124 compatible = "renesas,r8a7740-sdhi";
125 reg = <0xee120000 0x100>; 125 reg = <0xee120000 0x100>;
126 interrupt-parent = <&gic>; 126 interrupt-parent = <&gic>;
127 interrupts = <0 88 4 127 interrupts = <0 88 4
128 0 89 4>; 128 0 89 4>;
129 toshiba,mmc-wrprotect-disable; 129 toshiba,mmc-wrprotect-disable;
130 toshiba,mmc-has-idle-wait; 130 cap-sd-highspeed;
131 status = "disabled"; 131 status = "disabled";
132 }; 132 };
133 133
134 sdhi2: sdhi@0xee140000 { 134 sdhi2: sdhi@0xee140000 {
135 compatible = "renesas,shmobile-sdhi"; 135 compatible = "renesas,r8a7740-sdhi";
136 reg = <0xee140000 0x100>; 136 reg = <0xee140000 0x100>;
137 interrupt-parent = <&gic>; 137 interrupt-parent = <&gic>;
138 interrupts = <0 104 4 138 interrupts = <0 104 4
139 0 105 4>; 139 0 105 4>;
140 toshiba,mmc-wrprotect-disable; 140 toshiba,mmc-wrprotect-disable;
141 toshiba,mmc-has-idle-wait; 141 cap-sd-highspeed;
142 status = "disabled"; 142 status = "disabled";
143 }; 143 };
144}; 144};
diff --git a/arch/arm/mach-shmobile/board-kzm9g-reference.c b/arch/arm/mach-shmobile/board-kzm9g-reference.c
index e93473c84c56..aefa50d385b7 100644
--- a/arch/arm/mach-shmobile/board-kzm9g-reference.c
+++ b/arch/arm/mach-shmobile/board-kzm9g-reference.c
@@ -40,16 +40,16 @@ static unsigned long pin_pullup_conf[] = {
40}; 40};
41 41
42static const struct pinctrl_map kzm_pinctrl_map[] = { 42static const struct pinctrl_map kzm_pinctrl_map[] = {
43 PIN_MAP_MUX_GROUP_DEFAULT("i2c-sh_mobile.3", "pfc-sh73a0", 43 PIN_MAP_MUX_GROUP_DEFAULT("e6826000.i2c", "pfc-sh73a0",
44 "i2c3_1", "i2c3"), 44 "i2c3_1", "i2c3"),
45 /* MMCIF */ 45 /* MMCIF */
46 PIN_MAP_MUX_GROUP_DEFAULT("sh_mmcif.0", "pfc-sh73a0", 46 PIN_MAP_MUX_GROUP_DEFAULT("e6bd0000.mmcif", "pfc-sh73a0",
47 "mmc0_data8_0", "mmc0"), 47 "mmc0_data8_0", "mmc0"),
48 PIN_MAP_MUX_GROUP_DEFAULT("sh_mmcif.0", "pfc-sh73a0", 48 PIN_MAP_MUX_GROUP_DEFAULT("e6bd0000.mmcif", "pfc-sh73a0",
49 "mmc0_ctrl_0", "mmc0"), 49 "mmc0_ctrl_0", "mmc0"),
50 PIN_MAP_CONFIGS_PIN_DEFAULT("sh_mmcif.0", "pfc-sh73a0", 50 PIN_MAP_CONFIGS_PIN_DEFAULT("e6bd0000.mmcif", "pfc-sh73a0",
51 "PORT279", pin_pullup_conf), 51 "PORT279", pin_pullup_conf),
52 PIN_MAP_CONFIGS_GROUP_DEFAULT("sh_mmcif.0", "pfc-sh73a0", 52 PIN_MAP_CONFIGS_GROUP_DEFAULT("e6bd0000.mmcif", "pfc-sh73a0",
53 "mmc0_data8_0", pin_pullup_conf), 53 "mmc0_data8_0", pin_pullup_conf),
54 /* SCIFA4 */ 54 /* SCIFA4 */
55 PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.4", "pfc-sh73a0", 55 PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.4", "pfc-sh73a0",
@@ -57,18 +57,18 @@ static const struct pinctrl_map kzm_pinctrl_map[] = {
57 PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.4", "pfc-sh73a0", 57 PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.4", "pfc-sh73a0",
58 "scifa4_ctrl", "scifa4"), 58 "scifa4_ctrl", "scifa4"),
59 /* SDHI0 */ 59 /* SDHI0 */
60 PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-sh73a0", 60 PIN_MAP_MUX_GROUP_DEFAULT("ee100000.sdhi", "pfc-sh73a0",
61 "sdhi0_data4", "sdhi0"), 61 "sdhi0_data4", "sdhi0"),
62 PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-sh73a0", 62 PIN_MAP_MUX_GROUP_DEFAULT("ee100000.sdhi", "pfc-sh73a0",
63 "sdhi0_ctrl", "sdhi0"), 63 "sdhi0_ctrl", "sdhi0"),
64 PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-sh73a0", 64 PIN_MAP_MUX_GROUP_DEFAULT("ee100000.sdhi", "pfc-sh73a0",
65 "sdhi0_cd", "sdhi0"), 65 "sdhi0_cd", "sdhi0"),
66 PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-sh73a0", 66 PIN_MAP_MUX_GROUP_DEFAULT("ee100000.sdhi", "pfc-sh73a0",
67 "sdhi0_wp", "sdhi0"), 67 "sdhi0_wp", "sdhi0"),
68 /* SDHI2 */ 68 /* SDHI2 */
69 PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.2", "pfc-sh73a0", 69 PIN_MAP_MUX_GROUP_DEFAULT("ee140000.sdhi", "pfc-sh73a0",
70 "sdhi2_data4", "sdhi2"), 70 "sdhi2_data4", "sdhi2"),
71 PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.2", "pfc-sh73a0", 71 PIN_MAP_MUX_GROUP_DEFAULT("ee140000.sdhi", "pfc-sh73a0",
72 "sdhi2_ctrl", "sdhi2"), 72 "sdhi2_ctrl", "sdhi2"),
73}; 73};
74 74
@@ -80,10 +80,9 @@ static void __init kzm_init(void)
80 80
81 /* enable SD */ 81 /* enable SD */
82 gpio_request(GPIO_FN_SDHI0_VCCQ_MC0_ON, NULL); 82 gpio_request(GPIO_FN_SDHI0_VCCQ_MC0_ON, NULL);
83 gpio_request_one(GPIO_PORT15, GPIOF_OUT_INIT_HIGH, NULL); /* power */ 83 gpio_request_one(15, GPIOF_OUT_INIT_HIGH, NULL); /* power */
84 84
85 gpio_request(GPIO_FN_SDHICLK2, NULL); 85 gpio_request_one(14, GPIOF_OUT_INIT_HIGH, NULL); /* power */
86 gpio_request_one(GPIO_PORT14, GPIOF_OUT_INIT_HIGH, NULL); /* power */
87 86
88#ifdef CONFIG_CACHE_L2X0 87#ifdef CONFIG_CACHE_L2X0
89 /* Early BRESP enable, Shared attribute override enable, 64K*8way */ 88 /* Early BRESP enable, Shared attribute override enable, 64K*8way */