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 = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
  10. stdout-path = "serial0:115200n8";
  11. };
  12. keys {
  13. compatible = "gpio-keys-polled";
  14. #address-cells = <1>;
  15. #size-cells = <0>;
  16. poll-interval = <20>;
  17. reset {
  18. label = "reset";
  19. gpios = <&pinctrl 34 GPIO_ACTIVE_LOW>;
  20. linux,code = <KEY_RESTART>;
  21. debounce-interval = <60>;
  22. };
  23. wlan {
  24. label = "wlan";
  25. gpios = <&pinctrl 37 GPIO_ACTIVE_LOW>;
  26. linux,code = <KEY_WLAN>;
  27. debounce-interval = <60>;
  28. };
  29. };
  30. leds {
  31. compatible = "gpio-leds";
  32. power_white {
  33. label = "AV4202N:white:power";
  34. gpios = <&pinctrl 10 GPIO_ACTIVE_LOW>;
  35. default-state = "on";
  36. };
  37. power_red {
  38. label = "AV4202N:red:power";
  39. gpios = <&pinctrl 11 GPIO_ACTIVE_LOW>;
  40. };
  41. wan_white {
  42. label = "AV4202N:white:wan";
  43. gpios = <&pinctrl 26 GPIO_ACTIVE_LOW>;
  44. };
  45. wan_red {
  46. label = "AV4202N:red:wan";
  47. gpios = <&pinctrl 27 GPIO_ACTIVE_LOW>;
  48. };
  49. phone_white {
  50. label = "AV4202N:white:phone";
  51. gpios = <&pinctrl 24 GPIO_ACTIVE_LOW>;
  52. };
  53. phone_red {
  54. label = "AV4202N:red:phone";
  55. gpios = <&pinctrl 25 GPIO_ACTIVE_LOW>;
  56. };
  57. wifi {
  58. label = "AV4202N:blue:wifi";
  59. gpios = <&pinctrl 22 GPIO_ACTIVE_LOW>;
  60. };
  61. };
  62. };
  63. &pflash {
  64. status = "ok";
  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. };