netgear,cg3100d.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
  4. */
  5. /dts-v1/;
  6. #include "brcm,bcm3380.dtsi"
  7. / {
  8. model = "Netgear CG3100D";
  9. compatible = "netgear,cg3100d", "brcm,bcm3380";
  10. aliases {
  11. serial0 = &uart0;
  12. };
  13. chosen {
  14. stdout-path = "serial0:115200n8";
  15. };
  16. gpio-leds {
  17. compatible = "gpio-leds";
  18. wifi_green {
  19. label = "CG3100D:green:wifi";
  20. gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
  21. };
  22. wps_green {
  23. label = "CG3100D:green:wps";
  24. gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
  25. };
  26. power_red {
  27. label = "CG3100D:red:power";
  28. gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
  29. };
  30. };
  31. };
  32. &leds {
  33. status = "okay";
  34. led@0 {
  35. reg = <0>;
  36. active-low;
  37. label = "CG3100D:green:power";
  38. };
  39. led@1 {
  40. reg = <1>;
  41. active-low;
  42. label = "CG3100D:green:downlink";
  43. };
  44. led@2 {
  45. reg = <2>;
  46. active-low;
  47. label = "CG3100D:orange:downlink";
  48. };
  49. led@3 {
  50. reg = <3>;
  51. active-low;
  52. label = "CG3100D:green:uplink";
  53. };
  54. led@4 {
  55. reg = <4>;
  56. active-low;
  57. label = "CG3100D:orange:uplink";
  58. };
  59. led@6 {
  60. reg = <6>;
  61. active-low;
  62. label = "CG3100D:green:inet";
  63. };
  64. led@7 {
  65. reg = <7>;
  66. active-low;
  67. label = "CG3100D:green:stby";
  68. };
  69. };
  70. &gpio0 {
  71. status = "okay";
  72. };
  73. &spi {
  74. status = "okay";
  75. spi-flash@0 {
  76. compatible = "spi-flash";
  77. reg = <0>;
  78. #address-cells = <1>;
  79. #size-cells = <1>;
  80. spi-max-frequency = <25000000>;
  81. };
  82. };
  83. &uart0 {
  84. u-boot,dm-pre-reloc;
  85. status = "okay";
  86. };