blob: 5d8b7f8ced1b62caa84fbd50186725ca49536948 [file] [log] [blame]
Lee Jonesdd06faf2012-09-26 17:08:35 +01001/*
2 * Copyright 2012 ST-Ericsson AB
3 *
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:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
Linus Walleij01dc9092013-10-02 15:42:59 +020010 *
11 * Device Tree for the HREF+ prior to the v60 variant.
Lee Jonesdd06faf2012-09-26 17:08:35 +010012 */
13
Linus Walleij2ce05a12013-08-07 15:37:52 +020014#include "ste-dbx5x0.dtsi"
Linus Walleij83200622014-02-03 14:32:20 +010015#include "ste-href-ab8500.dtsi"
Linus Walleij2ce05a12013-08-07 15:37:52 +020016#include "ste-href.dtsi"
Lee Jonesdd06faf2012-09-26 17:08:35 +010017
18/ {
Lee Jones6b8db132012-09-26 17:09:17 +010019 gpio_keys {
20 button@1 {
21 gpios = <&tc3589x_gpio 7 0x4>;
22 };
23 };
24
Gabriel Fernandezb1ba1432013-03-01 14:38:07 +010025 soc {
Lee Jonesdd06faf2012-09-26 17:08:35 +010026 i2c@80004000 {
27 tps61052@33 {
28 compatible = "tps61052";
29 reg = <0x33>;
30 };
Linus Walleijd62407b2013-10-02 16:03:31 +020031
Linus Walleij7e0a51a2013-10-15 23:00:10 +020032 tc35892@42 {
33 compatible = "toshiba,tc35892";
Linus Walleijd62407b2013-10-02 16:03:31 +020034 reg = <0x42>;
35 interrupt-parent = <&gpio6>;
36 interrupts = <25 IRQ_TYPE_EDGE_RISING>;
Linus Walleija45cb692013-11-13 14:57:49 +010037 pinctrl-names = "default";
38 pinctrl-0 = <&tc35892_hrefprev60_mode>;
Linus Walleijd62407b2013-10-02 16:03:31 +020039
40 interrupt-controller;
Linus Walleij7e0a51a2013-10-15 23:00:10 +020041 #interrupt-cells = <1>;
Linus Walleijd62407b2013-10-02 16:03:31 +020042
43 tc3589x_gpio: tc3589x_gpio {
44 compatible = "tc3589x-gpio";
Linus Walleij7e0a51a2013-10-15 23:00:10 +020045 interrupts = <0>;
Linus Walleijd62407b2013-10-02 16:03:31 +020046
47 interrupt-controller;
48 #interrupt-cells = <2>;
49 gpio-controller;
50 #gpio-cells = <2>;
51 };
52 };
Lee Jonesdd06faf2012-09-26 17:08:35 +010053 };
Lee Jonescbebba72012-09-28 14:41:06 +010054
Linus Walleij38656822013-11-14 10:27:40 +010055 ssp@80002000 {
56 /*
57 * On the first generation boards, this SSP/SPI port was connected
58 * to the AB8500.
59 */
60 pinctrl-names = "default";
61 pinctrl-0 = <&ssp0_hrefprev60_mode>;
62 };
63
Ulf Hanssona987a3a2013-12-12 14:31:36 +010064 // External Micro SD slot
65 sdi0_per1@80126000 {
66 cd-gpios = <&tc3589x_gpio 3 0x4>;
67 };
68
Lee Jones8ad49c62012-11-15 13:07:02 +000069 vmmci: regulator-gpio {
70 gpios = <&tc3589x_gpio 18 0x4>;
Lee Jones75766002012-12-06 15:11:53 +000071 enable-gpio = <&tc3589x_gpio 17 0x4>;
Lee Jones8ad49c62012-11-15 13:07:02 +000072 };
Linus Walleij1e662352013-11-13 13:46:57 +010073
74 pinctrl {
Linus Walleij3ae27502013-11-15 10:07:48 +010075 /* Set this up using hogs */
76 pinctrl-names = "default";
77 pinctrl-0 = <&ipgpio_hrefprev60_mode>;
78
Linus Walleij38656822013-11-14 10:27:40 +010079 ssp0 {
80 ssp0_hrefprev60_mode: ssp0_hrefprev60_default {
81 hrefprev60_mux {
Linus Walleij68d41f22014-09-29 17:21:56 +020082 function = "ssp0";
83 groups = "ssp0_a_1";
Linus Walleij38656822013-11-14 10:27:40 +010084 };
85 hrefprev60_cfg1 {
86 ste,pins = "GPIO145_C13"; /* RXD */
87 ste,config = <&in_pd>;
88 };
89
90 };
91 };
Linus Walleij1e662352013-11-13 13:46:57 +010092 sdi0 {
93 /* This additional pin needed on early MOP500 and HREFs previous to v60 */
94 sdi0_default_mode: sdi0_default {
95 hrefprev60_mux {
Linus Walleij68d41f22014-09-29 17:21:56 +020096 function = "mc0";
97 groups = "mc0dat31dir_a_1";
Linus Walleij1e662352013-11-13 13:46:57 +010098 };
99 hrefprev60_cfg1 {
100 ste,pins = "GPIO21_AB3"; /* DAT31DIR */
101 ste,config = <&out_hi>;
102 };
103
104 };
105 };
Linus Walleija45cb692013-11-13 14:57:49 +0100106 tc35892 {
107 tc35892_hrefprev60_mode: tc35892_hrefprev60 {
108 hrefprev60_cfg {
109 ste,pins = "GPIO217_AH12";
110 ste,config = <&gpio_in_pu>;
111 };
112 };
113 };
Linus Walleij3ae27502013-11-15 10:07:48 +0100114 ipgpio {
115 ipgpio_hrefprev60_mode: ipgpio_hrefprev60 {
116 hrefprev60_mux {
Linus Walleij68d41f22014-09-29 17:21:56 +0200117 function = "ipgpio";
118 groups = "ipgpio0_c_1", "ipgpio1_c_1";
Linus Walleij3ae27502013-11-15 10:07:48 +0100119 };
120 hrefprev60_cfg1 {
121 ste,pins = "GPIO6_AF6", "GPIO7_AG5";
122 ste,config = <&in_pu>;
123 };
124 };
125 };
Linus Walleij1e662352013-11-13 13:46:57 +0100126 };
Lee Jonesdd06faf2012-09-26 17:08:35 +0100127 };
128};