AIR3GII.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. / {
  4. compatible = "AIR3GII", "ralink,rt5350-soc";
  5. model = "AirLive Air3GII";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. wlan {
  9. label = "air3gii:green:wlan";
  10. gpios = <&gpio0 8 0>;
  11. };
  12. mobile {
  13. label = "air3gii:green:mobile";
  14. gpios = <&gpio0 9 1>;
  15. };
  16. };
  17. gpio-keys-polled {
  18. compatible = "gpio-keys-polled";
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. poll-interval = <20>;
  22. wps {
  23. label = "wps";
  24. gpios = <&gpio0 7 1>;
  25. linux,code = <0x211>;
  26. };
  27. };
  28. };
  29. &gpio0 {
  30. status = "okay";
  31. };
  32. &spi0 {
  33. status = "okay";
  34. m25p80@0 {
  35. #address-cells = <1>;
  36. #size-cells = <1>;
  37. compatible = "jedec,spi-nor";
  38. reg = <0>;
  39. linux,modalias = "m25p80", "en25q32b";
  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. };