AIR3GII.dts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. #address-cells = <1>;
  22. #size-cells = <0>;
  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. #address-cells = <1>;
  38. #size-cells = <1>;
  39. compatible = "jedec,spi-nor";
  40. reg = <0>;
  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. };