1
0

ATP-52B.dts 1.7 KB

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