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