bcm53015-meraki-mr26.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Broadcom BCM470X / BCM5301X ARM platform code.
  4. * DTS for Meraki MR26 / Codename: Venom
  5. *
  6. * Copyright (C) 2022 Christian Lamparter <[email protected]>
  7. */
  8. /dts-v1/;
  9. #include "bcm4708.dtsi"
  10. #include "bcm5301x-nand-cs0-bch8.dtsi"
  11. #include <dt-bindings/leds/common.h>
  12. / {
  13. compatible = "meraki,mr26", "brcm,bcm53015", "brcm,bcm4708";
  14. model = "Meraki MR26";
  15. memory@0 {
  16. reg = <0x00000000 0x08000000>;
  17. device_type = "memory";
  18. };
  19. leds {
  20. compatible = "gpio-leds";
  21. led-0 {
  22. function = LED_FUNCTION_FAULT;
  23. color = <LED_COLOR_ID_AMBER>;
  24. gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  25. panic-indicator;
  26. };
  27. led-1 {
  28. function = LED_FUNCTION_INDICATOR;
  29. color = <LED_COLOR_ID_WHITE>;
  30. gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
  31. };
  32. };
  33. keys {
  34. compatible = "gpio-keys";
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. key-restart {
  38. label = "Reset";
  39. linux,code = <KEY_RESTART>;
  40. gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  41. };
  42. };
  43. };
  44. &uart0 {
  45. clock-frequency = <50000000>;
  46. /delete-property/ clocks;
  47. };
  48. &uart1 {
  49. status = "disabled";
  50. };
  51. &gmac0 {
  52. status = "okay";
  53. };
  54. &gmac1 {
  55. status = "disabled";
  56. };
  57. &gmac2 {
  58. status = "disabled";
  59. };
  60. &gmac3 {
  61. status = "disabled";
  62. };
  63. &nandcs {
  64. nand-ecc-algo = "hw";
  65. partitions {
  66. compatible = "fixed-partitions";
  67. #address-cells = <0x1>;
  68. #size-cells = <0x1>;
  69. partition@0 {
  70. label = "u-boot";
  71. reg = <0x0 0x200000>;
  72. read-only;
  73. };
  74. partition@200000 {
  75. label = "u-boot-env";
  76. reg = <0x200000 0x200000>;
  77. /* empty */
  78. };
  79. partition@400000 {
  80. label = "u-boot-backup";
  81. reg = <0x400000 0x200000>;
  82. /* empty */
  83. };
  84. partition@600000 {
  85. label = "u-boot-env-backup";
  86. reg = <0x600000 0x200000>;
  87. /* empty */
  88. };
  89. partition@800000 {
  90. label = "ubi";
  91. reg = <0x800000 0x7780000>;
  92. };
  93. };
  94. };
  95. &srab {
  96. status = "okay";
  97. ports {
  98. port@0 {
  99. reg = <0>;
  100. label = "poe";
  101. };
  102. port@5 {
  103. reg = <5>;
  104. label = "cpu";
  105. ethernet = <&gmac0>;
  106. fixed-link {
  107. speed = <1000>;
  108. full-duplex;
  109. };
  110. };
  111. };
  112. };
  113. &i2c0 {
  114. status = "okay";
  115. pinctrl-names = "default";
  116. pinctrl-0 = <&pinmux_i2c>;
  117. clock-frequency = <100000>;
  118. ina219@40 {
  119. compatible = "ti,ina219"; /* PoE power */
  120. reg = <0x40>;
  121. shunt-resistor = <60000>; /* = 60 mOhms */
  122. };
  123. eeprom@56 {
  124. compatible = "atmel,24c64";
  125. reg = <0x56>;
  126. pagesize = <32>;
  127. read-only;
  128. #address-cells = <1>;
  129. #size-cells = <1>;
  130. /* it's empty */
  131. };
  132. };
  133. &thermal {
  134. status = "disabled";
  135. /* does not work, reads 418 degree Celsius */
  136. };