bcm958625-meraki-mx6x-common.dtsi 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Common Bindings for Cisco Meraki MX64 (Kingpin) and MX65 (Alamo) devices.
  4. *
  5. * Copyright (C) 2020-2021 Matthew Hagan <[email protected]>
  6. */
  7. #include "bcm-nsp.dtsi"
  8. #include <dt-bindings/gpio/gpio.h>
  9. #include <dt-bindings/input/input.h>
  10. #include <dt-bindings/leds/common.h>
  11. / {
  12. pwm-leds {
  13. compatible = "pwm-leds";
  14. led-1 {
  15. function = LED_FUNCTION_INDICATOR;
  16. color = <LED_COLOR_ID_RED>;
  17. pwms = <&pwm 1 50000>;
  18. max-brightness = <255>;
  19. };
  20. led-2 {
  21. function = LED_FUNCTION_POWER;
  22. color = <LED_COLOR_ID_GREEN>;
  23. pwms = <&pwm 2 50000>;
  24. max-brightness = <255>;
  25. };
  26. led-3 {
  27. function = LED_FUNCTION_INDICATOR;
  28. color = <LED_COLOR_ID_BLUE>;
  29. pwms = <&pwm 3 50000>;
  30. max-brightness = <255>;
  31. };
  32. };
  33. };
  34. &amac2 {
  35. status = "okay";
  36. nvmem-cells = <&mac_address>;
  37. nvmem-cell-names = "mac-address";
  38. };
  39. &ehci0 {
  40. status = "okay";
  41. };
  42. &i2c0 {
  43. status = "okay";
  44. eeprom@50 {
  45. compatible = "atmel,24c64";
  46. reg = <0x50>;
  47. pagesize = <32>;
  48. read-only;
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. mac_address: mac-address@66 {
  52. reg = <0x66 0x6>;
  53. };
  54. };
  55. };
  56. &nand_controller {
  57. nand@0 {
  58. compatible = "brcm,nandcs";
  59. reg = <0>;
  60. nand-on-flash-bbt;
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. nand-ecc-strength = <24>;
  64. nand-ecc-step-size = <1024>;
  65. brcm,nand-oob-sector-size = <27>;
  66. partition@0 {
  67. label = "u-boot";
  68. reg = <0x0 0x80000>;
  69. read-only;
  70. };
  71. partition@80000 {
  72. label = "shmoo";
  73. reg = <0x80000 0x80000>;
  74. read-only;
  75. };
  76. partition@100000 {
  77. label = "bootkernel1";
  78. reg = <0x100000 0x300000>;
  79. };
  80. partition@400000 {
  81. label = "nvram";
  82. reg = <0x400000 0x100000>;
  83. };
  84. partition@500000 {
  85. label = "bootkernel2";
  86. reg = <0x500000 0x300000>;
  87. };
  88. partition@800000 {
  89. label = "ubi";
  90. reg = <0x800000 0x3f700000>;
  91. };
  92. };
  93. };
  94. &ohci0 {
  95. status = "okay";
  96. };
  97. &pinctrl {
  98. pinctrl-names = "default";
  99. pinctrl-0 = <&pwm_leds>;
  100. pwm_leds: pwm_leds {
  101. function = "pwm";
  102. groups = "pwm1_grp", "pwm2_grp", "pwm3_grp";
  103. };
  104. };
  105. &pwm {
  106. status = "okay";
  107. #pwm-cells = <2>;
  108. };
  109. &uart0 {
  110. clock-frequency = <62500000>;
  111. status = "okay";
  112. };