imx28-sps1.dts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright (C) 2012 Marek Vasut <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "imx28.dtsi"
  7. / {
  8. model = "SchulerControl GmbH, SC SPS 1";
  9. compatible = "schulercontrol,imx28-sps1", "fsl,imx28";
  10. memory@40000000 {
  11. device_type = "memory";
  12. reg = <0x40000000 0x08000000>;
  13. };
  14. apb@80000000 {
  15. apbh@80000000 {
  16. pinctrl@80018000 {
  17. pinctrl-names = "default";
  18. pinctrl-0 = <&hog_pins_a>;
  19. hog_pins_a: hog-gpios@0 {
  20. reg = <0>;
  21. fsl,pinmux-ids = <
  22. MX28_PAD_GPMI_D00__GPIO_0_0
  23. MX28_PAD_GPMI_D03__GPIO_0_3
  24. MX28_PAD_GPMI_D06__GPIO_0_6
  25. >;
  26. fsl,drive-strength = <MXS_DRIVE_4mA>;
  27. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  28. fsl,pull-up = <MXS_PULL_DISABLE>;
  29. };
  30. };
  31. ssp0: spi@80010000 {
  32. compatible = "fsl,imx28-mmc";
  33. pinctrl-names = "default";
  34. pinctrl-0 = <&mmc0_4bit_pins_a>;
  35. bus-width = <4>;
  36. status = "okay";
  37. };
  38. ssp2: spi@80014000 {
  39. #address-cells = <1>;
  40. #size-cells = <0>;
  41. compatible = "fsl,imx28-spi";
  42. pinctrl-names = "default";
  43. pinctrl-0 = <&spi2_pins_a>;
  44. status = "okay";
  45. flash: flash@0 {
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. compatible = "everspin,mr25h256", "mr25h256";
  49. spi-max-frequency = <40000000>;
  50. reg = <0>;
  51. };
  52. };
  53. };
  54. apbx@80040000 {
  55. i2c0: i2c@80058000 {
  56. pinctrl-names = "default";
  57. pinctrl-0 = <&i2c0_pins_a>;
  58. status = "okay";
  59. rtc: rtc@51 {
  60. compatible = "nxp,pcf8563";
  61. reg = <0x51>;
  62. };
  63. eeprom: eeprom@52 {
  64. compatible = "atmel,24c64";
  65. reg = <0x52>;
  66. pagesize = <32>;
  67. };
  68. };
  69. duart: serial@80074000 {
  70. pinctrl-names = "default";
  71. pinctrl-0 = <&duart_pins_a>;
  72. status = "okay";
  73. };
  74. usbphy0: usbphy@8007c000 {
  75. status = "okay";
  76. };
  77. auart0: serial@8006a000 {
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&auart0_pins_a>;
  80. status = "okay";
  81. };
  82. };
  83. };
  84. ahb@80080000 {
  85. usb0: usb@80080000 {
  86. vbus-supply = <&reg_usb0_vbus>;
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&usb0_pins_b>;
  89. status = "okay";
  90. };
  91. mac0: ethernet@800f0000 {
  92. phy-mode = "rmii";
  93. pinctrl-names = "default";
  94. pinctrl-0 = <&mac0_pins_a>;
  95. status = "okay";
  96. };
  97. mac1: ethernet@800f4000 {
  98. phy-mode = "rmii";
  99. pinctrl-names = "default";
  100. pinctrl-0 = <&mac1_pins_a>;
  101. status = "okay";
  102. };
  103. };
  104. regulators {
  105. compatible = "simple-bus";
  106. #address-cells = <1>;
  107. #size-cells = <0>;
  108. reg_usb0_vbus: regulator@0 {
  109. compatible = "regulator-fixed";
  110. reg = <0>;
  111. regulator-name = "usb0_vbus";
  112. regulator-min-microvolt = <5000000>;
  113. regulator-max-microvolt = <5000000>;
  114. gpio = <&gpio3 9 0>;
  115. };
  116. };
  117. leds {
  118. #address-cells = <1>;
  119. #size-cells = <0>;
  120. compatible = "gpio-leds";
  121. status = "okay";
  122. led@1 {
  123. label = "sps1-1:yellow:user";
  124. gpios = <&gpio0 6 0>;
  125. linux,default-trigger = "heartbeat";
  126. reg = <0>;
  127. };
  128. led@2 {
  129. label = "sps1-2:red:user";
  130. gpios = <&gpio0 3 0>;
  131. linux,default-trigger = "heartbeat";
  132. reg = <1>;
  133. };
  134. led@3 {
  135. label = "sps1-3:red:user";
  136. gpios = <&gpio0 0 0>;
  137. default-trigger = "heartbeat";
  138. reg = <2>;
  139. };
  140. };
  141. };