imx28-cfa10056.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright 2013 Free Electrons
  4. */
  5. /*
  6. * The CFA-10055 is an expansion board for the CFA-10036 module and
  7. * CFA-10037, thus we need to include the CFA-10037 DTS.
  8. */
  9. #include "imx28-cfa10037.dts"
  10. / {
  11. model = "Crystalfontz CFA-10056 Board";
  12. compatible = "crystalfontz,cfa10056", "crystalfontz,cfa10037", "crystalfontz,cfa10036", "fsl,imx28";
  13. apb@80000000 {
  14. apbh@80000000 {
  15. pinctrl@80018000 {
  16. spi2_pins_cfa10056: spi2-cfa10056@0 {
  17. reg = <0>;
  18. fsl,pinmux-ids = <
  19. MX28_PAD_SSP2_SCK__GPIO_2_16
  20. MX28_PAD_SSP2_MOSI__GPIO_2_17
  21. MX28_PAD_SSP2_MISO__GPIO_2_18
  22. MX28_PAD_AUART1_TX__GPIO_3_5
  23. >;
  24. fsl,drive-strength = <MXS_DRIVE_8mA>;
  25. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  26. fsl,pull-up = <MXS_PULL_ENABLE>;
  27. };
  28. lcdif_pins_cfa10056: lcdif-10056@0 {
  29. reg = <0>;
  30. fsl,pinmux-ids = <
  31. MX28_PAD_LCD_RD_E__LCD_VSYNC
  32. MX28_PAD_LCD_WR_RWN__LCD_HSYNC
  33. MX28_PAD_LCD_RS__LCD_DOTCLK
  34. MX28_PAD_LCD_CS__LCD_ENABLE
  35. >;
  36. fsl,drive-strength = <MXS_DRIVE_4mA>;
  37. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  38. fsl,pull-up = <MXS_PULL_DISABLE>;
  39. };
  40. lcdif_pins_cfa10056_pullup: lcdif-10056-pullup@0 {
  41. reg = <0>;
  42. fsl,pinmux-ids = <
  43. MX28_PAD_LCD_RESET__GPIO_3_30
  44. >;
  45. fsl,drive-strength = <MXS_DRIVE_4mA>;
  46. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  47. fsl,pull-up = <MXS_PULL_ENABLE>;
  48. };
  49. };
  50. lcdif@80030000 {
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&lcdif_24bit_pins_a
  53. &lcdif_pins_cfa10056
  54. &lcdif_pins_cfa10056_pullup >;
  55. display = <&display0>;
  56. status = "okay";
  57. display0: display0 {
  58. bits-per-pixel = <32>;
  59. bus-width = <24>;
  60. display-timings {
  61. native-mode = <&timing0>;
  62. timing0: timing0 {
  63. clock-frequency = <32000000>;
  64. hactive = <480>;
  65. vactive = <800>;
  66. hback-porch = <2>;
  67. hfront-porch = <2>;
  68. vback-porch = <2>;
  69. vfront-porch = <2>;
  70. hsync-len = <5>;
  71. vsync-len = <5>;
  72. hsync-active = <0>;
  73. vsync-active = <0>;
  74. de-active = <1>;
  75. pixelclk-active = <1>;
  76. };
  77. };
  78. };
  79. };
  80. };
  81. };
  82. spi-2 {
  83. compatible = "spi-gpio";
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&spi2_pins_cfa10056>;
  86. status = "okay";
  87. gpio-sck = <&gpio2 16 0>;
  88. gpio-mosi = <&gpio2 17 0>;
  89. gpio-miso = <&gpio2 18 0>;
  90. cs-gpios = <&gpio3 5 0>;
  91. num-chipselects = <1>;
  92. #address-cells = <1>;
  93. #size-cells = <0>;
  94. hx8369: hx8369@0 {
  95. compatible = "himax,hx8369a", "himax,hx8369";
  96. reg = <0>;
  97. spi-max-frequency = <100000>;
  98. spi-cpol;
  99. spi-cpha;
  100. gpios-reset = <&gpio3 30 0>;
  101. };
  102. };
  103. };