ALL0256N-8M.dts 1.6 KB

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