BC2.dts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. partitions {
  14. compatible = "fixed-partitions";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. partition@0 {
  18. label = "u-boot";
  19. reg = <0x0 0x30000>;
  20. read-only;
  21. };
  22. partition@30000 {
  23. label = "u-boot-env";
  24. reg = <0x30000 0x10000>;
  25. read-only;
  26. };
  27. factory: partition@40000 {
  28. label = "factory";
  29. reg = <0x40000 0x10000>;
  30. read-only;
  31. };
  32. partition@50000 {
  33. label = "firmware";
  34. reg = <0x50000 0x7b0000>;
  35. };
  36. };
  37. };
  38. gpio-leds {
  39. compatible = "gpio-leds";
  40. usb {
  41. label = "bc2:blue:usb";
  42. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  43. trigger-sources = <&otg_port1>;
  44. linux,default-trigger = "usbport";
  45. };
  46. };
  47. gpio-keys-polled {
  48. compatible = "gpio-keys-polled";
  49. poll-interval = <20>;
  50. reset {
  51. label = "reset";
  52. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  53. linux,code = <KEY_RESTART>;
  54. };
  55. };
  56. };
  57. &pinctrl {
  58. state_default: pinctrl0 {
  59. gpio {
  60. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  61. ralink,function = "gpio";
  62. };
  63. };
  64. };
  65. &ethernet {
  66. mtd-mac-address = <&factory 0x4>;
  67. };
  68. &esw {
  69. mediatek,portmap = <0x2f>;
  70. };
  71. &wmac {
  72. ralink,mtd-eeprom = <&factory 0>;
  73. };
  74. &otg {
  75. status = "okay";
  76. };