1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Copyright 2012 Free Electrons 4 */ 5 6 /* 7 * The CFA-10049 is an expansion board for the 8 * need to include the CFA-10036 DTS. 9 */ 10 #include "imx28-cfa10036.dts" 11 12 / { 13 model = "Crystalfontz CFA-10049 Board" 14 compatible = "crystalfontz,cfa10049", 15 16 i2cmux { 17 compatible = "i2c-mux-gpio"; 18 #address-cells = <1>; 19 #size-cells = <0>; 20 pinctrl-names = "default"; 21 pinctrl-0 = <&i2cmux_pins_cfa1 22 mux-gpios = <&gpio1 22 0 &gpio 23 i2c-parent = <&i2c1>; 24 25 i2c@0 { 26 #address-cells = <1>; 27 #size-cells = <0>; 28 reg = <0>; 29 30 adc0: nau7802@2a { 31 compatible = " 32 reg = <0x2a>; 33 nuvoton,vldo = 34 }; 35 }; 36 37 i2c@1 { 38 #address-cells = <1>; 39 #size-cells = <0>; 40 reg = <1>; 41 42 adc1: nau7802@2a { 43 compatible = " 44 reg = <0x2a>; 45 nuvoton,vldo = 46 }; 47 }; 48 49 i2c@2 { 50 #address-cells = <1>; 51 #size-cells = <0>; 52 reg = <2>; 53 54 adc2: nau7802@ 55 compatible = " 56 reg = <0x2a>; 57 nuvoton,vldo = 58 }; 59 }; 60 61 i2c@3 { 62 reg = <3>; 63 #address-cells = <1>; 64 #size-cells = <0>; 65 66 pca9555: pca9555@20 { 67 compatible = " 68 pinctrl-names 69 pinctrl-0 = <& 70 interrupt-pare 71 interrupts = < 72 gpio-controlle 73 #gpio-cells = 74 interrupt-cont 75 #interrupt-cel 76 reg = <0x20>; 77 }; 78 }; 79 }; 80 81 reg_usb1_vbus: regulator-0 { 82 compatible = "regulator-fixed" 83 pinctrl-names = "default"; 84 pinctrl-0 = <&usb_pins_cfa1004 85 regulator-name = "usb1_vbus"; 86 regulator-min-microvolt = <500 87 regulator-max-microvolt = <500 88 gpio = <&gpio0 7 1>; 89 }; 90 91 spi-2 { 92 compatible = "spi-gpio"; 93 pinctrl-names = "default"; 94 pinctrl-0 = <&spi2_pins_cfa100 95 status = "okay"; 96 sck-gpios = <&gpio2 16 0>; 97 mosi-gpios = <&gpio2 17 0>; 98 miso-gpios = <&gpio2 18 0>; 99 cs-gpios = <&gpio3 5 0>; 100 num-chipselects = <1>; 101 #address-cells = <1>; 102 #size-cells = <0>; 103 104 hx8357: hx8357@0 { 105 compatible = "himax,hx 106 reg = <0>; 107 spi-max-frequency = <1 108 spi-cpol; 109 spi-cpha; 110 gpios-reset = <&gpio3 111 im-gpios = <&gpio5 4 0 112 }; 113 }; 114 115 spi-3 { 116 compatible = "spi-gpio"; 117 pinctrl-names = "default"; 118 pinctrl-0 = <&spi3_pins_cfa100 119 status = "okay"; 120 sck-gpios = <&gpio0 24 0>; 121 mosi-gpios = <&gpio0 28 0>; 122 cs-gpios = <&gpio0 17 0 &gpio0 123 num-chipselects = <3>; 124 #address-cells = <1>; 125 #size-cells = <0>; 126 127 gpio5: gpio5@0 { 128 compatible = "fairchil 129 gpio-controller; 130 #gpio-cells = <2>; 131 reg = <0>; 132 registers-number = <2> 133 spi-max-frequency = <1 134 }; 135 136 gpio6: gpio6@1 { 137 compatible = "fairchil 138 gpio-controller; 139 #gpio-cells = <2>; 140 reg = <1>; 141 registers-number = <4> 142 spi-max-frequency = <1 143 }; 144 145 dac0: dh2228@2 { 146 compatible = "rohm,dh2 147 reg = <2>; 148 spi-max-frequency = <1 149 }; 150 }; 151 152 gpio-keys { 153 compatible = "gpio-keys"; 154 pinctrl-names = "default"; 155 pinctrl-0 = <&rotary_btn_pins_ 156 157 rotary-button { 158 label = "rotary_button 159 gpios = <&gpio3 26 1>; 160 debounce-interval = <1 161 linux,code = <28>; 162 }; 163 }; 164 165 rotary { 166 compatible = "rotary-encoder"; 167 pinctrl-names = "default"; 168 pinctrl-0 = <&rotary_pins_cfa1 169 gpios = <&gpio3 24 1>, <&gpio3 170 linux,axis = <1>; /* REL_Y */ 171 rotary-encoder,relative-axis; 172 }; 173 174 backlight { 175 compatible = "pwm-backlight"; 176 pwms = <&pwm 3 5000000 0>; 177 brightness-levels = <0 4 8 16 178 default-brightness-level = <6> 179 180 }; 181 182 onewire { 183 compatible = "w1-gpio"; 184 pinctrl-names = "default"; 185 pinctrl-0 = <&w1_gpio_pins>; 186 status = "okay"; 187 gpios = <&gpio1 21 0>; 188 }; 189 }; 190 191 &i2c1 { 192 pinctrl-names = "default"; 193 pinctrl-0 = <&i2c1_pins_a>; 194 status = "okay"; 195 }; 196 197 &lcdif { 198 pinctrl-names = "default"; 199 pinctrl-0 = <&lcdif_18bit_pins_cfa1004 200 &lcdif_pins_cfa10049 201 &lcdif_pins_cfa10049_pull 202 display = <&display0>; 203 status = "okay"; 204 205 display0: display0 { 206 bits-per-pixel = <32>; 207 bus-width = <18>; 208 209 display-timings { 210 native-mode = <&timing 211 timing0: timing0 { 212 clock-frequenc 213 hactive = <320 214 vactive = <480 215 hback-porch = 216 hfront-porch = 217 vback-porch = 218 vfront-porch = 219 hsync-len = <1 220 vsync-len = <1 221 hsync-active = 222 vsync-active = 223 de-active = <1 224 pixelclk-activ 225 }; 226 }; 227 }; 228 }; 229 230 &lradc { 231 fsl,lradc-touchscreen-wires = <4>; 232 status = "okay"; 233 }; 234 235 &mac0 { 236 phy-mode = "rmii"; 237 pinctrl-names = "default"; 238 pinctrl-0 = <&mac0_pins_a 239 &mac0_pins_cfa10049>; 240 phy-reset-gpios = <&gpio2 21 GPIO_ACTI 241 phy-reset-duration = <100>; 242 status = "okay"; 243 }; 244 245 &pinctrl { 246 usb_pins_cfa10049: usb-10049@0 { 247 reg = <0>; 248 fsl,pinmux-ids = < 249 MX28_PAD_GPMI_D07__GPI 250 >; 251 fsl,drive-strength = <MXS_DRIV 252 fsl,voltage = <MXS_VOLTAGE_HIG 253 fsl,pull-up = <MXS_PULL_DISABL 254 }; 255 256 i2cmux_pins_cfa10049: i2cmux-10049@0 { 257 reg = <0>; 258 fsl,pinmux-ids = < 259 MX28_PAD_LCD_D22__GPIO 260 MX28_PAD_LCD_D23__GPIO 261 >; 262 fsl,drive-strength = <MXS_DRIV 263 fsl,voltage = <MXS_VOLTAGE_HIG 264 fsl,pull-up = <MXS_PULL_DISABL 265 }; 266 267 mac0_pins_cfa10049: mac0-10049@0 { 268 reg = <0>; 269 fsl,pinmux-ids = < 270 MX28_PAD_SSP2_SS2__GPI 271 >; 272 fsl,drive-strength = <MXS_DRIV 273 fsl,voltage = <MXS_VOLTAGE_HIG 274 fsl,pull-up = <MXS_PULL_DISABL 275 }; 276 277 pca_pins_cfa10049: pca-10049@0 { 278 reg = <0>; 279 fsl,pinmux-ids = < 280 MX28_PAD_SSP2_SS0__GPI 281 >; 282 fsl,drive-strength = <MXS_DRIV 283 fsl,voltage = <MXS_VOLTAGE_HIG 284 fsl,pull-up = <MXS_PULL_ENABLE 285 }; 286 287 rotary_pins_cfa10049: rotary-10049@0 { 288 reg = <0>; 289 fsl,pinmux-ids = < 290 MX28_PAD_I2C0_SCL__GPI 291 MX28_PAD_I2C0_SDA__GPI 292 >; 293 fsl,drive-strength = <MXS_DRIV 294 fsl,voltage = <MXS_VOLTAGE_HIG 295 fsl,pull-up = <MXS_PULL_ENABLE 296 }; 297 298 rotary_btn_pins_cfa10049: rotary-btn-1 299 reg = <0>; 300 fsl,pinmux-ids = < 301 MX28_PAD_SAIF1_SDATA0_ 302 >; 303 fsl,drive-strength = <MXS_DRIV 304 fsl,voltage = <MXS_VOLTAGE_HIG 305 fsl,pull-up = <MXS_PULL_ENABLE 306 }; 307 308 spi2_pins_cfa10049: spi2-cfa10049@0 { 309 reg = <0>; 310 fsl,pinmux-ids = < 311 MX28_PAD_SSP2_SCK__GPI 312 MX28_PAD_SSP2_MOSI__GP 313 MX28_PAD_SSP2_MISO__GP 314 MX28_PAD_AUART1_TX__GP 315 >; 316 fsl,drive-strength = <MXS_DRIV 317 fsl,voltage = <MXS_VOLTAGE_HIG 318 fsl,pull-up = <MXS_PULL_ENABLE 319 }; 320 321 spi3_pins_cfa10049: spi3-cfa10049@0 { 322 reg = <0>; 323 fsl,pinmux-ids = < 324 MX28_PAD_GPMI_RDN__GPI 325 MX28_PAD_GPMI_RESETN__ 326 MX28_PAD_GPMI_CE1N__GP 327 MX28_PAD_GPMI_ALE__GPI 328 MX28_PAD_GPMI_CLE__GPI 329 >; 330 fsl,drive-strength = <MXS_DRIV 331 fsl,voltage = <MXS_VOLTAGE_HIG 332 fsl,pull-up = <MXS_PULL_ENABLE 333 }; 334 335 lcdif_18bit_pins_cfa10049: lcdif-18bit 336 reg = <0>; 337 fsl,pinmux-ids = < 338 MX28_PAD_LCD_D00__LCD_ 339 MX28_PAD_LCD_D01__LCD_ 340 MX28_PAD_LCD_D02__LCD_ 341 MX28_PAD_LCD_D03__LCD_ 342 MX28_PAD_LCD_D04__LCD_ 343 MX28_PAD_LCD_D05__LCD_ 344 MX28_PAD_LCD_D06__LCD_ 345 MX28_PAD_LCD_D07__LCD_ 346 MX28_PAD_LCD_D08__LCD_ 347 MX28_PAD_LCD_D09__LCD_ 348 MX28_PAD_LCD_D10__LCD_ 349 MX28_PAD_LCD_D11__LCD_ 350 MX28_PAD_LCD_D12__LCD_ 351 MX28_PAD_LCD_D13__LCD_ 352 MX28_PAD_LCD_D14__LCD_ 353 MX28_PAD_LCD_D15__LCD_ 354 MX28_PAD_LCD_D16__LCD_ 355 MX28_PAD_LCD_D17__LCD_ 356 >; 357 fsl,drive-strength = <MXS_DRIV 358 fsl,voltage = <MXS_VOLTAGE_HIG 359 fsl,pull-up = <MXS_PULL_DISABL 360 }; 361 362 lcdif_pins_cfa10049: lcdif-evk@0 { 363 reg = <0>; 364 fsl,pinmux-ids = < 365 MX28_PAD_LCD_RD_E__LCD 366 MX28_PAD_LCD_WR_RWN__L 367 MX28_PAD_LCD_RS__LCD_D 368 MX28_PAD_LCD_CS__LCD_E 369 >; 370 fsl,drive-strength = <MXS_DRIV 371 fsl,voltage = <MXS_VOLTAGE_HIG 372 fsl,pull-up = <MXS_PULL_DISABL 373 }; 374 375 lcdif_pins_cfa10049_pullup: lcdif-1004 376 reg = <0>; 377 fsl,pinmux-ids = < 378 MX28_PAD_LCD_RESET__GP 379 >; 380 fsl,drive-strength = <MXS_DRIV 381 fsl,voltage = <MXS_VOLTAGE_HIG 382 fsl,pull-up = <MXS_PULL_ENABLE 383 }; 384 385 w1_gpio_pins: w1-gpio@0 { 386 reg = <0>; 387 fsl,pinmux-ids = < 388 MX28_PAD_LCD_D21__GPIO 389 >; 390 fsl,drive-strength = <MXS_DRIV 391 fsl,voltage = <MXS_VOLTAGE_HIG 392 fsl,pull-up = <MXS_PULL_DISABL 393 }; 394 }; 395 396 &pwm { 397 pinctrl-names = "default"; 398 pinctrl-0 = <&pwm3_pins_b>; 399 status = "okay"; 400 }; 401 402 &usb1 { 403 vbus-supply = <®_usb1_vbus>; 404 pinctrl-0 = <&usb1_pins_a>; 405 pinctrl-names = "default"; 406 status = "okay"; 407 }; 408 409 &usbphy1 { 410 status = "okay"; 411 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.