2012-08-30 14:53:39 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2012 ST-Ericsson AB
|
|
|
|
*
|
|
|
|
* The code contained herein is licensed under the GNU General Public
|
|
|
|
* License. You may obtain a copy of the GNU General Public License
|
|
|
|
* Version 2 or later at the following locations:
|
|
|
|
*
|
|
|
|
* http://www.opensource.org/licenses/gpl-license.html
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*/
|
|
|
|
|
2013-08-07 13:37:52 +00:00
|
|
|
#include "ste-dbx5x0.dtsi"
|
2014-02-03 13:32:20 +00:00
|
|
|
#include "ste-href-ab8500.dtsi"
|
2013-08-07 13:37:52 +00:00
|
|
|
#include "ste-href.dtsi"
|
2012-08-30 14:53:39 +00:00
|
|
|
|
|
|
|
/ {
|
2012-09-26 12:29:09 +00:00
|
|
|
model = "ST-Ericsson HREF (v60+) platform with Device Tree";
|
2012-10-15 09:07:55 +00:00
|
|
|
compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
|
2012-09-26 16:09:17 +00:00
|
|
|
|
2013-03-01 13:38:07 +00:00
|
|
|
soc {
|
2012-09-14 14:27:41 +00:00
|
|
|
// External Micro SD slot
|
|
|
|
sdi0_per1@80126000 {
|
2013-10-02 14:12:52 +00:00
|
|
|
cd-gpios = <&gpio2 31 0x4>; // 95
|
2012-09-14 14:27:41 +00:00
|
|
|
};
|
2013-11-13 12:46:57 +00:00
|
|
|
|
2013-12-12 13:31:37 +00:00
|
|
|
vmmci: regulator-gpio {
|
|
|
|
gpios = <&gpio0 5 0x4>;
|
|
|
|
enable-gpio = <&gpio5 9 0x4>;
|
|
|
|
};
|
|
|
|
|
2013-11-13 12:46:57 +00:00
|
|
|
pinctrl {
|
2013-11-15 14:50:11 +00:00
|
|
|
/*
|
|
|
|
* Set this up using hogs, as time goes by and as seems fit, these
|
|
|
|
* can be moved over to being controlled by respective device.
|
|
|
|
*/
|
2013-11-15 13:44:59 +00:00
|
|
|
pinctrl-names = "default";
|
2013-11-15 14:50:11 +00:00
|
|
|
pinctrl-0 = <&ipgpio_hrefv60_mode>,
|
|
|
|
<&etm_hrefv60_mode>,
|
|
|
|
<&nahj_hrefv60_mode>,
|
|
|
|
<&nfc_hrefv60_mode>,
|
|
|
|
<&force_hrefv60_mode>,
|
|
|
|
<&dipro_hrefv60_mode>,
|
|
|
|
<&vaudio_hf_hrefv60_mode>,
|
|
|
|
<&gbf_hrefv60_mode>,
|
|
|
|
<&hdtv_hrefv60_mode>,
|
|
|
|
<&touch_hrefv60_mode>;
|
2013-11-15 13:44:59 +00:00
|
|
|
|
2013-11-13 12:46:57 +00:00
|
|
|
sdi0 {
|
|
|
|
/* SD card detect GPIO pin, extend default state */
|
|
|
|
sdi0_default_mode: sdi0_default {
|
|
|
|
default_hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO95_E8";
|
2013-11-13 12:46:57 +00:00
|
|
|
ste,config = <&gpio_in_pu>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2013-11-15 13:44:59 +00:00
|
|
|
ipgpio {
|
|
|
|
/*
|
|
|
|
* XENON Flashgun on image processor GPIO (controlled from image
|
|
|
|
* processor firmware), mux in these image processor GPIO lines 0
|
|
|
|
* (XENON_FLASH_ID), 1 (XENON_READY) and there is an assistant
|
|
|
|
* LED on IP GPIO 4 (XENON_EN2) on altfunction C, that need bias
|
|
|
|
* from GPIO21 so pull up 0, 1 and drive 4 and GPIO21 low as output.
|
|
|
|
*/
|
|
|
|
ipgpio_hrefv60_mode: ipgpio_hrefv60 {
|
|
|
|
hrefv60_mux {
|
2014-09-29 15:21:56 +00:00
|
|
|
function = "ipgpio";
|
|
|
|
groups = "ipgpio0_c_1", "ipgpio1_c_1", "ipgpio4_c_1";
|
2013-11-15 13:44:59 +00:00
|
|
|
};
|
|
|
|
hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO6_AF6", "GPIO7_AG5";
|
2013-11-15 13:44:59 +00:00
|
|
|
ste,config = <&in_pu>;
|
|
|
|
};
|
|
|
|
hrefv60_cfg2 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO21_AB3";
|
2013-11-15 13:44:59 +00:00
|
|
|
ste,config = <&gpio_out_lo>;
|
|
|
|
};
|
|
|
|
hrefv60_cfg3 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO64_F3";
|
2013-11-15 13:44:59 +00:00
|
|
|
ste,config = <&out_lo>;
|
|
|
|
};
|
2013-11-15 14:50:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
etm {
|
|
|
|
/*
|
|
|
|
* Drive D19-D23 for the ETM PTM trace interface low,
|
|
|
|
* (presumably pins are unconnected therefore grounded here,
|
|
|
|
* the "other alt C1" setting enables these pins)
|
|
|
|
*/
|
|
|
|
etm_hrefv60_mode: etm_hrefv60 {
|
|
|
|
hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins =
|
2013-11-15 14:50:11 +00:00
|
|
|
"GPIO70_G5",
|
|
|
|
"GPIO71_G4",
|
|
|
|
"GPIO72_H4",
|
|
|
|
"GPIO73_H3",
|
|
|
|
"GPIO74_J3";
|
|
|
|
ste,config = <&gpio_out_lo>;
|
|
|
|
};
|
2013-11-15 13:44:59 +00:00
|
|
|
};
|
|
|
|
};
|
2013-11-15 14:50:11 +00:00
|
|
|
nahj {
|
|
|
|
nahj_hrefv60_mode: nahj_hrefv60 {
|
|
|
|
/* NAHJ CTRL on GPIO76 to low, CTRL_INV on GPIO216 to high */
|
|
|
|
hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO76_J2";
|
2013-11-15 14:50:11 +00:00
|
|
|
ste,config = <&gpio_out_lo>;
|
|
|
|
};
|
|
|
|
hrefv60_cfg2 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO216_AG12";
|
2013-11-15 14:50:11 +00:00
|
|
|
ste,config = <&gpio_out_hi>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
nfc {
|
|
|
|
nfc_hrefv60_mode: nfc_hrefv60 {
|
|
|
|
/* NFC ENA and RESET to low, pulldown IRQ line */
|
|
|
|
hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins =
|
2013-11-15 14:50:11 +00:00
|
|
|
"GPIO77_H1", /* NFC_ENA */
|
|
|
|
"GPIO142_C11"; /* NFC_RESET */
|
|
|
|
ste,config = <&gpio_out_lo>;
|
|
|
|
};
|
|
|
|
hrefv60_cfg2 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO144_B13"; /* NFC_IRQ */
|
2013-11-15 14:50:11 +00:00
|
|
|
ste,config = <&gpio_in_pd>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
force {
|
|
|
|
force_hrefv60_mode: force_hrefv60 {
|
|
|
|
hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO91_B6"; /* FORCE_SENSING_INT */
|
2013-11-15 14:50:11 +00:00
|
|
|
ste,config = <&gpio_in_pu>;
|
|
|
|
};
|
|
|
|
hrefv60_cfg2 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins =
|
2013-11-15 14:50:11 +00:00
|
|
|
"GPIO92_D6", /* FORCE_SENSING_RST */
|
|
|
|
"GPIO97_D9"; /* FORCE_SENSING_WU */
|
|
|
|
ste,config = <&gpio_out_lo>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
dipro {
|
|
|
|
dipro_hrefv60_mode: dipro_hrefv60 {
|
|
|
|
hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO139_C9"; /* DIPRO_INT */
|
2013-11-15 14:50:11 +00:00
|
|
|
ste,config = <&gpio_in_pu>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
vaudio_hf {
|
|
|
|
vaudio_hf_hrefv60_mode: vaudio_hf_hrefv60 {
|
|
|
|
/* Audio Amplifier HF enable GPIO */
|
|
|
|
hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO149_B14"; /* VAUDIO_HF_EN, enable MAX8968 */
|
2013-11-15 14:50:11 +00:00
|
|
|
ste,config = <&gpio_out_hi>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gbf {
|
|
|
|
gbf_hrefv60_mode: gbf_hrefv60 {
|
|
|
|
/*
|
|
|
|
* GBF (GPS, Bluetooth, FM-radio) interface,
|
|
|
|
* pull low to reset state
|
|
|
|
*/
|
|
|
|
hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO171_D23"; /* GBF_ENA_RESET */
|
2013-11-15 14:50:11 +00:00
|
|
|
ste,config = <&gpio_out_lo>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
hdtv {
|
|
|
|
hdtv_hrefv60_mode: hdtv_hrefv60 {
|
|
|
|
/* MSP : HDTV INTERFACE GPIO line */
|
|
|
|
hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO192_AJ27";
|
2013-11-15 14:50:11 +00:00
|
|
|
ste,config = <&gpio_in_pd>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
touch {
|
|
|
|
touch_hrefv60_mode: touch_hrefv60 {
|
|
|
|
/*
|
|
|
|
* Touch screen uses GPIO 143 for RST1, GPIO 146 for RST2 and
|
|
|
|
* GPIO 67 for interrupts. Pull-up the IRQ line and drive both
|
|
|
|
* reset signals low.
|
|
|
|
*/
|
|
|
|
hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO143_D12", "GPIO146_D13";
|
2013-11-15 14:50:11 +00:00
|
|
|
ste,config = <&gpio_out_lo>;
|
|
|
|
};
|
|
|
|
hrefv60_cfg2 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO67_G2";
|
2013-11-15 14:50:11 +00:00
|
|
|
ste,config = <&gpio_in_pu>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2013-11-15 13:55:30 +00:00
|
|
|
mcde {
|
|
|
|
lcd_hrefv60_mode: lcd_hrefv60 {
|
|
|
|
/*
|
|
|
|
* Display Interface 1 uses GPIO 65 for RST (reset).
|
|
|
|
* Display Interface 2 uses GPIO 66 for RST (reset).
|
|
|
|
* Drive DISP1 reset high (not reset), driver DISP2 reset low (reset)
|
|
|
|
*/
|
|
|
|
hrefv60_cfg1 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins ="GPIO65_F1";
|
2013-11-15 13:55:30 +00:00
|
|
|
ste,config = <&gpio_out_hi>;
|
|
|
|
};
|
|
|
|
hrefv60_cfg2 {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins ="GPIO66_G3";
|
2013-11-15 13:55:30 +00:00
|
|
|
ste,config = <&gpio_out_lo>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2013-11-13 12:46:57 +00:00
|
|
|
};
|
2012-09-28 13:41:06 +00:00
|
|
|
};
|
2012-08-30 14:53:39 +00:00
|
|
|
};
|