XDXRN502J.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /dts-v1/;
  2. /include/ "rt3050.dtsi"
  3. / {
  4. compatible = "XDXRN502J", "ralink,rt3052-soc";
  5. model = "XDX RN502J";
  6. pinctrl {
  7. state_default: pinctrl0 {
  8. gpio {
  9. ralink,group = "spi", "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 = "u-boot";
  23. reg = <0x0 0x30000>;
  24. read-only;
  25. };
  26. partition@30000 {
  27. label = "u-boot-env";
  28. reg = <0x30000 0x10000>;
  29. read-only;
  30. };
  31. factory: partition@40000 {
  32. label = "factory";
  33. reg = <0x40000 0x10000>;
  34. read-only;
  35. };
  36. partition@50000 {
  37. label = "firmware";
  38. reg = <0x50000 0x3b0000>;
  39. };
  40. };
  41. ethernet@10100000 {
  42. mtd-mac-address = <&factory 0x28>;
  43. };
  44. esw@10110000 {
  45. ralink,portmap = <0x3e>;
  46. };
  47. wmac@10180000 {
  48. ralink,mtd-eeprom = <&factory 0>;
  49. };
  50. gpio-leds {
  51. compatible = "gpio-leds";
  52. wifi {
  53. label = "xdxrn502j:green:wifi";
  54. gpios = <&gpio0 7 1>;
  55. };
  56. power {
  57. label = "xdxrn502j:green:power";
  58. gpios = <&gpio0 9 1>;
  59. };
  60. };
  61. gpio-keys-polled {
  62. compatible = "gpio-keys-polled";
  63. #address-cells = <1>;
  64. #size-cells = <0>;
  65. poll-interval = <20>;
  66. reset {
  67. label = "reset";
  68. gpios = <&gpio0 10 1>;
  69. linux,code = <0x198>;
  70. };
  71. };
  72. otg@101c0000 {
  73. status = "okay";
  74. };
  75. };