1
0

CARAMBOLA.dts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "8devices,carambola", "ralink,rt3050-soc";
  7. model = "8devices Carambola";
  8. chosen {
  9. bootargs = "console=ttyS0,115200";
  10. };
  11. cfi@1f000000 {
  12. compatible = "cfi-flash";
  13. reg = <0x1f000000 0x800000>;
  14. bank-width = <2>;
  15. device-width = <2>;
  16. partitions {
  17. compatible = "fixed-partitions";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. partition@0 {
  21. label = "u-boot";
  22. reg = <0x0 0x30000>;
  23. read-only;
  24. };
  25. partition@30000 {
  26. label = "u-boot-env";
  27. reg = <0x30000 0x10000>;
  28. read-only;
  29. };
  30. factory: partition@40000 {
  31. label = "factory";
  32. reg = <0x40000 0x10000>;
  33. read-only;
  34. };
  35. partition@50000 {
  36. label = "firmware";
  37. reg = <0x50000 0x7b0000>;
  38. };
  39. };
  40. };
  41. i2c-gpio {
  42. compatible = "i2c-gpio";
  43. gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>;
  44. i2c-gpio,delay-us = <10>;
  45. };
  46. };
  47. &pinctrl {
  48. state_default: pinctrl0 {
  49. gpio {
  50. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  51. ralink,function = "gpio";
  52. };
  53. };
  54. };
  55. &ethernet {
  56. mtd-mac-address = <&factory 0x28>;
  57. };
  58. &esw {
  59. mediatek,portmap = <0x3f>;
  60. };
  61. &wmac {
  62. ralink,mtd-eeprom = <&factory 0>;
  63. };
  64. &otg {
  65. status = "okay";
  66. };