AIR3GII.dts 1.6 KB

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