Lee Jones | dd06faf | 2012-09-26 17:08:35 +0100 | [diff] [blame] | 1 | /* |
| 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 Walleij | 01dc909 | 2013-10-02 15:42:59 +0200 | [diff] [blame] | 10 | * |
| 11 | * Device Tree for the HREF+ prior to the v60 variant. |
Lee Jones | dd06faf | 2012-09-26 17:08:35 +0100 | [diff] [blame] | 12 | */ |
| 13 | |
Linus Walleij | 2ce05a1 | 2013-08-07 15:37:52 +0200 | [diff] [blame] | 14 | #include "ste-dbx5x0.dtsi" |
Linus Walleij | 8320062 | 2014-02-03 14:32:20 +0100 | [diff] [blame] | 15 | #include "ste-href-ab8500.dtsi" |
Linus Walleij | 2ce05a1 | 2013-08-07 15:37:52 +0200 | [diff] [blame] | 16 | #include "ste-href.dtsi" |
Lee Jones | dd06faf | 2012-09-26 17:08:35 +0100 | [diff] [blame] | 17 | |
| 18 | / { |
Lee Jones | 6b8db13 | 2012-09-26 17:09:17 +0100 | [diff] [blame] | 19 | gpio_keys { |
| 20 | button@1 { |
| 21 | gpios = <&tc3589x_gpio 7 0x4>; |
| 22 | }; |
| 23 | }; |
| 24 | |
Gabriel Fernandez | b1ba143 | 2013-03-01 14:38:07 +0100 | [diff] [blame] | 25 | soc { |
Linus Walleij | 1d8aca9 | 2015-07-08 15:15:22 +0200 | [diff] [blame] | 26 | /* Enable UART1 on this board */ |
| 27 | uart@80121000 { |
| 28 | status = "okay"; |
| 29 | }; |
| 30 | |
Lee Jones | dd06faf | 2012-09-26 17:08:35 +0100 | [diff] [blame] | 31 | i2c@80004000 { |
| 32 | tps61052@33 { |
| 33 | compatible = "tps61052"; |
| 34 | reg = <0x33>; |
| 35 | }; |
Linus Walleij | d62407b | 2013-10-02 16:03:31 +0200 | [diff] [blame] | 36 | |
Linus Walleij | 7e0a51a | 2013-10-15 23:00:10 +0200 | [diff] [blame] | 37 | tc35892@42 { |
| 38 | compatible = "toshiba,tc35892"; |
Linus Walleij | d62407b | 2013-10-02 16:03:31 +0200 | [diff] [blame] | 39 | reg = <0x42>; |
| 40 | interrupt-parent = <&gpio6>; |
| 41 | interrupts = <25 IRQ_TYPE_EDGE_RISING>; |
Linus Walleij | a45cb69 | 2013-11-13 14:57:49 +0100 | [diff] [blame] | 42 | pinctrl-names = "default"; |
| 43 | pinctrl-0 = <&tc35892_hrefprev60_mode>; |
Linus Walleij | d62407b | 2013-10-02 16:03:31 +0200 | [diff] [blame] | 44 | |
| 45 | interrupt-controller; |
Linus Walleij | 7e0a51a | 2013-10-15 23:00:10 +0200 | [diff] [blame] | 46 | #interrupt-cells = <1>; |
Linus Walleij | d62407b | 2013-10-02 16:03:31 +0200 | [diff] [blame] | 47 | |
| 48 | tc3589x_gpio: tc3589x_gpio { |
| 49 | compatible = "tc3589x-gpio"; |
Linus Walleij | 7e0a51a | 2013-10-15 23:00:10 +0200 | [diff] [blame] | 50 | interrupts = <0>; |
Linus Walleij | d62407b | 2013-10-02 16:03:31 +0200 | [diff] [blame] | 51 | |
| 52 | interrupt-controller; |
| 53 | #interrupt-cells = <2>; |
| 54 | gpio-controller; |
| 55 | #gpio-cells = <2>; |
| 56 | }; |
| 57 | }; |
Lee Jones | dd06faf | 2012-09-26 17:08:35 +0100 | [diff] [blame] | 58 | }; |
Lee Jones | cbebba7 | 2012-09-28 14:41:06 +0100 | [diff] [blame] | 59 | |
Linus Walleij | 3865682 | 2013-11-14 10:27:40 +0100 | [diff] [blame] | 60 | ssp@80002000 { |
| 61 | /* |
| 62 | * On the first generation boards, this SSP/SPI port was connected |
| 63 | * to the AB8500. |
| 64 | */ |
| 65 | pinctrl-names = "default"; |
| 66 | pinctrl-0 = <&ssp0_hrefprev60_mode>; |
| 67 | }; |
| 68 | |
Ulf Hansson | a987a3a | 2013-12-12 14:31:36 +0100 | [diff] [blame] | 69 | // External Micro SD slot |
| 70 | sdi0_per1@80126000 { |
| 71 | cd-gpios = <&tc3589x_gpio 3 0x4>; |
| 72 | }; |
| 73 | |
Lee Jones | 8ad49c6 | 2012-11-15 13:07:02 +0000 | [diff] [blame] | 74 | vmmci: regulator-gpio { |
| 75 | gpios = <&tc3589x_gpio 18 0x4>; |
Lee Jones | 7576600 | 2012-12-06 15:11:53 +0000 | [diff] [blame] | 76 | enable-gpio = <&tc3589x_gpio 17 0x4>; |
Lee Jones | 8ad49c6 | 2012-11-15 13:07:02 +0000 | [diff] [blame] | 77 | }; |
Linus Walleij | 1e66235 | 2013-11-13 13:46:57 +0100 | [diff] [blame] | 78 | |
| 79 | pinctrl { |
Linus Walleij | 3ae2750 | 2013-11-15 10:07:48 +0100 | [diff] [blame] | 80 | /* Set this up using hogs */ |
| 81 | pinctrl-names = "default"; |
| 82 | pinctrl-0 = <&ipgpio_hrefprev60_mode>; |
| 83 | |
Linus Walleij | 3865682 | 2013-11-14 10:27:40 +0100 | [diff] [blame] | 84 | ssp0 { |
| 85 | ssp0_hrefprev60_mode: ssp0_hrefprev60_default { |
| 86 | hrefprev60_mux { |
Linus Walleij | 68d41f2 | 2014-09-29 17:21:56 +0200 | [diff] [blame] | 87 | function = "ssp0"; |
| 88 | groups = "ssp0_a_1"; |
Linus Walleij | 3865682 | 2013-11-14 10:27:40 +0100 | [diff] [blame] | 89 | }; |
| 90 | hrefprev60_cfg1 { |
Linus Walleij | 1637d48 | 2014-09-30 12:16:25 +0200 | [diff] [blame] | 91 | pins = "GPIO145_C13"; /* RXD */ |
Linus Walleij | 3865682 | 2013-11-14 10:27:40 +0100 | [diff] [blame] | 92 | ste,config = <&in_pd>; |
| 93 | }; |
| 94 | |
| 95 | }; |
| 96 | }; |
Linus Walleij | 1e66235 | 2013-11-13 13:46:57 +0100 | [diff] [blame] | 97 | sdi0 { |
| 98 | /* This additional pin needed on early MOP500 and HREFs previous to v60 */ |
| 99 | sdi0_default_mode: sdi0_default { |
| 100 | hrefprev60_mux { |
Linus Walleij | 68d41f2 | 2014-09-29 17:21:56 +0200 | [diff] [blame] | 101 | function = "mc0"; |
| 102 | groups = "mc0dat31dir_a_1"; |
Linus Walleij | 1e66235 | 2013-11-13 13:46:57 +0100 | [diff] [blame] | 103 | }; |
| 104 | hrefprev60_cfg1 { |
Linus Walleij | 1637d48 | 2014-09-30 12:16:25 +0200 | [diff] [blame] | 105 | pins = "GPIO21_AB3"; /* DAT31DIR */ |
Linus Walleij | 1e66235 | 2013-11-13 13:46:57 +0100 | [diff] [blame] | 106 | ste,config = <&out_hi>; |
| 107 | }; |
| 108 | |
| 109 | }; |
| 110 | }; |
Linus Walleij | a45cb69 | 2013-11-13 14:57:49 +0100 | [diff] [blame] | 111 | tc35892 { |
| 112 | tc35892_hrefprev60_mode: tc35892_hrefprev60 { |
| 113 | hrefprev60_cfg { |
Linus Walleij | 1637d48 | 2014-09-30 12:16:25 +0200 | [diff] [blame] | 114 | pins = "GPIO217_AH12"; |
Linus Walleij | a45cb69 | 2013-11-13 14:57:49 +0100 | [diff] [blame] | 115 | ste,config = <&gpio_in_pu>; |
| 116 | }; |
| 117 | }; |
| 118 | }; |
Linus Walleij | 3ae2750 | 2013-11-15 10:07:48 +0100 | [diff] [blame] | 119 | ipgpio { |
| 120 | ipgpio_hrefprev60_mode: ipgpio_hrefprev60 { |
| 121 | hrefprev60_mux { |
Linus Walleij | 68d41f2 | 2014-09-29 17:21:56 +0200 | [diff] [blame] | 122 | function = "ipgpio"; |
| 123 | groups = "ipgpio0_c_1", "ipgpio1_c_1"; |
Linus Walleij | 3ae2750 | 2013-11-15 10:07:48 +0100 | [diff] [blame] | 124 | }; |
| 125 | hrefprev60_cfg1 { |
Linus Walleij | 1637d48 | 2014-09-30 12:16:25 +0200 | [diff] [blame] | 126 | pins = "GPIO6_AF6", "GPIO7_AG5"; |
Linus Walleij | 3ae2750 | 2013-11-15 10:07:48 +0100 | [diff] [blame] | 127 | ste,config = <&in_pu>; |
| 128 | }; |
| 129 | }; |
| 130 | }; |
Linus Walleij | 1e66235 | 2013-11-13 13:46:57 +0100 | [diff] [blame] | 131 | }; |
Lee Jones | dd06faf | 2012-09-26 17:08:35 +0100 | [diff] [blame] | 132 | }; |
| 133 | }; |