1
0

RT-G32-B1.dts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "asus,rt-g32-b1", "ralink,rt3050-soc";
  7. model = "Asus RT-G32 B1";
  8. gpio-keys-polled {
  9. compatible = "gpio-keys-polled";
  10. poll-interval = <20>;
  11. reset {
  12. label = "reset";
  13. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  14. linux,code = <KEY_RESTART>;
  15. };
  16. wps {
  17. label = "wps";
  18. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  19. linux,code = <KEY_WPS_BUTTON>;
  20. };
  21. };
  22. };
  23. &spi0 {
  24. status = "okay";
  25. m25p80@0 {
  26. compatible = "jedec,spi-nor";
  27. reg = <0>;
  28. spi-max-frequency = <10000000>;
  29. partitions {
  30. compatible = "fixed-partitions";
  31. #address-cells = <1>;
  32. #size-cells = <1>;
  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. };
  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 = <&devconf 0x4>;
  65. };
  66. &esw {
  67. mediatek,portmap = <0x2f>;
  68. };
  69. &wmac {
  70. ralink,mtd-eeprom = <&devconf 0>;
  71. };