Tony Lindgren | bd5fc6f | 2013-11-25 15:15:39 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | /dts-v1/; |
| 9 | |
| 10 | #include "omap34xx.dtsi" |
| 11 | #include "omap-gpmc-smsc911x.dtsi" |
| 12 | |
| 13 | / { |
| 14 | model = "TI OMAP3430 LDP (Zoom1 Labrador)"; |
| 15 | compatible = "ti,omap3-ldp", "ti,omap3"; |
| 16 | |
| 17 | memory { |
| 18 | device_type = "memory"; |
| 19 | reg = <0x80000000 0x8000000>; /* 128 MB */ |
| 20 | }; |
| 21 | |
| 22 | cpus { |
| 23 | cpu@0 { |
| 24 | cpu0-supply = <&vcc>; |
| 25 | }; |
| 26 | }; |
| 27 | |
| 28 | gpio_keys { |
| 29 | compatible = "gpio-keys"; |
| 30 | pinctrl-names = "default"; |
| 31 | pinctrl-0 = <&gpio_key_pins>; |
| 32 | |
| 33 | key_enter { |
| 34 | label = "enter"; |
| 35 | gpios = <&gpio4 5 GPIO_ACTIVE_LOW>; /* gpio101 */ |
| 36 | linux,code = <0x0107001c>; /* KEY_ENTER */ |
| 37 | gpio-key,wakeup; |
| 38 | }; |
| 39 | |
| 40 | key_f1 { |
| 41 | label = "f1"; |
| 42 | gpios = <&gpio4 6 GPIO_ACTIVE_LOW>; /* gpio102 */ |
| 43 | linux,code = <0x0303003b>; /* KEY_F1 */ |
| 44 | gpio-key,wakeup; |
| 45 | }; |
| 46 | |
| 47 | key_f2 { |
| 48 | label = "f2"; |
| 49 | gpios = <&gpio4 7 GPIO_ACTIVE_LOW>; /* gpio103 */ |
| 50 | linux,code = <0x0403003c>; /* KEY_F2 */ |
| 51 | gpio-key,wakeup; |
| 52 | }; |
| 53 | |
| 54 | key_f3 { |
| 55 | label = "f3"; |
| 56 | gpios = <&gpio4 8 GPIO_ACTIVE_LOW>; /* gpio104 */ |
| 57 | linux,code = <0x0503003d>; /* KEY_F3 */ |
| 58 | gpio-key,wakeup; |
| 59 | }; |
| 60 | |
| 61 | key_f4 { |
| 62 | label = "f4"; |
| 63 | gpios = <&gpio4 9 GPIO_ACTIVE_LOW>; /* gpio105 */ |
| 64 | linux,code = <0x0704003e>; /* KEY_F4 */ |
| 65 | gpio-key,wakeup; |
| 66 | }; |
| 67 | |
| 68 | key_left { |
| 69 | label = "left"; |
| 70 | gpios = <&gpio4 10 GPIO_ACTIVE_LOW>; /* gpio106 */ |
| 71 | linux,code = <0x04070069>; /* KEY_LEFT */ |
| 72 | gpio-key,wakeup; |
| 73 | }; |
| 74 | |
| 75 | key_right { |
| 76 | label = "right"; |
| 77 | gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; /* gpio107 */ |
| 78 | linux,code = <0x0507006a>; /* KEY_RIGHT */ |
| 79 | gpio-key,wakeup; |
| 80 | }; |
| 81 | |
| 82 | key_up { |
| 83 | label = "up"; |
| 84 | gpios = <&gpio4 12 GPIO_ACTIVE_LOW>; /* gpio108 */ |
| 85 | linux,code = <0x06070067>; /* KEY_UP */ |
| 86 | gpio-key,wakeup; |
| 87 | }; |
| 88 | |
| 89 | key_down { |
| 90 | label = "down"; |
| 91 | gpios = <&gpio4 13 GPIO_ACTIVE_LOW>; /* gpio109 */ |
| 92 | linux,code = <0x0707006c>; /* KEY_DOWN */ |
| 93 | gpio-key,wakeup; |
| 94 | }; |
| 95 | }; |
| 96 | }; |
| 97 | |
| 98 | &gpmc { |
| 99 | ranges = <0 0 0x00000000 0x01000000>, |
| 100 | <1 0 0x08000000 0x01000000>; |
| 101 | |
| 102 | nand@0,0 { |
| 103 | linux,mtd-name= "micron,nand"; |
| 104 | reg = <0 0 0>; |
| 105 | nand-bus-width = <16>; |
| 106 | ti,nand-ecc-opt = "bch8"; |
| 107 | |
| 108 | gpmc,sync-clk-ps = <0>; |
| 109 | gpmc,cs-on-ns = <0>; |
| 110 | gpmc,cs-rd-off-ns = <44>; |
| 111 | gpmc,cs-wr-off-ns = <44>; |
| 112 | gpmc,adv-on-ns = <6>; |
| 113 | gpmc,adv-rd-off-ns = <34>; |
| 114 | gpmc,adv-wr-off-ns = <44>; |
| 115 | gpmc,we-off-ns = <40>; |
| 116 | gpmc,oe-off-ns = <54>; |
| 117 | gpmc,access-ns = <64>; |
| 118 | gpmc,rd-cycle-ns = <82>; |
| 119 | gpmc,wr-cycle-ns = <82>; |
| 120 | gpmc,wr-access-ns = <40>; |
| 121 | gpmc,wr-data-mux-bus-ns = <0>; |
| 122 | |
| 123 | #address-cells = <1>; |
| 124 | #size-cells = <1>; |
| 125 | |
| 126 | partition@0 { |
| 127 | label = "X-Loader"; |
| 128 | reg = <0 0x80000>; |
| 129 | }; |
| 130 | partition@80000 { |
| 131 | label = "U-Boot"; |
| 132 | reg = <0x80000 0x140000>; |
| 133 | }; |
| 134 | partition@1c0000 { |
| 135 | label = "Environment"; |
| 136 | reg = <0x1c0000 0x40000>; |
| 137 | }; |
| 138 | partition@200000 { |
| 139 | label = "Kernel"; |
| 140 | reg = <0x200000 0x1e00000>; |
| 141 | }; |
| 142 | partition@2000000 { |
| 143 | label = "Filesystem"; |
| 144 | reg = <0x2000000 0xe000000>; |
| 145 | }; |
| 146 | }; |
| 147 | |
| 148 | ethernet@gpmc { |
| 149 | interrupt-parent = <&gpio5>; |
| 150 | interrupts = <24 IRQ_TYPE_LEVEL_LOW>; |
| 151 | reg = <1 0 0xff>; |
| 152 | }; |
| 153 | }; |
| 154 | |
| 155 | &i2c1 { |
| 156 | clock-frequency = <2600000>; |
| 157 | |
| 158 | twl: twl@48 { |
| 159 | reg = <0x48>; |
| 160 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
| 161 | interrupt-parent = <&intc>; |
| 162 | }; |
| 163 | }; |
| 164 | |
| 165 | #include "twl4030.dtsi" |
| 166 | #include "twl4030_omap3.dtsi" |
Tony Lindgren | bc10f31 | 2014-05-13 14:32:05 -0700 | [diff] [blame] | 167 | #include "omap3-panel-sharp-ls037v7dw01.dtsi" |
| 168 | |
| 169 | &backlight0 { |
| 170 | gpios = <&twl_gpio 7 GPIO_ACTIVE_HIGH>; |
| 171 | }; |
Tony Lindgren | bd5fc6f | 2013-11-25 15:15:39 -0800 | [diff] [blame] | 172 | |
| 173 | &i2c2 { |
| 174 | clock-frequency = <400000>; |
| 175 | }; |
| 176 | |
| 177 | &i2c3 { |
| 178 | clock-frequency = <400000>; |
| 179 | }; |
| 180 | |
Tony Lindgren | bc10f31 | 2014-05-13 14:32:05 -0700 | [diff] [blame] | 181 | /* tps61130rsa enabled by twl4030 regen */ |
| 182 | &lcd_3v3 { |
| 183 | regulator-always-on; |
| 184 | }; |
| 185 | |
| 186 | &lcd0 { |
| 187 | enable-gpios = <&twl_gpio 15 GPIO_ACTIVE_HIGH>; /* lcd INI */ |
| 188 | reset-gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>; /* gpio55, lcd RESB */ |
| 189 | mode-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>; /* gpio56, lcd MO */ |
| 190 | }; |
| 191 | |
| 192 | &mcspi1 { |
| 193 | tsc2046@0 { |
| 194 | interrupt-parent = <&gpio2>; |
| 195 | interrupts = <22 0>; /* gpio54 */ |
| 196 | pendown-gpio = <&gpio2 22 0>; |
| 197 | }; |
| 198 | }; |
| 199 | |
Tony Lindgren | bd5fc6f | 2013-11-25 15:15:39 -0800 | [diff] [blame] | 200 | &mmc1 { |
Nishanth Menon | a8d6fb5 | 2014-02-13 23:45:49 -0600 | [diff] [blame] | 201 | /* See 35xx errata 2.1.1.128 in SPRZ278F */ |
| 202 | compatible = "ti,omap3-pre-es3-hsmmc"; |
Tony Lindgren | bd5fc6f | 2013-11-25 15:15:39 -0800 | [diff] [blame] | 203 | vmmc-supply = <&vmmc1>; |
| 204 | bus-width = <4>; |
Nishanth Menon | a8d6fb5 | 2014-02-13 23:45:49 -0600 | [diff] [blame] | 205 | pinctrl-names = "default"; |
| 206 | pinctrl-0 = <&mmc1_pins>; |
| 207 | }; |
| 208 | |
| 209 | &mmc2 { |
| 210 | status="disabled"; |
| 211 | }; |
| 212 | |
| 213 | &mmc3 { |
| 214 | status="disabled"; |
Tony Lindgren | bd5fc6f | 2013-11-25 15:15:39 -0800 | [diff] [blame] | 215 | }; |
| 216 | |
| 217 | &omap3_pmx_core { |
| 218 | gpio_key_pins: pinmux_gpio_key_pins { |
| 219 | pinctrl-single,pins = < |
| 220 | 0xea (PIN_INPUT | MUX_MODE4) /* cam_d2.gpio_101 */ |
| 221 | 0xec (PIN_INPUT | MUX_MODE4) /* cam_d3.gpio_102 */ |
| 222 | 0xee (PIN_INPUT | MUX_MODE4) /* cam_d4.gpio_103 */ |
| 223 | 0xf0 (PIN_INPUT | MUX_MODE4) /* cam_d5.gpio_104 */ |
| 224 | 0xf2 (PIN_INPUT | MUX_MODE4) /* cam_d6.gpio_105 */ |
| 225 | 0xf4 (PIN_INPUT | MUX_MODE4) /* cam_d7.gpio_106 */ |
| 226 | 0xf6 (PIN_INPUT | MUX_MODE4) /* cam_d8.gpio_107 */ |
| 227 | 0xf8 (PIN_INPUT | MUX_MODE4) /* cam_d9.gpio_108 */ |
| 228 | 0xfa (PIN_INPUT | MUX_MODE4) /* cam_d10.gpio_109 */ |
| 229 | >; |
| 230 | }; |
| 231 | |
| 232 | musb_pins: pinmux_musb_pins { |
| 233 | pinctrl-single,pins = < |
| 234 | 0x172 (PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */ |
| 235 | 0x17a (PIN_INPUT | MUX_MODE0) /* hsusb0_data0.hsusb0_data0 */ |
| 236 | 0x17c (PIN_INPUT | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */ |
| 237 | 0x17e (PIN_INPUT | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */ |
| 238 | 0x180 (PIN_INPUT | MUX_MODE0) /* hsusb0_data3.hsusb0_data3 */ |
| 239 | 0x182 (PIN_INPUT | MUX_MODE0) /* hsusb0_data4.hsusb0_data4 */ |
| 240 | 0x184 (PIN_INPUT | MUX_MODE0) /* hsusb0_data5.hsusb0_data5 */ |
| 241 | 0x186 (PIN_INPUT | MUX_MODE0) /* hsusb0_data6.hsusb0_data6 */ |
| 242 | 0x188 (PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */ |
| 243 | 0x176 (PIN_INPUT | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */ |
| 244 | 0x178 (PIN_INPUT | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */ |
| 245 | 0x174 (PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */ |
| 246 | >; |
| 247 | }; |
Nishanth Menon | a8d6fb5 | 2014-02-13 23:45:49 -0600 | [diff] [blame] | 248 | |
| 249 | mmc1_pins: pinmux_mmc1_pins { |
| 250 | pinctrl-single,pins = < |
| 251 | OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.mmc1_clk */ |
| 252 | OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.mmc1_cmd */ |
| 253 | OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.mmc1_dat0 */ |
| 254 | OMAP3_CORE1_IOPAD(0x214A, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.mmc1_dat1 */ |
| 255 | OMAP3_CORE1_IOPAD(0x214C, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.mmc1_dat2 */ |
| 256 | OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.mmc1_dat3 */ |
| 257 | >; |
| 258 | }; |
Tony Lindgren | bd5fc6f | 2013-11-25 15:15:39 -0800 | [diff] [blame] | 259 | }; |
| 260 | |
Tony Lindgren | 31f0820 | 2014-05-05 17:27:39 -0700 | [diff] [blame] | 261 | &uart3 { |
| 262 | interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>; |
| 263 | }; |
| 264 | |
Tony Lindgren | bd5fc6f | 2013-11-25 15:15:39 -0800 | [diff] [blame] | 265 | &usb_otg_hs { |
| 266 | pinctrl-names = "default"; |
| 267 | pinctrl-0 = <&musb_pins>; |
| 268 | interface-type = <0>; |
| 269 | usb-phy = <&usb2_phy>; |
| 270 | mode = <3>; |
| 271 | power = <50>; |
| 272 | }; |
| 273 | |
| 274 | &vaux1 { |
| 275 | /* Needed for ads7846 */ |
| 276 | regulator-name = "vcc"; |
| 277 | }; |