p870hw-51a-v2.dts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /dts-v1/;
  2. #include "bcm6368.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Zyxel P870HW-51a v2";
  6. compatible = "zyxel,p870hw-51a-v2", "brcm,bcm6368";
  7. chosen {
  8. bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
  9. };
  10. gpio-keys-polled {
  11. compatible = "gpio-keys-polled";
  12. #address-cells = <1>;
  13. #size-cells = <0>;
  14. poll-interval = <20>;
  15. debounce-interval = <60>;
  16. reset {
  17. label = "reset";
  18. gpios = <&gpio1 2 1>;
  19. linux,code = <KEY_RESTART>;
  20. };
  21. wps {
  22. label = "wps";
  23. gpios = <&gpio1 3 1>;
  24. linux,code = <KEY_WPS_BUTTON>;
  25. };
  26. };
  27. gpio-leds {
  28. compatible = "gpio-leds";
  29. power_green {
  30. label = "P870HW-51a:green:power";
  31. gpios = <&gpio0 0 0>;
  32. default-state = "on";
  33. };
  34. dsl_green {
  35. label = "P870HW-51a:green:dsl";
  36. gpios = <&gpio0 2 1>;
  37. };
  38. inet_green {
  39. label = "P870HW-51a:green:inet";
  40. gpios = <&gpio0 22 1>;
  41. };
  42. wps_orange {
  43. label = "P870HW-51a:orange:wps";
  44. gpios = <&gpio0 24 1>;
  45. };
  46. inet_red {
  47. label = "P870HW-51a:red:inet";
  48. gpios = <&gpio1 1 1>;
  49. };
  50. };
  51. };
  52. &pflash {
  53. status = "ok";
  54. linux,part-probe = "bcm63xxpart";
  55. cfe@0 {
  56. label = "CFE";
  57. reg = <0x000000 0x010000>;
  58. read-only;
  59. };
  60. linux@10000 {
  61. label = "linux";
  62. reg = <0x010000 0x3e0000>;
  63. };
  64. nvram@3f0000 {
  65. label = "nvram";
  66. reg = <0x3f0000 0x010000>;
  67. };
  68. };