Guest User

Untitled

a guest
Sep 7th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. /*
  2. * Copyright (C) 2013 Philipp Zabel
  3. *
  4. * This file is licensed under the terms of the GNU General Public License
  5. * version 2. This program is licensed "as is" without any warranty of any
  6. * kind, whether express or implied.
  7. */
  8.  
  9. /dts-v1/;
  10. #include "imx6q.dtsi"
  11.  
  12. / {
  13. model = "Zealz GK802";
  14. compatible = "zealz,imx6q-gk802", "fsl,imx6q";
  15.  
  16. chosen {
  17. linux,stdout-path = "/soc/aips-bus@02100000/serial@021f0000";
  18. };
  19.  
  20. memory {
  21. reg = <0x10000000 0x40000000>;
  22. };
  23.  
  24. regulators {
  25. compatible = "simple-bus";
  26.  
  27. reg_3p3v: 3p3v {
  28. compatible = "regulator-fixed";
  29. regulator-name = "3P3V";
  30. regulator-min-microvolt = <3300000>;
  31. regulator-max-microvolt = <3300000>;
  32. regulator-always-on;
  33. };
  34. };
  35.  
  36. gpio-keys {
  37. compatible = "gpio-keys";
  38.  
  39. recovery-button {
  40. label = "recovery";
  41. gpios = <&gpio3 16 1>;
  42. linux,code = <0x198>; /* KEY_RESTART */
  43. gpio-key,wakeup;
  44. };
  45. };
  46. };
  47.  
  48. /* Internal I2C */
  49. &i2c2 {
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&pinctrl_i2c2_gk802>;
  52. clock-frequency = <100000>;
  53. status = "okay";
  54.  
  55. /* SDMC DM2016 1024 bit EEPROM + 128 bit OTP */
  56. eeprom: dm2016@51 {
  57. compatible = "sdmc,dm2016";
  58. reg = <0x51>;
  59. };
  60. };
  61.  
  62. /* External I2C via HDMI */
  63. &i2c3 {
  64. pinctrl-names = "default";
  65. pinctrl-0 = <&pinctrl_i2c3_gk802>;
  66. clock-frequency = <100000>;
  67. status = "okay";
  68. };
  69.  
  70. &iomuxc {
  71. pinctrl-names = "default";
  72. pinctrl-0 = <&pinctrl_hog>;
  73.  
  74. hog {
  75. pinctrl_hog: hoggrp {
  76. fsl,pins = <
  77. /* Recovery button, active-low */
  78. MX6Q_PAD_EIM_D16__GPIO3_IO16 0x100b1
  79. /* RTL8192CU enable GPIO, active-low */
  80. MX6Q_PAD_NANDF_D0__GPIO2_IO00 0x1b0b0
  81. >;
  82. };
  83. };
  84.  
  85. i2c2 {
  86. pinctrl_i2c2_gk802: i2c2grp-1 {
  87. fsl,pins = <
  88. MX6Q_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
  89. MX6Q_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
  90. >;
  91. };
  92. };
  93.  
  94. i2c3 {
  95. pinctrl_i2c3_gk802: i2c3grp-1 {
  96. fsl,pins = <
  97. MX6Q_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
  98. MX6Q_PAD_GPIO_16__I2C3_SDA 0x4001b8b1
  99. >;
  100. };
  101. };
  102. };
  103.  
  104. &uart2 {
  105. status = "okay";
  106. };
  107.  
  108. &uart4 {
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&pinctrl_uart4_1>;
  111. status = "okay";
  112. };
  113.  
  114. /* External USB-A port (USBOTG) */
  115. &usbotg {
  116. phy-mode = "utmi";
  117. dr_mode = "host";
  118. barebox,phy_type = "utmi";
  119. disable-over-current;
  120. status = "okay";
  121. };
  122.  
  123. /* Internal USB port (USBH1), connected to RTL8192CU */
  124. &usbh1 {
  125. phy-mode = "utmi";
  126. dr_mode = "host";
  127. barebox,phy_type = "utmi";
  128. disable-over-current;
  129. status = "okay";
  130. };
  131.  
  132. /* External microSD */
  133. &usdhc3 {
  134. pinctrl-names = "default";
  135. pinctrl-0 = <&pinctrl_usdhc3_2>;
  136. bus-width = <4>;
  137. cd-gpios = <&gpio6 11 0>;
  138. vmmc-supply = <&reg_3p3v>;
  139. status = "okay";
  140. };
  141.  
  142. /* Internal microSD */
  143. &usdhc4 {
  144. pinctrl-names = "default";
  145. pinctrl-0 = <&pinctrl_usdhc4_2>;
  146. bus-width = <4>;
  147. vmmc-supply = <&reg_3p3v>;
  148. status = "okay";
  149. };
Advertisement
Add Comment
Please, Sign In to add comment