047-0007-ARM-dts-BCM53573-Describe-Tenda-AC9-PCIe-card-in-DT.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From 3ba1bae984e585f500b8406b1bf3e42e0ec752b7 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  3. Date: Tue, 14 Feb 2017 17:49:05 +0100
  4. Subject: [PATCH] ARM: dts: BCM53573: Describe Tenda AC9 PCIe card in DT
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Tenda AC9 has PCIe controller with just one device connected to it:
  9. 0000:00:00.0 14e4:d145 Bridge Device
  10. └─ 0000:01:00.0 14e4:a8db Network Controller
  11. This card is directly on SoC (doesn't use physical connector) and has
  12. BCM43217 chipset with bcma bus. One of its components is ChipCommon core
  13. which is also a GPIO controller. We need to describe it to be able to
  14. add devices using its GPIO pins.
  15. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  16. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  17. ---
  18. arch/arm/boot/dts/bcm47189-tenda-ac9.dts | 27 +++++++++++++++++++++++++++
  19. arch/arm/boot/dts/bcm53573.dtsi | 4 ++++
  20. 2 files changed, 31 insertions(+)
  21. --- a/arch/arm/boot/dts/bcm47189-tenda-ac9.dts
  22. +++ b/arch/arm/boot/dts/bcm47189-tenda-ac9.dts
  23. @@ -72,3 +72,30 @@
  24. };
  25. };
  26. };
  27. +
  28. +&pcie0 {
  29. + ranges = <0x00000000 0 0 0 0 0x00100000>;
  30. + #address-cells = <3>;
  31. + #size-cells = <2>;
  32. +
  33. + bridge@0,0,0 {
  34. + reg = <0x0000 0 0 0 0>;
  35. + ranges = <0x00000000 0 0 0 0 0 0 0x00100000>;
  36. + #address-cells = <3>;
  37. + #size-cells = <2>;
  38. +
  39. + wifi@0,1,0 {
  40. + reg = <0x0000 0 0 0 0>;
  41. + ranges = <0x00000000 0 0 0 0x00100000>;
  42. + #address-cells = <1>;
  43. + #size-cells = <1>;
  44. +
  45. + pcie0_chipcommon: chipcommon@0 {
  46. + reg = <0 0x1000>;
  47. +
  48. + gpio-controller;
  49. + #gpio-cells = <2>;
  50. + };
  51. + };
  52. + };
  53. +};
  54. --- a/arch/arm/boot/dts/bcm53573.dtsi
  55. +++ b/arch/arm/boot/dts/bcm53573.dtsi
  56. @@ -113,6 +113,10 @@
  57. };
  58. };
  59. + pcie0: pcie@2000 {
  60. + reg = <0x00002000 0x1000>;
  61. + };
  62. +
  63. usb2: usb2@4000 {
  64. reg = <0x4000 0x1000>;
  65. ranges;