dove-cubox.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /dts-v1/;
  2. /include/ "dove.dtsi"
  3. / {
  4. model = "SolidRun CuBox";
  5. compatible = "solidrun,cubox", "marvell,dove";
  6. memory {
  7. device_type = "memory";
  8. reg = <0x00000000 0x40000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,115200n8 earlyprintk";
  12. };
  13. leds {
  14. compatible = "gpio-leds";
  15. pinctrl-0 = <&pmx_gpio_18>;
  16. pinctrl-names = "default";
  17. power {
  18. label = "Power";
  19. gpios = <&gpio0 18 1>;
  20. linux,default-trigger = "default-on";
  21. };
  22. };
  23. regulators {
  24. compatible = "simple-bus";
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. usb_power: regulator@1 {
  28. compatible = "regulator-fixed";
  29. reg = <1>;
  30. regulator-name = "USB Power";
  31. regulator-min-microvolt = <5000000>;
  32. regulator-max-microvolt = <5000000>;
  33. enable-active-high;
  34. regulator-always-on;
  35. regulator-boot-on;
  36. gpio = <&gpio0 1 0>;
  37. };
  38. };
  39. clocks {
  40. /* 25MHz reference crystal */
  41. ref25: oscillator {
  42. compatible = "fixed-clock";
  43. #clock-cells = <0>;
  44. clock-frequency = <25000000>;
  45. };
  46. };
  47. };
  48. &uart0 { status = "okay"; };
  49. &sata0 { status = "okay"; };
  50. &i2c0 {
  51. status = "okay";
  52. clock-frequency = <100000>;
  53. si5351: clock-generator {
  54. compatible = "silabs,si5351a-msop";
  55. reg = <0x60>;
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. #clock-cells = <1>;
  59. /* connect xtal input to 25MHz reference */
  60. clocks = <&ref25>;
  61. /* connect xtal input as source of pll0 and pll1 */
  62. silabs,pll-source = <0 0>, <1 0>;
  63. clkout0 {
  64. reg = <0>;
  65. silabs,drive-strength = <8>;
  66. silabs,multisynth-source = <0>;
  67. silabs,clock-source = <0>;
  68. silabs,pll-master;
  69. };
  70. clkout1 {
  71. reg = <1>;
  72. silabs,drive-strength = <8>;
  73. silabs,multisynth-source = <1>;
  74. silabs,clock-source = <0>;
  75. silabs,pll-master;
  76. };
  77. clkout2 {
  78. reg = <2>;
  79. silabs,multisynth-source = <1>;
  80. silabs,clock-source = <0>;
  81. };
  82. };
  83. };
  84. &sdio0 {
  85. status = "okay";
  86. /* sdio0 card detect is connected to wrong pin on CuBox */
  87. cd-gpios = <&gpio0 12 1>;
  88. };
  89. &spi0 {
  90. status = "okay";
  91. /* spi0.0: 4M Flash Winbond W25Q32BV */
  92. spi-flash@0 {
  93. compatible = "st,w25q32";
  94. spi-max-frequency = <20000000>;
  95. reg = <0>;
  96. };
  97. };
  98. &pinctrl {
  99. pinctrl-0 = <&pmx_gpio_1 &pmx_gpio_12>;
  100. pinctrl-names = "default";
  101. pmx_gpio_1: pmx-gpio-1 {
  102. marvell,pins = "mpp1";
  103. marvell,function = "gpio";
  104. };
  105. pmx_gpio_12: pmx-gpio-12 {
  106. marvell,pins = "mpp12";
  107. marvell,function = "gpio";
  108. };
  109. pmx_gpio_18: pmx-gpio-18 {
  110. marvell,pins = "mpp18";
  111. marvell,function = "gpio";
  112. };
  113. };