Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix |
| 3 | * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix |
| 4 | * |
| 5 | * The code contained herein is licensed under the GNU General Public |
| 6 | * License. You may obtain a copy of the GNU General Public License |
| 7 | * Version 2 or later at the following locations: |
| 8 | * |
| 9 | * http://www.opensource.org/licenses/gpl-license.html |
| 10 | * http://www.gnu.org/copyleft/gpl.html |
| 11 | */ |
| 12 | |
| 13 | /dts-v1/; |
Shawn Guo | 36dffd8 | 2013-04-07 10:49:34 +0800 | [diff] [blame] | 14 | #include "imx53-tqma53.dtsi" |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 15 | |
| 16 | / { |
| 17 | model = "TQ MBa53 starter kit"; |
| 18 | compatible = "tq,mba53", "tq,tqma53", "fsl,imx53"; |
Sascha Hauer | 4fa8cf7 | 2013-06-04 13:07:09 +0200 | [diff] [blame] | 19 | |
Sascha Hauer | 4fa8cf7 | 2013-06-04 13:07:09 +0200 | [diff] [blame] | 20 | backlight { |
| 21 | compatible = "pwm-backlight"; |
Laurent Pinchart | 15968f1 | 2013-07-11 16:37:47 +0200 | [diff] [blame] | 22 | pwms = <&pwm2 0 50000>; |
Sascha Hauer | 4fa8cf7 | 2013-06-04 13:07:09 +0200 | [diff] [blame] | 23 | brightness-levels = <0 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100>; |
| 24 | default-brightness-level = <10>; |
| 25 | enable-gpios = <&gpio7 7 0>; |
| 26 | power-supply = <®_backlight>; |
| 27 | }; |
| 28 | |
| 29 | disp1: display@disp1 { |
| 30 | compatible = "fsl,imx-parallel-display"; |
| 31 | pinctrl-names = "default"; |
| 32 | pinctrl-0 = <&pinctrl_disp1_1>; |
Sascha Hauer | 4fa8cf7 | 2013-06-04 13:07:09 +0200 | [diff] [blame] | 33 | interface-pix-fmt = "rgb24"; |
| 34 | status = "disabled"; |
Markus Niebel | eefb800 | 2013-06-04 13:07:11 +0200 | [diff] [blame] | 35 | |
Philipp Zabel | e05c8c9 | 2014-03-05 10:21:00 +0100 | [diff] [blame] | 36 | port { |
| 37 | display1_in: endpoint { |
| 38 | remote-endpoint = <&ipu_di1_disp1>; |
| 39 | }; |
| 40 | }; |
Russell King | 17b5001 | 2013-11-03 11:23:34 +0000 | [diff] [blame] | 41 | }; |
| 42 | |
Shawn Guo | a4a2aa9 | 2013-11-06 15:43:36 +0800 | [diff] [blame] | 43 | regulators { |
| 44 | compatible = "simple-bus"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 45 | #address-cells = <1>; |
| 46 | #size-cells = <0>; |
Shawn Guo | a4a2aa9 | 2013-11-06 15:43:36 +0800 | [diff] [blame] | 47 | |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 48 | reg_backlight: regulator@0 { |
Shawn Guo | a4a2aa9 | 2013-11-06 15:43:36 +0800 | [diff] [blame] | 49 | compatible = "regulator-fixed"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 50 | reg = <0>; |
Shawn Guo | a4a2aa9 | 2013-11-06 15:43:36 +0800 | [diff] [blame] | 51 | regulator-name = "lcd-supply"; |
| 52 | gpio = <&gpio2 5 0>; |
| 53 | startup-delay-us = <5000>; |
Shawn Guo | a4a2aa9 | 2013-11-06 15:43:36 +0800 | [diff] [blame] | 54 | }; |
| 55 | |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 56 | reg_3p2v: regulator@1 { |
Shawn Guo | a4a2aa9 | 2013-11-06 15:43:36 +0800 | [diff] [blame] | 57 | compatible = "regulator-fixed"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 58 | reg = <1>; |
Shawn Guo | a4a2aa9 | 2013-11-06 15:43:36 +0800 | [diff] [blame] | 59 | regulator-name = "3P2V"; |
| 60 | regulator-min-microvolt = <3200000>; |
| 61 | regulator-max-microvolt = <3200000>; |
| 62 | regulator-always-on; |
| 63 | }; |
Markus Niebel | eefb800 | 2013-06-04 13:07:11 +0200 | [diff] [blame] | 64 | }; |
| 65 | |
| 66 | sound { |
| 67 | compatible = "tq,imx53-mba53-sgtl5000", |
| 68 | "fsl,imx-audio-sgtl5000"; |
| 69 | model = "imx53-mba53-sgtl5000"; |
| 70 | ssi-controller = <&ssi2>; |
| 71 | audio-codec = <&codec>; |
| 72 | audio-routing = |
| 73 | "MIC_IN", "Mic Jack", |
| 74 | "Mic Jack", "Mic Bias", |
| 75 | "Headphone Jack", "HP_OUT"; |
| 76 | mux-int-port = <2>; |
| 77 | mux-ext-port = <5>; |
| 78 | }; |
Sascha Hauer | 4fa8cf7 | 2013-06-04 13:07:09 +0200 | [diff] [blame] | 79 | }; |
| 80 | |
| 81 | &ldb { |
| 82 | pinctrl-names = "default"; |
| 83 | pinctrl-0 = <&pinctrl_lvds1_1>; |
| 84 | status = "disabled"; |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 85 | }; |
| 86 | |
| 87 | &iomuxc { |
| 88 | lvds1 { |
| 89 | pinctrl_lvds1_1: lvds1-grp1 { |
Shawn Guo | e164153 | 2013-02-20 10:32:52 +0800 | [diff] [blame] | 90 | fsl,pins = < |
Steffen Trumtrar | 188e97d | 2013-06-04 13:07:14 +0200 | [diff] [blame] | 91 | MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3 0x80000000 |
| 92 | MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK 0x80000000 |
| 93 | MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2 0x80000000 |
| 94 | MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1 0x80000000 |
| 95 | MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0 0x80000000 |
Shawn Guo | e164153 | 2013-02-20 10:32:52 +0800 | [diff] [blame] | 96 | >; |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 97 | }; |
| 98 | |
| 99 | pinctrl_lvds1_2: lvds1-grp2 { |
Shawn Guo | e164153 | 2013-02-20 10:32:52 +0800 | [diff] [blame] | 100 | fsl,pins = < |
Steffen Trumtrar | 188e97d | 2013-06-04 13:07:14 +0200 | [diff] [blame] | 101 | MX53_PAD_LVDS1_TX3_P__LDB_LVDS1_TX3 0x80000000 |
| 102 | MX53_PAD_LVDS1_TX2_P__LDB_LVDS1_TX2 0x80000000 |
| 103 | MX53_PAD_LVDS1_CLK_P__LDB_LVDS1_CLK 0x80000000 |
| 104 | MX53_PAD_LVDS1_TX1_P__LDB_LVDS1_TX1 0x80000000 |
| 105 | MX53_PAD_LVDS1_TX0_P__LDB_LVDS1_TX0 0x80000000 |
Shawn Guo | e164153 | 2013-02-20 10:32:52 +0800 | [diff] [blame] | 106 | >; |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 107 | }; |
| 108 | }; |
| 109 | |
| 110 | disp1 { |
| 111 | pinctrl_disp1_1: disp1-grp1 { |
Shawn Guo | e164153 | 2013-02-20 10:32:52 +0800 | [diff] [blame] | 112 | fsl,pins = < |
Markus Niebel | 81b8a3c | 2013-06-04 13:07:15 +0200 | [diff] [blame] | 113 | MX53_PAD_EIM_A16__IPU_DI1_DISP_CLK 0x80000000 /* DISP1_CLK */ |
Steffen Trumtrar | 188e97d | 2013-06-04 13:07:14 +0200 | [diff] [blame] | 114 | MX53_PAD_EIM_DA10__IPU_DI1_PIN15 0x80000000 /* DISP1_DRDY */ |
| 115 | MX53_PAD_EIM_D23__IPU_DI1_PIN2 0x80000000 /* DISP1_HSYNC */ |
| 116 | MX53_PAD_EIM_EB3__IPU_DI1_PIN3 0x80000000 /* DISP1_VSYNC */ |
| 117 | MX53_PAD_EIM_D26__IPU_DISP1_DAT_22 0x80000000 |
| 118 | MX53_PAD_EIM_D27__IPU_DISP1_DAT_23 0x80000000 |
| 119 | MX53_PAD_EIM_D30__IPU_DISP1_DAT_21 0x80000000 |
| 120 | MX53_PAD_EIM_D31__IPU_DISP1_DAT_20 0x80000000 |
| 121 | MX53_PAD_EIM_A24__IPU_DISP1_DAT_19 0x80000000 |
| 122 | MX53_PAD_EIM_A23__IPU_DISP1_DAT_18 0x80000000 |
| 123 | MX53_PAD_EIM_A22__IPU_DISP1_DAT_17 0x80000000 |
| 124 | MX53_PAD_EIM_A21__IPU_DISP1_DAT_16 0x80000000 |
| 125 | MX53_PAD_EIM_A20__IPU_DISP1_DAT_15 0x80000000 |
| 126 | MX53_PAD_EIM_A19__IPU_DISP1_DAT_14 0x80000000 |
| 127 | MX53_PAD_EIM_A18__IPU_DISP1_DAT_13 0x80000000 |
| 128 | MX53_PAD_EIM_A17__IPU_DISP1_DAT_12 0x80000000 |
| 129 | MX53_PAD_EIM_EB0__IPU_DISP1_DAT_11 0x80000000 |
| 130 | MX53_PAD_EIM_EB1__IPU_DISP1_DAT_10 0x80000000 |
| 131 | MX53_PAD_EIM_DA0__IPU_DISP1_DAT_9 0x80000000 |
| 132 | MX53_PAD_EIM_DA1__IPU_DISP1_DAT_8 0x80000000 |
| 133 | MX53_PAD_EIM_DA2__IPU_DISP1_DAT_7 0x80000000 |
| 134 | MX53_PAD_EIM_DA3__IPU_DISP1_DAT_6 0x80000000 |
| 135 | MX53_PAD_EIM_DA4__IPU_DISP1_DAT_5 0x80000000 |
| 136 | MX53_PAD_EIM_DA5__IPU_DISP1_DAT_4 0x80000000 |
| 137 | MX53_PAD_EIM_DA6__IPU_DISP1_DAT_3 0x80000000 |
| 138 | MX53_PAD_EIM_DA7__IPU_DISP1_DAT_2 0x80000000 |
| 139 | MX53_PAD_EIM_DA8__IPU_DISP1_DAT_1 0x80000000 |
| 140 | MX53_PAD_EIM_DA9__IPU_DISP1_DAT_0 0x80000000 |
Shawn Guo | e164153 | 2013-02-20 10:32:52 +0800 | [diff] [blame] | 141 | >; |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 142 | }; |
| 143 | }; |
Philipp Zabel | d7db539 | 2013-06-04 13:07:10 +0200 | [diff] [blame] | 144 | |
| 145 | tve { |
| 146 | pinctrl_vga_sync_1: vgasync-grp1 { |
| 147 | fsl,pins = < |
| 148 | /* VGA_VSYNC, HSYNC with max drive strength */ |
| 149 | MX53_PAD_EIM_CS1__IPU_DI1_PIN6 0xe6 |
| 150 | MX53_PAD_EIM_DA15__IPU_DI1_PIN4 0xe6 |
| 151 | >; |
| 152 | }; |
| 153 | }; |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 154 | }; |
| 155 | |
Philipp Zabel | e05c8c9 | 2014-03-05 10:21:00 +0100 | [diff] [blame] | 156 | &ipu_di1_disp1 { |
| 157 | remote-endpoint = <&display1_in>; |
| 158 | }; |
| 159 | |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 160 | &cspi { |
| 161 | status = "okay"; |
| 162 | }; |
| 163 | |
Markus Niebel | eefb800 | 2013-06-04 13:07:11 +0200 | [diff] [blame] | 164 | &audmux { |
| 165 | status = "okay"; |
| 166 | pinctrl-names = "default"; |
Shawn Guo | 7ac0f70 | 2013-11-04 14:45:46 +0800 | [diff] [blame] | 167 | pinctrl-0 = <&pinctrl_audmux>; |
Markus Niebel | eefb800 | 2013-06-04 13:07:11 +0200 | [diff] [blame] | 168 | }; |
| 169 | |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 170 | &i2c2 { |
| 171 | codec: sgtl5000@a { |
| 172 | compatible = "fsl,sgtl5000"; |
| 173 | reg = <0x0a>; |
Lucas Stach | 564695d | 2013-11-14 11:18:58 +0100 | [diff] [blame] | 174 | clocks = <&clks IMX5_CLK_SSI_EXT1_GATE>; |
Markus Niebel | eefb800 | 2013-06-04 13:07:11 +0200 | [diff] [blame] | 175 | VDDA-supply = <®_3p2v>; |
| 176 | VDDIO-supply = <®_3p2v>; |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 177 | }; |
| 178 | |
| 179 | expander: pca9554@20 { |
| 180 | compatible = "pca9554"; |
| 181 | reg = <0x20>; |
| 182 | interrupts = <109>; |
Markus Niebel | 74154be | 2013-06-04 13:07:12 +0200 | [diff] [blame] | 183 | #gpio-cells = <2>; |
| 184 | gpio-controller; |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 185 | }; |
| 186 | |
| 187 | sensor2: lm75@49 { |
| 188 | compatible = "lm75"; |
| 189 | reg = <0x49>; |
| 190 | }; |
| 191 | }; |
| 192 | |
| 193 | &fec { |
Markus Niebel | deb19eb | 2013-06-04 13:07:13 +0200 | [diff] [blame] | 194 | phy-reset-gpios = <&gpio7 6 0>; |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 195 | status = "okay"; |
| 196 | }; |
| 197 | |
| 198 | &esdhc2 { |
| 199 | status = "okay"; |
| 200 | }; |
| 201 | |
| 202 | &uart3 { |
| 203 | status = "okay"; |
| 204 | }; |
| 205 | |
| 206 | &ecspi1 { |
| 207 | status = "okay"; |
| 208 | }; |
| 209 | |
Michael Olbrich | 3b1a0f2 | 2013-06-04 13:07:08 +0200 | [diff] [blame] | 210 | &usbotg { |
| 211 | dr_mode = "host"; |
| 212 | status = "okay"; |
| 213 | }; |
| 214 | |
| 215 | &usbh1 { |
| 216 | status = "okay"; |
| 217 | }; |
| 218 | |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 219 | &uart1 { |
| 220 | status = "okay"; |
| 221 | }; |
| 222 | |
Markus Niebel | eefb800 | 2013-06-04 13:07:11 +0200 | [diff] [blame] | 223 | &ssi2 { |
| 224 | fsl,mode = "i2s-slave"; |
| 225 | status = "okay"; |
| 226 | }; |
| 227 | |
Steffen Trumtrar | be3a568 | 2013-01-10 11:27:27 +0100 | [diff] [blame] | 228 | &uart2 { |
| 229 | status = "okay"; |
| 230 | }; |
| 231 | |
| 232 | &can1 { |
| 233 | status = "okay"; |
| 234 | }; |
| 235 | |
| 236 | &can2 { |
| 237 | status = "okay"; |
| 238 | }; |
| 239 | |
| 240 | &i2c3 { |
| 241 | status = "okay"; |
| 242 | }; |
Philipp Zabel | d7db539 | 2013-06-04 13:07:10 +0200 | [diff] [blame] | 243 | |
| 244 | &tve { |
| 245 | pinctrl-names = "default"; |
| 246 | pinctrl-0 = <&pinctrl_vga_sync_1>; |
Philipp Zabel | 49ba179 | 2014-03-05 10:20:58 +0100 | [diff] [blame] | 247 | i2c-ddc-bus = <&i2c3>; |
Philipp Zabel | d7db539 | 2013-06-04 13:07:10 +0200 | [diff] [blame] | 248 | fsl,tve-mode = "vga"; |
| 249 | fsl,hsync-pin = <4>; |
| 250 | fsl,vsync-pin = <6>; |
| 251 | status = "okay"; |
| 252 | }; |