Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +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 |
| 10 | */ |
| 11 | |
Linus Walleij | 90c4025 | 2013-05-29 19:15:39 +0200 | [diff] [blame] | 12 | #include <dt-bindings/interrupt-controller/irq.h> |
Linus Walleij | 2ce05a1 | 2013-08-07 15:37:52 +0200 | [diff] [blame] | 13 | #include "ste-dbx5x0.dtsi" |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | memory { |
| 17 | reg = <0x00000000 0x20000000>; |
| 18 | }; |
| 19 | |
Lee Jones | 6b8db13 | 2012-09-26 17:09:17 +0100 | [diff] [blame] | 20 | gpio_keys { |
| 21 | compatible = "gpio-keys"; |
| 22 | #address-cells = <1>; |
| 23 | #size-cells = <0>; |
| 24 | |
| 25 | button@1 { |
| 26 | linux,code = <11>; |
| 27 | label = "SFH7741 Proximity Sensor"; |
| 28 | }; |
| 29 | }; |
| 30 | |
Gabriel Fernandez | b1ba143 | 2013-03-01 14:38:07 +0100 | [diff] [blame] | 31 | soc { |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 32 | uart@80120000 { |
| 33 | status = "okay"; |
| 34 | }; |
| 35 | |
| 36 | uart@80121000 { |
| 37 | status = "okay"; |
| 38 | }; |
| 39 | |
| 40 | uart@80007000 { |
| 41 | status = "okay"; |
| 42 | }; |
| 43 | |
| 44 | i2c@80004000 { |
| 45 | tc3589x@42 { |
| 46 | compatible = "tc3589x"; |
| 47 | reg = <0x42>; |
| 48 | interrupt-parent = <&gpio6>; |
Linus Walleij | 90c4025 | 2013-05-29 19:15:39 +0200 | [diff] [blame] | 49 | interrupts = <25 IRQ_TYPE_EDGE_RISING>; |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 50 | |
| 51 | interrupt-controller; |
| 52 | #interrupt-cells = <2>; |
| 53 | |
| 54 | tc3589x_gpio: tc3589x_gpio { |
| 55 | compatible = "tc3589x-gpio"; |
Linus Walleij | 90c4025 | 2013-05-29 19:15:39 +0200 | [diff] [blame] | 56 | interrupts = <0 IRQ_TYPE_EDGE_RISING>; |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 57 | |
| 58 | interrupt-controller; |
| 59 | #interrupt-cells = <2>; |
| 60 | gpio-controller; |
| 61 | #gpio-cells = <2>; |
| 62 | }; |
| 63 | }; |
| 64 | }; |
| 65 | |
| 66 | i2c@80128000 { |
Linus Walleij | 2bd7378 | 2013-05-22 10:09:39 +0200 | [diff] [blame] | 67 | lp5521@33 { |
| 68 | compatible = "national,lp5521"; |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 69 | reg = <0x33>; |
Linus Walleij | 2bd7378 | 2013-05-22 10:09:39 +0200 | [diff] [blame] | 70 | label = "lp5521_pri"; |
| 71 | clock-mode = /bits/ 8 <2>; |
| 72 | chan0 { |
| 73 | led-cur = /bits/ 8 <0x2f>; |
| 74 | max-cur = /bits/ 8 <0x5f>; |
Linus Walleij | 385d61c | 2013-09-15 12:01:07 +0200 | [diff] [blame^] | 75 | linux,default-trigger = "heartbeat"; |
Linus Walleij | 2bd7378 | 2013-05-22 10:09:39 +0200 | [diff] [blame] | 76 | }; |
| 77 | chan1 { |
| 78 | led-cur = /bits/ 8 <0x2f>; |
| 79 | max-cur = /bits/ 8 <0x5f>; |
| 80 | }; |
| 81 | chan2 { |
| 82 | led-cur = /bits/ 8 <0x2f>; |
| 83 | max-cur = /bits/ 8 <0x5f>; |
| 84 | }; |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 85 | }; |
Linus Walleij | 2bd7378 | 2013-05-22 10:09:39 +0200 | [diff] [blame] | 86 | lp5521@34 { |
| 87 | compatible = "national,lp5521"; |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 88 | reg = <0x34>; |
Linus Walleij | 2bd7378 | 2013-05-22 10:09:39 +0200 | [diff] [blame] | 89 | label = "lp5521_sec"; |
| 90 | clock-mode = /bits/ 8 <2>; |
| 91 | chan0 { |
| 92 | led-cur = /bits/ 8 <0x2f>; |
| 93 | max-cur = /bits/ 8 <0x5f>; |
| 94 | }; |
| 95 | chan1 { |
| 96 | led-cur = /bits/ 8 <0x2f>; |
| 97 | max-cur = /bits/ 8 <0x5f>; |
| 98 | }; |
| 99 | chan2 { |
| 100 | led-cur = /bits/ 8 <0x2f>; |
| 101 | max-cur = /bits/ 8 <0x5f>; |
| 102 | }; |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 103 | }; |
Linus Walleij | d594224 | 2013-06-04 11:50:32 +0200 | [diff] [blame] | 104 | bh1780@29 { |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 105 | compatible = "rohm,bh1780gli"; |
| 106 | reg = <0x33>; |
| 107 | }; |
| 108 | }; |
| 109 | |
| 110 | // External Micro SD slot |
| 111 | sdi0_per1@80126000 { |
| 112 | arm,primecell-periphid = <0x10480180>; |
Linus Walleij | 90ccde4 | 2013-05-27 13:15:05 +0200 | [diff] [blame] | 113 | max-frequency = <100000000>; |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 114 | bus-width = <4>; |
| 115 | mmc-cap-sd-highspeed; |
| 116 | mmc-cap-mmc-highspeed; |
| 117 | vmmc-supply = <&ab8500_ldo_aux3_reg>; |
Lee Jones | d05b066 | 2012-12-06 15:08:45 +0000 | [diff] [blame] | 118 | vqmmc-supply = <&vmmci>; |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 119 | |
| 120 | cd-gpios = <&tc3589x_gpio 3 0x4>; |
| 121 | |
| 122 | status = "okay"; |
| 123 | }; |
| 124 | |
| 125 | // WLAN SDIO channel |
| 126 | sdi1_per2@80118000 { |
| 127 | arm,primecell-periphid = <0x10480180>; |
Linus Walleij | 90ccde4 | 2013-05-27 13:15:05 +0200 | [diff] [blame] | 128 | max-frequency = <100000000>; |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 129 | bus-width = <4>; |
| 130 | |
| 131 | status = "okay"; |
| 132 | }; |
| 133 | |
| 134 | // PoP:ed eMMC |
| 135 | sdi2_per3@80005000 { |
| 136 | arm,primecell-periphid = <0x10480180>; |
Linus Walleij | 90ccde4 | 2013-05-27 13:15:05 +0200 | [diff] [blame] | 137 | max-frequency = <100000000>; |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 138 | bus-width = <8>; |
| 139 | mmc-cap-mmc-highspeed; |
| 140 | |
| 141 | status = "okay"; |
| 142 | }; |
| 143 | |
| 144 | // On-board eMMC |
| 145 | sdi4_per2@80114000 { |
| 146 | arm,primecell-periphid = <0x10480180>; |
Linus Walleij | 90ccde4 | 2013-05-27 13:15:05 +0200 | [diff] [blame] | 147 | max-frequency = <100000000>; |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 148 | bus-width = <8>; |
| 149 | mmc-cap-mmc-highspeed; |
| 150 | vmmc-supply = <&ab8500_ldo_aux2_reg>; |
| 151 | |
| 152 | status = "okay"; |
| 153 | }; |
| 154 | |
| 155 | sound { |
| 156 | compatible = "stericsson,snd-soc-mop500"; |
| 157 | |
| 158 | stericsson,cpu-dai = <&msp1 &msp3>; |
| 159 | stericsson,audio-codec = <&codec>; |
| 160 | }; |
| 161 | |
| 162 | msp1: msp@80124000 { |
| 163 | status = "okay"; |
| 164 | }; |
| 165 | |
| 166 | msp3: msp@80125000 { |
| 167 | status = "okay"; |
| 168 | }; |
| 169 | |
| 170 | prcmu@80157000 { |
Arnd Bergmann | d52701d3 | 2013-03-12 09:39:01 +0100 | [diff] [blame] | 171 | ab8500 { |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 172 | ab8500-regulators { |
| 173 | ab8500_ldo_aux1_reg: ab8500_ldo_aux1 { |
| 174 | regulator-name = "V-DISPLAY"; |
| 175 | }; |
| 176 | |
| 177 | ab8500_ldo_aux2_reg: ab8500_ldo_aux2 { |
| 178 | regulator-name = "V-eMMC1"; |
| 179 | }; |
| 180 | |
| 181 | ab8500_ldo_aux3_reg: ab8500_ldo_aux3 { |
| 182 | regulator-name = "V-MMC-SD"; |
| 183 | }; |
| 184 | |
Fabio Baltieri | 99b38ee | 2013-04-09 11:16:56 +0200 | [diff] [blame] | 185 | ab8500_ldo_intcore_reg: ab8500_ldo_intcore { |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 186 | regulator-name = "V-INTCORE"; |
| 187 | }; |
| 188 | |
| 189 | ab8500_ldo_tvout_reg: ab8500_ldo_tvout { |
| 190 | regulator-name = "V-TVOUT"; |
| 191 | }; |
| 192 | |
| 193 | ab8500_ldo_usb_reg: ab8500_ldo_usb { |
| 194 | regulator-name = "dummy"; |
| 195 | }; |
| 196 | |
| 197 | ab8500_ldo_audio_reg: ab8500_ldo_audio { |
| 198 | regulator-name = "V-AUD"; |
| 199 | }; |
| 200 | |
| 201 | ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 { |
| 202 | regulator-name = "V-AMIC1"; |
| 203 | }; |
| 204 | |
Fabio Baltieri | 5510ed9 | 2013-05-30 15:27:42 +0200 | [diff] [blame] | 205 | ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 { |
Lee Jones | d1b8bfa | 2012-09-26 13:29:09 +0100 | [diff] [blame] | 206 | regulator-name = "V-AMIC2"; |
| 207 | }; |
| 208 | |
| 209 | ab8500_ldo_dmic_reg: ab8500_ldo_dmic { |
| 210 | regulator-name = "V-DMIC"; |
| 211 | }; |
| 212 | |
| 213 | ab8500_ldo_ana_reg: ab8500_ldo_ana { |
| 214 | regulator-name = "V-CSI/DSI"; |
| 215 | }; |
| 216 | }; |
| 217 | }; |
| 218 | }; |
| 219 | }; |
| 220 | }; |