imx51-apf51dev.dts 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * Copyright 2013 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. /* APF51Dev is a docking board for the APF51 SOM */
  12. #include "imx51-apf51.dts"
  13. / {
  14. model = "Armadeus Systems APF51Dev docking/development board";
  15. compatible = "armadeus,imx51-apf51dev", "armadeus,imx51-apf51", "fsl,imx51";
  16. gpio-keys {
  17. compatible = "gpio-keys";
  18. user-key {
  19. label = "user";
  20. gpios = <&gpio1 3 0>;
  21. linux,code = <256>; /* BTN_0 */
  22. };
  23. };
  24. leds {
  25. compatible = "gpio-leds";
  26. user {
  27. label = "Heartbeat";
  28. gpios = <&gpio1 2 0>;
  29. linux,default-trigger = "heartbeat";
  30. };
  31. };
  32. };
  33. &ecspi1 {
  34. pinctrl-names = "default";
  35. pinctrl-0 = <&pinctrl_ecspi1_1>;
  36. fsl,spi-num-chipselects = <2>;
  37. cs-gpios = <&gpio4 24 0>, <&gpio4 25 0>;
  38. status = "okay";
  39. };
  40. &ecspi2 {
  41. pinctrl-names = "default";
  42. pinctrl-0 = <&pinctrl_ecspi2_1>;
  43. fsl,spi-num-chipselects = <2>;
  44. cs-gpios = <&gpio3 28 1>, <&gpio3 27 1>;
  45. status = "okay";
  46. };
  47. &esdhc1 {
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&pinctrl_esdhc1_1>;
  50. cd-gpios = <&gpio2 29 0>;
  51. bus-width = <4>;
  52. status = "okay";
  53. };
  54. &esdhc2 {
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&pinctrl_esdhc2_1>;
  57. bus-width = <4>;
  58. non-removable;
  59. status = "okay";
  60. };
  61. &i2c2 {
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&pinctrl_i2c2_2>;
  64. status = "okay";
  65. };
  66. &iomuxc {
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&pinctrl_hog>;
  69. hog {
  70. pinctrl_hog: hoggrp {
  71. fsl,pins = <
  72. MX51_PAD_EIM_EB2__GPIO2_22 0x0C5
  73. MX51_PAD_EIM_EB3__GPIO2_23 0x0C5
  74. MX51_PAD_EIM_CS4__GPIO2_29 0x100
  75. MX51_PAD_NANDF_D13__GPIO3_27 0x0C5
  76. MX51_PAD_NANDF_D12__GPIO3_28 0x0C5
  77. MX51_PAD_CSPI1_SS0__GPIO4_24 0x0C5
  78. MX51_PAD_CSPI1_SS1__GPIO4_25 0x0C5
  79. MX51_PAD_GPIO1_2__GPIO1_2 0x0C5
  80. MX51_PAD_GPIO1_3__GPIO1_3 0x0C5
  81. >;
  82. };
  83. };
  84. };