RT-G32-B1.dts 1.2 KB

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