BC2.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "nexaira,bc2", "ralink,rt3052-soc";
  7. model = "NexAira BC2";
  8. cfi@1f000000 {
  9. compatible = "cfi-flash";
  10. reg = <0x1f000000 0x800000>;
  11. bank-width = <2>;
  12. device-width = <2>;
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. partition@0 {
  16. label = "u-boot";
  17. reg = <0x0 0x30000>;
  18. read-only;
  19. };
  20. partition@30000 {
  21. label = "u-boot-env";
  22. reg = <0x30000 0x10000>;
  23. read-only;
  24. };
  25. factory: partition@40000 {
  26. label = "factory";
  27. reg = <0x40000 0x10000>;
  28. read-only;
  29. };
  30. partition@50000 {
  31. label = "firmware";
  32. reg = <0x50000 0x7b0000>;
  33. };
  34. };
  35. gpio-leds {
  36. compatible = "gpio-leds";
  37. usb {
  38. label = "bc2:blue:usb";
  39. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  40. };
  41. };
  42. gpio-keys-polled {
  43. compatible = "gpio-keys-polled";
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. poll-interval = <20>;
  47. reset {
  48. label = "reset";
  49. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  50. linux,code = <KEY_RESTART>;
  51. };
  52. };
  53. };
  54. &pinctrl {
  55. state_default: pinctrl0 {
  56. gpio {
  57. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  58. ralink,function = "gpio";
  59. };
  60. };
  61. };
  62. &ethernet {
  63. mtd-mac-address = <&factory 0x4>;
  64. };
  65. &esw {
  66. mediatek,portmap = <0x2f>;
  67. };
  68. &wmac {
  69. ralink,mtd-eeprom = <&factory 0>;
  70. };
  71. &otg {
  72. status = "okay";
  73. };