bcm6358-huawei-echolife-hg553.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #include "bcm6358.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. #include <dt-bindings/leds/common.h>
  4. / {
  5. model = "Huawei EchoLife HG553";
  6. compatible = "huawei,echolife-hg553", "brcm,bcm6358";
  7. aliases {
  8. led-boot = &led_power_blue;
  9. led-failsafe = &led_power_blue;
  10. led-running = &led_power_blue;
  11. led-upgrade = &led_power_blue;
  12. };
  13. chosen {
  14. bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
  15. stdout-path = "serial0:115200n8";
  16. };
  17. keys {
  18. compatible = "gpio-keys-polled";
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. poll-interval = <20>;
  22. rfkill {
  23. label = "rfkill";
  24. gpios = <&pinctrl 9 1>;
  25. linux,code = <KEY_RFKILL>;
  26. debounce-interval = <60>;
  27. };
  28. reset {
  29. label = "reset";
  30. gpios = <&pinctrl 37 1>;
  31. linux,code = <KEY_RESTART>;
  32. debounce-interval = <60>;
  33. };
  34. };
  35. leds {
  36. compatible = "gpio-leds";
  37. led_power_blue: power_blue {
  38. function = LED_FUNCTION_POWER;
  39. color = <LED_COLOR_ID_BLUE>;
  40. gpios = <&pinctrl 4 1>;
  41. default-state = "on";
  42. };
  43. power_red {
  44. function = LED_FUNCTION_POWER;
  45. color = <LED_COLOR_ID_RED>;
  46. gpios = <&pinctrl 5 1>;
  47. };
  48. hspa_red {
  49. label = "red:hspa";
  50. gpios = <&pinctrl 12 1>;
  51. };
  52. hspa_blue {
  53. label = "blue:hspa";
  54. gpios = <&pinctrl 13 1>;
  55. };
  56. lan_red {
  57. function = LED_FUNCTION_LAN;
  58. color = <LED_COLOR_ID_RED>;
  59. gpios = <&pinctrl 22 1>;
  60. };
  61. lan_blue {
  62. function = LED_FUNCTION_LAN;
  63. color = <LED_COLOR_ID_BLUE>;
  64. gpios = <&pinctrl 23 1>;
  65. };
  66. wifi_red {
  67. label = "red:wifi";
  68. gpios = <&pinctrl 25 1>;
  69. };
  70. dsl_red {
  71. label = "red:adsl";
  72. gpios = <&pinctrl 34 1>;
  73. };
  74. dsl_blue {
  75. label = "blue:adsl";
  76. gpios = <&pinctrl 35 1>;
  77. };
  78. };
  79. };
  80. &pflash {
  81. status = "okay";
  82. partitions {
  83. compatible = "fixed-partitions";
  84. #address-cells = <1>;
  85. #size-cells = <1>;
  86. cfe@0 {
  87. label = "CFE";
  88. reg = <0x000000 0x020000>;
  89. read-only;
  90. };
  91. linux@20000 {
  92. label = "linux";
  93. reg = <0x020000 0xfc0000>;
  94. compatible = "brcm,bcm963xx-imagetag";
  95. };
  96. nvram@fe0000 {
  97. label = "nvram";
  98. reg = <0xfe0000 0x020000>;
  99. };
  100. };
  101. };
  102. &uart0 {
  103. status = "okay";
  104. };