AI-BR100.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "aigale,ai-br100", "ralink,mt7620a-soc";
  7. model = "Aigale Ai-BR100";
  8. aliases {
  9. led-boot = &led_wlan;
  10. led-failsafe = &led_wlan;
  11. led-running = &led_wlan;
  12. led-upgrade = &led_wlan;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. wan {
  17. label = "ai-br100:blue:wan";
  18. gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
  19. };
  20. led_wlan: wlan {
  21. label = "ai-br100:blue:wlan";
  22. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  23. };
  24. };
  25. gpio-keys-polled {
  26. compatible = "gpio-keys-polled";
  27. poll-interval = <20>;
  28. reset {
  29. label = "reset";
  30. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RESTART>;
  32. };
  33. };
  34. };
  35. &gpio2 {
  36. status = "okay";
  37. };
  38. &gpio3 {
  39. status = "okay";
  40. };
  41. &spi0 {
  42. status = "okay";
  43. m25p80@0 {
  44. compatible = "jedec,spi-nor";
  45. reg = <0 0>;
  46. spi-max-frequency = <10000000>;
  47. partitions {
  48. compatible = "fixed-partitions";
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. partition@0 {
  52. label = "u-boot";
  53. reg = <0x0 0x20000>;
  54. read-only;
  55. };
  56. partition@20000 {
  57. label = "u-boot-env";
  58. reg = <0x20000 0x10000>;
  59. read-only;
  60. };
  61. factory: partition@30000 {
  62. label = "factory";
  63. reg = <0x30000 0x10000>;
  64. read-only;
  65. };
  66. partition@40000 {
  67. label = "firmware";
  68. reg = <0x40000 0x7c0000>;
  69. };
  70. };
  71. };
  72. };
  73. &ehci {
  74. status = "okay";
  75. };
  76. &ohci {
  77. status = "okay";
  78. };
  79. &pinctrl {
  80. state_default: pinctrl0 {
  81. gpio {
  82. ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
  83. ralink,function = "gpio";
  84. };
  85. };
  86. };
  87. &ethernet {
  88. mtd-mac-address = <&factory 0x4>;
  89. mediatek,portmap = "llllw";
  90. };
  91. &wmac {
  92. ralink,mtd-eeprom = <&factory 0>;
  93. };