Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 1 | /* |
Dmitry Lifshitz | d234e42 | 2014-01-12 15:22:45 +0200 | [diff] [blame] | 2 | * Common support for CompuLab CM-T3x30 CoMs |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 3 | */ |
| 4 | |
Dmitry Lifshitz | d234e42 | 2014-01-12 15:22:45 +0200 | [diff] [blame] | 5 | #include "omap3-cm-t3x.dtsi" |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 6 | |
Dmitry Lifshitz | d234e42 | 2014-01-12 15:22:45 +0200 | [diff] [blame] | 7 | / { |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 8 | cpus { |
| 9 | cpu@0 { |
| 10 | cpu0-supply = <&vcc>; |
| 11 | }; |
| 12 | }; |
Dmitry Lifshitz | 01e9ef6 | 2014-11-23 11:42:02 +0200 | [diff] [blame] | 13 | |
| 14 | sound { |
| 15 | compatible = "ti,omap-twl4030"; |
| 16 | ti,model = "cm-t35"; |
| 17 | |
| 18 | ti,mcbsp = <&mcbsp2>; |
Dmitry Lifshitz | 01e9ef6 | 2014-11-23 11:42:02 +0200 | [diff] [blame] | 19 | }; |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 20 | }; |
| 21 | |
Dmitry Lifshitz | d234e42 | 2014-01-12 15:22:45 +0200 | [diff] [blame] | 22 | &omap3_pmx_core { |
| 23 | |
| 24 | smsc1_pins: pinmux_smsc1_pins { |
| 25 | pinctrl-single,pins = < |
| 26 | OMAP3_CORE1_IOPAD(0x20b8, PIN_OUTPUT | MUX_MODE0) /* gpmc_ncs5.gpmc_ncs5 */ |
| 27 | OMAP3_CORE1_IOPAD(0x219a, PIN_INPUT_PULLUP | MUX_MODE4) /* uart3_cts_rctx.gpio_163 */ |
| 28 | >; |
| 29 | }; |
Dmitry Lifshitz | dcb27be | 2014-01-12 15:22:52 +0200 | [diff] [blame] | 30 | |
| 31 | hsusb0_pins: pinmux_hsusb0_pins { |
| 32 | pinctrl-single,pins = < |
Tony Lindgren | 20f670d | 2014-04-23 11:04:29 -0700 | [diff] [blame] | 33 | OMAP3_CORE1_IOPAD(0x21a2, PIN_OUTPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */ |
| 34 | OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */ |
| 35 | OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT_PULLDOWN | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */ |
| 36 | OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT_PULLDOWN | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */ |
| 37 | OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT_PULLDOWN | MUX_MODE0) /* hsusb0_data0.hsusb2_data0 */ |
| 38 | OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT_PULLDOWN | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */ |
| 39 | OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT_PULLDOWN | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */ |
| 40 | OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT_PULLDOWN | MUX_MODE0) /* hsusb0_data7.hsusb0_data3 */ |
| 41 | OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT_PULLDOWN | MUX_MODE0) /* hsusb0_data7.hsusb0_data4 */ |
| 42 | OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT_PULLDOWN | MUX_MODE0) /* hsusb0_data7.hsusb0_data5 */ |
| 43 | OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT_PULLDOWN | MUX_MODE0) /* hsusb0_data7.hsusb0_data6 */ |
| 44 | OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT_PULLDOWN | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */ |
Dmitry Lifshitz | dcb27be | 2014-01-12 15:22:52 +0200 | [diff] [blame] | 45 | >; |
| 46 | }; |
Dmitry Lifshitz | d234e42 | 2014-01-12 15:22:45 +0200 | [diff] [blame] | 47 | }; |
| 48 | |
Tony Lindgren | de9949a | 2014-04-23 11:04:30 -0700 | [diff] [blame] | 49 | #include "omap-gpmc-smsc911x.dtsi" |
| 50 | |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 51 | &gpmc { |
Dmitry Lifshitz | df73b7f | 2014-12-28 16:30:49 +0200 | [diff] [blame] | 52 | ranges = <5 0 0x2c000000 0x01000000>, /* CM-T3x30 SMSC9x Eth */ |
| 53 | <0 0 0x00000000 0x01000000>; /* CM-T3x NAND */ |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 54 | |
Tony Lindgren | de9949a | 2014-04-23 11:04:30 -0700 | [diff] [blame] | 55 | smsc1: ethernet@gpmc { |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 56 | compatible = "smsc,lan9221", "smsc,lan9115"; |
Dmitry Lifshitz | d234e42 | 2014-01-12 15:22:45 +0200 | [diff] [blame] | 57 | pinctrl-names = "default"; |
| 58 | pinctrl-0 = <&smsc1_pins>; |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 59 | interrupt-parent = <&gpio6>; |
| 60 | interrupts = <3 IRQ_TYPE_LEVEL_LOW>; |
| 61 | reg = <5 0 0xff>; |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 62 | }; |
| 63 | }; |
| 64 | |
| 65 | &i2c1 { |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 66 | twl: twl@48 { |
| 67 | reg = <0x48>; |
| 68 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ |
| 69 | interrupt-parent = <&intc>; |
Dmitry Lifshitz | 01e9ef6 | 2014-11-23 11:42:02 +0200 | [diff] [blame] | 70 | |
| 71 | twl_audio: audio { |
| 72 | compatible = "ti,twl4030-audio"; |
| 73 | codec { |
| 74 | }; |
| 75 | }; |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 76 | }; |
| 77 | }; |
| 78 | |
| 79 | #include "twl4030.dtsi" |
| 80 | #include "twl4030_omap3.dtsi" |
Dmitry Lifshitz | 828b949 | 2014-11-18 11:13:24 +0200 | [diff] [blame] | 81 | #include <dt-bindings/input/input.h> |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 82 | |
Dmitry Lifshitz | e6fb427 | 2014-11-23 11:42:00 +0200 | [diff] [blame] | 83 | &venc { |
| 84 | vdda-supply = <&vdac>; |
| 85 | }; |
| 86 | |
Dmitry Lifshitz | d234e42 | 2014-01-12 15:22:45 +0200 | [diff] [blame] | 87 | &mmc1 { |
| 88 | vmmc-supply = <&vmmc1>; |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 89 | }; |
| 90 | |
| 91 | &twl_gpio { |
| 92 | ti,use-leds; |
Dmitry Lifshitz | 0cc73cd | 2014-01-12 15:22:49 +0200 | [diff] [blame] | 93 | /* pullups: BIT(0) */ |
| 94 | ti,pullups = <0x000001>; |
Tony Lindgren | 0f0cfc6 | 2013-12-18 13:13:21 -0800 | [diff] [blame] | 95 | }; |
Dmitry Lifshitz | ce5abbb | 2014-01-12 15:22:50 +0200 | [diff] [blame] | 96 | |
Dmitry Lifshitz | 828b949 | 2014-11-18 11:13:24 +0200 | [diff] [blame] | 97 | &twl_keypad { |
| 98 | linux,keymap = < |
| 99 | MATRIX_KEY(0x00, 0x01, KEY_A) |
| 100 | MATRIX_KEY(0x00, 0x02, KEY_B) |
| 101 | MATRIX_KEY(0x00, 0x03, KEY_LEFT) |
| 102 | |
| 103 | MATRIX_KEY(0x01, 0x01, KEY_UP) |
| 104 | MATRIX_KEY(0x01, 0x02, KEY_ENTER) |
| 105 | MATRIX_KEY(0x01, 0x03, KEY_DOWN) |
| 106 | |
| 107 | MATRIX_KEY(0x02, 0x01, KEY_RIGHT) |
| 108 | MATRIX_KEY(0x02, 0x02, KEY_C) |
| 109 | MATRIX_KEY(0x02, 0x03, KEY_D) |
| 110 | >; |
| 111 | }; |
| 112 | |
Dmitry Lifshitz | ce5abbb | 2014-01-12 15:22:50 +0200 | [diff] [blame] | 113 | &hsusb1_phy { |
| 114 | reset-gpios = <&twl_gpio 6 GPIO_ACTIVE_LOW>; |
| 115 | }; |
| 116 | |
| 117 | &hsusb2_phy { |
| 118 | reset-gpios = <&twl_gpio 7 GPIO_ACTIVE_LOW>; |
| 119 | }; |
Dmitry Lifshitz | dcb27be | 2014-01-12 15:22:52 +0200 | [diff] [blame] | 120 | |
| 121 | &usb_otg_hs { |
| 122 | pinctrl-names = "default"; |
| 123 | pinctrl-0 = <&hsusb0_pins>; |
| 124 | interface-type = <0>; |
| 125 | usb-phy = <&usb2_phy>; |
| 126 | phys = <&usb2_phy>; |
| 127 | phy-names = "usb2-phy"; |
| 128 | mode = <3>; |
| 129 | power = <50>; |
| 130 | }; |