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 */ |
Javier Martinez Canillas | 3a637e0 | 2015-10-06 11:03:39 +0200 | [diff] [blame^] | 347 | pendown-gpio = <&gpio1 15 GPIO_ACTIVE_HIGH>; |
Dmitry Lifshitz | 1a3290b | 2014-09-17 15:10:07 +0300 | [diff] [blame] | 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 */ |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 415 | reg = <0x48>; |
| 416 | interrupt-controller; |
| 417 | #interrupt-cells = <2>; |
| 418 | ti,system-power-controller; |
| 419 | |
| 420 | extcon_usb3: palmas_usb { |
| 421 | compatible = "ti,palmas-usb-vid"; |
| 422 | ti,enable-vbus-detection; |
| 423 | ti,enable-id-detection; |
| 424 | ti,wakeup; |
| 425 | }; |
| 426 | |
| 427 | rtc { |
| 428 | compatible = "ti,palmas-rtc"; |
| 429 | interrupt-parent = <&palmas>; |
| 430 | interrupts = <8 IRQ_TYPE_NONE>; |
| 431 | }; |
| 432 | |
| 433 | palmas_pmic { |
| 434 | compatible = "ti,palmas-pmic"; |
| 435 | interrupt-parent = <&palmas>; |
| 436 | interrupts = <14 IRQ_TYPE_NONE>; |
| 437 | interrupt-name = "short-irq"; |
| 438 | |
| 439 | ti,ldo6-vibrator; |
| 440 | |
| 441 | regulators { |
| 442 | smps123_reg: smps123 { |
| 443 | /* VDD_OPP_MPU */ |
| 444 | regulator-name = "smps123"; |
| 445 | regulator-min-microvolt = < 600000>; |
| 446 | regulator-max-microvolt = <1500000>; |
| 447 | regulator-always-on; |
| 448 | regulator-boot-on; |
| 449 | }; |
| 450 | |
| 451 | smps45_reg: smps45 { |
| 452 | /* VDD_OPP_MM */ |
| 453 | regulator-name = "smps45"; |
| 454 | regulator-min-microvolt = < 600000>; |
| 455 | regulator-max-microvolt = <1310000>; |
| 456 | regulator-always-on; |
| 457 | regulator-boot-on; |
| 458 | }; |
| 459 | |
| 460 | smps6_reg: smps6 { |
| 461 | /* VDD_DDR3 - over VDD_SMPS6 */ |
| 462 | regulator-name = "smps6"; |
| 463 | regulator-min-microvolt = <1500000>; |
| 464 | regulator-max-microvolt = <1500000>; |
| 465 | regulator-always-on; |
| 466 | regulator-boot-on; |
| 467 | }; |
| 468 | |
| 469 | smps7_reg: smps7 { |
| 470 | /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */ |
| 471 | regulator-name = "smps7"; |
| 472 | regulator-min-microvolt = <1800000>; |
| 473 | regulator-max-microvolt = <1800000>; |
| 474 | regulator-always-on; |
| 475 | regulator-boot-on; |
| 476 | }; |
| 477 | |
| 478 | smps8_reg: smps8 { |
| 479 | /* VDD_OPP_CORE */ |
| 480 | regulator-name = "smps8"; |
| 481 | regulator-min-microvolt = < 600000>; |
| 482 | regulator-max-microvolt = <1310000>; |
| 483 | regulator-always-on; |
| 484 | regulator-boot-on; |
| 485 | }; |
| 486 | |
| 487 | smps9_reg: smps9 { |
| 488 | /* VDDA_2v1_AUD over VDD_2v1 */ |
| 489 | regulator-name = "smps9"; |
| 490 | regulator-min-microvolt = <3300000>; |
| 491 | regulator-max-microvolt = <3300000>; |
| 492 | ti,smps-range = <0x80>; |
| 493 | regulator-always-on; |
| 494 | regulator-boot-on; |
| 495 | }; |
| 496 | |
| 497 | smps10_out2_reg: smps10_out2 { |
| 498 | /* VBUS_5V_OTG */ |
| 499 | regulator-name = "smps10_out2"; |
| 500 | regulator-min-microvolt = <5000000>; |
| 501 | regulator-max-microvolt = <5000000>; |
| 502 | regulator-always-on; |
| 503 | regulator-boot-on; |
| 504 | }; |
| 505 | |
| 506 | smps10_out1_reg: smps10_out1 { |
| 507 | /* VBUS_5V_OTG */ |
| 508 | regulator-name = "smps10_out1"; |
| 509 | regulator-min-microvolt = <5000000>; |
| 510 | regulator-max-microvolt = <5000000>; |
| 511 | }; |
| 512 | |
| 513 | ldo1_reg: ldo1 { |
| 514 | /* VDDAPHY_CAM: vdda_csiport */ |
| 515 | regulator-name = "ldo1"; |
| 516 | regulator-min-microvolt = <1500000>; |
| 517 | regulator-max-microvolt = <1800000>; |
| 518 | }; |
| 519 | |
| 520 | ldo2_reg: ldo2 { |
| 521 | /* VDD_3V3_WLAN */ |
| 522 | regulator-name = "ldo2"; |
| 523 | regulator-min-microvolt = <3300000>; |
| 524 | regulator-max-microvolt = <3300000>; |
Dmitry Lifshitz | 4a996d187 | 2014-04-28 14:41:45 +0300 | [diff] [blame] | 525 | startup-delay-us = <1000>; |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 526 | }; |
| 527 | |
| 528 | ldo3_reg: ldo3 { |
| 529 | /* VCC_1V5_AUD */ |
| 530 | regulator-name = "ldo3"; |
| 531 | regulator-min-microvolt = <1500000>; |
| 532 | regulator-max-microvolt = <1500000>; |
| 533 | regulator-always-on; |
| 534 | regulator-boot-on; |
| 535 | }; |
| 536 | |
| 537 | ldo4_reg: ldo4 { |
| 538 | /* VDDAPHY_DISP: vdda_dsiport/hdmi */ |
| 539 | regulator-name = "ldo4"; |
| 540 | regulator-min-microvolt = <1500000>; |
| 541 | regulator-max-microvolt = <1800000>; |
| 542 | }; |
| 543 | |
| 544 | ldo5_reg: ldo5 { |
| 545 | /* VDDA_1V8_PHY: usb/sata/hdmi.. */ |
| 546 | regulator-name = "ldo5"; |
| 547 | regulator-min-microvolt = <1800000>; |
| 548 | regulator-max-microvolt = <1800000>; |
| 549 | regulator-always-on; |
| 550 | regulator-boot-on; |
| 551 | }; |
| 552 | |
| 553 | ldo6_reg: ldo6 { |
| 554 | /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */ |
| 555 | regulator-name = "ldo6"; |
| 556 | regulator-min-microvolt = <1200000>; |
| 557 | regulator-max-microvolt = <1200000>; |
| 558 | regulator-always-on; |
| 559 | regulator-boot-on; |
| 560 | }; |
| 561 | |
| 562 | ldo7_reg: ldo7 { |
| 563 | /* VDD_VPP: vpp1 */ |
| 564 | regulator-name = "ldo7"; |
| 565 | regulator-min-microvolt = <2000000>; |
| 566 | regulator-max-microvolt = <2000000>; |
| 567 | /* Only for efuse reprograming! */ |
| 568 | status = "disabled"; |
| 569 | }; |
| 570 | |
| 571 | ldo8_reg: ldo8 { |
Dmitry Lifshitz | e847faf | 2014-09-10 08:57:19 -0700 | [diff] [blame] | 572 | /* VDD_3V_GP: act led/serial console */ |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 573 | regulator-name = "ldo8"; |
| 574 | regulator-min-microvolt = <3000000>; |
| 575 | regulator-max-microvolt = <3000000>; |
Dmitry Lifshitz | e847faf | 2014-09-10 08:57:19 -0700 | [diff] [blame] | 576 | regulator-always-on; |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 577 | regulator-boot-on; |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 578 | }; |
| 579 | |
| 580 | ldo9_reg: ldo9 { |
| 581 | /* VCC_DV_SDIO: vdds_sdcard */ |
| 582 | regulator-name = "ldo9"; |
| 583 | regulator-min-microvolt = <1800000>; |
| 584 | regulator-max-microvolt = <3000000>; |
| 585 | regulator-boot-on; |
| 586 | }; |
| 587 | |
| 588 | ldoln_reg: ldoln { |
| 589 | /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */ |
| 590 | regulator-name = "ldoln"; |
| 591 | regulator-min-microvolt = <1800000>; |
| 592 | regulator-max-microvolt = <1800000>; |
| 593 | regulator-always-on; |
| 594 | regulator-boot-on; |
| 595 | }; |
| 596 | |
| 597 | ldousb_reg: ldousb { |
| 598 | /* VDDA_3V_USB: VDDA_USBHS33 */ |
| 599 | regulator-name = "ldousb"; |
| 600 | regulator-min-microvolt = <3250000>; |
| 601 | regulator-max-microvolt = <3250000>; |
| 602 | regulator-always-on; |
| 603 | regulator-boot-on; |
| 604 | }; |
| 605 | |
| 606 | regen3_reg: regen3 { |
| 607 | /* REGEN3 controls LDO9 supply to card */ |
| 608 | regulator-name = "regen3"; |
| 609 | regulator-always-on; |
| 610 | regulator-boot-on; |
| 611 | }; |
| 612 | }; |
| 613 | }; |
| 614 | }; |
| 615 | }; |
| 616 | |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 617 | &i2c2 { |
| 618 | pinctrl-names = "default"; |
| 619 | pinctrl-0 = <&i2c2_pins>; |
| 620 | |
| 621 | clock-frequency = <100000>; |
| 622 | }; |
| 623 | |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 624 | &usbhshost { |
| 625 | port2-mode = "ehci-hsic"; |
| 626 | port3-mode = "ehci-hsic"; |
| 627 | }; |
| 628 | |
| 629 | &usbhsehci { |
| 630 | phys = <0 &hsusb2_phy &hsusb3_phy>; |
| 631 | }; |
| 632 | |
Dmitry Lifshitz | be9d32e | 2014-09-17 15:10:08 +0300 | [diff] [blame] | 633 | &usb3 { |
| 634 | extcon = <&extcon_usb3>; |
| 635 | vbus-supply = <&smps10_out1_reg>; |
| 636 | }; |
| 637 | |
Dmitry Lifshitz | 9f642b5 | 2014-04-28 14:41:44 +0300 | [diff] [blame] | 638 | &cpu0 { |
| 639 | cpu0-supply = <&smps123_reg>; |
| 640 | }; |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 641 | |
| 642 | &dss { |
| 643 | status = "ok"; |
| 644 | |
| 645 | pinctrl-names = "default"; |
| 646 | pinctrl-0 = <&dss_dpi_pins>; |
| 647 | |
| 648 | port { |
| 649 | dpi_dvi_out: endpoint@0 { |
| 650 | remote-endpoint = <&tfp410_in>; |
| 651 | data-lines = <24>; |
| 652 | }; |
Dmitry Lifshitz | ac84d6c | 2014-09-17 15:10:06 +0300 | [diff] [blame] | 653 | |
| 654 | dpi_lcd_out: endpoint@1 { |
| 655 | remote-endpoint = <&lcd_in>; |
| 656 | data-lines = <24>; |
| 657 | }; |
Dmitry Lifshitz | 6097b5a | 2014-09-17 15:10:05 +0300 | [diff] [blame] | 658 | }; |
| 659 | }; |
| 660 | |
| 661 | &dsi2 { |
| 662 | status = "ok"; |
| 663 | vdd-supply = <&ldo4_reg>; |
| 664 | }; |
| 665 | |
| 666 | &hdmi { |
| 667 | status = "ok"; |
| 668 | vdda-supply = <&ldo4_reg>; |
| 669 | |
| 670 | pinctrl-names = "default"; |
| 671 | pinctrl-0 = <&dss_hdmi_pins>; |
| 672 | |
| 673 | port { |
| 674 | hdmi_out: endpoint { |
| 675 | remote-endpoint = <&hdmi_connector_in>; |
| 676 | lanes = <1 0 3 2 5 4 7 6>; |
| 677 | }; |
| 678 | }; |
| 679 | }; |