kirkwood-nsa310-common.dtsi 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #include "kirkwood.dtsi"
  2. #include "kirkwood-6281.dtsi"
  3. / {
  4. model = "ZyXEL NSA310";
  5. ocp@f1000000 {
  6. pinctrl: pinctrl@10000 {
  7. pmx_usb_power_off: pmx-usb-power-off {
  8. marvell,pins = "mpp21";
  9. marvell,function = "gpio";
  10. };
  11. pmx_pwr_off: pmx-pwr-off {
  12. marvell,pins = "mpp48";
  13. marvell,function = "gpio";
  14. };
  15. };
  16. serial@12000 {
  17. status = "ok";
  18. };
  19. sata@80000 {
  20. status = "okay";
  21. nr-ports = <2>;
  22. };
  23. nand@3000000 {
  24. status = "okay";
  25. chip-delay = <35>;
  26. partition@0 {
  27. label = "uboot";
  28. reg = <0x0000000 0x0100000>;
  29. read-only;
  30. };
  31. partition@100000 {
  32. label = "uboot_env";
  33. reg = <0x0100000 0x0080000>;
  34. };
  35. partition@180000 {
  36. label = "key_store";
  37. reg = <0x0180000 0x0080000>;
  38. };
  39. partition@200000 {
  40. label = "info";
  41. reg = <0x0200000 0x0080000>;
  42. };
  43. partition@280000 {
  44. label = "etc";
  45. reg = <0x0280000 0x0a00000>;
  46. };
  47. partition@c80000 {
  48. label = "kernel_1";
  49. reg = <0x0c80000 0x0a00000>;
  50. };
  51. partition@1680000 {
  52. label = "rootfs1";
  53. reg = <0x1680000 0x2fc0000>;
  54. };
  55. partition@4640000 {
  56. label = "kernel_2";
  57. reg = <0x4640000 0x0a00000>;
  58. };
  59. partition@5040000 {
  60. label = "rootfs2";
  61. reg = <0x5040000 0x2fc0000>;
  62. };
  63. };
  64. pcie-controller {
  65. status = "okay";
  66. pcie@1,0 {
  67. status = "okay";
  68. };
  69. };
  70. };
  71. gpio_poweroff {
  72. compatible = "gpio-poweroff";
  73. pinctrl-0 = <&pmx_pwr_off>;
  74. pinctrl-names = "default";
  75. gpios = <&gpio1 16 0>;
  76. };
  77. regulators {
  78. compatible = "simple-bus";
  79. #address-cells = <1>;
  80. #size-cells = <0>;
  81. pinctrl-0 = <&pmx_usb_power_off>;
  82. pinctrl-names = "default";
  83. usb0_power_off: regulator@1 {
  84. compatible = "regulator-fixed";
  85. reg = <1>;
  86. regulator-name = "USB Power Off";
  87. regulator-min-microvolt = <5000000>;
  88. regulator-max-microvolt = <5000000>;
  89. regulator-always-on;
  90. regulator-boot-on;
  91. gpio = <&gpio0 21 0>;
  92. };
  93. };
  94. };