AIR3GII.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. };
  18. };
  19. gpio-keys-polled {
  20. compatible = "gpio-keys-polled";
  21. poll-interval = <20>;
  22. wps {
  23. label = "wps";
  24. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  25. linux,code = <KEY_WPS_BUTTON>;
  26. };
  27. };
  28. };
  29. &gpio0 {
  30. status = "okay";
  31. };
  32. &spi0 {
  33. status = "okay";
  34. m25p80@0 {
  35. compatible = "jedec,spi-nor";
  36. reg = <0>;
  37. spi-max-frequency = <10000000>;
  38. partitions {
  39. compatible = "fixed-partitions";
  40. #address-cells = <1>;
  41. #size-cells = <1>;
  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. };
  64. &pinctrl {
  65. state_default: pinctrl0 {
  66. gpio {
  67. ralink,group = "i2c", "jtag", "uartf";
  68. ralink,function = "gpio";
  69. };
  70. };
  71. };
  72. &ethernet {
  73. mtd-mac-address = <&factory 0x4>;
  74. };
  75. &esw {
  76. mediatek,portmap = <0x2f>;
  77. };
  78. &wmac {
  79. ralink,mtd-eeprom = <&factory 0>;
  80. };