a4001n1.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /dts-v1/;
  2. #include "bcm6328.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "ADB P.DG A4001N1";
  6. compatible = "adb,a4001n1", "brcm,bcm6328";
  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 = <&gpio0 23 1>;
  19. linux,code = <KEY_RESTART>;
  20. };
  21. wps {
  22. label = "wlan";
  23. gpios = <&gpio0 24 1>;
  24. linux,code = <KEY_WLAN>;
  25. };
  26. };
  27. gpio-leds {
  28. compatible = "gpio-leds";
  29. inet_red {
  30. label = "A4001N1:red:inet";
  31. gpios = <&gpio0 2 1>;
  32. };
  33. ppp_green {
  34. label = "A4001N1:green:ppp";
  35. gpios = <&gpio0 3 1>;
  36. };
  37. power_green {
  38. label = "A4001N1:green:power";
  39. gpios = <&gpio0 4 1>;
  40. default-state = "on";
  41. };
  42. ppp_red {
  43. label = "A4001N1:red:ppp";
  44. gpios = <&gpio0 5 1>;
  45. };
  46. usb_green {
  47. label = "A4001N1:green:3g";
  48. gpios = <&gpio0 6 1>;
  49. };
  50. usb_red {
  51. label = "A4001N1:red:3g";
  52. gpios = <&gpio0 7 1>;
  53. };
  54. power_red {
  55. label = "A4001N1:red:power";
  56. gpios = <&gpio0 8 1>;
  57. };
  58. wlan_green {
  59. label = "A4001N1:green:wlan";
  60. gpios = <&gpio0 9 1>;
  61. };
  62. wlan_red {
  63. label = "A4001N1:red:wlan";
  64. gpios = <&gpio0 10 1>;
  65. };
  66. inet_green {
  67. label = "A4001N1:green:inet";
  68. gpios = <&gpio0 11 1>;
  69. };
  70. eth_red {
  71. label = "A4001N1:red:eth";
  72. gpios = <&gpio0 20 1>;
  73. };
  74. eth_green {
  75. label = "A4001N1:green:eth";
  76. gpios = <&gpio0 31 1>;
  77. };
  78. };
  79. };