Advertisement
Guest User

Untitled

a guest
Dec 12th, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 KB | None | 0 0
  1. *** sun7i-a20-bananapi.dts 2015-12-10 07:09:01.000000000 +0200
  2. --- sun7i-a20-bananapi-m1-plus.dts 2015-12-10 07:09:01.000000000 +0200
  3. ***************
  4. *** 1,7 ****
  5. /*
  6. ! * Copyright 2014 Hans de Goede <[email protected]>
  7. ! *
  8. ! * Hans de Goede <[email protected]>
  9. *
  10. * This file is dual-licensed: you can use it either under the terms
  11. * of the GPL or the X11 license, at your option. Note that this dual
  12. --- 1,5 ----
  13. /*
  14. ! * Copyright 2015 Hans de Goede <[email protected]>
  15. *
  16. * This file is dual-licensed: you can use it either under the terms
  17. * of the GPL or the X11 license, at your option. Note that this dual
  18. ***************
  19. *** 45,58 ****
  20. /dts-v1/;
  21. #include "sun7i-a20.dtsi"
  22. #include "sunxi-common-regulators.dtsi"
  23. -
  24. #include <dt-bindings/gpio/gpio.h>
  25. ! #include <dt-bindings/interrupt-controller/irq.h>
  26. ! #include <dt-bindings/pinctrl/sun4i-a10.h>
  27.  
  28. / {
  29. ! model = "Banana Pi BPI-M1";
  30. ! compatible = "sinovoip,bpi-m1", "allwinner,sun7i-a20";
  31.  
  32. aliases {
  33. serial0 = &uart0;
  34. --- 43,54 ----
  35. /dts-v1/;
  36. #include "sun7i-a20.dtsi"
  37. #include "sunxi-common-regulators.dtsi"
  38. #include <dt-bindings/gpio/gpio.h>
  39. ! #include <dt-bindings/interrupt-controller/arm-gic.h>
  40.  
  41. / {
  42. ! model = "Banana Pi BPI-M1-Plus";
  43. ! compatible = "sinovoip,bpi-m1-plus", "allwinner,sun7i-a20";
  44.  
  45. aliases {
  46. serial0 = &uart0;
  47. ***************
  48. *** 70,79 ****
  49. --- 66,82 ----
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&led_pins_bananapi>;
  52.  
  53. + red {
  54. + label = "bananapi:red:usr";
  55. + gpios = <&pio 7 25 GPIO_ACTIVE_HIGH>;
  56. + linux,default-trigger = "default-on";
  57. + };
  58. +
  59. green {
  60. label = "bananapi:green:usr";
  61. gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>;
  62. linux,default-trigger = "heartbeat";
  63. +
  64. };
  65. };
  66.  
  67. ***************
  68. *** 88,93 ****
  69. --- 91,109 ----
  70. enable-active-high;
  71. gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>;
  72. };
  73. +
  74. + reg_vmmc3: vmmc3 {
  75. + compatible = "regulator-fixed";
  76. + pinctrl-names = "default";
  77. + pinctrl-0 = <&vmmc3_pin_bananapi>;
  78. + regulator-name = "vmmc3";
  79. + regulator-min-microvolt = <3300000>;
  80. + regulator-max-microvolt = <3300000>;
  81. + regulator-always-on;
  82. + regulator-boot-on;
  83. + enable-active-high;
  84. + gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>;
  85. + };
  86. };
  87.  
  88. &ahci {
  89. ***************
  90. *** 161,167 ****
  91. --- 177,219 ----
  92. status = "okay";
  93. };
  94.  
  95. + &mmc3 {
  96. + #address-cells = <1>;
  97. + #size-cells = <0>;
  98. + pinctrl-names = "default";
  99. + pinctrl-0 = <&mmc3_pins_a>;
  100. + vmmc-supply = <&reg_vmmc3>;
  101. + bus-width = <4>;
  102. + non-removable;
  103. + enable-sdio-wakeup;
  104. + status = "okay";
  105. +
  106. + /*
  107. + brcmf: bcrmf@1 {
  108. + reg = <1>;
  109. + compatible = "brcm,bcm4329-fmac";
  110. + interrupt-parent = <&pio>;
  111. + interrupts = <15 8>;
  112. + interrupt-names = "host-wake";
  113. + };
  114. + */
  115. + };
  116. +
  117. &pio {
  118. + gmac_power_pin_bananapi: gmac_power_pin@0 {
  119. + allwinner,pins = "PH23";
  120. + allwinner,function = "gpio_out";
  121. + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  122. + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  123. + };
  124. +
  125. + led_pins_bananapi: led_pins@0 {
  126. + allwinner,pins = "PH24", "PG2";
  127. + allwinner,function = "gpio_out";
  128. + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  129. + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  130. + };
  131. +
  132. mmc0_cd_pin_bananapi: mmc0_cd_pin@0 {
  133. allwinner,pins = "PH10";
  134. allwinner,function = "gpio_in";
  135. ***************
  136. *** 169,183 ****
  137. allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
  138. };
  139.  
  140. ! gmac_power_pin_bananapi: gmac_power_pin@0 {
  141. ! allwinner,pins = "PH23";
  142. allwinner,function = "gpio_out";
  143. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  144. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  145. };
  146.  
  147. ! led_pins_bananapi: led_pins@0 {
  148. ! allwinner,pins = "PH24";
  149. allwinner,function = "gpio_out";
  150. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  151. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  152. --- 221,242 ----
  153. allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
  154. };
  155.  
  156. ! usb1_vbus_pin_bananapi: usb1_vbus_pin@0 {
  157. ! allwinner,pins = "PH0";
  158. allwinner,function = "gpio_out";
  159. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  160. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  161. };
  162.  
  163. ! usb2_vbus_pin_bananapi: usb2_vbus_pin@0 {
  164. ! allwinner,pins = "PH1";
  165. ! allwinner,function = "gpio_out";
  166. ! allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  167. ! allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  168. ! };
  169. !
  170. ! vmmc3_pin_bananapi: vmmc3_pin@0 {
  171. ! allwinner,pins = "PH22";
  172. allwinner,function = "gpio_out";
  173. allwinner,drive = <SUN4I_PINCTRL_10_MA>;
  174. allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
  175. ***************
  176. *** 185,194 ****
  177. --- 244,257 ----
  178. };
  179.  
  180. &reg_usb1_vbus {
  181. + pinctrl-0 = <&usb1_vbus_pin_bananapi>;
  182. + gpio = <&pio 7 0 GPIO_ACTIVE_HIGH>; /* PH0 */
  183. status = "okay";
  184. };
  185.  
  186. &reg_usb2_vbus {
  187. + pinctrl-0 = <&usb2_vbus_pin_bananapi>;
  188. + gpio = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
  189. status = "okay";
  190. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement