Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Pavel Machek <pavel@ucw.cz> |
Aaro Koskinen | c3580bc | 2014-02-09 14:12:36 +0200 | [diff] [blame] | 3 | * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi> |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 (or later) as |
| 7 | * published by the Free Software Foundation. |
| 8 | */ |
| 9 | |
| 10 | /dts-v1/; |
| 11 | |
Tony Lindgren | f2e2c9d | 2013-12-06 14:20:17 -0800 | [diff] [blame] | 12 | #include "omap34xx-hs.dtsi" |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 13 | |
| 14 | / { |
| 15 | model = "Nokia N900"; |
Aaro Koskinen | c3580bc | 2014-02-09 14:12:36 +0200 | [diff] [blame] | 16 | compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3"; |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 17 | |
| 18 | cpus { |
| 19 | cpu@0 { |
| 20 | cpu0-supply = <&vcc>; |
| 21 | }; |
| 22 | }; |
| 23 | |
| 24 | memory { |
| 25 | device_type = "memory"; |
| 26 | reg = <0x80000000 0x10000000>; /* 256 MB */ |
| 27 | }; |
| 28 | |
Sebastian Reichel | 3931c839 | 2013-10-23 00:49:34 +0200 | [diff] [blame] | 29 | gpio_keys { |
| 30 | compatible = "gpio-keys"; |
| 31 | |
| 32 | camera_lens_cover { |
| 33 | label = "Camera Lens Cover"; |
| 34 | gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */ |
| 35 | linux,input-type = <5>; /* EV_SW */ |
| 36 | linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */ |
| 37 | gpio-key,wakeup; |
| 38 | }; |
| 39 | |
| 40 | camera_focus { |
| 41 | label = "Camera Focus"; |
| 42 | gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */ |
| 43 | linux,code = <0x210>; /* KEY_CAMERA_FOCUS */ |
| 44 | gpio-key,wakeup; |
| 45 | }; |
| 46 | |
| 47 | camera_capture { |
| 48 | label = "Camera Capture"; |
| 49 | gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */ |
| 50 | linux,code = <0xd4>; /* KEY_CAMERA */ |
| 51 | gpio-key,wakeup; |
| 52 | }; |
| 53 | |
| 54 | lock_button { |
| 55 | label = "Lock Button"; |
| 56 | gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */ |
| 57 | linux,code = <0x98>; /* KEY_SCREENLOCK */ |
| 58 | gpio-key,wakeup; |
| 59 | }; |
| 60 | |
| 61 | keypad_slide { |
| 62 | label = "Keypad Slide"; |
| 63 | gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */ |
| 64 | linux,input-type = <5>; /* EV_SW */ |
| 65 | linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */ |
| 66 | gpio-key,wakeup; |
| 67 | }; |
| 68 | |
| 69 | proximity_sensor { |
| 70 | label = "Proximity Sensor"; |
| 71 | gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */ |
| 72 | linux,input-type = <5>; /* EV_SW */ |
| 73 | linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */ |
| 74 | }; |
| 75 | }; |
| 76 | |
Sebastian Reichel | e17337a | 2014-01-11 22:17:02 +0100 | [diff] [blame] | 77 | isp1704: isp1704 { |
| 78 | compatible = "nxp,isp1704"; |
| 79 | nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>; |
| 80 | usb-phy = <&usb2_phy>; |
| 81 | }; |
Tomi Valkeinen | 1133420 | 2013-12-17 09:33:33 +0200 | [diff] [blame] | 82 | |
| 83 | tv: connector { |
| 84 | compatible = "composite-connector"; |
| 85 | label = "tv"; |
| 86 | |
| 87 | port { |
| 88 | tv_connector_in: endpoint { |
| 89 | remote-endpoint = <&venc_out>; |
| 90 | }; |
| 91 | }; |
| 92 | }; |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 93 | }; |
| 94 | |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 95 | &omap3_pmx_core { |
| 96 | pinctrl-names = "default"; |
| 97 | |
Sebastian Reichel | 7a89eec | 2013-10-23 00:49:32 +0200 | [diff] [blame] | 98 | uart2_pins: pinmux_uart2_pins { |
| 99 | pinctrl-single,pins = < |
| 100 | 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx */ |
| 101 | 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx */ |
| 102 | >; |
| 103 | }; |
| 104 | |
| 105 | uart3_pins: pinmux_uart3_pins { |
| 106 | pinctrl-single,pins = < |
| 107 | 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx */ |
| 108 | 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx */ |
| 109 | >; |
| 110 | }; |
| 111 | |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 112 | i2c1_pins: pinmux_i2c1_pins { |
| 113 | pinctrl-single,pins = < |
| 114 | 0x18a (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */ |
| 115 | 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */ |
| 116 | >; |
| 117 | }; |
| 118 | |
| 119 | i2c2_pins: pinmux_i2c2_pins { |
| 120 | pinctrl-single,pins = < |
| 121 | 0x18e (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */ |
| 122 | 0x190 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */ |
| 123 | >; |
| 124 | }; |
| 125 | |
| 126 | i2c3_pins: pinmux_i2c3_pins { |
| 127 | pinctrl-single,pins = < |
| 128 | 0x192 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */ |
| 129 | 0x194 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */ |
| 130 | >; |
| 131 | }; |
Sebastian Reichel | f1751cf | 2013-10-23 00:49:33 +0200 | [diff] [blame] | 132 | |
Sebastian Reichel | c1ad220 | 2014-03-13 22:59:55 +0100 | [diff] [blame^] | 133 | mcspi4_pins: pinmux_mcspi4_pins { |
| 134 | pinctrl-single,pins = < |
| 135 | 0x15c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_clk */ |
| 136 | 0x162 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_somi */ |
| 137 | 0x160 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_simo */ |
| 138 | 0x166 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_cs0 */ |
| 139 | >; |
| 140 | }; |
| 141 | |
Sebastian Reichel | f1751cf | 2013-10-23 00:49:33 +0200 | [diff] [blame] | 142 | mmc1_pins: pinmux_mmc1_pins { |
| 143 | pinctrl-single,pins = < |
| 144 | 0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk */ |
| 145 | 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd */ |
| 146 | 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0 */ |
| 147 | 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1 */ |
| 148 | 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2 */ |
| 149 | 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3 */ |
| 150 | >; |
| 151 | }; |
Sebastian Reichel | d1e6f51 | 2013-10-23 00:49:40 +0200 | [diff] [blame] | 152 | |
Tony Lindgren | edd5eb4 | 2013-11-25 14:23:45 -0800 | [diff] [blame] | 153 | mmc2_pins: pinmux_mmc2_pins { |
| 154 | pinctrl-single,pins = < |
| 155 | 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */ |
| 156 | 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */ |
| 157 | 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */ |
| 158 | 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */ |
| 159 | 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */ |
| 160 | 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */ |
| 161 | 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat4 */ |
| 162 | 0x136 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat5 */ |
| 163 | 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat6 */ |
| 164 | 0x13a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat7 */ |
| 165 | >; |
| 166 | }; |
| 167 | |
Tomi Valkeinen | 1133420 | 2013-12-17 09:33:33 +0200 | [diff] [blame] | 168 | acx565akm_pins: pinmux_acx565akm_pins { |
Sebastian Reichel | d1e6f51 | 2013-10-23 00:49:40 +0200 | [diff] [blame] | 169 | pinctrl-single,pins = < |
| 170 | 0x0d4 (PIN_OUTPUT | MUX_MODE4) /* RX51_LCD_RESET_GPIO */ |
| 171 | >; |
| 172 | }; |
Tomi Valkeinen | 1133420 | 2013-12-17 09:33:33 +0200 | [diff] [blame] | 173 | |
| 174 | dss_sdi_pins: pinmux_dss_sdi_pins { |
| 175 | pinctrl-single,pins = < |
| 176 | 0x0c0 (PIN_OUTPUT | MUX_MODE1) /* dss_data10.sdi_dat1n */ |
| 177 | 0x0c2 (PIN_OUTPUT | MUX_MODE1) /* dss_data11.sdi_dat1p */ |
| 178 | 0x0c4 (PIN_OUTPUT | MUX_MODE1) /* dss_data12.sdi_dat2n */ |
| 179 | 0x0c6 (PIN_OUTPUT | MUX_MODE1) /* dss_data13.sdi_dat2p */ |
| 180 | |
| 181 | 0x0d8 (PIN_OUTPUT | MUX_MODE1) /* dss_data22.sdi_clkp */ |
| 182 | 0x0da (PIN_OUTPUT | MUX_MODE1) /* dss_data23.sdi_clkn */ |
| 183 | >; |
| 184 | }; |
Sebastian Reichel | c1ad220 | 2014-03-13 22:59:55 +0100 | [diff] [blame^] | 185 | |
| 186 | wl1251_pins: pinmux_wl1251 { |
| 187 | pinctrl-single,pins = < |
| 188 | 0x0ce (PIN_OUTPUT | MUX_MODE4) /* gpio 87 => wl1251 enable */ |
| 189 | 0x05a (PIN_INPUT | MUX_MODE4) /* gpio 42 => wl1251 irq */ |
| 190 | >; |
| 191 | }; |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 192 | }; |
| 193 | |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 194 | &i2c1 { |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 195 | pinctrl-names = "default"; |
| 196 | pinctrl-0 = <&i2c1_pins>; |
| 197 | |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 198 | clock-frequency = <2200000>; |
| 199 | |
| 200 | twl: twl@48 { |
| 201 | reg = <0x48>; |
| 202 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
| 203 | interrupt-parent = <&intc>; |
| 204 | }; |
| 205 | }; |
| 206 | |
| 207 | #include "twl4030.dtsi" |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 208 | #include "twl4030_omap3.dtsi" |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 209 | |
Sebastian Reichel | 9cdbbad | 2013-10-23 00:49:38 +0200 | [diff] [blame] | 210 | &vaux1 { |
| 211 | regulator-name = "V28"; |
| 212 | regulator-min-microvolt = <2800000>; |
| 213 | regulator-max-microvolt = <2800000>; |
| 214 | regulator-always-on; /* due battery cover sensor */ |
| 215 | }; |
| 216 | |
| 217 | &vaux2 { |
| 218 | regulator-name = "VCSI"; |
| 219 | regulator-min-microvolt = <1800000>; |
| 220 | regulator-max-microvolt = <1800000>; |
| 221 | }; |
| 222 | |
| 223 | &vaux3 { |
| 224 | regulator-name = "VMMC2_30"; |
| 225 | regulator-min-microvolt = <2800000>; |
| 226 | regulator-max-microvolt = <3000000>; |
| 227 | }; |
| 228 | |
| 229 | &vaux4 { |
| 230 | regulator-name = "VCAM_ANA_28"; |
| 231 | regulator-min-microvolt = <2800000>; |
| 232 | regulator-max-microvolt = <2800000>; |
| 233 | }; |
| 234 | |
| 235 | &vmmc1 { |
| 236 | regulator-name = "VMMC1"; |
| 237 | regulator-min-microvolt = <1850000>; |
| 238 | regulator-max-microvolt = <3150000>; |
| 239 | }; |
| 240 | |
| 241 | &vmmc2 { |
| 242 | regulator-name = "V28_A"; |
| 243 | regulator-min-microvolt = <2800000>; |
| 244 | regulator-max-microvolt = <3000000>; |
| 245 | regulator-always-on; /* due VIO leak to AIC34 VDDs */ |
| 246 | }; |
| 247 | |
| 248 | &vpll1 { |
| 249 | regulator-name = "VPLL"; |
| 250 | regulator-min-microvolt = <1800000>; |
| 251 | regulator-max-microvolt = <1800000>; |
| 252 | regulator-always-on; |
| 253 | }; |
| 254 | |
| 255 | &vpll2 { |
| 256 | regulator-name = "VSDI_CSI"; |
| 257 | regulator-min-microvolt = <1800000>; |
| 258 | regulator-max-microvolt = <1800000>; |
| 259 | regulator-always-on; |
| 260 | }; |
| 261 | |
| 262 | &vsim { |
| 263 | regulator-name = "VMMC2_IO_18"; |
| 264 | regulator-min-microvolt = <1800000>; |
| 265 | regulator-max-microvolt = <1800000>; |
| 266 | }; |
| 267 | |
| 268 | &vio { |
| 269 | regulator-name = "VIO"; |
| 270 | regulator-min-microvolt = <1800000>; |
| 271 | regulator-max-microvolt = <1800000>; |
| 272 | |
| 273 | }; |
| 274 | |
| 275 | &vintana1 { |
| 276 | regulator-name = "VINTANA1"; |
| 277 | /* fixed to 1500000 */ |
| 278 | regulator-always-on; |
| 279 | }; |
| 280 | |
| 281 | &vintana2 { |
| 282 | regulator-name = "VINTANA2"; |
| 283 | regulator-min-microvolt = <2750000>; |
| 284 | regulator-max-microvolt = <2750000>; |
| 285 | regulator-always-on; |
| 286 | }; |
| 287 | |
| 288 | &vintdig { |
| 289 | regulator-name = "VINTDIG"; |
| 290 | /* fixed to 1500000 */ |
| 291 | regulator-always-on; |
| 292 | }; |
| 293 | |
Sebastian Reichel | 06ba7a6 | 2013-10-23 00:49:35 +0200 | [diff] [blame] | 294 | &twl { |
| 295 | twl_audio: audio { |
| 296 | compatible = "ti,twl4030-audio"; |
| 297 | ti,enable-vibra = <1>; |
| 298 | }; |
| 299 | }; |
| 300 | |
Sebastian Reichel | 85c215f | 2014-01-11 22:16:59 +0100 | [diff] [blame] | 301 | &twl_keypad { |
| 302 | linux,keymap = < 0x00000010 /* KEY_Q */ |
| 303 | 0x00010018 /* KEY_O */ |
| 304 | 0x00020019 /* KEY_P */ |
| 305 | 0x00030033 /* KEY_COMMA */ |
| 306 | 0x0004000e /* KEY_BACKSPACE */ |
| 307 | 0x0006001e /* KEY_A */ |
| 308 | 0x0007001f /* KEY_S */ |
| 309 | |
| 310 | 0x01000011 /* KEY_W */ |
| 311 | 0x01010020 /* KEY_D */ |
| 312 | 0x01020021 /* KEY_F */ |
| 313 | 0x01030022 /* KEY_G */ |
| 314 | 0x01040023 /* KEY_H */ |
| 315 | 0x01050024 /* KEY_J */ |
| 316 | 0x01060025 /* KEY_K */ |
| 317 | 0x01070026 /* KEY_L */ |
| 318 | |
| 319 | 0x02000012 /* KEY_E */ |
| 320 | 0x02010034 /* KEY_DOT */ |
| 321 | 0x02020067 /* KEY_UP */ |
| 322 | 0x0203001c /* KEY_ENTER */ |
| 323 | 0x0205002c /* KEY_Z */ |
| 324 | 0x0206002d /* KEY_X */ |
| 325 | 0x0207002e /* KEY_C */ |
| 326 | 0x02080043 /* KEY_F9 */ |
| 327 | |
| 328 | 0x03000013 /* KEY_R */ |
| 329 | 0x0301002f /* KEY_V */ |
| 330 | 0x03020030 /* KEY_B */ |
| 331 | 0x03030031 /* KEY_N */ |
| 332 | 0x03040032 /* KEY_M */ |
| 333 | 0x03050039 /* KEY_SPACE */ |
| 334 | 0x03060039 /* KEY_SPACE */ |
| 335 | 0x03070069 /* KEY_LEFT */ |
| 336 | |
| 337 | 0x04000014 /* KEY_T */ |
| 338 | 0x0401006c /* KEY_DOWN */ |
| 339 | 0x0402006a /* KEY_RIGHT */ |
| 340 | 0x0404001d /* KEY_LEFTCTRL */ |
| 341 | 0x04050064 /* KEY_RIGHTALT */ |
| 342 | 0x0406002a /* KEY_LEFTSHIFT */ |
| 343 | 0x04080044 /* KEY_F10 */ |
| 344 | |
| 345 | 0x05000015 /* KEY_Y */ |
| 346 | 0x05080057 /* KEY_F11 */ |
| 347 | |
| 348 | 0x06000016 /* KEY_U */ |
| 349 | |
| 350 | 0x07000017 /* KEY_I */ |
| 351 | 0x07010041 /* KEY_F7 */ |
| 352 | 0x07020042 /* KEY_F8 */ |
| 353 | >; |
| 354 | }; |
| 355 | |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 356 | &twl_gpio { |
| 357 | ti,pullups = <0x0>; |
| 358 | ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */ |
| 359 | }; |
| 360 | |
| 361 | &i2c2 { |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 362 | pinctrl-names = "default"; |
| 363 | pinctrl-0 = <&i2c2_pins>; |
| 364 | |
Sebastian Reichel | 48fc986 | 2013-10-23 00:49:31 +0200 | [diff] [blame] | 365 | clock-frequency = <100000>; |
Sebastian Reichel | b2b9b25 | 2013-10-23 00:49:36 +0200 | [diff] [blame] | 366 | |
Sebastian Reichel | 14e3e29 | 2013-10-23 00:49:41 +0200 | [diff] [blame] | 367 | tlv320aic3x: tlv320aic3x@18 { |
| 368 | compatible = "ti,tlv320aic3x"; |
| 369 | reg = <0x18>; |
| 370 | gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */ |
| 371 | ai3x-gpio-func = < |
| 372 | 0 /* AIC3X_GPIO1_FUNC_DISABLED */ |
| 373 | 5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */ |
| 374 | >; |
| 375 | |
| 376 | AVDD-supply = <&vmmc2>; |
| 377 | DRVDD-supply = <&vmmc2>; |
| 378 | IOVDD-supply = <&vio>; |
| 379 | DVDD-supply = <&vio>; |
| 380 | }; |
| 381 | |
| 382 | tlv320aic3x_aux: tlv320aic3x@19 { |
| 383 | compatible = "ti,tlv320aic3x"; |
| 384 | reg = <0x19>; |
| 385 | gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */ |
| 386 | |
| 387 | AVDD-supply = <&vmmc2>; |
| 388 | DRVDD-supply = <&vmmc2>; |
| 389 | IOVDD-supply = <&vio>; |
| 390 | DVDD-supply = <&vio>; |
| 391 | }; |
| 392 | |
Sebastian Reichel | 12f2f87 | 2014-01-11 22:17:00 +0100 | [diff] [blame] | 393 | tsl2563: tsl2563@29 { |
| 394 | compatible = "amstaos,tsl2563"; |
| 395 | reg = <0x29>; |
| 396 | |
| 397 | amstaos,cover-comp-gain = <16>; |
| 398 | }; |
| 399 | |
Sebastian Reichel | a0bf1f3 | 2013-10-23 00:49:42 +0200 | [diff] [blame] | 400 | lp5523: lp5523@32 { |
| 401 | compatible = "national,lp5523"; |
| 402 | reg = <0x32>; |
| 403 | clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */ |
| 404 | enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */ |
| 405 | |
| 406 | chan0 { |
| 407 | chan-name = "lp5523:kb1"; |
| 408 | led-cur = /bits/ 8 <50>; |
| 409 | max-cur = /bits/ 8 <100>; |
| 410 | }; |
| 411 | |
| 412 | chan1 { |
| 413 | chan-name = "lp5523:kb2"; |
| 414 | led-cur = /bits/ 8 <50>; |
| 415 | max-cur = /bits/ 8 <100>; |
| 416 | }; |
| 417 | |
| 418 | chan2 { |
| 419 | chan-name = "lp5523:kb3"; |
| 420 | led-cur = /bits/ 8 <50>; |
| 421 | max-cur = /bits/ 8 <100>; |
| 422 | }; |
| 423 | |
| 424 | chan3 { |
| 425 | chan-name = "lp5523:kb4"; |
| 426 | led-cur = /bits/ 8 <50>; |
| 427 | max-cur = /bits/ 8 <100>; |
| 428 | }; |
| 429 | |
| 430 | chan4 { |
| 431 | chan-name = "lp5523:b"; |
| 432 | led-cur = /bits/ 8 <50>; |
| 433 | max-cur = /bits/ 8 <100>; |
| 434 | }; |
| 435 | |
| 436 | chan5 { |
| 437 | chan-name = "lp5523:g"; |
| 438 | led-cur = /bits/ 8 <50>; |
| 439 | max-cur = /bits/ 8 <100>; |
| 440 | }; |
| 441 | |
| 442 | chan6 { |
| 443 | chan-name = "lp5523:r"; |
| 444 | led-cur = /bits/ 8 <50>; |
| 445 | max-cur = /bits/ 8 <100>; |
| 446 | }; |
| 447 | |
| 448 | chan7 { |
| 449 | chan-name = "lp5523:kb5"; |
| 450 | led-cur = /bits/ 8 <50>; |
| 451 | max-cur = /bits/ 8 <100>; |
| 452 | }; |
| 453 | |
| 454 | chan8 { |
| 455 | chan-name = "lp5523:kb6"; |
| 456 | led-cur = /bits/ 8 <50>; |
| 457 | max-cur = /bits/ 8 <100>; |
| 458 | }; |
| 459 | }; |
| 460 | |
Sebastian Reichel | b2b9b25 | 2013-10-23 00:49:36 +0200 | [diff] [blame] | 461 | bq27200: bq27200@55 { |
| 462 | compatible = "ti,bq27200"; |
| 463 | reg = <0x55>; |
| 464 | }; |
Sebastian Reichel | 9e2367c | 2014-01-11 22:17:01 +0100 | [diff] [blame] | 465 | |
| 466 | tpa6130a2: tpa6130a2@60 { |
| 467 | compatible = "ti,tpa6130a2"; |
| 468 | reg = <0x60>; |
| 469 | |
| 470 | Vdd-supply = <&vmmc2>; |
| 471 | |
| 472 | power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; /* 98 */ |
| 473 | }; |
Sebastian Reichel | 334a09c | 2014-01-11 22:17:03 +0100 | [diff] [blame] | 474 | |
| 475 | bq24150a: bq24150a@6b { |
| 476 | compatible = "ti,bq24150a"; |
| 477 | reg = <0x6b>; |
| 478 | |
| 479 | ti,current-limit = <100>; |
| 480 | ti,weak-battery-voltage = <3400>; |
| 481 | ti,battery-regulation-voltage = <4200>; |
| 482 | ti,charge-current = <650>; |
| 483 | ti,termination-current = <100>; |
| 484 | ti,resistor-sense = <68>; |
| 485 | |
| 486 | ti,usb-charger-detection = <&isp1704>; |
| 487 | }; |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 488 | }; |
| 489 | |
| 490 | &i2c3 { |
Sebastian Reichel | ac888a8 | 2013-10-23 00:49:30 +0200 | [diff] [blame] | 491 | pinctrl-names = "default"; |
| 492 | pinctrl-0 = <&i2c3_pins>; |
| 493 | |
Sebastian Reichel | 48fc986 | 2013-10-23 00:49:31 +0200 | [diff] [blame] | 494 | clock-frequency = <400000>; |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 495 | }; |
| 496 | |
| 497 | &mmc1 { |
Sebastian Reichel | f1751cf | 2013-10-23 00:49:33 +0200 | [diff] [blame] | 498 | pinctrl-names = "default"; |
| 499 | pinctrl-0 = <&mmc1_pins>; |
| 500 | vmmc-supply = <&vmmc1>; |
| 501 | bus-width = <4>; |
| 502 | cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */ |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 503 | }; |
| 504 | |
Tony Lindgren | edd5eb4 | 2013-11-25 14:23:45 -0800 | [diff] [blame] | 505 | /* most boards use vaux3, only some old versions use vmmc2 instead */ |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 506 | &mmc2 { |
Tony Lindgren | edd5eb4 | 2013-11-25 14:23:45 -0800 | [diff] [blame] | 507 | pinctrl-names = "default"; |
| 508 | pinctrl-0 = <&mmc2_pins>; |
| 509 | vmmc-supply = <&vaux3>; |
| 510 | vmmc_aux-supply = <&vsim>; |
| 511 | bus-width = <8>; |
| 512 | non-removable; |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 513 | }; |
| 514 | |
| 515 | &mmc3 { |
| 516 | status = "disabled"; |
| 517 | }; |
| 518 | |
Sebastian Reichel | 8699d2d | 2013-10-23 00:49:39 +0200 | [diff] [blame] | 519 | &gpmc { |
| 520 | ranges = <0 0 0x04000000 0x10000000>; /* 256MB */ |
| 521 | |
| 522 | /* gpio-irq for dma: 65 */ |
| 523 | |
| 524 | onenand@0,0 { |
| 525 | #address-cells = <1>; |
| 526 | #size-cells = <1>; |
| 527 | reg = <0 0 0x10000000>; |
| 528 | |
| 529 | gpmc,sync-read; |
| 530 | gpmc,sync-write; |
| 531 | gpmc,burst-length = <16>; |
| 532 | gpmc,burst-read; |
| 533 | gpmc,burst-wrap; |
| 534 | gpmc,burst-write; |
| 535 | gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */ |
| 536 | gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */ |
| 537 | gpmc,cs-on-ns = <0>; |
| 538 | gpmc,cs-rd-off-ns = <87>; |
| 539 | gpmc,cs-wr-off-ns = <87>; |
| 540 | gpmc,adv-on-ns = <0>; |
| 541 | gpmc,adv-rd-off-ns = <10>; |
| 542 | gpmc,adv-wr-off-ns = <10>; |
| 543 | gpmc,oe-on-ns = <15>; |
| 544 | gpmc,oe-off-ns = <87>; |
| 545 | gpmc,we-on-ns = <0>; |
| 546 | gpmc,we-off-ns = <87>; |
| 547 | gpmc,rd-cycle-ns = <112>; |
| 548 | gpmc,wr-cycle-ns = <112>; |
| 549 | gpmc,access-ns = <81>; |
| 550 | gpmc,page-burst-access-ns = <15>; |
| 551 | gpmc,bus-turnaround-ns = <0>; |
| 552 | gpmc,cycle2cycle-delay-ns = <0>; |
| 553 | gpmc,wait-monitoring-ns = <0>; |
| 554 | gpmc,clk-activation-ns = <5>; |
| 555 | gpmc,wr-data-mux-bus-ns = <30>; |
| 556 | gpmc,wr-access-ns = <81>; |
| 557 | gpmc,sync-clk-ps = <15000>; |
| 558 | |
| 559 | /* |
| 560 | * MTD partition table corresponding to Nokia's |
| 561 | * Maemo 5 (Fremantle) release. |
| 562 | */ |
| 563 | partition@0 { |
| 564 | label = "bootloader"; |
| 565 | reg = <0x00000000 0x00020000>; |
| 566 | read-only; |
| 567 | }; |
| 568 | partition@1 { |
| 569 | label = "config"; |
| 570 | reg = <0x00020000 0x00060000>; |
| 571 | }; |
| 572 | partition@2 { |
| 573 | label = "log"; |
| 574 | reg = <0x00080000 0x00040000>; |
| 575 | }; |
| 576 | partition@3 { |
| 577 | label = "kernel"; |
| 578 | reg = <0x000c0000 0x00200000>; |
| 579 | }; |
| 580 | partition@4 { |
| 581 | label = "initfs"; |
| 582 | reg = <0x002c0000 0x00200000>; |
| 583 | }; |
| 584 | partition@5 { |
| 585 | label = "rootfs"; |
| 586 | reg = <0x004c0000 0x0fb40000>; |
| 587 | }; |
| 588 | }; |
| 589 | }; |
| 590 | |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 591 | &mcspi1 { |
| 592 | /* |
| 593 | * For some reason, touchscreen is necessary for screen to work at |
| 594 | * all on real hw. It works well without it on emulator. |
| 595 | * |
| 596 | * Also... order in the device tree actually matters here. |
| 597 | */ |
| 598 | tsc2005@0 { |
| 599 | compatible = "tsc2005"; |
| 600 | spi-max-frequency = <6000000>; |
| 601 | reg = <0>; |
| 602 | }; |
Tomi Valkeinen | 1133420 | 2013-12-17 09:33:33 +0200 | [diff] [blame] | 603 | |
| 604 | acx565akm@2 { |
| 605 | compatible = "sony,acx565akm"; |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 606 | spi-max-frequency = <6000000>; |
| 607 | reg = <2>; |
Sebastian Reichel | d1e6f51 | 2013-10-23 00:49:40 +0200 | [diff] [blame] | 608 | |
| 609 | pinctrl-names = "default"; |
Tomi Valkeinen | 1133420 | 2013-12-17 09:33:33 +0200 | [diff] [blame] | 610 | pinctrl-0 = <&acx565akm_pins>; |
| 611 | |
| 612 | label = "lcd"; |
| 613 | reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */ |
| 614 | |
| 615 | port { |
| 616 | lcd_in: endpoint { |
| 617 | remote-endpoint = <&sdi_out>; |
| 618 | }; |
| 619 | }; |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 620 | }; |
| 621 | }; |
| 622 | |
Sebastian Reichel | c1ad220 | 2014-03-13 22:59:55 +0100 | [diff] [blame^] | 623 | &mcspi4 { |
| 624 | pinctrl-names = "default"; |
| 625 | pinctrl-0 = <&mcspi4_pins>; |
| 626 | |
| 627 | wl1251@0 { |
| 628 | pinctrl-names = "default"; |
| 629 | pinctrl-0 = <&wl1251_pins>; |
| 630 | |
| 631 | vio-supply = <&vio>; |
| 632 | |
| 633 | compatible = "ti,wl1251"; |
| 634 | reg = <0>; |
| 635 | spi-max-frequency = <48000000>; |
| 636 | |
| 637 | spi-cpol; |
| 638 | spi-cpha; |
| 639 | |
| 640 | ti,power-gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; /* 87 */ |
| 641 | |
| 642 | interrupt-parent = <&gpio2>; |
| 643 | interrupts = <10 IRQ_TYPE_NONE>; /* gpio line 42 */ |
| 644 | }; |
| 645 | }; |
| 646 | |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 647 | &usb_otg_hs { |
| 648 | interface-type = <0>; |
| 649 | usb-phy = <&usb2_phy>; |
Roger Quadros | d2afcf0 | 2013-10-07 16:28:13 +0300 | [diff] [blame] | 650 | phys = <&usb2_phy>; |
| 651 | phy-names = "usb2-phy"; |
Pavel Machek | a4d4b15 | 2013-08-13 15:36:36 +0200 | [diff] [blame] | 652 | mode = <2>; |
| 653 | power = <50>; |
| 654 | }; |
Sebastian Reichel | 7a89eec | 2013-10-23 00:49:32 +0200 | [diff] [blame] | 655 | |
| 656 | &uart1 { |
| 657 | status = "disabled"; |
| 658 | }; |
| 659 | |
| 660 | &uart2 { |
| 661 | pinctrl-names = "default"; |
| 662 | pinctrl-0 = <&uart2_pins>; |
| 663 | }; |
| 664 | |
| 665 | &uart3 { |
| 666 | pinctrl-names = "default"; |
| 667 | pinctrl-0 = <&uart3_pins>; |
| 668 | }; |
Tomi Valkeinen | 1133420 | 2013-12-17 09:33:33 +0200 | [diff] [blame] | 669 | |
| 670 | &dss { |
| 671 | status = "ok"; |
| 672 | |
| 673 | pinctrl-names = "default"; |
| 674 | pinctrl-0 = <&dss_sdi_pins>; |
| 675 | |
| 676 | vdds_sdi-supply = <&vaux1>; |
| 677 | |
| 678 | ports { |
| 679 | #address-cells = <1>; |
| 680 | #size-cells = <0>; |
| 681 | |
| 682 | port@1 { |
| 683 | reg = <1>; |
| 684 | |
| 685 | sdi_out: endpoint { |
| 686 | remote-endpoint = <&lcd_in>; |
| 687 | datapairs = <2>; |
| 688 | }; |
| 689 | }; |
| 690 | }; |
| 691 | }; |
| 692 | |
| 693 | &venc { |
| 694 | status = "ok"; |
| 695 | |
| 696 | vdda-supply = <&vdac>; |
| 697 | |
| 698 | port { |
| 699 | venc_out: endpoint { |
| 700 | remote-endpoint = <&tv_connector_in>; |
| 701 | ti,channels = <1>; |
| 702 | }; |
| 703 | }; |
| 704 | }; |