diff options
author | Olof Johansson <olof@lixom.net> | 2015-02-06 03:09:16 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2015-02-06 03:09:16 -0500 |
commit | f9e297660b9ccd18bb2e71bb5505115a464b4c91 (patch) | |
tree | 91fa947fe7dbcb1594c27fa90001f959a907bcc4 | |
parent | 6f8c8f6baf919da1804291f3abd9414c3f71b838 (diff) | |
parent | 726806ad9ba10f8ba8d26ba8154d98a7c9b89a12 (diff) |
Merge tag 'omap-for-v3.20/dt-pt3-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/dt
Merge "omap device tree changes for v3.20, part 3" from Tony Lindgren:
Device tree related chages for omaps to fix dm816x syscon,
fix various devices for gta04, and add USB nodes for am57xx
and dra7.
* tag 'omap-for-v3.20/dt-pt3-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
ARM: dts: am57xx-beagle-x15: Fix USB2 mode
ARM: dts: am57xx-beagle-x15: Add extcon nodes for USB
ARM: dts: dra72-evm: Add extcon nodes for USB
ARM: dts: dra7-evm: Add extcon nodes for USB
ARM: dts: Fix dm816x pinctrl and syscon so they are children of SCM
ARM: dts: omap3-gta04: Disable keypad
ARM: dts: omap3-gta04: only power DSS when necessary.
ARM: dts: omap3-gta04: add gyroscope
ARM: dts: omap3-gta04: enable power-off for wifi card.
ARM: dts: omap3-gta04: add comments about gpios
ARM: dts: omap3-gta04: Add ramp value for twl4030 audio
ARM: dts: omap3-gta04: Enable power-off using twl4030
ARM: dts: omap3-gta04: Fix a GPIO line for bma180 node
ARM: dts: omap3-gta04: Enable twl audio vibra support
ARM: dts: omap3-gta04: Enable mcbps2 necessary for audio
ARM: dts: omap3-gta04: Fix audio node malformatting
ARM: dts: omap3-gta04: Fix backup-battery charging in devicetree file.
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | arch/arm/boot/dts/am57xx-beagle-x15.dts | 37 | ||||
-rw-r--r-- | arch/arm/boot/dts/dm816x.dtsi | 35 | ||||
-rw-r--r-- | arch/arm/boot/dts/dra7-evm.dts | 31 | ||||
-rw-r--r-- | arch/arm/boot/dts/dra72-evm.dts | 31 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap3-gta04.dtsi | 50 |
5 files changed, 154 insertions, 30 deletions
diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts index c5d4ceabdd80..03750af3b49a 100644 --- a/arch/arm/boot/dts/am57xx-beagle-x15.dts +++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts | |||
@@ -88,6 +88,20 @@ | |||
88 | gpio-fan,speed-map = <0 0>, | 88 | gpio-fan,speed-map = <0 0>, |
89 | <13000 1>; | 89 | <13000 1>; |
90 | }; | 90 | }; |
91 | |||
92 | extcon_usb1: extcon_usb1 { | ||
93 | compatible = "linux,extcon-usb-gpio"; | ||
94 | id-gpio = <&gpio7 25 GPIO_ACTIVE_HIGH>; | ||
95 | pinctrl-names = "default"; | ||
96 | pinctrl-0 = <&extcon_usb1_pins>; | ||
97 | }; | ||
98 | |||
99 | extcon_usb2: extcon_usb2 { | ||
100 | compatible = "linux,extcon-usb-gpio"; | ||
101 | id-gpio = <&gpio7 24 GPIO_ACTIVE_HIGH>; | ||
102 | pinctrl-names = "default"; | ||
103 | pinctrl-0 = <&extcon_usb2_pins>; | ||
104 | }; | ||
91 | }; | 105 | }; |
92 | 106 | ||
93 | &dra7_pmx_core { | 107 | &dra7_pmx_core { |
@@ -252,6 +266,17 @@ | |||
252 | >; | 266 | >; |
253 | }; | 267 | }; |
254 | 268 | ||
269 | extcon_usb1_pins: extcon_usb1_pins { | ||
270 | pinctrl-single,pins = < | ||
271 | 0x3ec (PIN_INPUT_PULLUP | MUX_MODE14) /* uart1_rtsn.gpio7_25 */ | ||
272 | >; | ||
273 | }; | ||
274 | |||
275 | extcon_usb2_pins: extcon_usb2_pins { | ||
276 | pinctrl-single,pins = < | ||
277 | 0x3e8 (PIN_INPUT_PULLUP | MUX_MODE14) /* uart1_ctsn.gpio7_24 */ | ||
278 | >; | ||
279 | }; | ||
255 | }; | 280 | }; |
256 | 281 | ||
257 | &i2c1 { | 282 | &i2c1 { |
@@ -523,3 +548,15 @@ | |||
523 | pinctrl-names = "default"; | 548 | pinctrl-names = "default"; |
524 | pinctrl-0 = <&usb1_pins>; | 549 | pinctrl-0 = <&usb1_pins>; |
525 | }; | 550 | }; |
551 | |||
552 | &omap_dwc3_1 { | ||
553 | extcon = <&extcon_usb1>; | ||
554 | }; | ||
555 | |||
556 | &omap_dwc3_2 { | ||
557 | extcon = <&extcon_usb2>; | ||
558 | }; | ||
559 | |||
560 | &usb2 { | ||
561 | dr_mode = "peripheral"; | ||
562 | }; | ||
diff --git a/arch/arm/boot/dts/dm816x.dtsi b/arch/arm/boot/dts/dm816x.dtsi index 7adac097a71c..d98d0f7de380 100644 --- a/arch/arm/boot/dts/dm816x.dtsi +++ b/arch/arm/boot/dts/dm816x.dtsi | |||
@@ -50,15 +50,6 @@ | |||
50 | }; | 50 | }; |
51 | }; | 51 | }; |
52 | 52 | ||
53 | dm816x_pinmux: pinmux@44e10800 { | ||
54 | compatible = "pinctrl-single"; | ||
55 | reg = <0x48140800 0x50a>; | ||
56 | #address-cells = <1>; | ||
57 | #size-cells = <0>; | ||
58 | pinctrl-single,register-width = <16>; | ||
59 | pinctrl-single,function-mask = <0xf>; | ||
60 | }; | ||
61 | |||
62 | /* | 53 | /* |
63 | * XXX: Use a flat representation of the dm816x interconnect. | 54 | * XXX: Use a flat representation of the dm816x interconnect. |
64 | * The real dm816x interconnect network is quite complex. Since | 55 | * The real dm816x interconnect network is quite complex. Since |
@@ -89,12 +80,29 @@ | |||
89 | }; | 80 | }; |
90 | 81 | ||
91 | scrm: scrm@48140000 { | 82 | scrm: scrm@48140000 { |
92 | compatible = "ti,dm816-scrm"; | 83 | compatible = "ti,dm816-scrm", "simple-bus"; |
93 | reg = <0x48140000 0x21000>; | 84 | reg = <0x48140000 0x21000>; |
94 | #address-cells = <1>; | 85 | #address-cells = <1>; |
95 | #size-cells = <1>; | 86 | #size-cells = <1>; |
96 | ranges = <0 0x48140000 0x21000>; | 87 | ranges = <0 0x48140000 0x21000>; |
97 | 88 | ||
89 | dm816x_pinmux: pinmux@800 { | ||
90 | compatible = "pinctrl-single"; | ||
91 | reg = <0x800 0x50a>; | ||
92 | #address-cells = <1>; | ||
93 | #size-cells = <0>; | ||
94 | pinctrl-single,register-width = <16>; | ||
95 | pinctrl-single,function-mask = <0xf>; | ||
96 | }; | ||
97 | |||
98 | /* Device Configuration Registers */ | ||
99 | scm_conf: syscon@600 { | ||
100 | compatible = "syscon"; | ||
101 | reg = <0x600 0x110>; | ||
102 | #address-cells = <1>; | ||
103 | #size-cells = <1>; | ||
104 | }; | ||
105 | |||
98 | scrm_clocks: clocks { | 106 | scrm_clocks: clocks { |
99 | #address-cells = <1>; | 107 | #address-cells = <1>; |
100 | #size-cells = <0>; | 108 | #size-cells = <0>; |
@@ -104,11 +112,6 @@ | |||
104 | }; | 112 | }; |
105 | }; | 113 | }; |
106 | 114 | ||
107 | cm: syscon@44e10000 { | ||
108 | compatible = "ti,am33xx-controlmodule", "syscon"; | ||
109 | reg = <0x44e10000 0x800>; | ||
110 | }; | ||
111 | |||
112 | edma: edma@49000000 { | 115 | edma: edma@49000000 { |
113 | compatible = "ti,edma3"; | 116 | compatible = "ti,edma3"; |
114 | ti,hwmods = "tpcc", "tptc0", "tptc1", "tptc2", "tptc3"; | 117 | ti,hwmods = "tpcc", "tptc0", "tptc1", "tptc2", "tptc3"; |
@@ -213,6 +216,7 @@ | |||
213 | reg = <0x4a100000 0x800 | 216 | reg = <0x4a100000 0x800 |
214 | 0x4a100900 0x3700>; | 217 | 0x4a100900 0x3700>; |
215 | clocks = <&sysclk24_ck>; | 218 | clocks = <&sysclk24_ck>; |
219 | syscon = <&scm_conf>; | ||
216 | ti,davinci-ctrl-reg-offset = <0>; | 220 | ti,davinci-ctrl-reg-offset = <0>; |
217 | ti,davinci-ctrl-mod-reg-offset = <0x900>; | 221 | ti,davinci-ctrl-mod-reg-offset = <0x900>; |
218 | ti,davinci-ctrl-ram-offset = <0x2000>; | 222 | ti,davinci-ctrl-ram-offset = <0x2000>; |
@@ -226,6 +230,7 @@ | |||
226 | ti,hwmods = "emac1"; | 230 | ti,hwmods = "emac1"; |
227 | reg = <0x4a120000 0x4000>; | 231 | reg = <0x4a120000 0x4000>; |
228 | clocks = <&sysclk24_ck>; | 232 | clocks = <&sysclk24_ck>; |
233 | syscon = <&scm_conf>; | ||
229 | ti,davinci-ctrl-reg-offset = <0>; | 234 | ti,davinci-ctrl-reg-offset = <0>; |
230 | ti,davinci-ctrl-mod-reg-offset = <0x900>; | 235 | ti,davinci-ctrl-mod-reg-offset = <0x900>; |
231 | ti,davinci-ctrl-ram-offset = <0x2000>; | 236 | ti,davinci-ctrl-ram-offset = <0x2000>; |
diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index 10b725c7bfc0..c1d0ac7bd002 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts | |||
@@ -26,6 +26,16 @@ | |||
26 | regulator-max-microvolt = <3300000>; | 26 | regulator-max-microvolt = <3300000>; |
27 | }; | 27 | }; |
28 | 28 | ||
29 | extcon_usb1: extcon_usb1 { | ||
30 | compatible = "linux,extcon-usb-gpio"; | ||
31 | id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>; | ||
32 | }; | ||
33 | |||
34 | extcon_usb2: extcon_usb2 { | ||
35 | compatible = "linux,extcon-usb-gpio"; | ||
36 | id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>; | ||
37 | }; | ||
38 | |||
29 | vtt_fixed: fixedregulator-vtt { | 39 | vtt_fixed: fixedregulator-vtt { |
30 | compatible = "regulator-fixed"; | 40 | compatible = "regulator-fixed"; |
31 | regulator-name = "vtt_fixed"; | 41 | regulator-name = "vtt_fixed"; |
@@ -391,6 +401,19 @@ | |||
391 | }; | 401 | }; |
392 | }; | 402 | }; |
393 | }; | 403 | }; |
404 | |||
405 | pcf_gpio_21: gpio@21 { | ||
406 | compatible = "ti,pcf8575"; | ||
407 | reg = <0x21>; | ||
408 | lines-initial-states = <0x1408>; | ||
409 | gpio-controller; | ||
410 | #gpio-cells = <2>; | ||
411 | interrupt-parent = <&gpio6>; | ||
412 | interrupts = <11 IRQ_TYPE_EDGE_FALLING>; | ||
413 | interrupt-controller; | ||
414 | #interrupt-cells = <2>; | ||
415 | }; | ||
416 | |||
394 | }; | 417 | }; |
395 | 418 | ||
396 | &i2c2 { | 419 | &i2c2 { |
@@ -520,6 +543,14 @@ | |||
520 | }; | 543 | }; |
521 | }; | 544 | }; |
522 | 545 | ||
546 | &omap_dwc3_1 { | ||
547 | extcon = <&extcon_usb1>; | ||
548 | }; | ||
549 | |||
550 | &omap_dwc3_2 { | ||
551 | extcon = <&extcon_usb2>; | ||
552 | }; | ||
553 | |||
523 | &usb1 { | 554 | &usb1 { |
524 | dr_mode = "peripheral"; | 555 | dr_mode = "peripheral"; |
525 | pinctrl-names = "default"; | 556 | pinctrl-names = "default"; |
diff --git a/arch/arm/boot/dts/dra72-evm.dts b/arch/arm/boot/dts/dra72-evm.dts index cacddd74c516..4d8711713610 100644 --- a/arch/arm/boot/dts/dra72-evm.dts +++ b/arch/arm/boot/dts/dra72-evm.dts | |||
@@ -8,6 +8,7 @@ | |||
8 | /dts-v1/; | 8 | /dts-v1/; |
9 | 9 | ||
10 | #include "dra72x.dtsi" | 10 | #include "dra72x.dtsi" |
11 | #include <dt-bindings/gpio/gpio.h> | ||
11 | 12 | ||
12 | / { | 13 | / { |
13 | model = "TI DRA722"; | 14 | model = "TI DRA722"; |
@@ -24,6 +25,16 @@ | |||
24 | regulator-min-microvolt = <3300000>; | 25 | regulator-min-microvolt = <3300000>; |
25 | regulator-max-microvolt = <3300000>; | 26 | regulator-max-microvolt = <3300000>; |
26 | }; | 27 | }; |
28 | |||
29 | extcon_usb1: extcon_usb1 { | ||
30 | compatible = "linux,extcon-usb-gpio"; | ||
31 | id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>; | ||
32 | }; | ||
33 | |||
34 | extcon_usb2: extcon_usb2 { | ||
35 | compatible = "linux,extcon-usb-gpio"; | ||
36 | id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>; | ||
37 | }; | ||
27 | }; | 38 | }; |
28 | 39 | ||
29 | &dra7_pmx_core { | 40 | &dra7_pmx_core { |
@@ -255,6 +266,18 @@ | |||
255 | ti,palmas-long-press-seconds = <6>; | 266 | ti,palmas-long-press-seconds = <6>; |
256 | }; | 267 | }; |
257 | }; | 268 | }; |
269 | |||
270 | pcf_gpio_21: gpio@21 { | ||
271 | compatible = "ti,pcf8575"; | ||
272 | reg = <0x21>; | ||
273 | lines-initial-states = <0x1408>; | ||
274 | gpio-controller; | ||
275 | #gpio-cells = <2>; | ||
276 | interrupt-parent = <&gpio6>; | ||
277 | interrupts = <11 IRQ_TYPE_EDGE_FALLING>; | ||
278 | interrupt-controller; | ||
279 | #interrupt-cells = <2>; | ||
280 | }; | ||
258 | }; | 281 | }; |
259 | 282 | ||
260 | &uart1 { | 283 | &uart1 { |
@@ -357,6 +380,14 @@ | |||
357 | phy-supply = <&ldo4_reg>; | 380 | phy-supply = <&ldo4_reg>; |
358 | }; | 381 | }; |
359 | 382 | ||
383 | &omap_dwc3_1 { | ||
384 | extcon = <&extcon_usb1>; | ||
385 | }; | ||
386 | |||
387 | &omap_dwc3_2 { | ||
388 | extcon = <&extcon_usb2>; | ||
389 | }; | ||
390 | |||
360 | &usb1 { | 391 | &usb1 { |
361 | dr_mode = "peripheral"; | 392 | dr_mode = "peripheral"; |
362 | pinctrl-names = "default"; | 393 | pinctrl-names = "default"; |
diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index ee62d00bcbe6..fb3a69604ed5 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/omap3-gta04.dtsi | |||
@@ -237,11 +237,18 @@ | |||
237 | reg = <0x48>; | 237 | reg = <0x48>; |
238 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | 238 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
239 | interrupt-parent = <&intc>; | 239 | interrupt-parent = <&intc>; |
240 | }; | ||
241 | 240 | ||
242 | twl_audio: audio { | 241 | twl_audio: audio { |
243 | compatible = "ti,twl4030-audio"; | 242 | compatible = "ti,twl4030-audio"; |
244 | codec { | 243 | ti,enable-vibra = <1>; |
244 | codec { | ||
245 | ti,ramp_delay_value = <3>; | ||
246 | }; | ||
247 | }; | ||
248 | |||
249 | twl_power: power { | ||
250 | compatible = "ti,twl4030-power"; | ||
251 | ti,use_poweroff; | ||
245 | }; | 252 | }; |
246 | }; | 253 | }; |
247 | }; | 254 | }; |
@@ -257,15 +264,23 @@ | |||
257 | compatible = "bosch,bmp085"; | 264 | compatible = "bosch,bmp085"; |
258 | reg = <0x77>; | 265 | reg = <0x77>; |
259 | interrupt-parent = <&gpio4>; | 266 | interrupt-parent = <&gpio4>; |
260 | interrupts = <17 IRQ_TYPE_EDGE_RISING>; | 267 | interrupts = <17 IRQ_TYPE_EDGE_RISING>; /* GPIO_113 */ |
261 | }; | 268 | }; |
262 | 269 | ||
263 | /* accelerometer */ | 270 | /* accelerometer */ |
264 | bma180@41 { | 271 | bma180@41 { |
265 | compatible = "bosch,bma180"; | 272 | compatible = "bosch,bma180"; |
266 | reg = <0x41>; | 273 | reg = <0x41>; |
267 | interrupt-parent = <&gpio3>; | 274 | interrupt-parent = <&gpio4>; |
268 | interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; | 275 | interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_115 */ |
276 | }; | ||
277 | |||
278 | /* gyroscope */ | ||
279 | itg3200@68 { | ||
280 | compatible = "invensense,itg3200"; | ||
281 | reg = <0x68>; | ||
282 | interrupt-parent = <&gpio2>; | ||
283 | interrupts = <24 0>; /* GPIO_56 */ | ||
269 | }; | 284 | }; |
270 | 285 | ||
271 | /* leds */ | 286 | /* leds */ |
@@ -316,7 +331,7 @@ | |||
316 | compatible = "ti,tsc2007"; | 331 | compatible = "ti,tsc2007"; |
317 | reg = <0x48>; | 332 | reg = <0x48>; |
318 | interrupt-parent = <&gpio6>; | 333 | interrupt-parent = <&gpio6>; |
319 | interrupts = <0 IRQ_TYPE_EDGE_FALLING>; | 334 | interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */ |
320 | gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; | 335 | gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; |
321 | ti,x-plate-ohms = <600>; | 336 | ti,x-plate-ohms = <600>; |
322 | }; | 337 | }; |
@@ -355,12 +370,17 @@ | |||
355 | vmmc-supply = <&vaux4>; | 370 | vmmc-supply = <&vaux4>; |
356 | bus-width = <4>; | 371 | bus-width = <4>; |
357 | ti,non-removable; | 372 | ti,non-removable; |
373 | cap-power-off-card; | ||
358 | }; | 374 | }; |
359 | 375 | ||
360 | &mmc3 { | 376 | &mmc3 { |
361 | status = "disabled"; | 377 | status = "disabled"; |
362 | }; | 378 | }; |
363 | 379 | ||
380 | &twl_keypad { | ||
381 | status = "disabled"; | ||
382 | }; | ||
383 | |||
364 | &uart1 { | 384 | &uart1 { |
365 | pinctrl-names = "default"; | 385 | pinctrl-names = "default"; |
366 | pinctrl-0 = <&uart1_pins>; | 386 | pinctrl-0 = <&uart1_pins>; |
@@ -377,8 +397,8 @@ | |||
377 | }; | 397 | }; |
378 | 398 | ||
379 | &charger { | 399 | &charger { |
380 | bb_uvolt = <3200000>; | 400 | ti,bb-uvolt = <3200000>; |
381 | bb_uamp = <150>; | 401 | ti,bb-uamp = <150>; |
382 | }; | 402 | }; |
383 | 403 | ||
384 | /* spare */ | 404 | /* spare */ |
@@ -412,16 +432,12 @@ | |||
412 | regulator-max-microvolt = <3150000>; | 432 | regulator-max-microvolt = <3150000>; |
413 | }; | 433 | }; |
414 | 434 | ||
415 | /* Needed to power the DPI pins */ | ||
416 | &vpll2 { | ||
417 | regulator-always-on; | ||
418 | }; | ||
419 | |||
420 | &dss { | 435 | &dss { |
421 | pinctrl-names = "default"; | 436 | pinctrl-names = "default"; |
422 | pinctrl-0 = < &dss_dpi_pins >; | 437 | pinctrl-0 = < &dss_dpi_pins >; |
423 | 438 | ||
424 | status = "okay"; | 439 | status = "okay"; |
440 | vdds_dsi-supply = <&vpll2>; | ||
425 | 441 | ||
426 | port { | 442 | port { |
427 | dpi_out: endpoint { | 443 | dpi_out: endpoint { |
@@ -498,3 +514,7 @@ | |||
498 | }; | 514 | }; |
499 | }; | 515 | }; |
500 | }; | 516 | }; |
517 | |||
518 | &mcbsp2 { | ||
519 | status = "okay"; | ||
520 | }; | ||