Maxime Ripard | db84c03 | 2012-08-31 16:00:41 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Free Electrons |
| 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 | /* |
| 13 | * The CFA-10049 is an expansion board for the CFA-10036 module, thus we |
| 14 | * need to include the CFA-10036 DTS. |
| 15 | */ |
| 16 | /include/ "imx28-cfa10036.dts" |
| 17 | |
| 18 | / { |
| 19 | model = "Crystalfontz CFA-10049 Board"; |
| 20 | compatible = "crystalfontz,cfa10049", "crystalfontz,cfa10036", "fsl,imx28"; |
| 21 | |
| 22 | apb@80000000 { |
Maxime Ripard | 223d1f9 | 2012-09-04 10:44:03 +0200 | [diff] [blame] | 23 | apbh@80000000 { |
| 24 | pinctrl@80018000 { |
Maxime Ripard | 24196d5 | 2012-11-03 16:59:08 +0100 | [diff] [blame] | 25 | pinctrl-names = "default", "default"; |
Maxime Ripard | 5b615fb | 2012-11-20 15:33:35 +0100 | [diff] [blame] | 26 | pinctrl-1 = <&hog_pins_cfa10049 |
| 27 | &hog_pins_cfa10049_pullup>; |
Maxime Ripard | 24196d5 | 2012-11-03 16:59:08 +0100 | [diff] [blame] | 28 | |
| 29 | hog_pins_cfa10049: hog-10049@0 { |
| 30 | reg = <0>; |
| 31 | fsl,pinmux-ids = < |
| 32 | 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */ |
Maxime Ripard | 1fe4274 | 2013-01-25 09:54:07 +0100 | [diff] [blame] | 33 | 0x1153 /* MX28_PAD_LCD_D22__GPIO_1_21 */ |
Maxime Ripard | 24196d5 | 2012-11-03 16:59:08 +0100 | [diff] [blame] | 34 | 0x1163 /* MX28_PAD_LCD_D22__GPIO_1_22 */ |
| 35 | 0x1173 /* MX28_PAD_LCD_D22__GPIO_1_23 */ |
| 36 | 0x2153 /* MX28_PAD_SSP2_D5__GPIO_2_21 */ |
Maxime Ripard | 1fe4274 | 2013-01-25 09:54:07 +0100 | [diff] [blame] | 37 | 0x3173 /* MX28_PAD_LCD_RESET__GPIO_3_23 */ |
Maxime Ripard | 24196d5 | 2012-11-03 16:59:08 +0100 | [diff] [blame] | 38 | >; |
| 39 | fsl,drive-strength = <0>; |
| 40 | fsl,voltage = <1>; |
| 41 | fsl,pull-up = <0>; |
| 42 | }; |
| 43 | |
Maxime Ripard | 5b615fb | 2012-11-20 15:33:35 +0100 | [diff] [blame] | 44 | hog_pins_cfa10049_pullup: hog-10049-pullup@0 { |
| 45 | reg = <0>; |
| 46 | fsl,pinmux-ids = < |
| 47 | 0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */ |
Maxime Ripard | a640cf6 | 2013-01-31 11:00:23 +0100 | [diff] [blame^] | 48 | 0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */ |
Maxime Ripard | 1fe4274 | 2013-01-25 09:54:07 +0100 | [diff] [blame] | 49 | 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */ |
Maxime Ripard | 5b615fb | 2012-11-20 15:33:35 +0100 | [diff] [blame] | 50 | >; |
| 51 | fsl,drive-strength = <0>; |
| 52 | fsl,voltage = <1>; |
| 53 | fsl,pull-up = <1>; |
| 54 | }; |
| 55 | |
Maxime Ripard | 1fe4274 | 2013-01-25 09:54:07 +0100 | [diff] [blame] | 56 | spi2_pins_cfa10049: spi2-cfa10049@0 { |
| 57 | reg = <0>; |
| 58 | fsl,pinmux-ids = < |
| 59 | 0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */ |
| 60 | 0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */ |
| 61 | 0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */ |
| 62 | >; |
| 63 | fsl,drive-strength = <1>; |
| 64 | fsl,voltage = <1>; |
| 65 | fsl,pull-up = <1>; |
| 66 | }; |
| 67 | |
Maxime Ripard | 223d1f9 | 2012-09-04 10:44:03 +0200 | [diff] [blame] | 68 | spi3_pins_cfa10049: spi3-cfa10049@0 { |
| 69 | reg = <0>; |
| 70 | fsl,pinmux-ids = < |
Maxime Ripard | 7ecc70a | 2013-01-25 09:39:35 +0100 | [diff] [blame] | 71 | 0x0183 /* MX28_PAD_GPMI_RDN__GPIO_0_24 */ |
| 72 | 0x01c3 /* MX28_PAD_GPMI_RESETN__GPIO_0_28 */ |
| 73 | 0x0113 /* MX28_PAD_GPMI_CE1N__GPIO_0_17 */ |
| 74 | 0x01a3 /* MX28_PAD_GPMI_ALE__GPIO_0_26 */ |
| 75 | 0x01b3 /* MX28_PAD_GPMI_CLE__GPIO_0_27 */ |
Maxime Ripard | 223d1f9 | 2012-09-04 10:44:03 +0200 | [diff] [blame] | 76 | >; |
| 77 | fsl,drive-strength = <1>; |
| 78 | fsl,voltage = <1>; |
| 79 | fsl,pull-up = <1>; |
| 80 | }; |
Maxime Ripard | 1fe4274 | 2013-01-25 09:54:07 +0100 | [diff] [blame] | 81 | |
| 82 | lcdif_18bit_pins_cfa10049: lcdif-18bit@0 { |
| 83 | reg = <0>; |
| 84 | fsl,pinmux-ids = < |
| 85 | 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */ |
| 86 | 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */ |
| 87 | 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */ |
| 88 | 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */ |
| 89 | 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */ |
| 90 | 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */ |
| 91 | 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */ |
| 92 | 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */ |
| 93 | 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */ |
| 94 | 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */ |
| 95 | 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */ |
| 96 | 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */ |
| 97 | 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */ |
| 98 | 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */ |
| 99 | 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */ |
| 100 | 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */ |
| 101 | 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */ |
| 102 | 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */ |
| 103 | >; |
| 104 | fsl,drive-strength = <0>; |
| 105 | fsl,voltage = <1>; |
| 106 | fsl,pull-up = <0>; |
| 107 | }; |
| 108 | |
| 109 | lcdif_pins_cfa10049: lcdif-evk@0 { |
| 110 | reg = <0>; |
| 111 | fsl,pinmux-ids = < |
| 112 | 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */ |
| 113 | 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */ |
| 114 | 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */ |
| 115 | 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */ |
| 116 | >; |
| 117 | fsl,drive-strength = <0>; |
| 118 | fsl,voltage = <1>; |
| 119 | fsl,pull-up = <0>; |
| 120 | }; |
| 121 | }; |
| 122 | |
| 123 | lcdif@80030000 { |
| 124 | pinctrl-names = "default"; |
| 125 | pinctrl-0 = <&lcdif_18bit_pins_cfa10049 |
| 126 | &lcdif_pins_cfa10049>; |
| 127 | status = "okay"; |
Maxime Ripard | 223d1f9 | 2012-09-04 10:44:03 +0200 | [diff] [blame] | 128 | }; |
Maxime Ripard | 223d1f9 | 2012-09-04 10:44:03 +0200 | [diff] [blame] | 129 | }; |
| 130 | |
Maxime Ripard | db84c03 | 2012-08-31 16:00:41 +0200 | [diff] [blame] | 131 | apbx@80040000 { |
Maxime Ripard | 1fe4274 | 2013-01-25 09:54:07 +0100 | [diff] [blame] | 132 | pwm: pwm@80064000 { |
| 133 | pinctrl-names = "default", "default"; |
| 134 | pinctrl-1 = <&pwm3_pins_b>; |
| 135 | status = "okay"; |
| 136 | }; |
| 137 | |
Maxime Ripard | db84c03 | 2012-08-31 16:00:41 +0200 | [diff] [blame] | 138 | i2c1: i2c@8005a000 { |
| 139 | pinctrl-names = "default"; |
| 140 | pinctrl-0 = <&i2c1_pins_a>; |
| 141 | status = "okay"; |
| 142 | }; |
Maxime Ripard | 186e3d9 | 2012-09-03 16:15:25 +0200 | [diff] [blame] | 143 | |
Maxime Ripard | 06e9eff | 2012-10-25 18:23:54 +0200 | [diff] [blame] | 144 | i2cmux { |
| 145 | compatible = "i2c-mux-gpio"; |
| 146 | #address-cells = <1>; |
| 147 | #size-cells = <0>; |
| 148 | mux-gpios = <&gpio1 22 0 &gpio1 23 0>; |
| 149 | i2c-parent = <&i2c1>; |
| 150 | |
| 151 | i2c@0 { |
| 152 | reg = <0>; |
| 153 | }; |
| 154 | |
| 155 | i2c@1 { |
| 156 | reg = <1>; |
| 157 | }; |
| 158 | |
| 159 | i2c@2 { |
| 160 | reg = <2>; |
| 161 | }; |
| 162 | |
| 163 | i2c@3 { |
| 164 | reg = <3>; |
Maxime Ripard | 5b615fb | 2012-11-20 15:33:35 +0100 | [diff] [blame] | 165 | #address-cells = <1>; |
| 166 | #size-cells = <0>; |
| 167 | |
| 168 | pca9555: pca9555@20 { |
| 169 | compatible = "nxp,pca9555"; |
| 170 | interrupt-parent = <&gpio2>; |
| 171 | interrupts = <19 0x2>; |
| 172 | gpio-controller; |
| 173 | #gpio-cells = <2>; |
| 174 | interrupt-controller; |
| 175 | #interrupt-cells = <2>; |
| 176 | reg = <0x20>; |
| 177 | }; |
Maxime Ripard | 06e9eff | 2012-10-25 18:23:54 +0200 | [diff] [blame] | 178 | }; |
| 179 | }; |
| 180 | |
Maxime Ripard | 186e3d9 | 2012-09-03 16:15:25 +0200 | [diff] [blame] | 181 | usbphy1: usbphy@8007e000 { |
| 182 | status = "okay"; |
| 183 | }; |
| 184 | }; |
| 185 | }; |
| 186 | |
| 187 | ahb@80080000 { |
| 188 | usb1: usb@80090000 { |
| 189 | vbus-supply = <®_usb1_vbus>; |
| 190 | pinctrl-0 = <&usbphy1_pins_a>; |
| 191 | pinctrl-names = "default"; |
| 192 | status = "okay"; |
| 193 | }; |
| 194 | }; |
| 195 | |
| 196 | regulators { |
| 197 | compatible = "simple-bus"; |
| 198 | |
| 199 | reg_usb1_vbus: usb1_vbus { |
| 200 | compatible = "regulator-fixed"; |
| 201 | regulator-name = "usb1_vbus"; |
| 202 | regulator-min-microvolt = <5000000>; |
| 203 | regulator-max-microvolt = <5000000>; |
| 204 | gpio = <&gpio0 7 1>; |
Maxime Ripard | db84c03 | 2012-08-31 16:00:41 +0200 | [diff] [blame] | 205 | }; |
| 206 | }; |
Maxime Ripard | 8eec4b3 | 2012-10-07 10:36:28 +0800 | [diff] [blame] | 207 | |
| 208 | ahb@80080000 { |
| 209 | mac0: ethernet@800f0000 { |
| 210 | phy-mode = "rmii"; |
| 211 | pinctrl-names = "default"; |
| 212 | pinctrl-0 = <&mac0_pins_a>; |
| 213 | phy-reset-gpios = <&gpio2 21 0>; |
| 214 | phy-reset-duration = <100>; |
| 215 | status = "okay"; |
| 216 | }; |
| 217 | }; |
Maxime Ripard | 7ecc70a | 2013-01-25 09:39:35 +0100 | [diff] [blame] | 218 | |
Maxime Ripard | 1fe4274 | 2013-01-25 09:54:07 +0100 | [diff] [blame] | 219 | spi2 { |
| 220 | compatible = "spi-gpio"; |
| 221 | pinctrl-names = "default"; |
| 222 | pinctrl-0 = <&spi2_pins_cfa10049>; |
| 223 | status = "okay"; |
| 224 | gpio-sck = <&gpio2 16 0>; |
| 225 | gpio-mosi = <&gpio2 17 0>; |
| 226 | gpio-miso = <&gpio2 18 0>; |
| 227 | cs-gpios = <&gpio3 23 0>; |
| 228 | num-chipselects = <1>; |
| 229 | #address-cells = <1>; |
| 230 | #size-cells = <0>; |
| 231 | |
| 232 | hx8357: hx8357@0 { |
| 233 | compatible = "himax,hx8357b", "himax,hx8357"; |
| 234 | reg = <0>; |
| 235 | spi-max-frequency = <100000>; |
| 236 | spi-cpol; |
| 237 | spi-cpha; |
| 238 | gpios-reset = <&gpio3 30 0>; |
| 239 | im-gpios = <&gpio5 4 0 &gpio5 5 0 &gpio5 6 0>; |
| 240 | }; |
| 241 | }; |
| 242 | |
Maxime Ripard | 7ecc70a | 2013-01-25 09:39:35 +0100 | [diff] [blame] | 243 | spi3 { |
| 244 | compatible = "spi-gpio"; |
| 245 | pinctrl-names = "default"; |
| 246 | pinctrl-0 = <&spi3_pins_cfa10049>; |
| 247 | status = "okay"; |
| 248 | gpio-sck = <&gpio0 24 0>; |
| 249 | gpio-mosi = <&gpio0 28 0>; |
| 250 | cs-gpios = <&gpio0 17 0 &gpio0 26 0 &gpio0 27 0>; |
| 251 | num-chipselects = <3>; |
| 252 | #address-cells = <1>; |
| 253 | #size-cells = <0>; |
| 254 | |
| 255 | gpio5: gpio5@0 { |
| 256 | compatible = "fairchild,74hc595"; |
| 257 | gpio-controller; |
| 258 | #gpio-cells = <2>; |
| 259 | reg = <0>; |
| 260 | registers-number = <2>; |
| 261 | spi-max-frequency = <100000>; |
| 262 | }; |
| 263 | |
| 264 | gpio6: gpio6@1 { |
| 265 | compatible = "fairchild,74hc595"; |
| 266 | gpio-controller; |
| 267 | #gpio-cells = <2>; |
| 268 | reg = <1>; |
| 269 | registers-number = <4>; |
| 270 | spi-max-frequency = <100000>; |
| 271 | }; |
| 272 | |
| 273 | dac0: dh2228@2 { |
| 274 | compatible = "rohm,dh2228fv"; |
| 275 | reg = <2>; |
| 276 | spi-max-frequency = <100000>; |
| 277 | }; |
| 278 | }; |
Maxime Ripard | 1fe4274 | 2013-01-25 09:54:07 +0100 | [diff] [blame] | 279 | |
Maxime Ripard | a640cf6 | 2013-01-31 11:00:23 +0100 | [diff] [blame^] | 280 | gpio_keys { |
| 281 | compatible = "gpio-keys"; |
| 282 | #address-cells = <1>; |
| 283 | #size-cells = <0>; |
| 284 | |
| 285 | rotary_button { |
| 286 | label = "rotary_button"; |
| 287 | gpios = <&gpio3 26 1>; |
| 288 | debounce-interval = <10>; |
| 289 | linux,code = <28>; |
| 290 | }; |
| 291 | }; |
| 292 | |
Maxime Ripard | 1fe4274 | 2013-01-25 09:54:07 +0100 | [diff] [blame] | 293 | backlight { |
| 294 | compatible = "pwm-backlight"; |
| 295 | pwms = <&pwm 3 5000000>; |
| 296 | brightness-levels = <0 4 8 16 32 64 128 255>; |
| 297 | default-brightness-level = <6>; |
| 298 | }; |
Maxime Ripard | db84c03 | 2012-08-31 16:00:41 +0200 | [diff] [blame] | 299 | }; |