av4202n.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /dts-v1/;
  2. #include "bcm6368.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. model = "ADB P.DG AV4202N";
  7. compatible = "adb,av4202n", "brcm,bcm6368";
  8. chosen {
  9. bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
  10. stdout-path = "serial0:115200n8";
  11. };
  12. gpio-keys-polled {
  13. compatible = "gpio-keys-polled";
  14. #address-cells = <1>;
  15. #size-cells = <0>;
  16. poll-interval = <20>;
  17. debounce-interval = <60>;
  18. reset {
  19. label = "reset";
  20. gpios = <&pinctrl 34 GPIO_ACTIVE_LOW>;
  21. linux,code = <KEY_RESTART>;
  22. };
  23. wlan {
  24. label = "wlan";
  25. gpios = <&pinctrl 37 GPIO_ACTIVE_LOW>;
  26. linux,code = <KEY_WLAN>;
  27. };
  28. };
  29. gpio-leds {
  30. compatible = "gpio-leds";
  31. power_white {
  32. label = "AV4202N:white:power";
  33. gpios = <&pinctrl 10 GPIO_ACTIVE_LOW>;
  34. default-state = "on";
  35. };
  36. power_red {
  37. label = "AV4202N:red:power";
  38. gpios = <&pinctrl 11 GPIO_ACTIVE_LOW>;
  39. };
  40. wan_white {
  41. label = "AV4202N:white:wan";
  42. gpios = <&pinctrl 26 GPIO_ACTIVE_LOW>;
  43. };
  44. wan_red {
  45. label = "AV4202N:red:wan";
  46. gpios = <&pinctrl 27 GPIO_ACTIVE_LOW>;
  47. };
  48. phone_white {
  49. label = "AV4202N:white:phone";
  50. gpios = <&pinctrl 24 GPIO_ACTIVE_LOW>;
  51. };
  52. phone_red {
  53. label = "AV4202N:red:phone";
  54. gpios = <&pinctrl 25 GPIO_ACTIVE_LOW>;
  55. };
  56. wifi {
  57. label = "AV4202N:blue:wifi";
  58. gpios = <&pinctrl 22 GPIO_ACTIVE_LOW>;
  59. };
  60. };
  61. };
  62. &pflash {
  63. status = "ok";
  64. linux,part-probe = "bcm63xxpart";
  65. partitions {
  66. compatible = "fixed-partitions";
  67. #address-cells = <1>;
  68. #size-cells = <1>;
  69. cfe@0 {
  70. label = "CFE";
  71. reg = <0x000000 0x020000>;
  72. read-only;
  73. };
  74. linux@20000 {
  75. label = "linux";
  76. reg = <0x020000 0xfc0000>;
  77. compatible = "brcm,bcm963xx-imagetag";
  78. };
  79. nvram@fe0000 {
  80. label = "nvram";
  81. reg = <0xfe0000 0x020000>;
  82. };
  83. };
  84. };
  85. &uart0 {
  86. status = "ok";
  87. };