1
0

RT-G32-B1.dts 1.3 KB

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