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 | |
Shawn Guo | c56009b2f | 2013-07-11 13:58:36 +0800 | [diff] [blame] | 134 | &iomuxc { |
| 135 | pinctrl-names = "default"; |
| 136 | pinctrl-0 = <&pinctrl_hog>; |
| 137 | |
| 138 | hog { |
| 139 | pinctrl_hog: hoggrp { |
| 140 | fsl,pins = < |
| 141 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x80000000 |
| 142 | MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x80000000 |
| 143 | MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x80000000 |
| 144 | MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x80000000 |
| 145 | MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x80000000 |
| 146 | MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x80000000 |
| 147 | MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 |
| 148 | >; |
| 149 | }; |
| 150 | }; |
| 151 | }; |
| 152 | |
Shawn Guo | b7fb710 | 2013-07-16 22:15:18 +0800 | [diff] [blame] | 153 | &ldb { |
| 154 | status = "okay"; |
| 155 | |
| 156 | lvds-channel@1 { |
| 157 | fsl,data-mapping = "spwg"; |
| 158 | fsl,data-width = <18>; |
| 159 | status = "okay"; |
| 160 | |
| 161 | display-timings { |
| 162 | native-mode = <&timing0>; |
| 163 | timing0: hsd100pxn1 { |
| 164 | clock-frequency = <65000000>; |
| 165 | hactive = <1024>; |
| 166 | vactive = <768>; |
| 167 | hback-porch = <220>; |
| 168 | hfront-porch = <40>; |
| 169 | vback-porch = <21>; |
| 170 | vfront-porch = <7>; |
| 171 | hsync-len = <60>; |
| 172 | vsync-len = <10>; |
| 173 | }; |
| 174 | }; |
| 175 | }; |
| 176 | }; |
| 177 | |
Nicolin Chen | 4882870 | 2013-06-14 13:19:57 +0800 | [diff] [blame] | 178 | &ssi2 { |
| 179 | fsl,mode = "i2s-slave"; |
| 180 | status = "okay"; |
| 181 | }; |
| 182 | |
Shawn Guo | 082d33d | 2013-04-02 13:15:16 +0800 | [diff] [blame] | 183 | &uart1 { |
| 184 | pinctrl-names = "default"; |
| 185 | pinctrl-0 = <&pinctrl_uart1_1>; |
| 186 | status = "okay"; |
| 187 | }; |
| 188 | |
| 189 | &usbh1 { |
| 190 | status = "okay"; |
| 191 | }; |
| 192 | |
| 193 | &usbotg { |
| 194 | vbus-supply = <®_usb_otg_vbus>; |
| 195 | pinctrl-names = "default"; |
| 196 | pinctrl-0 = <&pinctrl_usbotg_2>; |
| 197 | disable-over-current; |
| 198 | status = "okay"; |
| 199 | }; |
| 200 | |
| 201 | &usdhc2 { |
| 202 | pinctrl-names = "default"; |
| 203 | pinctrl-0 = <&pinctrl_usdhc2_1>; |
| 204 | cd-gpios = <&gpio2 2 0>; |
| 205 | wp-gpios = <&gpio2 3 0>; |
| 206 | status = "okay"; |
| 207 | }; |
| 208 | |
| 209 | &usdhc3 { |
| 210 | pinctrl-names = "default"; |
| 211 | pinctrl-0 = <&pinctrl_usdhc3_1>; |
| 212 | cd-gpios = <&gpio2 0 0>; |
| 213 | wp-gpios = <&gpio2 1 0>; |
| 214 | status = "okay"; |
| 215 | }; |