Fabio Estevam | 2688a32 | 2013-07-16 14:40:29 -0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Freescale Semiconductor, Inc. |
| 3 | * |
| 4 | * Author: Fabio Estevam <fabio.estevam@freescale.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | * |
| 10 | */ |
| 11 | |
| 12 | / { |
| 13 | regulators { |
| 14 | compatible = "simple-bus"; |
| 15 | |
| 16 | reg_2p5v: 2p5v { |
| 17 | compatible = "regulator-fixed"; |
| 18 | regulator-name = "2P5V"; |
| 19 | regulator-min-microvolt = <2500000>; |
| 20 | regulator-max-microvolt = <2500000>; |
| 21 | regulator-always-on; |
| 22 | }; |
| 23 | |
| 24 | reg_3p3v: 3p3v { |
| 25 | compatible = "regulator-fixed"; |
| 26 | regulator-name = "3P3V"; |
| 27 | regulator-min-microvolt = <3300000>; |
| 28 | regulator-max-microvolt = <3300000>; |
| 29 | regulator-always-on; |
| 30 | }; |
| 31 | }; |
| 32 | |
| 33 | sound { |
| 34 | compatible = "fsl,imx6-wandboard-sgtl5000", |
| 35 | "fsl,imx-audio-sgtl5000"; |
| 36 | model = "imx6-wandboard-sgtl5000"; |
| 37 | ssi-controller = <&ssi1>; |
| 38 | audio-codec = <&codec>; |
| 39 | audio-routing = |
| 40 | "MIC_IN", "Mic Jack", |
| 41 | "Mic Jack", "Mic Bias", |
| 42 | "Headphone Jack", "HP_OUT"; |
| 43 | mux-int-port = <1>; |
| 44 | mux-ext-port = <3>; |
| 45 | }; |
Fabio Estevam | c9d96df | 2013-09-02 23:51:41 -0300 | [diff] [blame] | 46 | |
| 47 | sound-spdif { |
| 48 | compatible = "fsl,imx-audio-spdif"; |
| 49 | model = "imx-spdif"; |
| 50 | spdif-controller = <&spdif>; |
| 51 | spdif-out; |
| 52 | }; |
Fabio Estevam | 2688a32 | 2013-07-16 14:40:29 -0300 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | &audmux { |
| 56 | pinctrl-names = "default"; |
| 57 | pinctrl-0 = <&pinctrl_audmux_2>; |
| 58 | status = "okay"; |
| 59 | }; |
| 60 | |
| 61 | &i2c2 { |
| 62 | clock-frequency = <100000>; |
| 63 | pinctrl-names = "default"; |
| 64 | pinctrl-0 = <&pinctrl_i2c2_2>; |
| 65 | status = "okay"; |
| 66 | |
| 67 | codec: sgtl5000@0a { |
| 68 | compatible = "fsl,sgtl5000"; |
| 69 | reg = <0x0a>; |
Shawn Guo | a94f8ec | 2013-07-18 14:42:28 +0800 | [diff] [blame] | 70 | clocks = <&clks 201>; |
Fabio Estevam | 2688a32 | 2013-07-16 14:40:29 -0300 | [diff] [blame] | 71 | VDDA-supply = <®_2p5v>; |
| 72 | VDDIO-supply = <®_3p3v>; |
| 73 | }; |
| 74 | }; |
| 75 | |
| 76 | &iomuxc { |
| 77 | pinctrl-names = "default"; |
| 78 | pinctrl-0 = <&pinctrl_hog>; |
| 79 | |
| 80 | hog { |
| 81 | pinctrl_hog: hoggrp { |
| 82 | fsl,pins = < |
Tony Prisk | a338be9 | 2013-07-28 12:00:20 +1200 | [diff] [blame] | 83 | MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 |
| 84 | MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000 |
| 85 | MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000 |
| 86 | MX6QDL_PAD_EIM_EB1__GPIO2_IO29 0x80000000 /* WL_REF_ON */ |
| 87 | MX6QDL_PAD_EIM_A25__GPIO5_IO02 0x80000000 /* WL_RST_N */ |
| 88 | MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x80000000 /* WL_REG_ON */ |
| 89 | MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x80000000 /* WL_HOST_WAKE */ |
| 90 | MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x80000000 /* WL_WAKE */ |
Fabio Estevam | 8012137 | 2013-09-27 11:12:42 -0300 | [diff] [blame] | 91 | MX6QDL_PAD_EIM_D29__GPIO3_IO29 0x80000000 |
Fabio Estevam | 2688a32 | 2013-07-16 14:40:29 -0300 | [diff] [blame] | 92 | >; |
| 93 | }; |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | &fec { |
| 98 | pinctrl-names = "default"; |
| 99 | pinctrl-0 = <&pinctrl_enet_1>; |
| 100 | phy-mode = "rgmii"; |
Fabio Estevam | 8012137 | 2013-09-27 11:12:42 -0300 | [diff] [blame] | 101 | phy-reset-gpios = <&gpio3 29 0>; |
Fabio Estevam | 2688a32 | 2013-07-16 14:40:29 -0300 | [diff] [blame] | 102 | status = "okay"; |
| 103 | }; |
| 104 | |
Fabio Estevam | c9d96df | 2013-09-02 23:51:41 -0300 | [diff] [blame] | 105 | &spdif { |
| 106 | pinctrl-names = "default"; |
| 107 | pinctrl-0 = <&pinctrl_spdif_3>; |
| 108 | status = "okay"; |
| 109 | }; |
| 110 | |
Fabio Estevam | 2688a32 | 2013-07-16 14:40:29 -0300 | [diff] [blame] | 111 | &ssi1 { |
| 112 | fsl,mode = "i2s-slave"; |
| 113 | status = "okay"; |
| 114 | }; |
| 115 | |
| 116 | &uart1 { |
| 117 | pinctrl-names = "default"; |
| 118 | pinctrl-0 = <&pinctrl_uart1_1>; |
| 119 | status = "okay"; |
| 120 | }; |
| 121 | |
| 122 | &uart3 { |
| 123 | pinctrl-names = "default"; |
| 124 | pinctrl-0 = <&pinctrl_uart3_2>; |
| 125 | fsl,uart-has-rtscts; |
| 126 | status = "okay"; |
| 127 | }; |
| 128 | |
| 129 | &usbh1 { |
| 130 | status = "okay"; |
| 131 | }; |
| 132 | |
Fabio Estevam | e9ac890 | 2013-08-21 10:27:02 -0300 | [diff] [blame] | 133 | &usbotg { |
| 134 | pinctrl-names = "default"; |
| 135 | pinctrl-0 = <&pinctrl_usbotg_1>; |
| 136 | disable-over-current; |
| 137 | dr_mode = "peripheral"; |
| 138 | status = "okay"; |
| 139 | }; |
| 140 | |
Fabio Estevam | 2688a32 | 2013-07-16 14:40:29 -0300 | [diff] [blame] | 141 | &usdhc1 { |
| 142 | pinctrl-names = "default"; |
| 143 | pinctrl-0 = <&pinctrl_usdhc1_2>; |
| 144 | cd-gpios = <&gpio1 2 0>; |
| 145 | status = "okay"; |
| 146 | }; |
| 147 | |
| 148 | &usdhc2 { |
| 149 | pinctrl-names = "default"; |
| 150 | pinctrl-0 = <&pinctrl_usdhc2_2>; |
| 151 | non-removable; |
| 152 | status = "okay"; |
| 153 | }; |
| 154 | |
| 155 | &usdhc3 { |
| 156 | pinctrl-names = "default"; |
| 157 | pinctrl-0 = <&pinctrl_usdhc3_2>; |
| 158 | cd-gpios = <&gpio3 9 0>; |
| 159 | status = "okay"; |
| 160 | }; |