WL_330N.dts 1.5 KB

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