047-0006-ARM-dts-BCM5301X-Add-support-for-BCM953012HR.patch 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. From 475dcdec8cd1bb1b73ddfd9f872822bf4ad9c242 Mon Sep 17 00:00:00 2001
  2. From: Steve Lin <steven.lin1@broadcom.com>
  3. Date: Thu, 23 Feb 2017 14:23:03 -0500
  4. Subject: [PATCH] ARM: dts: BCM5301X: Add support for BCM953012HR
  5. Initial version of DTS to support Broadcom BCM953012HR Northstar
  6. HR platform, similar to, but not the same as existing 953012K.
  7. Signed-off-by: Steve Lin <steven.lin1@broadcom.com>
  8. Acked-by: Jon Mason <jon.mason@broadcom.com>
  9. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  10. ---
  11. arch/arm/boot/dts/Makefile | 1 +
  12. arch/arm/boot/dts/bcm953012hr.dts | 99 +++++++++++++++++++++++++++++++++++++++
  13. 2 files changed, 100 insertions(+)
  14. create mode 100644 arch/arm/boot/dts/bcm953012hr.dts
  15. --- a/arch/arm/boot/dts/Makefile
  16. +++ b/arch/arm/boot/dts/Makefile
  17. @@ -89,6 +89,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  18. bcm94708.dtb \
  19. bcm94709.dtb \
  20. bcm953012er.dtb \
  21. + bcm953012hr.dtb \
  22. bcm953012k.dtb
  23. dtb-$(CONFIG_ARCH_BCM_53573) += \
  24. bcm47189-tenda-ac9.dtb
  25. --- /dev/null
  26. +++ b/arch/arm/boot/dts/bcm953012hr.dts
  27. @@ -0,0 +1,99 @@
  28. +/*
  29. + * SPDX-License-Identifier: BSD-3-Clause
  30. + *
  31. + * Copyright(c) 2017 Broadcom
  32. + *
  33. + * Redistribution and use in source and binary forms, with or without
  34. + * modification, are permitted provided that the following conditions
  35. + * are met:
  36. + *
  37. + * * Redistributions of source code must retain the above copyright
  38. + * notice, this list of conditions and the following disclaimer.
  39. + * * Redistributions in binary form must reproduce the above copyright
  40. + * notice, this list of conditions and the following disclaimer in
  41. + * the documentation and/or other materials provided with the
  42. + * distribution.
  43. + * * Neither the name of Broadcom nor the names of its contributors
  44. + * may be used to endorse or promote products derived from this
  45. + * software without specific prior written permission.
  46. + *
  47. + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  48. + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  49. + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  50. + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  51. + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  52. + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  53. + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  54. + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  55. + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  56. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  57. + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  58. + */
  59. +
  60. +/dts-v1/;
  61. +
  62. +#include "bcm4708.dtsi"
  63. +#include "bcm5301x-nand-cs0-bch4.dtsi"
  64. +
  65. +/ {
  66. + model = "NorthStar HR (BCM953012HR)";
  67. + compatible = "brcm,bcm953012hr", "brcm,brcm53012", "brcm,bcm4708";
  68. +
  69. + aliases {
  70. + serial0 = &uart0;
  71. + };
  72. +
  73. + chosen {
  74. + stdout-path = "serial0:115200n8";
  75. + };
  76. +
  77. + memory@80000000 {
  78. + reg = <0x80000000 0x10000000>;
  79. + };
  80. +};
  81. +
  82. +&nandcs {
  83. + partition@0 {
  84. + label = "nboot";
  85. + reg = <0x00000000 0x00200000>;
  86. + read-only;
  87. + };
  88. + partition@200000 {
  89. + label = "nenv";
  90. + reg = <0x00200000 0x00400000>;
  91. + };
  92. + partition@600000 {
  93. + label = "nsystem";
  94. + reg = <0x00600000 0x00a00000>;
  95. + };
  96. + partition@1000000 {
  97. + label = "nrootfs";
  98. + reg = <0x01000000 0x07000000>;
  99. + };
  100. +};
  101. +
  102. +&spi_nor {
  103. + status = "okay";
  104. + spi-max-frequency = <62500000>;
  105. + m25p,default-addr-width = <3>;
  106. +
  107. + #address-cells = <1>;
  108. + #size-cells = <1>;
  109. +
  110. + partition@0 {
  111. + label = "boot";
  112. + reg = <0x00000000 0x000d0000>;
  113. + };
  114. + partition@d000 {
  115. + label = "env";
  116. + reg = <0x000d0000 0x00030000>;
  117. + };
  118. + partition@100000 {
  119. + label = "system";
  120. + reg = <0x00100000 0x00600000>;
  121. + };
  122. + partition@700000 {
  123. + label = "rootfs";
  124. + reg = <0x00700000 0x00900000>;
  125. + };
  126. +};