ATP-52B.dts 1.4 KB

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