BC2.dts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. compatible = "denx,uimage";
  34. label = "firmware";
  35. reg = <0x50000 0x7b0000>;
  36. };
  37. };
  38. };
  39. leds {
  40. compatible = "gpio-leds";
  41. usb {
  42. label = "bc2:blue:usb";
  43. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  44. trigger-sources = <&otg_port1>;
  45. linux,default-trigger = "usbport";
  46. };
  47. };
  48. keys {
  49. compatible = "gpio-keys-polled";
  50. poll-interval = <20>;
  51. reset {
  52. label = "reset";
  53. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  54. linux,code = <KEY_RESTART>;
  55. };
  56. };
  57. };
  58. &pinctrl {
  59. state_default: pinctrl0 {
  60. gpio {
  61. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  62. ralink,function = "gpio";
  63. };
  64. };
  65. };
  66. &ethernet {
  67. mtd-mac-address = <&factory 0x4>;
  68. };
  69. &esw {
  70. mediatek,portmap = <0x2f>;
  71. };
  72. &wmac {
  73. ralink,mtd-eeprom = <&factory 0>;
  74. };
  75. &otg {
  76. status = "okay";
  77. };