Shawn Guo | 082d33d | 2013-04-02 13:15:16 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Freescale Semiconductor, Inc. |
| 3 | * Copyright 2011 Linaro Ltd. |
| 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 | / { |
| 14 | memory { |
| 15 | reg = <0x10000000 0x40000000>; |
| 16 | }; |
| 17 | |
| 18 | regulators { |
| 19 | compatible = "simple-bus"; |
| 20 | |
| 21 | reg_usb_otg_vbus: usb_otg_vbus { |
| 22 | compatible = "regulator-fixed"; |
| 23 | regulator-name = "usb_otg_vbus"; |
| 24 | regulator-min-microvolt = <5000000>; |
| 25 | regulator-max-microvolt = <5000000>; |
| 26 | gpio = <&gpio3 22 0>; |
| 27 | enable-active-high; |
| 28 | }; |
Nicolin Chen | fdbfb43 | 2013-06-13 19:51:00 +0800 | [diff] [blame] | 29 | |
Peter Chen | 015fa46 | 2013-08-12 16:46:24 +0800 | [diff] [blame] | 30 | reg_usb_h1_vbus: usb_h1_vbus { |
| 31 | compatible = "regulator-fixed"; |
| 32 | regulator-name = "usb_h1_vbus"; |
| 33 | regulator-min-microvolt = <5000000>; |
| 34 | regulator-max-microvolt = <5000000>; |
| 35 | gpio = <&gpio1 29 0>; |
| 36 | enable-active-high; |
| 37 | }; |
| 38 | |
Nicolin Chen | fdbfb43 | 2013-06-13 19:51:00 +0800 | [diff] [blame] | 39 | reg_audio: wm8962_supply { |
| 40 | compatible = "regulator-fixed"; |
| 41 | regulator-name = "wm8962-supply"; |
| 42 | gpio = <&gpio4 10 0>; |
| 43 | enable-active-high; |
| 44 | }; |
Shawn Guo | 082d33d | 2013-04-02 13:15:16 +0800 | [diff] [blame] | 45 | }; |
| 46 | |
| 47 | gpio-keys { |
| 48 | compatible = "gpio-keys"; |
| 49 | |
| 50 | volume-up { |
| 51 | label = "Volume Up"; |
| 52 | gpios = <&gpio1 4 0>; |
Fabio Estevam | 6c30640 | 2013-07-19 10:40:23 -0300 | [diff] [blame] | 53 | gpio-key,wakeup; |
Shawn Guo | 082d33d | 2013-04-02 13:15:16 +0800 | [diff] [blame] | 54 | linux,code = <115>; /* KEY_VOLUMEUP */ |
| 55 | }; |
| 56 | |
| 57 | volume-down { |
| 58 | label = "Volume Down"; |
| 59 | gpios = <&gpio1 5 0>; |
Fabio Estevam | 6c30640 | 2013-07-19 10:40:23 -0300 | [diff] [blame] | 60 | gpio-key,wakeup; |
Shawn Guo | 082d33d | 2013-04-02 13:15:16 +0800 | [diff] [blame] | 61 | linux,code = <114>; /* KEY_VOLUMEDOWN */ |
| 62 | }; |
| 63 | }; |
Nicolin Chen | 77b38fc | 2013-06-14 13:22:46 +0800 | [diff] [blame] | 64 | |
| 65 | sound { |
| 66 | compatible = "fsl,imx6q-sabresd-wm8962", |
| 67 | "fsl,imx-audio-wm8962"; |
| 68 | model = "wm8962-audio"; |
| 69 | ssi-controller = <&ssi2>; |
| 70 | audio-codec = <&codec>; |
| 71 | audio-routing = |
| 72 | "Headphone Jack", "HPOUTL", |
| 73 | "Headphone Jack", "HPOUTR", |
| 74 | "Ext Spk", "SPKOUTL", |
| 75 | "Ext Spk", "SPKOUTR", |
| 76 | "MICBIAS", "AMIC", |
| 77 | "IN3R", "MICBIAS", |
| 78 | "DMIC", "MICBIAS", |
| 79 | "DMICDAT", "DMIC"; |
| 80 | mux-int-port = <2>; |
| 81 | mux-ext-port = <3>; |
| 82 | }; |
Shawn Guo | 082d33d | 2013-04-02 13:15:16 +0800 | [diff] [blame] | 83 | }; |
| 84 | |
Nicolin Chen | 4882870 | 2013-06-14 13:19:57 +0800 | [diff] [blame] | 85 | &audmux { |
| 86 | pinctrl-names = "default"; |
| 87 | pinctrl-0 = <&pinctrl_audmux_2>; |
| 88 | status = "okay"; |
| 89 | }; |
| 90 | |
Huang Shijie | 9110ede | 2013-06-21 10:19:11 +0800 | [diff] [blame] | 91 | &ecspi1 { |
| 92 | fsl,spi-num-chipselects = <1>; |
| 93 | cs-gpios = <&gpio4 9 0>; |
| 94 | pinctrl-names = "default"; |
| 95 | pinctrl-0 = <&pinctrl_ecspi1_2>; |
| 96 | status = "okay"; |
| 97 | |
| 98 | flash: m25p80@0 { |
| 99 | #address-cells = <1>; |
| 100 | #size-cells = <1>; |
| 101 | compatible = "st,m25p32"; |
| 102 | spi-max-frequency = <20000000>; |
| 103 | reg = <0>; |
| 104 | }; |
| 105 | }; |
| 106 | |
Shawn Guo | 082d33d | 2013-04-02 13:15:16 +0800 | [diff] [blame] | 107 | &fec { |
| 108 | pinctrl-names = "default"; |
| 109 | pinctrl-0 = <&pinctrl_enet_1>; |
| 110 | phy-mode = "rgmii"; |
| 111 | status = "okay"; |
| 112 | }; |
| 113 | |
Nicolin Chen | 20426fe | 2013-06-13 19:51:01 +0800 | [diff] [blame] | 114 | &i2c1 { |
| 115 | clock-frequency = <100000>; |
| 116 | pinctrl-names = "default"; |
| 117 | pinctrl-0 = <&pinctrl_i2c1_2>; |
| 118 | status = "okay"; |
| 119 | |
| 120 | codec: wm8962@1a { |
| 121 | compatible = "wlf,wm8962"; |
| 122 | reg = <0x1a>; |
Shawn Guo | a94f8ec | 2013-07-18 14:42:28 +0800 | [diff] [blame] | 123 | clocks = <&clks 201>; |
Nicolin Chen | 20426fe | 2013-06-13 19:51:01 +0800 | [diff] [blame] | 124 | DCVDD-supply = <®_audio>; |
| 125 | DBVDD-supply = <®_audio>; |
| 126 | AVDD-supply = <®_audio>; |
| 127 | CPVDD-supply = <®_audio>; |
| 128 | MICVDD-supply = <®_audio>; |
| 129 | PLLVDD-supply = <®_audio>; |
| 130 | SPKVDD1-supply = <®_audio>; |
| 131 | SPKVDD2-supply = <®_audio>; |
| 132 | gpio-cfg = < |
| 133 | 0x0000 /* 0:Default */ |
| 134 | 0x0000 /* 1:Default */ |
| 135 | 0x0013 /* 2:FN_DMICCLK */ |
| 136 | 0x0000 /* 3:Default */ |
| 137 | 0x8014 /* 4:FN_DMICCDAT */ |
| 138 | 0x0000 /* 5:Default */ |
| 139 | >; |
| 140 | }; |
| 141 | }; |
| 142 | |
Fabio Estevam | 3850117 | 2013-07-24 17:20:03 -0300 | [diff] [blame] | 143 | &i2c3 { |
| 144 | clock-frequency = <100000>; |
| 145 | pinctrl-names = "default"; |
| 146 | pinctrl-0 = <&pinctrl_i2c3_2>; |
| 147 | status = "okay"; |
| 148 | |
| 149 | egalax_ts@04 { |
| 150 | compatible = "eeti,egalax_ts"; |
| 151 | reg = <0x04>; |
| 152 | interrupt-parent = <&gpio6>; |
| 153 | interrupts = <7 2>; |
| 154 | wakeup-gpios = <&gpio6 7 0>; |
| 155 | }; |
| 156 | }; |
| 157 | |
Shawn Guo | c56009b2f | 2013-07-11 13:58:36 +0800 | [diff] [blame] | 158 | &iomuxc { |
| 159 | pinctrl-names = "default"; |
| 160 | pinctrl-0 = <&pinctrl_hog>; |
| 161 | |
| 162 | hog { |
| 163 | pinctrl_hog: hoggrp { |
| 164 | fsl,pins = < |
| 165 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x80000000 |
| 166 | MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x80000000 |
| 167 | MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x80000000 |
| 168 | MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x80000000 |
| 169 | MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x80000000 |
| 170 | MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x80000000 |
| 171 | MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 |
Fabio Estevam | 3850117 | 2013-07-24 17:20:03 -0300 | [diff] [blame] | 172 | MX6QDL_PAD_NANDF_CLE__GPIO6_IO07 0x80000000 |
Peter Chen | 015fa46 | 2013-08-12 16:46:24 +0800 | [diff] [blame] | 173 | MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x80000000 |
Peter Chen | e3c68c8 | 2013-08-12 16:51:39 +0800 | [diff] [blame] | 174 | MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x80000000 |
Shawn Guo | c56009b2f | 2013-07-11 13:58:36 +0800 | [diff] [blame] | 175 | >; |
| 176 | }; |
| 177 | }; |
| 178 | }; |
| 179 | |
Shawn Guo | b7fb710 | 2013-07-16 22:15:18 +0800 | [diff] [blame] | 180 | &ldb { |
| 181 | status = "okay"; |
| 182 | |
| 183 | lvds-channel@1 { |
| 184 | fsl,data-mapping = "spwg"; |
| 185 | fsl,data-width = <18>; |
| 186 | status = "okay"; |
| 187 | |
| 188 | display-timings { |
| 189 | native-mode = <&timing0>; |
| 190 | timing0: hsd100pxn1 { |
| 191 | clock-frequency = <65000000>; |
| 192 | hactive = <1024>; |
| 193 | vactive = <768>; |
| 194 | hback-porch = <220>; |
| 195 | hfront-porch = <40>; |
| 196 | vback-porch = <21>; |
| 197 | vfront-porch = <7>; |
| 198 | hsync-len = <60>; |
| 199 | vsync-len = <10>; |
| 200 | }; |
| 201 | }; |
| 202 | }; |
| 203 | }; |
| 204 | |
Nicolin Chen | 4882870 | 2013-06-14 13:19:57 +0800 | [diff] [blame] | 205 | &ssi2 { |
| 206 | fsl,mode = "i2s-slave"; |
| 207 | status = "okay"; |
| 208 | }; |
| 209 | |
Shawn Guo | 082d33d | 2013-04-02 13:15:16 +0800 | [diff] [blame] | 210 | &uart1 { |
| 211 | pinctrl-names = "default"; |
| 212 | pinctrl-0 = <&pinctrl_uart1_1>; |
| 213 | status = "okay"; |
| 214 | }; |
| 215 | |
| 216 | &usbh1 { |
Peter Chen | 015fa46 | 2013-08-12 16:46:24 +0800 | [diff] [blame] | 217 | vbus-supply = <®_usb_h1_vbus>; |
Shawn Guo | 082d33d | 2013-04-02 13:15:16 +0800 | [diff] [blame] | 218 | status = "okay"; |
| 219 | }; |
| 220 | |
| 221 | &usbotg { |
| 222 | vbus-supply = <®_usb_otg_vbus>; |
| 223 | pinctrl-names = "default"; |
| 224 | pinctrl-0 = <&pinctrl_usbotg_2>; |
| 225 | disable-over-current; |
| 226 | status = "okay"; |
| 227 | }; |
| 228 | |
| 229 | &usdhc2 { |
| 230 | pinctrl-names = "default"; |
| 231 | pinctrl-0 = <&pinctrl_usdhc2_1>; |
| 232 | cd-gpios = <&gpio2 2 0>; |
| 233 | wp-gpios = <&gpio2 3 0>; |
| 234 | status = "okay"; |
| 235 | }; |
| 236 | |
| 237 | &usdhc3 { |
| 238 | pinctrl-names = "default"; |
| 239 | pinctrl-0 = <&pinctrl_usdhc3_1>; |
| 240 | cd-gpios = <&gpio2 0 0>; |
| 241 | wp-gpios = <&gpio2 1 0>; |
| 242 | status = "okay"; |
| 243 | }; |