2
0

ATP-52B.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "ATP-52B", "ralink,rt3052-soc";
  6. model = "Argus ATP-52B";
  7. cfi@1f000000 {
  8. compatible = "cfi-flash";
  9. reg = <0x1f000000 0x800000>;
  10. bank-width = <2>;
  11. device-width = <2>;
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. partition@0 {
  15. label = "bootloader";
  16. reg = <0x0 0x30000>;
  17. read-only;
  18. };
  19. partition@30000 {
  20. label = "config";
  21. reg = <0x30000 0x10000>;
  22. };
  23. factory: partition@40000 {
  24. label = "factory";
  25. reg = <0x40000 0x10000>;
  26. };
  27. partition@50000 {
  28. label = "firmware";
  29. reg = <0x50000 0x7a0000>;
  30. };
  31. };
  32. gpio-leds {
  33. compatible = "gpio-leds";
  34. run {
  35. label = "atp-52b:green:run";
  36. gpios = <&gpio0 9 1>;
  37. };
  38. net {
  39. label = "atp-52b:amber:net";
  40. gpios = <&gpio0 13 1>;
  41. };
  42. };
  43. gpio-keys-polled {
  44. compatible = "gpio-keys-polled";
  45. #address-cells = <1>;
  46. #size-cells = <0>;
  47. poll-interval = <20>;
  48. wps {
  49. label = "wps";
  50. gpios = <&gpio0 0 1>;
  51. linux,code = <KEY_WPS_BUTTON>;
  52. };
  53. reset {
  54. label = "reset";
  55. gpios = <&gpio0 10 1>;
  56. linux,code = <KEY_RESTART>;
  57. };
  58. };
  59. };
  60. &pinctrl {
  61. state_default: pinctrl0 {
  62. gpio {
  63. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  64. ralink,function = "gpio";
  65. };
  66. };
  67. };
  68. &ethernet {
  69. mtd-mac-address = <&factory 0x4>;
  70. };
  71. &esw {
  72. mediatek,portmap = <0x3e>;
  73. };
  74. &wmac {
  75. ralink,mtd-eeprom = <&factory 0>;
  76. };
  77. &otg {
  78. status = "okay";
  79. };