orion5x-kuroboxpro.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. * Device Tree file for Buffalo/Revogear Kurobox Pro
  3. *
  4. * Copyright (C) 2016
  5. * Roger Shimizu <[email protected]>
  6. *
  7. * Based on the board file arch/arm/mach-orion5x/kurobox_pro-setup.c
  8. * Copyright (C) Ronen Shitrit <[email protected]>
  9. *
  10. * This file is dual-licensed: you can use it either under the terms
  11. * of the GPL or the X11 license, at your option. Note that this dual
  12. * licensing only applies to this file, and not this project as a
  13. * whole.
  14. *
  15. * a) This file is free software; you can redistribute it and/or
  16. * modify it under the terms of the GNU General Public License as
  17. * published by the Free Software Foundation; either version 2 of the
  18. * License, or (at your option) any later version.
  19. *
  20. * This file is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU General Public License for more details.
  24. *
  25. * Or, alternatively,
  26. *
  27. * b) Permission is hereby granted, free of charge, to any person
  28. * obtaining a copy of this software and associated documentation
  29. * files (the "Software"), to deal in the Software without
  30. * restriction, including without limitation the rights to use,
  31. * copy, modify, merge, publish, distribute, sublicense, and/or
  32. * sell copies of the Software, and to permit persons to whom the
  33. * Software is furnished to do so, subject to the following
  34. * conditions:
  35. *
  36. * The above copyright notice and this permission notice shall be
  37. * included in all copies or substantial portions of the Software.
  38. *
  39. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  40. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  41. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  42. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  43. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  44. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  45. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  46. * OTHER DEALINGS IN THE SOFTWARE.
  47. */
  48. /dts-v1/;
  49. #include "orion5x-linkstation.dtsi"
  50. #include <dt-bindings/gpio/gpio.h>
  51. / {
  52. model = "Buffalo/Revogear Kurobox Pro";
  53. compatible = "buffalo,kurobox-pro", "marvell,orion5x-88f5182", "marvell,orion5x";
  54. soc {
  55. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
  56. <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
  57. <MBUS_ID(0x01, 0x0f) 0 0xf4000000 0x40000>,
  58. <MBUS_ID(0x01, 0x1e) 0 0xfc000000 0x1000000>;
  59. };
  60. memory { /* 128 MB */
  61. device_type = "memory";
  62. reg = <0x00000000 0x8000000>;
  63. };
  64. };
  65. &pinctrl {
  66. pmx_power_hdd: pmx-power-hdd {
  67. marvell,pins = "mpp1";
  68. marvell,function = "gpio";
  69. };
  70. pmx_power_usb: pmx-power-usb {
  71. marvell,pins = "mpp9";
  72. marvell,function = "gpio";
  73. };
  74. };
  75. &devbus_cs0 {
  76. status = "okay";
  77. compatible = "marvell,orion-nand";
  78. reg = <MBUS_ID(0x01, 0x1e) 0 0x400>;
  79. cle = <0>;
  80. ale = <1>;
  81. bank-width = <1>;
  82. partitions {
  83. compatible = "fixed-partitions";
  84. #address-cells = <1>;
  85. #size-cells = <1>;
  86. uImage@0 { /* 4 MB */
  87. reg = <0 0x400000>;
  88. read-only;
  89. };
  90. rootfs@400000 { /* 64 MB */
  91. reg = <0x400000 0x4000000>;
  92. read-only;
  93. };
  94. extra@4400000 { /* 188 MB */
  95. reg = <0x4400000 0xBC00000>;
  96. read-only;
  97. };
  98. };
  99. };
  100. &hdd_power {
  101. gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  102. };
  103. &usb_power {
  104. gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
  105. };
  106. &sata {
  107. nr-ports = <2>;
  108. };
  109. &ehci1 {
  110. status = "okay";
  111. };