armada-xp-axpwifiap.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree file for Marvell RD-AXPWiFiAP.
  4. *
  5. * Note: this board is shipped with a new generation boot loader that
  6. * remaps internal registers at 0xf1000000. Therefore, if earlyprintk
  7. * is used, the CONFIG_DEBUG_MVEBU_UART0_ALTERNATE option or the
  8. * CONFIG_DEBUG_MVEBU_UART1_ALTERNATE option should be used.
  9. *
  10. * Copyright (C) 2013 Marvell
  11. *
  12. * Thomas Petazzoni <[email protected]>
  13. */
  14. /dts-v1/;
  15. #include <dt-bindings/gpio/gpio.h>
  16. #include <dt-bindings/input/input.h>
  17. #include "armada-xp-mv78230.dtsi"
  18. / {
  19. model = "Marvell RD-AXPWiFiAP";
  20. compatible = "marvell,rd-axpwifiap", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
  21. chosen {
  22. stdout-path = "serial0:115200n8";
  23. };
  24. memory@0 {
  25. device_type = "memory";
  26. reg = <0x00000000 0x00000000 0x00000000 0x40000000>; /* 1GB */
  27. };
  28. soc {
  29. ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
  30. MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
  31. MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
  32. MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000>;
  33. internal-regs {
  34. /* UART0 */
  35. serial@12000 {
  36. status = "okay";
  37. };
  38. /* UART1 */
  39. serial@12100 {
  40. status = "okay";
  41. };
  42. sata@a0000 {
  43. nr-ports = <1>;
  44. status = "okay";
  45. };
  46. ethernet@70000 {
  47. pinctrl-0 = <&ge0_rgmii_pins>;
  48. pinctrl-names = "default";
  49. status = "okay";
  50. phy = <&phy0>;
  51. phy-mode = "rgmii-id";
  52. };
  53. ethernet@74000 {
  54. pinctrl-0 = <&ge1_rgmii_pins>;
  55. pinctrl-names = "default";
  56. status = "okay";
  57. phy = <&phy1>;
  58. phy-mode = "rgmii-id";
  59. };
  60. };
  61. };
  62. gpio-keys {
  63. compatible = "gpio-keys";
  64. pinctrl-0 = <&keys_pin>;
  65. pinctrl-names = "default";
  66. button-reset {
  67. label = "Factory Reset Button";
  68. linux,code = <KEY_SETUP>;
  69. gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
  70. };
  71. };
  72. };
  73. &mdio {
  74. phy0: ethernet-phy@0 {
  75. reg = <0>;
  76. };
  77. phy1: ethernet-phy@1 {
  78. reg = <1>;
  79. };
  80. };
  81. &pciec {
  82. status = "okay";
  83. /* First mini-PCIe port */
  84. pcie@1,0 {
  85. /* Port 0, Lane 0 */
  86. status = "okay";
  87. };
  88. /* Second mini-PCIe port */
  89. pcie@2,0 {
  90. /* Port 0, Lane 1 */
  91. status = "okay";
  92. };
  93. /* Renesas uPD720202 USB 3.0 controller */
  94. pcie@3,0 {
  95. /* Port 0, Lane 3 */
  96. status = "okay";
  97. };
  98. };
  99. &pinctrl {
  100. pinctrl-0 = <&phy_int_pin>;
  101. pinctrl-names = "default";
  102. keys_pin: keys-pin {
  103. marvell,pins = "mpp33";
  104. marvell,function = "gpio";
  105. };
  106. phy_int_pin: phy-int-pin {
  107. marvell,pins = "mpp32";
  108. marvell,function = "gpio";
  109. };
  110. };
  111. &spi0 {
  112. status = "okay";
  113. flash@0 {
  114. #address-cells = <1>;
  115. #size-cells = <1>;
  116. compatible = "n25q128a13", "jedec,spi-nor";
  117. reg = <0>; /* Chip select 0 */
  118. spi-max-frequency = <108000000>;
  119. };
  120. };