ARGUS_ATP52B.dts 1.4 KB

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