2 * Copyright 2012 ST-Ericsson AB
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
12 #include "ste-dbx5x0.dtsi"
13 #include "ste-href.dtsi"
16 model = "ST-Ericsson HREF (v60+) platform with Device Tree";
17 compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
20 // External Micro SD slot
22 arm,primecell-periphid = <0x10480180>;
23 max-frequency = <100000000>;
26 mmc-cap-mmc-highspeed;
27 vmmc-supply = <&ab8500_ldo_aux3_reg>;
29 cd-gpios = <&gpio2 31 0x4>; // 95
36 arm,primecell-periphid = <0x10480180>;
37 max-frequency = <100000000>;
45 arm,primecell-periphid = <0x10480180>;
46 max-frequency = <100000000>;
48 mmc-cap-mmc-highspeed;
55 arm,primecell-periphid = <0x10480180>;
56 max-frequency = <100000000>;
58 mmc-cap-mmc-highspeed;
59 vmmc-supply = <&ab8500_ldo_aux2_reg>;
66 * Set this up using hogs, as time goes by and as seems fit, these
67 * can be moved over to being controlled by respective device.
69 pinctrl-names = "default";
70 pinctrl-0 = <&ipgpio_hrefv60_mode>,
71 <&accel_hrefv60_mode>,
72 <&magneto_hrefv60_mode>,
76 <&force_hrefv60_mode>,
77 <&dipro_hrefv60_mode>,
78 <&vaudio_hf_hrefv60_mode>,
81 <&touch_hrefv60_mode>;
84 /* SD card detect GPIO pin, extend default state */
85 sdi0_default_mode: sdi0_default {
86 default_hrefv60_cfg1 {
87 ste,pins = "GPIO95_E8";
88 ste,config = <&gpio_in_pu>;
94 * XENON Flashgun on image processor GPIO (controlled from image
95 * processor firmware), mux in these image processor GPIO lines 0
96 * (XENON_FLASH_ID), 1 (XENON_READY) and there is an assistant
97 * LED on IP GPIO 4 (XENON_EN2) on altfunction C, that need bias
98 * from GPIO21 so pull up 0, 1 and drive 4 and GPIO21 low as output.
100 ipgpio_hrefv60_mode: ipgpio_hrefv60 {
102 ste,function = "ipgpio";
103 ste,pins = "ipgpio0_c_1", "ipgpio1_c_1", "ipgpio4_c_1";
106 ste,pins = "GPIO6_AF6", "GPIO7_AG5";
107 ste,config = <&in_pu>;
110 ste,pins = "GPIO21_AB3";
111 ste,config = <&gpio_out_lo>;
114 ste,pins = "GPIO64_F3";
115 ste,config = <&out_lo>;
120 accel_hrefv60_mode: accel_hrefv60 {
121 /* Accelerometer interrupt lines 1 & 2 */
123 ste,pins = "GPIO82_C1", "GPIO83_D3";
124 ste,config = <&gpio_in_pu>;
129 magneto_hrefv60_mode: magneto_hrefv60 {
130 /* Magnetometer uses GPIO 31 and 32, pull these up/down respectively */
132 ste,pins = "GPIO31_V3";
133 ste,config = <&gpio_in_pu>;
136 ste,pins = "GPIO32_V2";
137 ste,config = <&gpio_in_pd>;
143 * Drive D19-D23 for the ETM PTM trace interface low,
144 * (presumably pins are unconnected therefore grounded here,
145 * the "other alt C1" setting enables these pins)
147 etm_hrefv60_mode: etm_hrefv60 {
155 ste,config = <&gpio_out_lo>;
160 nahj_hrefv60_mode: nahj_hrefv60 {
161 /* NAHJ CTRL on GPIO76 to low, CTRL_INV on GPIO216 to high */
163 ste,pins = "GPIO76_J2";
164 ste,config = <&gpio_out_lo>;
167 ste,pins = "GPIO216_AG12";
168 ste,config = <&gpio_out_hi>;
173 nfc_hrefv60_mode: nfc_hrefv60 {
174 /* NFC ENA and RESET to low, pulldown IRQ line */
177 "GPIO77_H1", /* NFC_ENA */
178 "GPIO142_C11"; /* NFC_RESET */
179 ste,config = <&gpio_out_lo>;
182 ste,pins = "GPIO144_B13"; /* NFC_IRQ */
183 ste,config = <&gpio_in_pd>;
188 force_hrefv60_mode: force_hrefv60 {
190 ste,pins = "GPIO91_B6"; /* FORCE_SENSING_INT */
191 ste,config = <&gpio_in_pu>;
195 "GPIO92_D6", /* FORCE_SENSING_RST */
196 "GPIO97_D9"; /* FORCE_SENSING_WU */
197 ste,config = <&gpio_out_lo>;
202 dipro_hrefv60_mode: dipro_hrefv60 {
204 ste,pins = "GPIO139_C9"; /* DIPRO_INT */
205 ste,config = <&gpio_in_pu>;
210 vaudio_hf_hrefv60_mode: vaudio_hf_hrefv60 {
211 /* Audio Amplifier HF enable GPIO */
213 ste,pins = "GPIO149_B14"; /* VAUDIO_HF_EN, enable MAX8968 */
214 ste,config = <&gpio_out_hi>;
219 gbf_hrefv60_mode: gbf_hrefv60 {
221 * GBF (GPS, Bluetooth, FM-radio) interface,
222 * pull low to reset state
225 ste,pins = "GPIO171_D23"; /* GBF_ENA_RESET */
226 ste,config = <&gpio_out_lo>;
231 hdtv_hrefv60_mode: hdtv_hrefv60 {
232 /* MSP : HDTV INTERFACE GPIO line */
234 ste,pins = "GPIO192_AJ27";
235 ste,config = <&gpio_in_pd>;
240 touch_hrefv60_mode: touch_hrefv60 {
242 * Touch screen uses GPIO 143 for RST1, GPIO 146 for RST2 and
243 * GPIO 67 for interrupts. Pull-up the IRQ line and drive both
247 ste,pins = "GPIO143_D12", "GPIO146_D13";
248 ste,config = <&gpio_out_lo>;
251 ste,pins = "GPIO67_G2";
252 ste,config = <&gpio_in_pu>;
257 lcd_hrefv60_mode: lcd_hrefv60 {
259 * Display Interface 1 uses GPIO 65 for RST (reset).
260 * Display Interface 2 uses GPIO 66 for RST (reset).
261 * Drive DISP1 reset high (not reset), driver DISP2 reset low (reset)
264 ste,pins ="GPIO65_F1";
265 ste,config = <&gpio_out_hi>;
268 ste,pins ="GPIO66_G3";
269 ste,config = <&gpio_out_lo>;