aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2014-01-09 01:09:14 -0500
committerOlof Johansson <olof@lixom.net>2014-01-09 01:09:14 -0500
commit9ebde306cf482cde18669dd5592665376fb59aef (patch)
treea545b8c69342b9c794b8db15f39ffe8634c76d0e
parent708d2aa14d1eefef3dd758242787e837485baad7 (diff)
parent0e7a268a9e2d85d36f146f9dcf1f54488111f3d8 (diff)
Merge tag 'ux500-devicetree-v3.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson into next/dt
From Linus Walleij: Ux500 device tree patches for v3.14, take 2 - Delete some unused U8540 UART platform data. - MMC/SD-fixes from Ulf Hansson so everything works with the device tree again. * tag 'ux500-devicetree-v3.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson: ARM: ux500: regulators: Remove dead code for SD-card regulator ARM: ux500: Configure regulator for I/O voltage for SD-card slot ARM: ux500: Refactor common DT configs for sdi[n] devices ARM: ux500: delete U8540 UART auxdata Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--arch/arm/boot/dts/ste-href.dtsi2
-rw-r--r--arch/arm/boot/dts/ste-hrefprev60.dtsi7
-rw-r--r--arch/arm/boot/dts/ste-hrefv60plus.dtsi40
-rw-r--r--arch/arm/boot/dts/ste-snowball.dts6
-rw-r--r--arch/arm/mach-ux500/board-mop500-regulators.c14
-rw-r--r--arch/arm/mach-ux500/board-mop500-regulators.h1
-rw-r--r--arch/arm/mach-ux500/cpu-db8500.c4
7 files changed, 10 insertions, 64 deletions
diff --git a/arch/arm/boot/dts/ste-href.dtsi b/arch/arm/boot/dts/ste-href.dtsi
index e28242173d18..0c1e8d871ed1 100644
--- a/arch/arm/boot/dts/ste-href.dtsi
+++ b/arch/arm/boot/dts/ste-href.dtsi
@@ -124,8 +124,6 @@
124 pinctrl-0 = <&sdi0_default_mode>; 124 pinctrl-0 = <&sdi0_default_mode>;
125 pinctrl-1 = <&sdi0_sleep_mode>; 125 pinctrl-1 = <&sdi0_sleep_mode>;
126 126
127 cd-gpios = <&tc3589x_gpio 3 0x4>;
128
129 status = "okay"; 127 status = "okay";
130 }; 128 };
131 129
diff --git a/arch/arm/boot/dts/ste-hrefprev60.dtsi b/arch/arm/boot/dts/ste-hrefprev60.dtsi
index b0f5def8e2a8..40f0ecdf9303 100644
--- a/arch/arm/boot/dts/ste-hrefprev60.dtsi
+++ b/arch/arm/boot/dts/ste-hrefprev60.dtsi
@@ -60,11 +60,14 @@
60 pinctrl-0 = <&ssp0_hrefprev60_mode>; 60 pinctrl-0 = <&ssp0_hrefprev60_mode>;
61 }; 61 };
62 62
63 // External Micro SD slot
64 sdi0_per1@80126000 {
65 cd-gpios = <&tc3589x_gpio 3 0x4>;
66 };
67
63 vmmci: regulator-gpio { 68 vmmci: regulator-gpio {
64 gpios = <&tc3589x_gpio 18 0x4>; 69 gpios = <&tc3589x_gpio 18 0x4>;
65 enable-gpio = <&tc3589x_gpio 17 0x4>; 70 enable-gpio = <&tc3589x_gpio 17 0x4>;
66
67 status = "okay";
68 }; 71 };
69 72
70 pinctrl { 73 pinctrl {
diff --git a/arch/arm/boot/dts/ste-hrefv60plus.dtsi b/arch/arm/boot/dts/ste-hrefv60plus.dtsi
index 941bf9ad6f01..3b6d1181939b 100644
--- a/arch/arm/boot/dts/ste-hrefv60plus.dtsi
+++ b/arch/arm/boot/dts/ste-hrefv60plus.dtsi
@@ -19,46 +19,12 @@
19 soc { 19 soc {
20 // External Micro SD slot 20 // External Micro SD slot
21 sdi0_per1@80126000 { 21 sdi0_per1@80126000 {
22 arm,primecell-periphid = <0x10480180>;
23 max-frequency = <100000000>;
24 bus-width = <4>;
25 mmc-cap-sd-highspeed;
26 mmc-cap-mmc-highspeed;
27 vmmc-supply = <&ab8500_ldo_aux3_reg>;
28
29 cd-gpios = <&gpio2 31 0x4>; // 95 22 cd-gpios = <&gpio2 31 0x4>; // 95
30
31 status = "okay";
32 };
33
34 // WLAN SDIO channel
35 sdi1_per2@80118000 {
36 arm,primecell-periphid = <0x10480180>;
37 max-frequency = <100000000>;
38 bus-width = <4>;
39
40 status = "okay";
41 }; 23 };
42 24
43 // PoP:ed eMMC 25 vmmci: regulator-gpio {
44 sdi2_per3@80005000 { 26 gpios = <&gpio0 5 0x4>;
45 arm,primecell-periphid = <0x10480180>; 27 enable-gpio = <&gpio5 9 0x4>;
46 max-frequency = <100000000>;
47 bus-width = <8>;
48 mmc-cap-mmc-highspeed;
49
50 status = "okay";
51 };
52
53 // On-board eMMC
54 sdi4_per2@80114000 {
55 arm,primecell-periphid = <0x10480180>;
56 max-frequency = <100000000>;
57 bus-width = <8>;
58 mmc-cap-mmc-highspeed;
59 vmmc-supply = <&ab8500_ldo_aux2_reg>;
60
61 status = "okay";
62 }; 28 };
63 29
64 pinctrl { 30 pinctrl {
diff --git a/arch/arm/boot/dts/ste-snowball.dts b/arch/arm/boot/dts/ste-snowball.dts
index 9070c3701c89..97d5d21b7db7 100644
--- a/arch/arm/boot/dts/ste-snowball.dts
+++ b/arch/arm/boot/dts/ste-snowball.dts
@@ -146,10 +146,8 @@
146 }; 146 };
147 147
148 vmmci: regulator-gpio { 148 vmmci: regulator-gpio {
149 gpios = <&gpio6 25 0x4>; 149 gpios = <&gpio7 4 0x4>;
150 enable-gpio = <&gpio7 4 0x4>; 150 enable-gpio = <&gpio6 25 0x4>;
151
152 status = "okay";
153 }; 151 };
154 152
155 // External Micro SD slot 153 // External Micro SD slot
diff --git a/arch/arm/mach-ux500/board-mop500-regulators.c b/arch/arm/mach-ux500/board-mop500-regulators.c
index 0dc44c683427..a4e139aa2441 100644
--- a/arch/arm/mach-ux500/board-mop500-regulators.c
+++ b/arch/arm/mach-ux500/board-mop500-regulators.c
@@ -30,20 +30,6 @@ struct regulator_init_data gpio_en_3v3_regulator = {
30 .consumer_supplies = gpio_en_3v3_consumers, 30 .consumer_supplies = gpio_en_3v3_consumers,
31}; 31};
32 32
33static struct regulator_consumer_supply sdi0_reg_consumers[] = {
34 REGULATOR_SUPPLY("vqmmc", "sdi0"),
35};
36
37struct regulator_init_data sdi0_reg_init_data = {
38 .constraints = {
39 .min_uV = 1800000,
40 .max_uV = 2900000,
41 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE|REGULATOR_CHANGE_STATUS,
42 },
43 .num_consumer_supplies = ARRAY_SIZE(sdi0_reg_consumers),
44 .consumer_supplies = sdi0_reg_consumers,
45};
46
47/* 33/*
48 * TPS61052 regulator 34 * TPS61052 regulator
49 */ 35 */
diff --git a/arch/arm/mach-ux500/board-mop500-regulators.h b/arch/arm/mach-ux500/board-mop500-regulators.h
index 039f5132c370..9bece38fe933 100644
--- a/arch/arm/mach-ux500/board-mop500-regulators.h
+++ b/arch/arm/mach-ux500/board-mop500-regulators.h
@@ -18,7 +18,6 @@ extern struct ab8500_regulator_platform_data ab8500_regulator_plat_data;
18extern struct ab8500_regulator_platform_data ab8505_regulator_plat_data; 18extern struct ab8500_regulator_platform_data ab8505_regulator_plat_data;
19extern struct regulator_init_data tps61052_regulator; 19extern struct regulator_init_data tps61052_regulator;
20extern struct regulator_init_data gpio_en_3v3_regulator; 20extern struct regulator_init_data gpio_en_3v3_regulator;
21extern struct regulator_init_data sdi0_reg_init_data;
22 21
23void mop500_regulator_init(void); 22void mop500_regulator_init(void);
24 23
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c
index d8f5ce430fa7..bc8a6183560d 100644
--- a/arch/arm/mach-ux500/cpu-db8500.c
+++ b/arch/arm/mach-ux500/cpu-db8500.c
@@ -174,10 +174,6 @@ static struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = {
174}; 174};
175 175
176static struct of_dev_auxdata u8540_auxdata_lookup[] __initdata = { 176static struct of_dev_auxdata u8540_auxdata_lookup[] __initdata = {
177 /* Requires DMA bindings. */
178 OF_DEV_AUXDATA("arm,pl011", 0x80120000, "uart0", NULL),
179 OF_DEV_AUXDATA("arm,pl011", 0x80121000, "uart1", NULL),
180 OF_DEV_AUXDATA("arm,pl011", 0x80007000, "uart2", NULL),
181 OF_DEV_AUXDATA("stericsson,db8500-prcmu", 0x80157000, "db8500-prcmu", 177 OF_DEV_AUXDATA("stericsson,db8500-prcmu", 0x80157000, "db8500-prcmu",
182 &db8500_prcmu_pdata), 178 &db8500_prcmu_pdata),
183 {}, 179 {},