2
0

AIR3GII.dts 1.4 KB

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