RUT5XX.dts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. / {
  4. compatible = "RUT5XX", "ralink,rt3050-soc";
  5. model = "Teltonika RUT5XX";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. status {
  9. label = "rut5xx:green:status";
  10. gpios = <&gpio0 14 1>;
  11. };
  12. };
  13. gpio-keys-polled {
  14. compatible = "gpio-keys-polled";
  15. #address-cells = <1>;
  16. #size-cells = <0>;
  17. poll-interval = <20>;
  18. reset {
  19. label = "reset";
  20. gpios = <&gpio0 10 1>;
  21. linux,code = <0x198>;
  22. };
  23. };
  24. };
  25. &spi0 {
  26. status = "okay";
  27. m25p80@0 {
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. compatible = "jedec,spi-nor";
  31. reg = <0>;
  32. linux,modalias = "m25p80", "n25q128a13";
  33. spi-max-frequency = <10000000>;
  34. partition@0 {
  35. label = "u-boot";
  36. reg = <0x0 0x30000>;
  37. read-only;
  38. };
  39. partition@30000 {
  40. label = "u-boot-env";
  41. reg = <0x30000 0x10000>;
  42. read-only;
  43. };
  44. factory: partition@40000 {
  45. label = "factory";
  46. reg = <0x40000 0x10000>;
  47. read-only;
  48. };
  49. partition@50000 {
  50. label = "firmware";
  51. reg = <0x50000 0xfb0000>;
  52. };
  53. };
  54. };
  55. &pinctrl {
  56. state_default: pinctrl0 {
  57. gpio {
  58. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  59. ralink,function = "gpio";
  60. };
  61. };
  62. };
  63. &ethernet {
  64. mtd-mac-address = <&factory 0x28>;
  65. };
  66. &esw {
  67. mediatek,portmap = <0x3e>;
  68. };
  69. &wmac {
  70. ralink,mtd-eeprom = <&factory 0>;
  71. };
  72. &otg {
  73. status = "okay";
  74. };