Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2011 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 | */ |
Troy Kisky | da474d4 | 2013-12-18 14:51:44 -0700 | [diff] [blame] | 12 | #include <dt-bindings/gpio/gpio.h> |
| 13 | #include <dt-bindings/input/input.h> |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | memory { |
| 17 | reg = <0x10000000 0x40000000>; |
| 18 | }; |
| 19 | |
| 20 | regulators { |
| 21 | compatible = "simple-bus"; |
| 22 | #address-cells = <1>; |
| 23 | #size-cells = <0>; |
| 24 | |
| 25 | reg_2p5v: regulator@0 { |
| 26 | compatible = "regulator-fixed"; |
| 27 | reg = <0>; |
| 28 | regulator-name = "2P5V"; |
| 29 | regulator-min-microvolt = <2500000>; |
| 30 | regulator-max-microvolt = <2500000>; |
| 31 | regulator-always-on; |
| 32 | }; |
| 33 | |
| 34 | reg_3p3v: regulator@1 { |
| 35 | compatible = "regulator-fixed"; |
| 36 | reg = <1>; |
| 37 | regulator-name = "3P3V"; |
| 38 | regulator-min-microvolt = <3300000>; |
| 39 | regulator-max-microvolt = <3300000>; |
| 40 | regulator-always-on; |
| 41 | }; |
| 42 | |
| 43 | reg_usb_otg_vbus: regulator@2 { |
| 44 | compatible = "regulator-fixed"; |
| 45 | reg = <2>; |
| 46 | regulator-name = "usb_otg_vbus"; |
| 47 | regulator-min-microvolt = <5000000>; |
| 48 | regulator-max-microvolt = <5000000>; |
| 49 | gpio = <&gpio3 22 0>; |
| 50 | enable-active-high; |
| 51 | }; |
| 52 | }; |
| 53 | |
Troy Kisky | da474d4 | 2013-12-18 14:51:44 -0700 | [diff] [blame] | 54 | gpio-keys { |
| 55 | compatible = "gpio-keys"; |
| 56 | pinctrl-names = "default"; |
| 57 | pinctrl-0 = <&pinctrl_gpio_keys>; |
| 58 | |
| 59 | power { |
| 60 | label = "Power Button"; |
| 61 | gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
| 62 | linux,code = <KEY_POWER>; |
| 63 | gpio-key,wakeup; |
| 64 | }; |
| 65 | |
| 66 | menu { |
| 67 | label = "Menu"; |
| 68 | gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
| 69 | linux,code = <KEY_MENU>; |
| 70 | }; |
| 71 | |
| 72 | home { |
| 73 | label = "Home"; |
| 74 | gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
| 75 | linux,code = <KEY_HOME>; |
| 76 | }; |
| 77 | |
| 78 | back { |
| 79 | label = "Back"; |
| 80 | gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; |
| 81 | linux,code = <KEY_BACK>; |
| 82 | }; |
| 83 | |
| 84 | volume-up { |
| 85 | label = "Volume Up"; |
| 86 | gpios = <&gpio7 13 GPIO_ACTIVE_LOW>; |
| 87 | linux,code = <KEY_VOLUMEUP>; |
| 88 | }; |
| 89 | |
| 90 | volume-down { |
| 91 | label = "Volume Down"; |
| 92 | gpios = <&gpio4 5 GPIO_ACTIVE_LOW>; |
| 93 | linux,code = <KEY_VOLUMEDOWN>; |
| 94 | }; |
| 95 | }; |
| 96 | |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 97 | sound { |
| 98 | compatible = "fsl,imx6q-sabrelite-sgtl5000", |
| 99 | "fsl,imx-audio-sgtl5000"; |
| 100 | model = "imx6q-sabrelite-sgtl5000"; |
| 101 | ssi-controller = <&ssi1>; |
| 102 | audio-codec = <&codec>; |
| 103 | audio-routing = |
| 104 | "MIC_IN", "Mic Jack", |
| 105 | "Mic Jack", "Mic Bias", |
| 106 | "Headphone Jack", "HP_OUT"; |
| 107 | mux-int-port = <1>; |
| 108 | mux-ext-port = <4>; |
| 109 | }; |
Troy Kisky | f5ecc32 | 2013-12-16 18:12:59 -0700 | [diff] [blame] | 110 | |
| 111 | backlight_lcd { |
| 112 | compatible = "pwm-backlight"; |
| 113 | pwms = <&pwm1 0 5000000>; |
| 114 | brightness-levels = <0 4 8 16 32 64 128 255>; |
| 115 | default-brightness-level = <7>; |
| 116 | power-supply = <®_3p3v>; |
| 117 | status = "okay"; |
| 118 | }; |
| 119 | |
| 120 | backlight_lvds { |
| 121 | compatible = "pwm-backlight"; |
| 122 | pwms = <&pwm4 0 5000000>; |
| 123 | brightness-levels = <0 4 8 16 32 64 128 255>; |
| 124 | default-brightness-level = <7>; |
| 125 | power-supply = <®_3p3v>; |
| 126 | status = "okay"; |
| 127 | }; |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 128 | }; |
| 129 | |
| 130 | &audmux { |
| 131 | pinctrl-names = "default"; |
| 132 | pinctrl-0 = <&pinctrl_audmux>; |
| 133 | status = "okay"; |
| 134 | }; |
| 135 | |
| 136 | &ecspi1 { |
| 137 | fsl,spi-num-chipselects = <1>; |
| 138 | cs-gpios = <&gpio3 19 0>; |
| 139 | pinctrl-names = "default"; |
| 140 | pinctrl-0 = <&pinctrl_ecspi1>; |
| 141 | status = "okay"; |
| 142 | |
| 143 | flash: m25p80@0 { |
| 144 | compatible = "sst,sst25vf016b"; |
| 145 | spi-max-frequency = <20000000>; |
| 146 | reg = <0>; |
| 147 | }; |
| 148 | }; |
| 149 | |
| 150 | &fec { |
| 151 | pinctrl-names = "default"; |
| 152 | pinctrl-0 = <&pinctrl_enet>; |
| 153 | phy-mode = "rgmii"; |
Philipp Zabel | a58a12a | 2013-12-20 16:25:17 +0100 | [diff] [blame] | 154 | phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>; |
Troy Kisky | a48a1e5 | 2013-12-16 18:13:00 -0700 | [diff] [blame] | 155 | txen-skew-ps = <0>; |
| 156 | txc-skew-ps = <3000>; |
| 157 | rxdv-skew-ps = <0>; |
| 158 | rxc-skew-ps = <3000>; |
| 159 | rxd0-skew-ps = <0>; |
| 160 | rxd1-skew-ps = <0>; |
| 161 | rxd2-skew-ps = <0>; |
| 162 | rxd3-skew-ps = <0>; |
| 163 | txd0-skew-ps = <0>; |
| 164 | txd1-skew-ps = <0>; |
| 165 | txd2-skew-ps = <0>; |
| 166 | txd3-skew-ps = <0>; |
Troy Kisky | 6261c4c | 2013-12-20 11:47:11 -0700 | [diff] [blame^] | 167 | interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>, |
| 168 | <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>; |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 169 | status = "okay"; |
| 170 | }; |
| 171 | |
| 172 | &i2c1 { |
| 173 | clock-frequency = <100000>; |
| 174 | pinctrl-names = "default"; |
| 175 | pinctrl-0 = <&pinctrl_i2c1>; |
| 176 | status = "okay"; |
| 177 | |
| 178 | codec: sgtl5000@0a { |
| 179 | compatible = "fsl,sgtl5000"; |
| 180 | reg = <0x0a>; |
| 181 | clocks = <&clks 201>; |
| 182 | VDDA-supply = <®_2p5v>; |
| 183 | VDDIO-supply = <®_3p3v>; |
| 184 | }; |
| 185 | }; |
| 186 | |
| 187 | &iomuxc { |
| 188 | pinctrl-names = "default"; |
| 189 | pinctrl-0 = <&pinctrl_hog>; |
| 190 | |
| 191 | imx6q-sabrelite { |
| 192 | pinctrl_hog: hoggrp { |
| 193 | fsl,pins = < |
Troy Kisky | 8c766cb | 2013-12-16 18:12:57 -0700 | [diff] [blame] | 194 | /* SGTL5000 sys_mclk */ |
| 195 | MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x030b0 |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 196 | >; |
| 197 | }; |
| 198 | |
| 199 | pinctrl_audmux: audmuxgrp { |
| 200 | fsl,pins = < |
| 201 | MX6QDL_PAD_SD2_DAT0__AUD4_RXD 0x130b0 |
| 202 | MX6QDL_PAD_SD2_DAT3__AUD4_TXC 0x130b0 |
| 203 | MX6QDL_PAD_SD2_DAT2__AUD4_TXD 0x110b0 |
| 204 | MX6QDL_PAD_SD2_DAT1__AUD4_TXFS 0x130b0 |
| 205 | >; |
| 206 | }; |
| 207 | |
| 208 | pinctrl_ecspi1: ecspi1grp { |
| 209 | fsl,pins = < |
| 210 | MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1 |
| 211 | MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1 |
| 212 | MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1 |
Troy Kisky | c40f58a | 2013-12-16 18:12:54 -0700 | [diff] [blame] | 213 | MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x000b1 /* CS */ |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 214 | >; |
| 215 | }; |
| 216 | |
| 217 | pinctrl_enet: enetgrp { |
| 218 | fsl,pins = < |
Troy Kisky | fde9093 | 2013-12-16 18:13:01 -0700 | [diff] [blame] | 219 | MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x100b0 |
| 220 | MX6QDL_PAD_ENET_MDC__ENET_MDC 0x100b0 |
| 221 | MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x100b0 |
| 222 | MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x100b0 |
| 223 | MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x100b0 |
| 224 | MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x100b0 |
| 225 | MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x100b0 |
| 226 | MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x100b0 |
| 227 | MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x100b0 |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 228 | MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0 |
| 229 | MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b0b0 |
| 230 | MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b0b0 |
| 231 | MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b0b0 |
| 232 | MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b0b0 |
| 233 | MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0 |
Troy Kisky | f3b0ea6 | 2013-12-16 18:12:56 -0700 | [diff] [blame] | 234 | /* Phy reset */ |
| 235 | MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x000b0 |
Troy Kisky | 6261c4c | 2013-12-20 11:47:11 -0700 | [diff] [blame^] | 236 | MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1 |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 237 | >; |
| 238 | }; |
| 239 | |
Troy Kisky | da474d4 | 2013-12-18 14:51:44 -0700 | [diff] [blame] | 240 | pinctrl_gpio_keys: gpio_keysgrp { |
| 241 | fsl,pins = < |
| 242 | /* Power Button */ |
| 243 | MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x1b0b0 |
| 244 | /* Menu Button */ |
| 245 | MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0 |
| 246 | /* Home Button */ |
| 247 | MX6QDL_PAD_NANDF_D4__GPIO2_IO04 0x1b0b0 |
| 248 | /* Back Button */ |
| 249 | MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0 |
| 250 | /* Volume Up Button */ |
| 251 | MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b0 |
| 252 | /* Volume Down Button */ |
| 253 | MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x1b0b0 |
| 254 | >; |
| 255 | }; |
| 256 | |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 257 | pinctrl_i2c1: i2c1grp { |
| 258 | fsl,pins = < |
| 259 | MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1 |
| 260 | MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1 |
| 261 | >; |
| 262 | }; |
| 263 | |
Troy Kisky | f5ecc32 | 2013-12-16 18:12:59 -0700 | [diff] [blame] | 264 | pinctrl_pwm1: pwm1grp { |
| 265 | fsl,pins = < |
| 266 | MX6QDL_PAD_SD1_DAT3__PWM1_OUT 0x1b0b1 |
| 267 | >; |
| 268 | }; |
| 269 | |
| 270 | pinctrl_pwm3: pwm3grp { |
| 271 | fsl,pins = < |
| 272 | MX6QDL_PAD_SD1_DAT1__PWM3_OUT 0x1b0b1 |
| 273 | >; |
| 274 | }; |
| 275 | |
| 276 | pinctrl_pwm4: pwm4grp { |
| 277 | fsl,pins = < |
| 278 | MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1 |
| 279 | >; |
| 280 | }; |
| 281 | |
Troy Kisky | da08d27 | 2013-12-12 18:49:06 -0700 | [diff] [blame] | 282 | pinctrl_uart1: uart1grp { |
| 283 | fsl,pins = < |
| 284 | MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1 |
| 285 | MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1 |
| 286 | >; |
| 287 | }; |
| 288 | |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 289 | pinctrl_uart2: uart2grp { |
| 290 | fsl,pins = < |
| 291 | MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1 |
| 292 | MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1 |
| 293 | >; |
| 294 | }; |
| 295 | |
| 296 | pinctrl_usbotg: usbotggrp { |
| 297 | fsl,pins = < |
| 298 | MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059 |
Troy Kisky | da5b112 | 2013-12-16 18:13:02 -0700 | [diff] [blame] | 299 | MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0 |
Troy Kisky | d06d878 | 2013-12-16 18:12:55 -0700 | [diff] [blame] | 300 | /* power enable, high active */ |
| 301 | MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x000b0 |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 302 | >; |
| 303 | }; |
| 304 | |
| 305 | pinctrl_usdhc3: usdhc3grp { |
| 306 | fsl,pins = < |
| 307 | MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059 |
| 308 | MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059 |
| 309 | MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059 |
| 310 | MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059 |
| 311 | MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059 |
| 312 | MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059 |
Troy Kisky | 473f0fc | 2013-12-16 18:12:53 -0700 | [diff] [blame] | 313 | MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x1b0b0 /* CD */ |
| 314 | MX6QDL_PAD_SD3_DAT4__GPIO7_IO01 0x1f0b0 /* WP */ |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 315 | >; |
| 316 | }; |
| 317 | |
| 318 | pinctrl_usdhc4: usdhc4grp { |
| 319 | fsl,pins = < |
| 320 | MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059 |
| 321 | MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059 |
| 322 | MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059 |
| 323 | MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059 |
| 324 | MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059 |
| 325 | MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059 |
Troy Kisky | 0e06842 | 2013-12-16 18:12:52 -0700 | [diff] [blame] | 326 | MX6QDL_PAD_NANDF_D6__GPIO2_IO06 0x1b0b0 /* CD */ |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 327 | >; |
| 328 | }; |
| 329 | }; |
| 330 | }; |
| 331 | |
| 332 | &ldb { |
| 333 | status = "okay"; |
| 334 | |
| 335 | lvds-channel@0 { |
| 336 | fsl,data-mapping = "spwg"; |
| 337 | fsl,data-width = <18>; |
| 338 | status = "okay"; |
| 339 | |
| 340 | display-timings { |
| 341 | native-mode = <&timing0>; |
| 342 | timing0: hsd100pxn1 { |
| 343 | clock-frequency = <65000000>; |
| 344 | hactive = <1024>; |
| 345 | vactive = <768>; |
| 346 | hback-porch = <220>; |
| 347 | hfront-porch = <40>; |
| 348 | vback-porch = <21>; |
| 349 | vfront-porch = <7>; |
| 350 | hsync-len = <60>; |
| 351 | vsync-len = <10>; |
| 352 | }; |
| 353 | }; |
| 354 | }; |
| 355 | }; |
| 356 | |
| 357 | &pcie { |
| 358 | status = "okay"; |
| 359 | }; |
| 360 | |
Troy Kisky | f5ecc32 | 2013-12-16 18:12:59 -0700 | [diff] [blame] | 361 | &pwm1 { |
| 362 | pinctrl-names = "default"; |
| 363 | pinctrl-0 = <&pinctrl_pwm1>; |
| 364 | status = "okay"; |
| 365 | }; |
| 366 | |
| 367 | &pwm3 { |
| 368 | pinctrl-names = "default"; |
| 369 | pinctrl-0 = <&pinctrl_pwm3>; |
| 370 | status = "okay"; |
| 371 | }; |
| 372 | |
| 373 | &pwm4 { |
| 374 | pinctrl-names = "default"; |
| 375 | pinctrl-0 = <&pinctrl_pwm4>; |
| 376 | status = "okay"; |
| 377 | }; |
| 378 | |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 379 | &ssi1 { |
| 380 | fsl,mode = "i2s-slave"; |
| 381 | status = "okay"; |
| 382 | }; |
| 383 | |
Troy Kisky | da08d27 | 2013-12-12 18:49:06 -0700 | [diff] [blame] | 384 | &uart1 { |
| 385 | pinctrl-names = "default"; |
| 386 | pinctrl-0 = <&pinctrl_uart1>; |
| 387 | status = "okay"; |
| 388 | }; |
| 389 | |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 390 | &uart2 { |
| 391 | pinctrl-names = "default"; |
| 392 | pinctrl-0 = <&pinctrl_uart2>; |
| 393 | status = "okay"; |
| 394 | }; |
| 395 | |
| 396 | &usbh1 { |
| 397 | status = "okay"; |
| 398 | }; |
| 399 | |
| 400 | &usbotg { |
| 401 | vbus-supply = <®_usb_otg_vbus>; |
| 402 | pinctrl-names = "default"; |
| 403 | pinctrl-0 = <&pinctrl_usbotg>; |
| 404 | disable-over-current; |
| 405 | status = "okay"; |
| 406 | }; |
| 407 | |
| 408 | &usdhc3 { |
| 409 | pinctrl-names = "default"; |
| 410 | pinctrl-0 = <&pinctrl_usdhc3>; |
| 411 | cd-gpios = <&gpio7 0 0>; |
| 412 | wp-gpios = <&gpio7 1 0>; |
| 413 | vmmc-supply = <®_3p3v>; |
| 414 | status = "okay"; |
| 415 | }; |
| 416 | |
| 417 | &usdhc4 { |
| 418 | pinctrl-names = "default"; |
| 419 | pinctrl-0 = <&pinctrl_usdhc4>; |
| 420 | cd-gpios = <&gpio2 6 0>; |
Troy Kisky | 1efa126 | 2013-12-12 18:49:05 -0700 | [diff] [blame] | 421 | vmmc-supply = <®_3p3v>; |
| 422 | status = "okay"; |
| 423 | }; |