Advertisement
Guest User

Untitled

a guest
May 17th, 2016
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. /dts-v1/;
  2. #include "sun8i-a33.dtsi"
  3. #include "sun8i-q8-common.dtsi"
  4.  
  5. / {
  6. model = "Aoson M751s Q8 A33 Tablet";
  7. compatible = "allwinner,q8-a33", "allwinner,sun8i-a33";
  8.  
  9. /*
  10. * This is actually an active-low reset line for the WLAN
  11. * part of the WiFi CHIP.
  12. *
  13. * Just like for DLDO1 and DLDO2, we cannot tie it to the DT
  14. * node of the SDIO device for now, as there is no bindings
  15. * for it, so we need to have this hack.
  16. */
  17. wifi_reg_on: wifi_reg_on {
  18. compatible = "regulator-fixed";
  19. pinctrl-names = "default";
  20. pinctrl-0 = <&m751s_wifi_reg_on_pin>;
  21.  
  22. regulator-name = "wifi-reg-on";
  23. regulator-min-microvolt = <3300000>;
  24. regulator-max-microvolt = <3300000>;
  25. regulator-always-on;
  26. gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
  27. enable-active-high;
  28. };
  29.  
  30. mmc1_pwrseq: mmc1_pwrseq {
  31. compatible = "mmc-pwrseq-simple";
  32. pinctrl-names = "default";
  33. pinctrl-0 = <&m751s_wifi_reset_pin>;
  34. reset-gpios = <&r_pio 0 11 GPIO_ACTIVE_LOW>; /* PH9 WIFI_EN */
  35. };
  36.  
  37. /*
  38. * Both DLDO1 and DLDO2 are used in parallel to power up the
  39. * WiFi Chip.
  40. *
  41. * If those are not enabled, the SDIO part will not enumerate,
  42. * and since there's no way currently to pass DT infos to an
  43. * SDIO device, we cannot really do better than this ugly hack
  44. * for now.
  45. */
  46.  
  47. vcc_wifi: wifi_reg {
  48. compatible = "coupled-voltage-regulator";
  49. regulator-name = "vcc-wifi";
  50. vin0-supply = <&vcc_wifi_1>;
  51. vin1-supply = <&vcc_wifi_2>;
  52. regulator-always-on;
  53. };
  54. };
  55.  
  56. &axp22x {
  57. regulators {
  58. vcc_wifi_1: dldo1 {
  59. regulator-min-microvolt = <3300000>;
  60. regulator-max-microvolt = <3300000>;
  61. regulator-name = "vcc-wifi-1";
  62. regulator-always-on;
  63. };
  64.  
  65. vcc_wifi_2: dldo2 {
  66. regulator-min-microvolt = <3300000>;
  67. regulator-max-microvolt = <3300000>;
  68. regulator-name = "vcc-wifi-2";
  69. regulator-always-on;
  70. };
  71. };
  72. };
  73.  
  74. &mmc1 {
  75. pinctrl-names = "default";
  76. pinctrl-0 = <&mmc1_pins_a>;
  77. vmmc-supply = <&reg_vcc3v3>;
  78. mmc-pwrseq = <&mmc1_pwrseq>;
  79. bus-width = <4>;
  80. non-removable;
  81. status = "okay";
  82. };
  83.  
  84. &mmc1_pins_a {
  85. allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
  86. };
  87.  
  88. &r_pio {
  89. m751s_wifi_reg_on_pin: m751s_wifi_reg_on_pin@0 {
  90. allwinner,pins = "PL6";
  91. allwinner,function = "gpio_out";
  92. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  93. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  94. };
  95. m751s_wifi_reset_pin: m751s_wifi_reset_pin@0 {
  96. allwinner,pins = "PL11";
  97. allwinner,function = "gpio_out";
  98. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  99. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  100. };
  101. };
  102.  
  103. /*
  104. * FIXME for now we only support host mode and rely on u-boot to have
  105. * turned on Vbus which is controlled by the axp223 pmic on the board.
  106. *
  107. * Once we have axp223 support we should switch to fully supporting otg.
  108. */
  109. &usb_otg {
  110. dr_mode = "host";
  111. status = "okay";
  112. };
  113.  
  114. &usbphy {
  115. status = "okay";
  116. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement