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>; |
| 44 | linux,code = <115>; /* KEY_VOLUMEUP */ |
| 45 | }; |
| 46 | |
| 47 | volume-down { |
| 48 | label = "Volume Down"; |
| 49 | gpios = <&gpio1 5 0>; |
| 50 | linux,code = <114>; /* KEY_VOLUMEDOWN */ |
| 51 | }; |
| 52 | }; |
| 53 | }; |
| 54 | |
| 55 | &fec { |
| 56 | pinctrl-names = "default"; |
| 57 | pinctrl-0 = <&pinctrl_enet_1>; |
| 58 | phy-mode = "rgmii"; |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
| 62 | &uart1 { |
| 63 | pinctrl-names = "default"; |
| 64 | pinctrl-0 = <&pinctrl_uart1_1>; |
| 65 | status = "okay"; |
| 66 | }; |
| 67 | |
| 68 | &usbh1 { |
| 69 | status = "okay"; |
| 70 | }; |
| 71 | |
| 72 | &usbotg { |
| 73 | vbus-supply = <®_usb_otg_vbus>; |
| 74 | pinctrl-names = "default"; |
| 75 | pinctrl-0 = <&pinctrl_usbotg_2>; |
| 76 | disable-over-current; |
| 77 | status = "okay"; |
| 78 | }; |
| 79 | |
| 80 | &usdhc2 { |
| 81 | pinctrl-names = "default"; |
| 82 | pinctrl-0 = <&pinctrl_usdhc2_1>; |
| 83 | cd-gpios = <&gpio2 2 0>; |
| 84 | wp-gpios = <&gpio2 3 0>; |
| 85 | status = "okay"; |
| 86 | }; |
| 87 | |
| 88 | &usdhc3 { |
| 89 | pinctrl-names = "default"; |
| 90 | pinctrl-0 = <&pinctrl_usdhc3_1>; |
| 91 | cd-gpios = <&gpio2 0 0>; |
| 92 | wp-gpios = <&gpio2 1 0>; |
| 93 | status = "okay"; |
| 94 | }; |