Gwenhael Goavec-Merou | 414b415 | 2012-10-31 18:39:26 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Armadeus Systems - <support@armadeus.com> |
| 3 | * |
| 4 | * The code contained herein is licensed under the GNU General Public |
| 5 | * License. You may obtain a copy of the GNU General Public License |
| 6 | * Version 2 or later at the following locations: |
| 7 | * |
| 8 | * http://www.opensource.org/licenses/gpl-license.html |
| 9 | * http://www.gnu.org/copyleft/gpl.html |
| 10 | */ |
| 11 | |
| 12 | /* APF28Dev is a docking board for the APF28 SOM */ |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 13 | #include "imx28-apf28.dts" |
Gwenhael Goavec-Merou | 414b415 | 2012-10-31 18:39:26 +0100 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | model = "Armadeus Systems APF28Dev docking/development board"; |
| 17 | compatible = "armadeus,imx28-apf28dev", "armadeus,imx28-apf28", "fsl,imx28"; |
| 18 | |
| 19 | apb@80000000 { |
| 20 | apbh@80000000 { |
| 21 | ssp0: ssp@80010000 { |
| 22 | compatible = "fsl,imx28-mmc"; |
| 23 | pinctrl-names = "default"; |
| 24 | pinctrl-0 = <&mmc0_4bit_pins_a |
| 25 | &mmc0_cd_cfg &mmc0_sck_cfg>; |
| 26 | bus-width = <4>; |
| 27 | status = "okay"; |
| 28 | }; |
Gwenhael Goavec-Merou | 24acd6b | 2012-11-02 19:01:47 +0100 | [diff] [blame] | 29 | |
Gwenhael Goavec-Merou | ac8e44c | 2012-11-09 13:42:41 +0100 | [diff] [blame] | 30 | ssp2: ssp@80014000 { |
| 31 | compatible = "fsl,imx28-spi"; |
| 32 | pinctrl-names = "default"; |
| 33 | pinctrl-0 = <&spi2_pins_a>; |
| 34 | status = "okay"; |
| 35 | }; |
| 36 | |
Gwenhael Goavec-Merou | 24acd6b | 2012-11-02 19:01:47 +0100 | [diff] [blame] | 37 | pinctrl@80018000 { |
| 38 | pinctrl-names = "default"; |
| 39 | pinctrl-0 = <&hog_pins_apf28dev>; |
| 40 | |
| 41 | hog_pins_apf28dev: hog@0 { |
| 42 | reg = <0>; |
| 43 | fsl,pinmux-ids = < |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 44 | MX28_PAD_LCD_D16__GPIO_1_16 |
| 45 | MX28_PAD_LCD_D17__GPIO_1_17 |
| 46 | MX28_PAD_LCD_D18__GPIO_1_18 |
| 47 | MX28_PAD_LCD_D19__GPIO_1_19 |
| 48 | MX28_PAD_LCD_D20__GPIO_1_20 |
| 49 | MX28_PAD_LCD_D21__GPIO_1_21 |
| 50 | MX28_PAD_LCD_D22__GPIO_1_22 |
Sébastien Szymanski | 625df5b | 2014-01-14 15:21:27 +0100 | [diff] [blame] | 51 | MX28_PAD_GPMI_CE1N__GPIO_0_17 |
Gwenhael Goavec-Merou | 24acd6b | 2012-11-02 19:01:47 +0100 | [diff] [blame] | 52 | >; |
Lothar Waßmann | 4191c34 | 2013-09-22 14:02:59 +0800 | [diff] [blame] | 53 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
| 54 | fsl,voltage = <MXS_VOLTAGE_HIGH>; |
| 55 | fsl,pull-up = <MXS_PULL_DISABLE>; |
Gwenhael Goavec-Merou | 24acd6b | 2012-11-02 19:01:47 +0100 | [diff] [blame] | 56 | }; |
Gwenhael Goavec-Merou | a4dabca | 2012-11-02 19:01:48 +0100 | [diff] [blame] | 57 | |
| 58 | lcdif_pins_apf28dev: lcdif-apf28dev@0 { |
| 59 | reg = <0>; |
| 60 | fsl,pinmux-ids = < |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 61 | MX28_PAD_LCD_RD_E__LCD_VSYNC |
| 62 | MX28_PAD_LCD_WR_RWN__LCD_HSYNC |
| 63 | MX28_PAD_LCD_RS__LCD_DOTCLK |
| 64 | MX28_PAD_LCD_CS__LCD_ENABLE |
Gwenhael Goavec-Merou | a4dabca | 2012-11-02 19:01:48 +0100 | [diff] [blame] | 65 | >; |
Lothar Waßmann | 4191c34 | 2013-09-22 14:02:59 +0800 | [diff] [blame] | 66 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
| 67 | fsl,voltage = <MXS_VOLTAGE_HIGH>; |
| 68 | fsl,pull-up = <MXS_PULL_DISABLE>; |
Gwenhael Goavec-Merou | a4dabca | 2012-11-02 19:01:48 +0100 | [diff] [blame] | 69 | }; |
Gwenhael Goavec-Merou | 2ba4d1ca | 2013-11-30 09:51:13 +0100 | [diff] [blame] | 70 | |
| 71 | usb0_otg_apf28dev: otg-apf28dev@0 { |
| 72 | reg = <0>; |
| 73 | fsl,pinmux-ids = < |
| 74 | MX28_PAD_LCD_D23__GPIO_1_23 |
| 75 | >; |
| 76 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
| 77 | fsl,voltage = <MXS_VOLTAGE_HIGH>; |
| 78 | fsl,pull-up = <MXS_PULL_DISABLE>; |
| 79 | }; |
Gwenhael Goavec-Merou | a4dabca | 2012-11-02 19:01:48 +0100 | [diff] [blame] | 80 | }; |
| 81 | |
| 82 | lcdif@80030000 { |
| 83 | pinctrl-names = "default"; |
| 84 | pinctrl-0 = <&lcdif_16bit_pins_a |
| 85 | &lcdif_pins_apf28dev>; |
Fabio Estevam | ee99b46 | 2014-09-04 22:31:19 -0300 | [diff] [blame] | 86 | display = <&display0>; |
Gwenhael Goavec-Merou | a4dabca | 2012-11-02 19:01:48 +0100 | [diff] [blame] | 87 | status = "okay"; |
Shawn Guo | 0d9f821 | 2013-03-14 11:37:15 +0800 | [diff] [blame] | 88 | |
Fabio Estevam | ee99b46 | 2014-09-04 22:31:19 -0300 | [diff] [blame] | 89 | display0: display0 { |
Shawn Guo | 0d9f821 | 2013-03-14 11:37:15 +0800 | [diff] [blame] | 90 | bits-per-pixel = <16>; |
| 91 | bus-width = <16>; |
| 92 | |
| 93 | display-timings { |
| 94 | native-mode = <&timing0>; |
| 95 | timing0: timing0 { |
| 96 | clock-frequency = <33000033>; |
| 97 | hactive = <800>; |
| 98 | vactive = <480>; |
| 99 | hback-porch = <96>; |
| 100 | hfront-porch = <96>; |
| 101 | vback-porch = <20>; |
| 102 | vfront-porch = <21>; |
| 103 | hsync-len = <64>; |
| 104 | vsync-len = <4>; |
| 105 | hsync-active = <1>; |
| 106 | vsync-active = <1>; |
| 107 | de-active = <1>; |
| 108 | pixelclk-active = <0>; |
| 109 | }; |
| 110 | }; |
| 111 | }; |
Gwenhael Goavec-Merou | 24acd6b | 2012-11-02 19:01:47 +0100 | [diff] [blame] | 112 | }; |
Gwenhael Goavec-Merou | 414b415 | 2012-10-31 18:39:26 +0100 | [diff] [blame] | 113 | }; |
| 114 | |
| 115 | apbx@80040000 { |
| 116 | lradc@80050000 { |
Gwenhael Goavec-Merou | 25a7376 | 2013-05-17 07:13:41 +0200 | [diff] [blame] | 117 | fsl,lradc-touchscreen-wires = <4>; |
Gwenhael Goavec-Merou | 414b415 | 2012-10-31 18:39:26 +0100 | [diff] [blame] | 118 | status = "okay"; |
| 119 | }; |
| 120 | |
Gwenhael Goavec-Merou | ac8e44c | 2012-11-09 13:42:41 +0100 | [diff] [blame] | 121 | i2c0: i2c@80058000 { |
| 122 | pinctrl-names = "default"; |
| 123 | pinctrl-0 = <&i2c0_pins_a>; |
| 124 | status = "okay"; |
| 125 | }; |
| 126 | |
Gwenhael Goavec-Merou | 414b415 | 2012-10-31 18:39:26 +0100 | [diff] [blame] | 127 | pwm: pwm@80064000 { |
| 128 | pinctrl-names = "default"; |
| 129 | pinctrl-0 = <&pwm3_pins_a &pwm4_pins_a>; |
| 130 | status = "okay"; |
| 131 | }; |
| 132 | |
| 133 | usbphy0: usbphy@8007c000 { |
| 134 | status = "okay"; |
| 135 | }; |
| 136 | |
| 137 | usbphy1: usbphy@8007e000 { |
| 138 | status = "okay"; |
| 139 | }; |
| 140 | }; |
| 141 | }; |
| 142 | |
| 143 | ahb@80080000 { |
| 144 | usb0: usb@80080000 { |
Gwenhael Goavec-Merou | 2ba4d1ca | 2013-11-30 09:51:13 +0100 | [diff] [blame] | 145 | pinctrl-names = "default"; |
| 146 | pinctrl-0 = <&usb0_otg_apf28dev>; |
Gwenhael Goavec-Merou | 414b415 | 2012-10-31 18:39:26 +0100 | [diff] [blame] | 147 | vbus-supply = <®_usb0_vbus>; |
| 148 | status = "okay"; |
| 149 | }; |
| 150 | |
| 151 | usb1: usb@80090000 { |
| 152 | status = "okay"; |
| 153 | }; |
| 154 | |
| 155 | mac1: ethernet@800f4000 { |
| 156 | phy-mode = "rmii"; |
| 157 | pinctrl-names = "default"; |
| 158 | pinctrl-0 = <&mac1_pins_a>; |
| 159 | phy-reset-gpios = <&gpio0 23 0>; |
| 160 | status = "okay"; |
| 161 | }; |
| 162 | }; |
| 163 | |
| 164 | regulators { |
| 165 | compatible = "simple-bus"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 166 | #address-cells = <1>; |
| 167 | #size-cells = <0>; |
Gwenhael Goavec-Merou | 414b415 | 2012-10-31 18:39:26 +0100 | [diff] [blame] | 168 | |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 169 | reg_usb0_vbus: regulator@0 { |
Gwenhael Goavec-Merou | 414b415 | 2012-10-31 18:39:26 +0100 | [diff] [blame] | 170 | compatible = "regulator-fixed"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 171 | reg = <0>; |
Gwenhael Goavec-Merou | 414b415 | 2012-10-31 18:39:26 +0100 | [diff] [blame] | 172 | regulator-name = "usb0_vbus"; |
| 173 | regulator-min-microvolt = <5000000>; |
| 174 | regulator-max-microvolt = <5000000>; |
| 175 | gpio = <&gpio1 23 1>; |
Gwenhael Goavec-Merou | 2ba4d1ca | 2013-11-30 09:51:13 +0100 | [diff] [blame] | 176 | enable-active-high; |
Gwenhael Goavec-Merou | 414b415 | 2012-10-31 18:39:26 +0100 | [diff] [blame] | 177 | }; |
| 178 | }; |
| 179 | |
| 180 | leds { |
| 181 | compatible = "gpio-leds"; |
| 182 | |
| 183 | user { |
| 184 | label = "Heartbeat"; |
| 185 | gpios = <&gpio0 21 0>; |
| 186 | linux,default-trigger = "heartbeat"; |
| 187 | }; |
| 188 | }; |
Gwenhael Goavec-Merou | a4dabca | 2012-11-02 19:01:48 +0100 | [diff] [blame] | 189 | |
| 190 | backlight { |
| 191 | compatible = "pwm-backlight"; |
| 192 | |
| 193 | pwms = <&pwm 3 191000>; |
| 194 | brightness-levels = <0 4 8 16 32 64 128 255>; |
| 195 | default-brightness-level = <6>; |
| 196 | }; |
Sébastien Szymanski | 625df5b | 2014-01-14 15:21:27 +0100 | [diff] [blame] | 197 | |
| 198 | gpio-keys { |
| 199 | compatible = "gpio-keys"; |
| 200 | |
| 201 | user-button { |
| 202 | label = "User button"; |
| 203 | gpios = <&gpio0 17 0>; |
| 204 | linux,code = <0x100>; |
| 205 | }; |
| 206 | }; |
Gwenhael Goavec-Merou | 414b415 | 2012-10-31 18:39:26 +0100 | [diff] [blame] | 207 | }; |