vocore_vocore2.dts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2019 Mauro Condarelli <mc5686@mclink.it>
  4. */
  5. /dts-v1/;
  6. #include "mt7628a.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. / {
  9. compatible = "vocore,vocore2", "ralink,mt7628a-soc";
  10. model = "VoCore2";
  11. aliases {
  12. serial0 = &uart2;
  13. spi0 = &spi0;
  14. };
  15. memory@0 {
  16. device_type = "memory";
  17. reg = <0x0 0x08000000>;
  18. };
  19. leds {
  20. compatible = "gpio-leds";
  21. power {
  22. label = "vocore:power";
  23. gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
  24. default-state = "off";
  25. };
  26. };
  27. chosen {
  28. bootargs = "console=ttyS2,115200";
  29. stdout-path = &uart2;
  30. };
  31. };
  32. &pinctrl {
  33. state_default: pin_state {
  34. p0led {
  35. groups = "p0led_a";
  36. function = "led";
  37. };
  38. };
  39. };
  40. &uart2 {
  41. status = "okay";
  42. pinctrl-names = "default";
  43. pinctrl-0 = <&uart2_pwm_pins>;
  44. };
  45. &spi0 {
  46. status = "okay";
  47. nor0: spi-flash@0 {
  48. #address-cells = <1>;
  49. #size-cells = <1>;
  50. compatible = "jedec,spi-nor";
  51. spi-max-frequency = <25000000>;
  52. reg = <0>;
  53. };
  54. };
  55. &eth {
  56. status = "okay";
  57. pinctrl-names = "default";
  58. pinctrl-0 = <&ephy_iot_mode>;
  59. mediatek,poll-link-phy = <0>;
  60. };
  61. &mmc {
  62. status = "okay";
  63. bus-width = <4>;
  64. max-frequency = <48000000>;
  65. cap-sd-highspeed;
  66. cap-mmc-highspeed;
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&sd_iot_mode>;
  69. };