BC2.dts 1.3 KB

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