ATP-52B.dts 1.6 KB

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