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