2
0

AIR3GII.dts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. spi-max-frequency = <10000000>;
  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. &pinctrl {
  63. state_default: pinctrl0 {
  64. gpio {
  65. ralink,group = "i2c", "jtag", "uartf";
  66. ralink,function = "gpio";
  67. };
  68. };
  69. };
  70. &ethernet {
  71. mtd-mac-address = <&factory 0x4>;
  72. };
  73. &esw {
  74. mediatek,portmap = <0x2f>;
  75. };
  76. &wmac {
  77. ralink,mtd-eeprom = <&factory 0>;
  78. };