bcm6348-tp-link-td-w8900gb.dts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #include "bcm6348.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. #include <dt-bindings/leds/common.h>
  4. / {
  5. model = "TP-Link TD-W8900GB";
  6. compatible = "tp-link,td-w8900gb", "brcm,bcm6348";
  7. chosen {
  8. bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
  9. stdout-path = "serial0:115200n8";
  10. };
  11. keys {
  12. compatible = "gpio-keys-polled";
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. poll-interval = <20>;
  16. reset {
  17. label = "reset";
  18. gpios = <&pinctrl 33 1>;
  19. linux,code = <KEY_RESTART>;
  20. debounce-interval = <60>;
  21. };
  22. };
  23. leds {
  24. compatible = "gpio-leds";
  25. power_green {
  26. function = LED_FUNCTION_POWER;
  27. color = <LED_COLOR_ID_GREEN>;
  28. gpios = <&pinctrl 0 1>;
  29. default-state = "on";
  30. };
  31. stop_green {
  32. label = "green:stop";
  33. gpios = <&pinctrl 1 1>;
  34. };
  35. adsl_fail_green {
  36. label = "green:adsl-fail";
  37. gpios = <&pinctrl 2 1>;
  38. };
  39. ppp_green {
  40. label = "green:ppp";
  41. gpios = <&pinctrl 3 1>;
  42. };
  43. ppp_fail_green {
  44. label = "green:ppp-fail";
  45. gpios = <&pinctrl 4 1>;
  46. };
  47. };
  48. };
  49. &pflash {
  50. status = "okay";
  51. partitions {
  52. compatible = "fixed-partitions";
  53. #address-cells = <1>;
  54. #size-cells = <1>;
  55. cfe@0 {
  56. label = "CFE";
  57. reg = <0x000000 0x020000>;
  58. read-only;
  59. };
  60. linux@20000 {
  61. label = "linux";
  62. reg = <0x020000 0x3d0000>;
  63. compatible = "brcm,bcm963xx-imagetag";
  64. };
  65. nvram@3e0000 {
  66. label = "nvram";
  67. reg = <0x3f0000 0x010000>;
  68. };
  69. };
  70. };
  71. &pinctrl {
  72. pinctrl-names = "default";
  73. pinctrl-0 = <&pinctrl_pci &pinctrl_ext_mii &pinctrl_mii_pccard>;
  74. };
  75. &uart0 {
  76. status = "okay";
  77. };