Javier Martinez Canillas | 947fd0a | 2012-12-19 14:33:08 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for IGEP Technology devices |
| 3 | * |
| 4 | * Copyright (C) 2012 Javier Martinez Canillas <javier@collabora.co.uk> |
| 5 | * Copyright (C) 2012 Enric Balletbo i Serra <eballetbo@gmail.com> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | /dts-v1/; |
| 12 | |
Florian Vaussard | 98ef7957 | 2013-05-31 14:32:55 +0200 | [diff] [blame] | 13 | #include "omap34xx.dtsi" |
Javier Martinez Canillas | 947fd0a | 2012-12-19 14:33:08 +0100 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | memory { |
| 17 | device_type = "memory"; |
| 18 | reg = <0x80000000 0x20000000>; /* 512 MB */ |
| 19 | }; |
| 20 | |
| 21 | sound { |
| 22 | compatible = "ti,omap-twl4030"; |
| 23 | ti,model = "igep2"; |
| 24 | ti,mcbsp = <&mcbsp2>; |
| 25 | ti,codec = <&twl_audio>; |
| 26 | }; |
| 27 | }; |
| 28 | |
| 29 | &omap3_pmx_core { |
Matthias Brugger | bc0b8b7 | 2012-12-12 16:33:42 +0100 | [diff] [blame] | 30 | uart1_pins: pinmux_uart1_pins { |
| 31 | pinctrl-single,pins = < |
Florian Vaussard | bcd3cca | 2013-05-31 14:32:59 +0200 | [diff] [blame] | 32 | 0x152 (PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */ |
| 33 | 0x14c (PIN_OUTPUT |MUX_MODE0) /* uart1_tx.uart1_tx */ |
Matthias Brugger | bc0b8b7 | 2012-12-12 16:33:42 +0100 | [diff] [blame] | 34 | >; |
| 35 | }; |
| 36 | |
| 37 | uart2_pins: pinmux_uart2_pins { |
| 38 | pinctrl-single,pins = < |
Florian Vaussard | bcd3cca | 2013-05-31 14:32:59 +0200 | [diff] [blame] | 39 | 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */ |
| 40 | 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */ |
Matthias Brugger | bc0b8b7 | 2012-12-12 16:33:42 +0100 | [diff] [blame] | 41 | >; |
| 42 | }; |
| 43 | |
Javier Martinez Canillas | 947fd0a | 2012-12-19 14:33:08 +0100 | [diff] [blame] | 44 | uart3_pins: pinmux_uart3_pins { |
| 45 | pinctrl-single,pins = < |
Florian Vaussard | bcd3cca | 2013-05-31 14:32:59 +0200 | [diff] [blame] | 46 | 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */ |
| 47 | 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */ |
Javier Martinez Canillas | 947fd0a | 2012-12-19 14:33:08 +0100 | [diff] [blame] | 48 | >; |
| 49 | }; |
| 50 | |
Enric Balletbo i Serra | 65399f0 | 2013-09-10 17:35:23 +0200 | [diff] [blame] | 51 | mcbsp2_pins: pinmux_mcbsp2_pins { |
| 52 | pinctrl-single,pins = < |
| 53 | 0x10c (PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx.mcbsp2_fsx */ |
| 54 | 0x10e (PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx.mcbsp2_clkx */ |
| 55 | 0x110 (PIN_INPUT | MUX_MODE0) /* mcbsp2_dr.mcbsp2.dr */ |
| 56 | 0x112 (PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx.mcbsp2_dx */ |
| 57 | >; |
| 58 | }; |
| 59 | |
Javier Martinez Canillas | 947fd0a | 2012-12-19 14:33:08 +0100 | [diff] [blame] | 60 | mmc1_pins: pinmux_mmc1_pins { |
| 61 | pinctrl-single,pins = < |
Florian Vaussard | bcd3cca | 2013-05-31 14:32:59 +0200 | [diff] [blame] | 62 | 0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */ |
| 63 | 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */ |
| 64 | 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */ |
| 65 | 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */ |
| 66 | 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */ |
| 67 | 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */ |
| 68 | 0x120 (PIN_INPUT | MUX_MODE0) /* sdmmc1_dat4.sdmmc1_dat4 */ |
| 69 | 0x122 (PIN_INPUT | MUX_MODE0) /* sdmmc1_dat5.sdmmc1_dat5 */ |
| 70 | 0x124 (PIN_INPUT | MUX_MODE0) /* sdmmc1_dat6.sdmmc1_dat6 */ |
| 71 | 0x126 (PIN_INPUT | MUX_MODE0) /* sdmmc1_dat7.sdmmc1_dat7 */ |
Javier Martinez Canillas | 947fd0a | 2012-12-19 14:33:08 +0100 | [diff] [blame] | 72 | >; |
| 73 | }; |
Javier Martinez Canillas | d72b441 | 2013-04-17 18:32:09 +0200 | [diff] [blame] | 74 | |
| 75 | smsc911x_pins: pinmux_smsc911x_pins { |
| 76 | pinctrl-single,pins = < |
Florian Vaussard | bcd3cca | 2013-05-31 14:32:59 +0200 | [diff] [blame] | 77 | 0x1a2 (PIN_INPUT | MUX_MODE4) /* mcspi1_cs2.gpio_176 */ |
Javier Martinez Canillas | d72b441 | 2013-04-17 18:32:09 +0200 | [diff] [blame] | 78 | >; |
| 79 | }; |
Javier Martinez Canillas | 947fd0a | 2012-12-19 14:33:08 +0100 | [diff] [blame] | 80 | }; |
| 81 | |
| 82 | &i2c1 { |
| 83 | clock-frequency = <2600000>; |
| 84 | |
| 85 | twl: twl@48 { |
| 86 | reg = <0x48>; |
| 87 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
| 88 | interrupt-parent = <&intc>; |
| 89 | |
| 90 | twl_audio: audio { |
| 91 | compatible = "ti,twl4030-audio"; |
| 92 | codec { |
| 93 | }; |
| 94 | }; |
| 95 | }; |
| 96 | }; |
| 97 | |
Florian Vaussard | 98ef7957 | 2013-05-31 14:32:55 +0200 | [diff] [blame] | 98 | #include "twl4030.dtsi" |
Kevin Hilman | f968845 | 2013-05-31 14:09:34 -0700 | [diff] [blame] | 99 | #include "twl4030_omap3.dtsi" |
Javier Martinez Canillas | 947fd0a | 2012-12-19 14:33:08 +0100 | [diff] [blame] | 100 | |
| 101 | &i2c2 { |
| 102 | clock-frequency = <400000>; |
| 103 | }; |
| 104 | |
Enric Balletbo i Serra | 65399f0 | 2013-09-10 17:35:23 +0200 | [diff] [blame] | 105 | &mcbsp2 { |
| 106 | pinctrl-names = "default"; |
| 107 | pinctrl-0 = <&mcbsp2_pins>; |
| 108 | }; |
| 109 | |
Javier Martinez Canillas | 947fd0a | 2012-12-19 14:33:08 +0100 | [diff] [blame] | 110 | &mmc1 { |
| 111 | pinctrl-names = "default"; |
| 112 | pinctrl-0 = <&mmc1_pins>; |
| 113 | vmmc-supply = <&vmmc1>; |
| 114 | vmmc_aux-supply = <&vsim>; |
| 115 | bus-width = <8>; |
| 116 | }; |
| 117 | |
| 118 | &mmc2 { |
| 119 | status = "disabled"; |
| 120 | }; |
| 121 | |
| 122 | &mmc3 { |
| 123 | status = "disabled"; |
| 124 | }; |
| 125 | |
Matthias Brugger | bc0b8b7 | 2012-12-12 16:33:42 +0100 | [diff] [blame] | 126 | &uart1 { |
| 127 | pinctrl-names = "default"; |
| 128 | pinctrl-0 = <&uart1_pins>; |
| 129 | }; |
| 130 | |
| 131 | &uart2 { |
| 132 | pinctrl-names = "default"; |
| 133 | pinctrl-0 = <&uart2_pins>; |
| 134 | }; |
| 135 | |
Javier Martinez Canillas | 947fd0a | 2012-12-19 14:33:08 +0100 | [diff] [blame] | 136 | &uart3 { |
| 137 | pinctrl-names = "default"; |
| 138 | pinctrl-0 = <&uart3_pins>; |
| 139 | }; |
| 140 | |
| 141 | &twl_gpio { |
| 142 | ti,use-leds; |
| 143 | }; |