Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 1 | /* |
| 2 | * Support for CompuLab CM-T54 |
| 3 | */ |
| 4 | /dts-v1/; |
| 5 | |
| 6 | #include "omap5.dtsi" |
| 7 | #include <dt-bindings/interrupt-controller/irq.h> |
| 8 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 9 | |
| 10 | / { |
| 11 | model = "CompuLab CM-T54"; |
| 12 | compatible = "compulab,omap5-cm-t54", "ti,omap5"; |
| 13 | |
| 14 | memory { |
| 15 | device_type = "memory"; |
| 16 | reg = <0x80000000 0x7F000000>; /* 2048 MB */ |
| 17 | }; |
| 18 | |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 19 | aliases { |
| 20 | display0 = &hdmi0; |
| 21 | display1 = &dvi0; |
Dmitry Lifshitz | ac84d6c | 2014-09-17 15:10:06 +0300 | [diff] [blame] | 22 | display2 = &lcd0; |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 23 | }; |
| 24 | |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 25 | vmmcsd_fixed: fixed-regulator-mmcsd { |
| 26 | compatible = "regulator-fixed"; |
| 27 | regulator-name = "vmmcsd_fixed"; |
| 28 | regulator-min-microvolt = <3300000>; |
| 29 | regulator-max-microvolt = <3300000>; |
| 30 | }; |
| 31 | |
Dmitry Lifshitz | 4a996d187 | 2014-04-28 14:41:45 +0300 | [diff] [blame] | 32 | vwlan_pdn_fixed: fixed-regulator-vwlan-pdn { |
| 33 | compatible = "regulator-fixed"; |
| 34 | regulator-name = "vwlan_pdn_fixed"; |
| 35 | regulator-min-microvolt = <3300000>; |
| 36 | regulator-max-microvolt = <3300000>; |
| 37 | vin-supply = <&ldo2_reg>; |
| 38 | gpio = <&gpio4 13 GPIO_ACTIVE_HIGH>; /* gpio4_109 */ |
| 39 | startup-delay-us = <1000>; |
| 40 | enable-active-high; |
| 41 | }; |
| 42 | |
| 43 | vwlan_fixed: fixed-regulator-vwlan { |
| 44 | compatible = "regulator-fixed"; |
| 45 | regulator-name = "vwlan_fixed"; |
| 46 | regulator-min-microvolt = <3300000>; |
| 47 | regulator-max-microvolt = <3300000>; |
| 48 | vin-supply = <&vwlan_pdn_fixed>; |
| 49 | gpio = <&gpio4 14 GPIO_ACTIVE_HIGH>; /* gpio4_110 */ |
| 50 | startup-delay-us = <1000>; |
| 51 | enable-active-high; |
| 52 | }; |
| 53 | |
Dmitry Lifshitz | 1a3290b | 2014-09-17 15:10:07 +0300 | [diff] [blame] | 54 | ads7846reg: ads7846-reg { |
| 55 | compatible = "regulator-fixed"; |
| 56 | regulator-name = "ads7846-reg"; |
| 57 | regulator-min-microvolt = <3300000>; |
| 58 | regulator-max-microvolt = <3300000>; |
| 59 | }; |
| 60 | |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 61 | /* HS USB Host PHY on PORT 2 */ |
| 62 | hsusb2_phy: hsusb2_phy { |
| 63 | compatible = "usb-nop-xceiv"; |
| 64 | reset-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; /* gpio3_76 HUB_RESET */ |
| 65 | }; |
| 66 | |
| 67 | /* HS USB Host PHY on PORT 3 */ |
| 68 | hsusb3_phy: hsusb3_phy { |
| 69 | compatible = "usb-nop-xceiv"; |
| 70 | reset-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>; /* gpio3_83 ETH_RESET */ |
| 71 | }; |
| 72 | |
| 73 | leds { |
| 74 | compatible = "gpio-leds"; |
| 75 | led@1 { |
| 76 | label = "Heartbeat"; |
| 77 | gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>; /* gpio3_80 ACT_LED */ |
| 78 | linux,default-trigger = "heartbeat"; |
| 79 | default-state = "off"; |
| 80 | }; |
| 81 | }; |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 82 | |
Dmitry Lifshitz | ac84d6c | 2014-09-17 15:10:06 +0300 | [diff] [blame] | 83 | lcd0: display { |
| 84 | compatible = "startek,startek-kd050c", "panel-dpi"; |
| 85 | label = "lcd"; |
| 86 | |
| 87 | pinctrl-names = "default"; |
| 88 | pinctrl-0 = <&lcd_pins>; |
| 89 | |
| 90 | enable-gpios = <&gpio8 3 GPIO_ACTIVE_HIGH>; |
| 91 | |
| 92 | panel-timing { |
| 93 | clock-frequency = <33000000>; |
| 94 | hactive = <800>; |
| 95 | vactive = <480>; |
| 96 | hfront-porch = <40>; |
| 97 | hback-porch = <40>; |
| 98 | hsync-len = <43>; |
| 99 | vback-porch = <29>; |
| 100 | vfront-porch = <13>; |
| 101 | vsync-len = <3>; |
| 102 | hsync-active = <0>; |
| 103 | vsync-active = <0>; |
| 104 | de-active = <1>; |
| 105 | pixelclk-active = <1>; |
| 106 | }; |
| 107 | |
| 108 | port { |
| 109 | lcd_in: endpoint { |
| 110 | remote-endpoint = <&dpi_lcd_out>; |
| 111 | }; |
| 112 | }; |
| 113 | }; |
| 114 | |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 115 | hdmi0: connector@0 { |
| 116 | compatible = "hdmi-connector"; |
| 117 | label = "hdmi"; |
| 118 | |
| 119 | type = "a"; |
| 120 | |
| 121 | pinctrl-names = "default"; |
| 122 | pinctrl-0 = <&hdmi_conn_pins>; |
| 123 | |
| 124 | hpd-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; /* GPIO 193, HPD */ |
| 125 | |
| 126 | port { |
| 127 | hdmi_connector_in: endpoint { |
| 128 | remote-endpoint = <&hdmi_out>; |
| 129 | }; |
| 130 | }; |
| 131 | }; |
| 132 | |
| 133 | tfp410: encoder@0 { |
| 134 | compatible = "ti,tfp410"; |
| 135 | |
| 136 | ports { |
| 137 | #address-cells = <1>; |
| 138 | #size-cells = <0>; |
| 139 | |
| 140 | port@0 { |
| 141 | reg = <0>; |
| 142 | |
| 143 | tfp410_in: endpoint@0 { |
| 144 | remote-endpoint = <&dpi_dvi_out>; |
| 145 | }; |
| 146 | }; |
| 147 | |
| 148 | port@1 { |
| 149 | reg = <1>; |
| 150 | |
| 151 | tfp410_out: endpoint@0 { |
| 152 | remote-endpoint = <&dvi_connector_in>; |
| 153 | }; |
| 154 | }; |
| 155 | }; |
| 156 | }; |
| 157 | |
| 158 | dvi0: connector@1 { |
| 159 | compatible = "dvi-connector"; |
| 160 | label = "dvi"; |
| 161 | |
| 162 | digital; |
| 163 | |
| 164 | ddc-i2c-bus = <&i2c2>; |
| 165 | |
| 166 | port { |
| 167 | dvi_connector_in: endpoint { |
| 168 | remote-endpoint = <&tfp410_out>; |
| 169 | }; |
| 170 | }; |
| 171 | }; |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 172 | }; |
| 173 | |
Dmitry Lifshitz | 1a3290b | 2014-09-17 15:10:07 +0300 | [diff] [blame] | 174 | &omap5_pmx_wkup { |
| 175 | |
| 176 | ads7846_pins: pinmux_ads7846_pins { |
| 177 | pinctrl-single,pins = < |
| 178 | 0x02 (PIN_INPUT_PULLDOWN | MUX_MODE6) /* llib_wakereqin.gpio1_wk15 */ |
| 179 | >; |
| 180 | }; |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 181 | }; |
| 182 | |
| 183 | &omap5_pmx_core { |
| 184 | pinctrl-names = "default"; |
| 185 | pinctrl-0 = < |
| 186 | &led_gpio_pins |
| 187 | &usbhost_pins |
| 188 | >; |
| 189 | |
| 190 | led_gpio_pins: pinmux_led_gpio_pins { |
| 191 | pinctrl-single,pins = < |
Joachim Eastwood | 4b46629 | 2014-05-12 20:16:27 +0200 | [diff] [blame] | 192 | OMAP5_IOPAD(0x00b0, PIN_OUTPUT | MUX_MODE6) /* hsi2_caflag.gpio3_80 */ |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 193 | >; |
| 194 | }; |
| 195 | |
| 196 | i2c1_pins: pinmux_i2c1_pins { |
| 197 | pinctrl-single,pins = < |
Joachim Eastwood | 4b46629 | 2014-05-12 20:16:27 +0200 | [diff] [blame] | 198 | OMAP5_IOPAD(0x01f2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_pmic_scl */ |
| 199 | OMAP5_IOPAD(0x01f4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_pmic_sda */ |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 200 | >; |
| 201 | }; |
| 202 | |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 203 | i2c2_pins: pinmux_i2c2_pins { |
| 204 | pinctrl-single,pins = < |
| 205 | OMAP5_IOPAD(0x01b8, PIN_INPUT | MUX_MODE0) /* i2c2_scl */ |
| 206 | OMAP5_IOPAD(0x01ba, PIN_INPUT | MUX_MODE0) /* i2c2_sda */ |
| 207 | >; |
| 208 | }; |
| 209 | |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 210 | mmc1_pins: pinmux_mmc1_pins { |
| 211 | pinctrl-single,pins = < |
Joachim Eastwood | 4b46629 | 2014-05-12 20:16:27 +0200 | [diff] [blame] | 212 | OMAP5_IOPAD(0x01e2, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_clk */ |
| 213 | OMAP5_IOPAD(0x01e4, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_cmd */ |
| 214 | OMAP5_IOPAD(0x01e6, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data2 */ |
| 215 | OMAP5_IOPAD(0x01e8, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data3 */ |
| 216 | OMAP5_IOPAD(0x01ea, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data0 */ |
| 217 | OMAP5_IOPAD(0x01ec, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data1 */ |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 218 | >; |
| 219 | }; |
| 220 | |
| 221 | mmc2_pins: pinmux_mmc2_pins { |
| 222 | pinctrl-single,pins = < |
Joachim Eastwood | 4b46629 | 2014-05-12 20:16:27 +0200 | [diff] [blame] | 223 | OMAP5_IOPAD(0x0040, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_clk */ |
| 224 | OMAP5_IOPAD(0x0042, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_cmd */ |
| 225 | OMAP5_IOPAD(0x0044, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data0 */ |
| 226 | OMAP5_IOPAD(0x0046, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data1 */ |
| 227 | OMAP5_IOPAD(0x0048, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data2 */ |
| 228 | OMAP5_IOPAD(0x004a, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data3 */ |
| 229 | OMAP5_IOPAD(0x004c, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data4 */ |
| 230 | OMAP5_IOPAD(0x004e, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data5 */ |
| 231 | OMAP5_IOPAD(0x0050, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data6 */ |
| 232 | OMAP5_IOPAD(0x0052, PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data7 */ |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 233 | >; |
| 234 | }; |
| 235 | |
Dmitry Lifshitz | 4a996d187 | 2014-04-28 14:41:45 +0300 | [diff] [blame] | 236 | mmc3_pins: pinmux_mmc3_pins { |
| 237 | pinctrl-single,pins = < |
Joachim Eastwood | 4b46629 | 2014-05-12 20:16:27 +0200 | [diff] [blame] | 238 | OMAP5_IOPAD(0x01a4, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_clk */ |
| 239 | OMAP5_IOPAD(0x01a6, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_cmd */ |
| 240 | OMAP5_IOPAD(0x01a8, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data0 */ |
| 241 | OMAP5_IOPAD(0x01aa, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data1 */ |
| 242 | OMAP5_IOPAD(0x01ac, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data2 */ |
| 243 | OMAP5_IOPAD(0x01ae, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data3 */ |
Dmitry Lifshitz | 4a996d187 | 2014-04-28 14:41:45 +0300 | [diff] [blame] | 244 | >; |
| 245 | }; |
| 246 | |
| 247 | wlan_gpios_pins: pinmux_wlan_gpios_pins { |
| 248 | pinctrl-single,pins = < |
Dmitry Lifshitz | db5790f | 2014-09-17 15:10:04 +0300 | [diff] [blame] | 249 | OMAP5_IOPAD(0x019c, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* abemcpdm_ul_data.gpio4_109 */ |
| 250 | OMAP5_IOPAD(0x019e, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* abemcpdm_dl_data.gpio4_110 */ |
Dmitry Lifshitz | 4a996d187 | 2014-04-28 14:41:45 +0300 | [diff] [blame] | 251 | >; |
| 252 | }; |
| 253 | |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 254 | usbhost_pins: pinmux_usbhost_pins { |
| 255 | pinctrl-single,pins = < |
Joachim Eastwood | 4b46629 | 2014-05-12 20:16:27 +0200 | [diff] [blame] | 256 | OMAP5_IOPAD(0x00c4, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */ |
| 257 | OMAP5_IOPAD(0x00c6, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */ |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 258 | |
Joachim Eastwood | 4b46629 | 2014-05-12 20:16:27 +0200 | [diff] [blame] | 259 | OMAP5_IOPAD(0x01dc, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */ |
| 260 | OMAP5_IOPAD(0x01de, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */ |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 261 | |
Joachim Eastwood | 4b46629 | 2014-05-12 20:16:27 +0200 | [diff] [blame] | 262 | OMAP5_IOPAD(0x00a8, PIN_OUTPUT | MUX_MODE6) /* hsi2_caready.gpio3_76 */ |
| 263 | OMAP5_IOPAD(0x00b6, PIN_OUTPUT | MUX_MODE6) /* hsi2_acdata.gpio3_83 */ |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 264 | >; |
| 265 | }; |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 266 | |
| 267 | dss_hdmi_pins: pinmux_dss_hdmi_pins { |
| 268 | pinctrl-single,pins = < |
| 269 | OMAP5_IOPAD(0x013c, PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_cec */ |
| 270 | OMAP5_IOPAD(0x0140, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_scl */ |
| 271 | OMAP5_IOPAD(0x0142, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_sda */ |
| 272 | >; |
| 273 | }; |
| 274 | |
Dmitry Lifshitz | ac84d6c | 2014-09-17 15:10:06 +0300 | [diff] [blame] | 275 | lcd_pins: pinmux_lcd_pins { |
| 276 | pinctrl-single,pins = < |
| 277 | OMAP5_IOPAD(0x0172, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* timer11_pwm_evt.gpio8_227 */ |
| 278 | >; |
| 279 | }; |
| 280 | |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 281 | hdmi_conn_pins: pinmux_hdmi_conn_pins { |
| 282 | pinctrl-single,pins = < |
| 283 | OMAP5_IOPAD(0x013e, PIN_INPUT | MUX_MODE6) /* hdmi_hpd.gpio7_193 */ |
| 284 | >; |
| 285 | }; |
| 286 | |
| 287 | dss_dpi_pins: pinmux_dss_dpi_pins { |
| 288 | pinctrl-single,pins = < |
| 289 | OMAP5_IOPAD(0x0104, PIN_OUTPUT | MUX_MODE3) /* rfbi_data15.dispc_data15 */ |
| 290 | OMAP5_IOPAD(0x0106, PIN_OUTPUT | MUX_MODE3) /* rfbi_data14.dispc_data14 */ |
| 291 | OMAP5_IOPAD(0x0108, PIN_OUTPUT | MUX_MODE3) /* rfbi_data13.dispc_data13 */ |
| 292 | OMAP5_IOPAD(0x010a, PIN_OUTPUT | MUX_MODE3) /* rfbi_data12.dispc_data12 */ |
| 293 | OMAP5_IOPAD(0x010c, PIN_OUTPUT | MUX_MODE3) /* rfbi_data11.dispc_data11 */ |
| 294 | OMAP5_IOPAD(0x010e, PIN_OUTPUT | MUX_MODE3) /* rfbi_data10.dispc_data10 */ |
| 295 | OMAP5_IOPAD(0x0110, PIN_OUTPUT | MUX_MODE3) /* rfbi_data9.dispc_data9 */ |
| 296 | OMAP5_IOPAD(0x0112, PIN_OUTPUT | MUX_MODE3) /* rfbi_data8.dispc_data8 */ |
| 297 | OMAP5_IOPAD(0x0114, PIN_OUTPUT | MUX_MODE3) /* rfbi_data7.dispc_data7 */ |
| 298 | OMAP5_IOPAD(0x0116, PIN_OUTPUT | MUX_MODE3) /* rfbi_data6.dispc_data6 */ |
| 299 | OMAP5_IOPAD(0x0118, PIN_OUTPUT | MUX_MODE3) /* rfbi_data5.dispc_data5 */ |
| 300 | OMAP5_IOPAD(0x011a, PIN_OUTPUT | MUX_MODE3) /* rfbi_data4.dispc_data4 */ |
| 301 | OMAP5_IOPAD(0x011c, PIN_OUTPUT | MUX_MODE3) /* rfbi_data3.dispc_data3 */ |
| 302 | OMAP5_IOPAD(0x011e, PIN_OUTPUT | MUX_MODE3) /* rfbi_data2.dispc_data2 */ |
| 303 | OMAP5_IOPAD(0x0120, PIN_OUTPUT | MUX_MODE3) /* rfbi_data1.dispc_data1 */ |
| 304 | OMAP5_IOPAD(0x0122, PIN_OUTPUT | MUX_MODE3) /* rfbi_data0.dispc_data0 */ |
| 305 | OMAP5_IOPAD(0x0124, PIN_OUTPUT | MUX_MODE3) /* rfbi_we.dispc_vsync */ |
| 306 | OMAP5_IOPAD(0x0126, PIN_OUTPUT | MUX_MODE3) /* rfbi_cs0.dispc_hsync */ |
| 307 | OMAP5_IOPAD(0x0128, PIN_OUTPUT | MUX_MODE3) /* rfbi_a0.dispc_de */ |
| 308 | OMAP5_IOPAD(0x012a, PIN_OUTPUT | MUX_MODE3) /* rfbi_re.dispc_pclk */ |
| 309 | OMAP5_IOPAD(0x012c, PIN_OUTPUT | MUX_MODE3) /* rfbi_hsync0.dispc_data17 */ |
| 310 | OMAP5_IOPAD(0x012e, PIN_OUTPUT | MUX_MODE3) /* rfbi_te_vsync0.dispc_data16 */ |
| 311 | OMAP5_IOPAD(0x0130, PIN_OUTPUT | MUX_MODE3) /* gpio6_182.dispc_data18 */ |
| 312 | OMAP5_IOPAD(0x0132, PIN_OUTPUT | MUX_MODE3) /* gpio6_183.dispc_data19 */ |
| 313 | OMAP5_IOPAD(0x0134, PIN_OUTPUT | MUX_MODE3) /* gpio6_184.dispc_data20 */ |
| 314 | OMAP5_IOPAD(0x0136, PIN_OUTPUT | MUX_MODE3) /* gpio6_185.dispc_data21 */ |
| 315 | OMAP5_IOPAD(0x0138, PIN_OUTPUT | MUX_MODE3) /* gpio6_186.dispc_data22 */ |
| 316 | OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* gpio6_187.dispc_data23 */ |
| 317 | >; |
| 318 | }; |
Dmitry Lifshitz | 1a3290b | 2014-09-17 15:10:07 +0300 | [diff] [blame] | 319 | |
| 320 | mcspi2_pins: pinmux_mcspi1_pins { |
| 321 | pinctrl-single,pins = < |
| 322 | OMAP5_IOPAD(0x00fc, PIN_INPUT | MUX_MODE0) /* mcspi2_clk */ |
| 323 | OMAP5_IOPAD(0x00fe, PIN_INPUT | MUX_MODE0) /* mcspi2_simo */ |
| 324 | OMAP5_IOPAD(0x0100, PIN_INPUT | MUX_MODE0) /* mcspi2_somi */ |
| 325 | OMAP5_IOPAD(0x0102, PIN_INPUT | MUX_MODE0) /* mcspi2_cs0 */ |
| 326 | >; |
| 327 | }; |
| 328 | }; |
| 329 | |
| 330 | &mcspi2 { |
| 331 | pinctrl-names = "default"; |
| 332 | pinctrl-0 = <&mcspi2_pins>; |
| 333 | |
| 334 | /* touch controller */ |
| 335 | ads7846@0 { |
| 336 | pinctrl-names = "default"; |
| 337 | pinctrl-0 = <&ads7846_pins>; |
| 338 | |
| 339 | compatible = "ti,ads7846"; |
| 340 | vcc-supply = <&ads7846reg>; |
| 341 | |
| 342 | reg = <0>; /* CS0 */ |
| 343 | spi-max-frequency = <1500000>; |
| 344 | |
| 345 | interrupt-parent = <&gpio1>; |
| 346 | interrupts = <15 0>; /* gpio1_wk15 */ |
| 347 | pendown-gpio = <&gpio1 15 0>; |
| 348 | |
| 349 | |
| 350 | ti,x-min = /bits/ 16 <0x0>; |
| 351 | ti,x-max = /bits/ 16 <0x0fff>; |
| 352 | ti,y-min = /bits/ 16 <0x0>; |
| 353 | ti,y-max = /bits/ 16 <0x0fff>; |
| 354 | |
| 355 | ti,x-plate-ohms = /bits/ 16 <180>; |
| 356 | ti,pressure-max = /bits/ 16 <255>; |
| 357 | |
| 358 | ti,debounce-max = /bits/ 16 <30>; |
| 359 | ti,debounce-tol = /bits/ 16 <10>; |
| 360 | ti,debounce-rep = /bits/ 16 <1>; |
| 361 | |
| 362 | linux,wakeup; |
| 363 | }; |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 364 | }; |
| 365 | |
| 366 | &mmc1 { |
| 367 | pinctrl-names = "default"; |
| 368 | pinctrl-0 = <&mmc1_pins>; |
| 369 | vmmc-supply = <&ldo9_reg>; |
| 370 | bus-width = <4>; |
| 371 | }; |
| 372 | |
| 373 | &mmc2 { |
| 374 | pinctrl-names = "default"; |
| 375 | pinctrl-0 = <&mmc2_pins>; |
| 376 | vmmc-supply = <&vmmcsd_fixed>; |
| 377 | bus-width = <8>; |
| 378 | ti,non-removable; |
| 379 | }; |
| 380 | |
Dmitry Lifshitz | 4a996d187 | 2014-04-28 14:41:45 +0300 | [diff] [blame] | 381 | &mmc3 { |
| 382 | pinctrl-names = "default"; |
| 383 | pinctrl-0 = < |
| 384 | &mmc3_pins |
| 385 | &wlan_gpios_pins |
| 386 | >; |
| 387 | vmmc-supply = <&vwlan_fixed>; |
| 388 | bus-width = <4>; |
| 389 | ti,non-removable; |
| 390 | }; |
| 391 | |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 392 | &mmc4 { |
| 393 | status = "disabled"; |
| 394 | }; |
| 395 | |
| 396 | &mmc5 { |
| 397 | status = "disabled"; |
| 398 | }; |
| 399 | |
| 400 | &i2c1 { |
| 401 | pinctrl-names = "default"; |
| 402 | pinctrl-0 = <&i2c1_pins>; |
| 403 | |
| 404 | clock-frequency = <400000>; |
| 405 | |
| 406 | at24@50 { |
| 407 | compatible = "at24,24c02"; |
| 408 | pagesize = <16>; |
| 409 | reg = <0x50>; |
| 410 | }; |
| 411 | |
| 412 | palmas: palmas@48 { |
| 413 | compatible = "ti,palmas"; |
| 414 | interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */ |
| 415 | interrupt-parent = <&gic>; |
| 416 | reg = <0x48>; |
| 417 | interrupt-controller; |
| 418 | #interrupt-cells = <2>; |
| 419 | ti,system-power-controller; |
| 420 | |
| 421 | extcon_usb3: palmas_usb { |
| 422 | compatible = "ti,palmas-usb-vid"; |
| 423 | ti,enable-vbus-detection; |
| 424 | ti,enable-id-detection; |
| 425 | ti,wakeup; |
| 426 | }; |
| 427 | |
| 428 | rtc { |
| 429 | compatible = "ti,palmas-rtc"; |
| 430 | interrupt-parent = <&palmas>; |
| 431 | interrupts = <8 IRQ_TYPE_NONE>; |
| 432 | }; |
| 433 | |
| 434 | palmas_pmic { |
| 435 | compatible = "ti,palmas-pmic"; |
| 436 | interrupt-parent = <&palmas>; |
| 437 | interrupts = <14 IRQ_TYPE_NONE>; |
| 438 | interrupt-name = "short-irq"; |
| 439 | |
| 440 | ti,ldo6-vibrator; |
| 441 | |
| 442 | regulators { |
| 443 | smps123_reg: smps123 { |
| 444 | /* VDD_OPP_MPU */ |
| 445 | regulator-name = "smps123"; |
| 446 | regulator-min-microvolt = < 600000>; |
| 447 | regulator-max-microvolt = <1500000>; |
| 448 | regulator-always-on; |
| 449 | regulator-boot-on; |
| 450 | }; |
| 451 | |
| 452 | smps45_reg: smps45 { |
| 453 | /* VDD_OPP_MM */ |
| 454 | regulator-name = "smps45"; |
| 455 | regulator-min-microvolt = < 600000>; |
| 456 | regulator-max-microvolt = <1310000>; |
| 457 | regulator-always-on; |
| 458 | regulator-boot-on; |
| 459 | }; |
| 460 | |
| 461 | smps6_reg: smps6 { |
| 462 | /* VDD_DDR3 - over VDD_SMPS6 */ |
| 463 | regulator-name = "smps6"; |
| 464 | regulator-min-microvolt = <1500000>; |
| 465 | regulator-max-microvolt = <1500000>; |
| 466 | regulator-always-on; |
| 467 | regulator-boot-on; |
| 468 | }; |
| 469 | |
| 470 | smps7_reg: smps7 { |
| 471 | /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */ |
| 472 | regulator-name = "smps7"; |
| 473 | regulator-min-microvolt = <1800000>; |
| 474 | regulator-max-microvolt = <1800000>; |
| 475 | regulator-always-on; |
| 476 | regulator-boot-on; |
| 477 | }; |
| 478 | |
| 479 | smps8_reg: smps8 { |
| 480 | /* VDD_OPP_CORE */ |
| 481 | regulator-name = "smps8"; |
| 482 | regulator-min-microvolt = < 600000>; |
| 483 | regulator-max-microvolt = <1310000>; |
| 484 | regulator-always-on; |
| 485 | regulator-boot-on; |
| 486 | }; |
| 487 | |
| 488 | smps9_reg: smps9 { |
| 489 | /* VDDA_2v1_AUD over VDD_2v1 */ |
| 490 | regulator-name = "smps9"; |
| 491 | regulator-min-microvolt = <3300000>; |
| 492 | regulator-max-microvolt = <3300000>; |
| 493 | ti,smps-range = <0x80>; |
| 494 | regulator-always-on; |
| 495 | regulator-boot-on; |
| 496 | }; |
| 497 | |
| 498 | smps10_out2_reg: smps10_out2 { |
| 499 | /* VBUS_5V_OTG */ |
| 500 | regulator-name = "smps10_out2"; |
| 501 | regulator-min-microvolt = <5000000>; |
| 502 | regulator-max-microvolt = <5000000>; |
| 503 | regulator-always-on; |
| 504 | regulator-boot-on; |
| 505 | }; |
| 506 | |
| 507 | smps10_out1_reg: smps10_out1 { |
| 508 | /* VBUS_5V_OTG */ |
| 509 | regulator-name = "smps10_out1"; |
| 510 | regulator-min-microvolt = <5000000>; |
| 511 | regulator-max-microvolt = <5000000>; |
| 512 | }; |
| 513 | |
| 514 | ldo1_reg: ldo1 { |
| 515 | /* VDDAPHY_CAM: vdda_csiport */ |
| 516 | regulator-name = "ldo1"; |
| 517 | regulator-min-microvolt = <1500000>; |
| 518 | regulator-max-microvolt = <1800000>; |
| 519 | }; |
| 520 | |
| 521 | ldo2_reg: ldo2 { |
| 522 | /* VDD_3V3_WLAN */ |
| 523 | regulator-name = "ldo2"; |
| 524 | regulator-min-microvolt = <3300000>; |
| 525 | regulator-max-microvolt = <3300000>; |
Dmitry Lifshitz | 4a996d187 | 2014-04-28 14:41:45 +0300 | [diff] [blame] | 526 | startup-delay-us = <1000>; |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 527 | }; |
| 528 | |
| 529 | ldo3_reg: ldo3 { |
| 530 | /* VCC_1V5_AUD */ |
| 531 | regulator-name = "ldo3"; |
| 532 | regulator-min-microvolt = <1500000>; |
| 533 | regulator-max-microvolt = <1500000>; |
| 534 | regulator-always-on; |
| 535 | regulator-boot-on; |
| 536 | }; |
| 537 | |
| 538 | ldo4_reg: ldo4 { |
| 539 | /* VDDAPHY_DISP: vdda_dsiport/hdmi */ |
| 540 | regulator-name = "ldo4"; |
| 541 | regulator-min-microvolt = <1500000>; |
| 542 | regulator-max-microvolt = <1800000>; |
| 543 | }; |
| 544 | |
| 545 | ldo5_reg: ldo5 { |
| 546 | /* VDDA_1V8_PHY: usb/sata/hdmi.. */ |
| 547 | regulator-name = "ldo5"; |
| 548 | regulator-min-microvolt = <1800000>; |
| 549 | regulator-max-microvolt = <1800000>; |
| 550 | regulator-always-on; |
| 551 | regulator-boot-on; |
| 552 | }; |
| 553 | |
| 554 | ldo6_reg: ldo6 { |
| 555 | /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */ |
| 556 | regulator-name = "ldo6"; |
| 557 | regulator-min-microvolt = <1200000>; |
| 558 | regulator-max-microvolt = <1200000>; |
| 559 | regulator-always-on; |
| 560 | regulator-boot-on; |
| 561 | }; |
| 562 | |
| 563 | ldo7_reg: ldo7 { |
| 564 | /* VDD_VPP: vpp1 */ |
| 565 | regulator-name = "ldo7"; |
| 566 | regulator-min-microvolt = <2000000>; |
| 567 | regulator-max-microvolt = <2000000>; |
| 568 | /* Only for efuse reprograming! */ |
| 569 | status = "disabled"; |
| 570 | }; |
| 571 | |
| 572 | ldo8_reg: ldo8 { |
Dmitry Lifshitz | e847faf | 2014-09-10 08:57:19 -0700 | [diff] [blame] | 573 | /* VDD_3V_GP: act led/serial console */ |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 574 | regulator-name = "ldo8"; |
| 575 | regulator-min-microvolt = <3000000>; |
| 576 | regulator-max-microvolt = <3000000>; |
Dmitry Lifshitz | e847faf | 2014-09-10 08:57:19 -0700 | [diff] [blame] | 577 | regulator-always-on; |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 578 | regulator-boot-on; |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 579 | }; |
| 580 | |
| 581 | ldo9_reg: ldo9 { |
| 582 | /* VCC_DV_SDIO: vdds_sdcard */ |
| 583 | regulator-name = "ldo9"; |
| 584 | regulator-min-microvolt = <1800000>; |
| 585 | regulator-max-microvolt = <3000000>; |
| 586 | regulator-boot-on; |
| 587 | }; |
| 588 | |
| 589 | ldoln_reg: ldoln { |
| 590 | /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */ |
| 591 | regulator-name = "ldoln"; |
| 592 | regulator-min-microvolt = <1800000>; |
| 593 | regulator-max-microvolt = <1800000>; |
| 594 | regulator-always-on; |
| 595 | regulator-boot-on; |
| 596 | }; |
| 597 | |
| 598 | ldousb_reg: ldousb { |
| 599 | /* VDDA_3V_USB: VDDA_USBHS33 */ |
| 600 | regulator-name = "ldousb"; |
| 601 | regulator-min-microvolt = <3250000>; |
| 602 | regulator-max-microvolt = <3250000>; |
| 603 | regulator-always-on; |
| 604 | regulator-boot-on; |
| 605 | }; |
| 606 | |
| 607 | regen3_reg: regen3 { |
| 608 | /* REGEN3 controls LDO9 supply to card */ |
| 609 | regulator-name = "regen3"; |
| 610 | regulator-always-on; |
| 611 | regulator-boot-on; |
| 612 | }; |
| 613 | }; |
| 614 | }; |
| 615 | }; |
| 616 | }; |
| 617 | |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 618 | &i2c2 { |
| 619 | pinctrl-names = "default"; |
| 620 | pinctrl-0 = <&i2c2_pins>; |
| 621 | |
| 622 | clock-frequency = <100000>; |
| 623 | }; |
| 624 | |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 625 | &usbhshost { |
| 626 | port2-mode = "ehci-hsic"; |
| 627 | port3-mode = "ehci-hsic"; |
| 628 | }; |
| 629 | |
| 630 | &usbhsehci { |
| 631 | phys = <0 &hsusb2_phy &hsusb3_phy>; |
| 632 | }; |
| 633 | |
Dmitry Lifshitz | be9d32e | 2014-09-17 15:10:08 +0300 | [diff] [blame] | 634 | &usb3 { |
| 635 | extcon = <&extcon_usb3>; |
| 636 | vbus-supply = <&smps10_out1_reg>; |
| 637 | }; |
| 638 | |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 639 | &cpu0 { |
| 640 | cpu0-supply = <&smps123_reg>; |
| 641 | }; |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 642 | |
| 643 | &dss { |
| 644 | status = "ok"; |
| 645 | |
| 646 | pinctrl-names = "default"; |
| 647 | pinctrl-0 = <&dss_dpi_pins>; |
| 648 | |
| 649 | port { |
| 650 | dpi_dvi_out: endpoint@0 { |
| 651 | remote-endpoint = <&tfp410_in>; |
| 652 | data-lines = <24>; |
| 653 | }; |
Dmitry Lifshitz | ac84d6c | 2014-09-17 15:10:06 +0300 | [diff] [blame] | 654 | |
| 655 | dpi_lcd_out: endpoint@1 { |
| 656 | remote-endpoint = <&lcd_in>; |
| 657 | data-lines = <24>; |
| 658 | }; |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 659 | }; |
| 660 | }; |
| 661 | |
| 662 | &dsi2 { |
| 663 | status = "ok"; |
| 664 | vdd-supply = <&ldo4_reg>; |
| 665 | }; |
| 666 | |
| 667 | &hdmi { |
| 668 | status = "ok"; |
| 669 | vdda-supply = <&ldo4_reg>; |
| 670 | |
| 671 | pinctrl-names = "default"; |
| 672 | pinctrl-0 = <&dss_hdmi_pins>; |
| 673 | |
| 674 | port { |
| 675 | hdmi_out: endpoint { |
| 676 | remote-endpoint = <&hdmi_connector_in>; |
| 677 | lanes = <1 0 3 2 5 4 7 6>; |
| 678 | }; |
| 679 | }; |
| 680 | }; |