linux-0001-arm64-dts-orange-pi-zero-plus2-enable-ap6212.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. From: Sergey Matyukevich <geomatsi@gmail.com>
  2. Date: Sun, 11 Feb 2018 16:21:43 +0300
  3. Subject: [PATCH] arm64: dts: orange-pi-zero-plus2: enable AP6212a WiFi/BT combo
  4. Enable AP6212a WiFi/BT combo chip on orange-pi-zero-plus2 board:
  5. - WiFi SDIO interface is connected to MMC1
  6. - WiFi REG_ON pin connected to gpio PA9: attach to mmc-pwrseq
  7. - WiFi HOST_WAKE pin connected to gpio PL7
  8. - BT is connected to UART1
  9. Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
  10. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  11. ---
  12. .../allwinner/sun50i-h5-orangepi-zero-plus2.dts | 32 ++++++++++++++++++++++
  13. 1 file changed, 32 insertions(+)
  14. diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts
  15. index a42fd79a62a3..d415b7b67cce 100644
  16. --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts
  17. +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts
  18. @@ -64,6 +64,13 @@
  19. regulator-min-microvolt = <3300000>;
  20. regulator-max-microvolt = <3300000>;
  21. };
  22. +
  23. + wifi_pwrseq: wifi_pwrseq {
  24. + compatible = "mmc-pwrseq-simple";
  25. + pinctrl-names = "default";
  26. + reset-gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */
  27. + post-power-on-delay-ms = <200>;
  28. + };
  29. };
  30. &mmc0 {
  31. @@ -75,6 +82,25 @@
  32. status = "okay";
  33. };
  34. +&mmc1 {
  35. + pinctrl-names = "default";
  36. + pinctrl-0 = <&mmc1_pins_a>;
  37. + vmmc-supply = <&reg_vcc3v3>;
  38. + vqmmc-supply = <&reg_vcc3v3>;
  39. + mmc-pwrseq = <&wifi_pwrseq>;
  40. + bus-width = <4>;
  41. + non-removable;
  42. + status = "okay";
  43. +
  44. + brcmf: wifi@1 {
  45. + reg = <1>;
  46. + compatible = "brcm,bcm4329-fmac";
  47. + interrupt-parent = <&r_pio>;
  48. + interrupts = <0 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 */
  49. + interrupt-names = "host-wake";
  50. + };
  51. +};
  52. +
  53. &mmc2 {
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&mmc2_8bit_pins>;
  56. @@ -90,3 +116,9 @@
  57. pinctrl-0 = <&uart0_pins_a>;
  58. status = "okay";
  59. };
  60. +
  61. +&uart1 {
  62. + pinctrl-names = "default";
  63. + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
  64. + status = "okay";
  65. +};
  66. --
  67. 2.16.1