brcm,bcm3380.dtsi 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
  4. */
  5. #include <dt-bindings/clock/bcm3380-clock.h>
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/reset/bcm3380-reset.h>
  8. #include "skeleton.dtsi"
  9. / {
  10. compatible = "brcm,bcm3380";
  11. aliases {
  12. spi0 = &spi;
  13. };
  14. cpus {
  15. reg = <0x14e00000 0x4>;
  16. #address-cells = <1>;
  17. #size-cells = <0>;
  18. u-boot,dm-pre-reloc;
  19. cpu@0 {
  20. compatible = "brcm,bcm3380-cpu", "mips,mips4Kc";
  21. device_type = "cpu";
  22. reg = <0>;
  23. u-boot,dm-pre-reloc;
  24. };
  25. cpu@1 {
  26. compatible = "brcm,bcm3380-cpu", "mips,mips4Kc";
  27. device_type = "cpu";
  28. reg = <1>;
  29. u-boot,dm-pre-reloc;
  30. };
  31. };
  32. clocks {
  33. compatible = "simple-bus";
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. u-boot,dm-pre-reloc;
  37. periph_osc: periph-osc {
  38. compatible = "fixed-clock";
  39. #clock-cells = <0>;
  40. clock-frequency = <48000000>;
  41. u-boot,dm-pre-reloc;
  42. };
  43. periph_clk0: periph-clk@14e00004 {
  44. compatible = "brcm,bcm6345-clk";
  45. reg = <0x14e00004 0x4>;
  46. #clock-cells = <1>;
  47. };
  48. periph_clk1: periph-clk@14e00008 {
  49. compatible = "brcm,bcm6345-clk";
  50. reg = <0x14e00008 0x4>;
  51. #clock-cells = <1>;
  52. };
  53. };
  54. ubus {
  55. compatible = "simple-bus";
  56. #address-cells = <1>;
  57. #size-cells = <1>;
  58. u-boot,dm-pre-reloc;
  59. memory-controller@12000000 {
  60. compatible = "brcm,bcm6328-mc";
  61. reg = <0x12000000 0x1000>;
  62. u-boot,dm-pre-reloc;
  63. };
  64. periph_rst0: reset-controller@14e0008c {
  65. compatible = "brcm,bcm6345-reset";
  66. reg = <0x14e0008c 0x4>;
  67. #reset-cells = <1>;
  68. };
  69. periph_rst1: reset-controller@14e00090 {
  70. compatible = "brcm,bcm6345-reset";
  71. reg = <0x14e00090 0x4>;
  72. #reset-cells = <1>;
  73. };
  74. pll_cntl: syscon@14e00094 {
  75. compatible = "syscon";
  76. reg = <0x14e00094 0x4>;
  77. };
  78. syscon-reboot {
  79. compatible = "syscon-reboot";
  80. regmap = <&pll_cntl>;
  81. offset = <0x0>;
  82. mask = <0x1>;
  83. };
  84. wdt: watchdog@14e000dc {
  85. compatible = "brcm,bcm6345-wdt";
  86. reg = <0x14e000dc 0xc>;
  87. clocks = <&periph_osc>;
  88. };
  89. wdt-reboot {
  90. compatible = "wdt-reboot";
  91. wdt = <&wdt>;
  92. };
  93. gpio0: gpio-controller@14e00100 {
  94. compatible = "brcm,bcm6345-gpio";
  95. reg = <0x14e00100 0x4>, <0x14e00108 0x4>;
  96. gpio-controller;
  97. #gpio-cells = <2>;
  98. status = "disabled";
  99. };
  100. gpio1: gpio-controller@14e00104 {
  101. compatible = "brcm,bcm6345-gpio";
  102. reg = <0x14e00104 0x4>, <0x14e0010c 0x4>;
  103. gpio-controller;
  104. #gpio-cells = <2>;
  105. ngpios = <3>;
  106. status = "disabled";
  107. };
  108. uart0: serial@14e00200 {
  109. compatible = "brcm,bcm6345-uart";
  110. reg = <0x14e00200 0x18>;
  111. clocks = <&periph_osc>;
  112. status = "disabled";
  113. };
  114. uart1: serial@14e00220 {
  115. compatible = "brcm,bcm6345-uart";
  116. reg = <0x14e00220 0x18>;
  117. clocks = <&periph_osc>;
  118. status = "disabled";
  119. };
  120. spi: spi@14e02000 {
  121. compatible = "brcm,bcm6358-spi";
  122. reg = <0x14e02000 0x70c>;
  123. #address-cells = <1>;
  124. #size-cells = <0>;
  125. clocks = <&periph_clk0 BCM3380_CLK0_SPI>;
  126. resets = <&periph_rst0 BCM3380_RST0_SPI>;
  127. spi-max-frequency = <25000000>;
  128. num-cs = <6>;
  129. status = "disabled";
  130. };
  131. leds: led-controller@14e00f00 {
  132. compatible = "brcm,bcm6328-leds";
  133. reg = <0x14e00f00 0x1c>;
  134. #address-cells = <1>;
  135. #size-cells = <0>;
  136. status = "disabled";
  137. };
  138. };
  139. };