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-ab8500.dtsi"
14 #include "ste-href.dtsi"
17 model = "ST-Ericsson HREF (v60+) platform with Device Tree";
18 compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
21 // External Micro SD slot
23 cd-gpios = <&gpio2 31 0x4>; // 95
26 vmmci: regulator-gpio {
27 gpios = <&gpio0 5 0x4>;
28 enable-gpio = <&gpio5 9 0x4>;
33 * Set this up using hogs, as time goes by and as seems fit, these
34 * can be moved over to being controlled by respective device.
36 pinctrl-names = "default";
37 pinctrl-0 = <&ipgpio_hrefv60_mode>,
41 <&force_hrefv60_mode>,
42 <&dipro_hrefv60_mode>,
43 <&vaudio_hf_hrefv60_mode>,
46 <&touch_hrefv60_mode>;
49 /* SD card detect GPIO pin, extend default state */
50 sdi0_default_mode: sdi0_default {
51 default_hrefv60_cfg1 {
53 ste,config = <&gpio_in_pu>;
59 * XENON Flashgun on image processor GPIO (controlled from image
60 * processor firmware), mux in these image processor GPIO lines 0
61 * (XENON_FLASH_ID), 1 (XENON_READY) and there is an assistant
62 * LED on IP GPIO 4 (XENON_EN2) on altfunction C, that need bias
63 * from GPIO21 so pull up 0, 1 and drive 4 and GPIO21 low as output.
65 ipgpio_hrefv60_mode: ipgpio_hrefv60 {
68 groups = "ipgpio0_c_1", "ipgpio1_c_1", "ipgpio4_c_1";
71 pins = "GPIO6_AF6", "GPIO7_AG5";
72 ste,config = <&in_pu>;
76 ste,config = <&gpio_out_lo>;
80 ste,config = <&out_lo>;
86 * Drive D19-D23 for the ETM PTM trace interface low,
87 * (presumably pins are unconnected therefore grounded here,
88 * the "other alt C1" setting enables these pins)
90 etm_hrefv60_mode: etm_hrefv60 {
98 ste,config = <&gpio_out_lo>;
103 nahj_hrefv60_mode: nahj_hrefv60 {
104 /* NAHJ CTRL on GPIO76 to low, CTRL_INV on GPIO216 to high */
107 ste,config = <&gpio_out_lo>;
110 pins = "GPIO216_AG12";
111 ste,config = <&gpio_out_hi>;
116 nfc_hrefv60_mode: nfc_hrefv60 {
117 /* NFC ENA and RESET to low, pulldown IRQ line */
120 "GPIO77_H1", /* NFC_ENA */
121 "GPIO142_C11"; /* NFC_RESET */
122 ste,config = <&gpio_out_lo>;
125 pins = "GPIO144_B13"; /* NFC_IRQ */
126 ste,config = <&gpio_in_pd>;
131 force_hrefv60_mode: force_hrefv60 {
133 pins = "GPIO91_B6"; /* FORCE_SENSING_INT */
134 ste,config = <&gpio_in_pu>;
138 "GPIO92_D6", /* FORCE_SENSING_RST */
139 "GPIO97_D9"; /* FORCE_SENSING_WU */
140 ste,config = <&gpio_out_lo>;
145 dipro_hrefv60_mode: dipro_hrefv60 {
147 pins = "GPIO139_C9"; /* DIPRO_INT */
148 ste,config = <&gpio_in_pu>;
153 vaudio_hf_hrefv60_mode: vaudio_hf_hrefv60 {
154 /* Audio Amplifier HF enable GPIO */
156 pins = "GPIO149_B14"; /* VAUDIO_HF_EN, enable MAX8968 */
157 ste,config = <&gpio_out_hi>;
162 gbf_hrefv60_mode: gbf_hrefv60 {
164 * GBF (GPS, Bluetooth, FM-radio) interface,
165 * pull low to reset state
168 pins = "GPIO171_D23"; /* GBF_ENA_RESET */
169 ste,config = <&gpio_out_lo>;
174 hdtv_hrefv60_mode: hdtv_hrefv60 {
175 /* MSP : HDTV INTERFACE GPIO line */
177 pins = "GPIO192_AJ27";
178 ste,config = <&gpio_in_pd>;
183 touch_hrefv60_mode: touch_hrefv60 {
185 * Touch screen uses GPIO 143 for RST1, GPIO 146 for RST2 and
186 * GPIO 67 for interrupts. Pull-up the IRQ line and drive both
190 pins = "GPIO143_D12", "GPIO146_D13";
191 ste,config = <&gpio_out_lo>;
195 ste,config = <&gpio_in_pu>;
200 lcd_hrefv60_mode: lcd_hrefv60 {
202 * Display Interface 1 uses GPIO 65 for RST (reset).
203 * Display Interface 2 uses GPIO 66 for RST (reset).
204 * Drive DISP1 reset high (not reset), driver DISP2 reset low (reset)
208 ste,config = <&gpio_out_hi>;
212 ste,config = <&gpio_out_lo>;