AWAPN2403.dts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "asiarf,awapn2403", "ralink,rt3052-soc";
  7. model = "AsiaRF AWAPN2403";
  8. aliases {
  9. led-boot = &led_wps;
  10. led-failsafe = &led_wps;
  11. led-running = &led_wps;
  12. led-upgrade = &led_wps;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. led_wps: wps {
  17. label = "awapn2403:green:wps";
  18. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  19. };
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. poll-interval = <20>;
  24. reset {
  25. label = "reset";
  26. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RESTART>;
  28. };
  29. };
  30. };
  31. &spi0 {
  32. status = "okay";
  33. m25p80@0 {
  34. compatible = "jedec,spi-nor";
  35. reg = <0>;
  36. spi-max-frequency = <10000000>;
  37. partitions {
  38. compatible = "fixed-partitions";
  39. #address-cells = <1>;
  40. #size-cells = <1>;
  41. partition@0 {
  42. label = "u-boot";
  43. reg = <0x0 0x30000>;
  44. read-only;
  45. };
  46. partition@30000 {
  47. label = "u-boot-env";
  48. reg = <0x30000 0x10000>;
  49. read-only;
  50. };
  51. factory: partition@40000 {
  52. label = "factory";
  53. reg = <0x40000 0x10000>;
  54. read-only;
  55. };
  56. partition@50000 {
  57. label = "firmware";
  58. reg = <0x50000 0x3b0000>;
  59. };
  60. };
  61. };
  62. };
  63. &pinctrl {
  64. state_default: pinctrl0 {
  65. gpio {
  66. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  67. ralink,function = "gpio";
  68. };
  69. };
  70. };
  71. &esw {
  72. mediatek,portmap = <0x3e>;
  73. };
  74. &wmac {
  75. ralink,mtd-eeprom = <&factory 0>;
  76. };