kirkwood-nsa3x0-common.dtsi 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include "kirkwood.dtsi"
  3. #include "kirkwood-6281.dtsi"
  4. / {
  5. model = "ZyXEL NSA310";
  6. ocp@f1000000 {
  7. pinctrl: pin-controller@10000 {
  8. pmx_usb_power: pmx-usb-power {
  9. marvell,pins = "mpp21";
  10. marvell,function = "gpio";
  11. };
  12. pmx_pwr_off: pmx-pwr-off {
  13. marvell,pins = "mpp48";
  14. marvell,function = "gpio";
  15. };
  16. pmx_btn_reset: pmx-btn-reset {
  17. marvell,pins = "mpp36";
  18. marvell,function = "gpio";
  19. };
  20. pmx_btn_copy: pmx-btn-copy {
  21. marvell,pins = "mpp37";
  22. marvell,function = "gpio";
  23. };
  24. pmx_btn_power: pmx-btn-power {
  25. marvell,pins = "mpp46";
  26. marvell,function = "gpio";
  27. };
  28. pmx_led_copy_green: pmx-led-copy-green {
  29. marvell,pins = "mpp39";
  30. marvell,function = "gpio";
  31. };
  32. pmx_led_copy_red: pmx-led-copy-red {
  33. marvell,pins = "mpp40";
  34. marvell,function = "gpio";
  35. };
  36. };
  37. serial@12000 {
  38. status = "okay";
  39. };
  40. sata@80000 {
  41. status = "okay";
  42. nr-ports = <2>;
  43. };
  44. };
  45. gpio_poweroff {
  46. compatible = "gpio-poweroff";
  47. pinctrl-0 = <&pmx_pwr_off>;
  48. pinctrl-names = "default";
  49. gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
  50. };
  51. gpio_keys {
  52. compatible = "gpio-keys";
  53. #address-cells = <1>;
  54. #size-cells = <0>;
  55. pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
  56. pinctrl-names = "default";
  57. power {
  58. label = "Power Button";
  59. linux,code = <KEY_POWER>;
  60. gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
  61. };
  62. copy {
  63. label = "Copy Button";
  64. linux,code = <KEY_COPY>;
  65. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  66. };
  67. reset {
  68. label = "Reset Button";
  69. linux,code = <KEY_RESTART>;
  70. gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  71. };
  72. };
  73. regulators {
  74. compatible = "simple-bus";
  75. #address-cells = <1>;
  76. #size-cells = <0>;
  77. pinctrl-0 = <&pmx_usb_power>;
  78. pinctrl-names = "default";
  79. usb0_power: regulator@1 {
  80. compatible = "regulator-fixed";
  81. reg = <1>;
  82. regulator-name = "USB Power";
  83. regulator-min-microvolt = <5000000>;
  84. regulator-max-microvolt = <5000000>;
  85. regulator-always-on;
  86. regulator-boot-on;
  87. gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
  88. };
  89. };
  90. };
  91. &nand {
  92. status = "okay";
  93. chip-delay = <35>;
  94. partition@0 {
  95. label = "uboot";
  96. reg = <0x0000000 0x0100000>;
  97. read-only;
  98. };
  99. partition@100000 {
  100. label = "uboot_env";
  101. reg = <0x0100000 0x0080000>;
  102. };
  103. partition@180000 {
  104. label = "key_store";
  105. reg = <0x0180000 0x0080000>;
  106. };
  107. partition@200000 {
  108. label = "info";
  109. reg = <0x0200000 0x0080000>;
  110. };
  111. partition@280000 {
  112. label = "etc";
  113. reg = <0x0280000 0x0a00000>;
  114. };
  115. partition@c80000 {
  116. label = "kernel_1";
  117. reg = <0x0c80000 0x0a00000>;
  118. };
  119. partition@1680000 {
  120. label = "rootfs1";
  121. reg = <0x1680000 0x2fc0000>;
  122. };
  123. partition@4640000 {
  124. label = "kernel_2";
  125. reg = <0x4640000 0x0a00000>;
  126. };
  127. partition@5040000 {
  128. label = "rootfs2";
  129. reg = <0x5040000 0x2fc0000>;
  130. };
  131. };
  132. &pciec {
  133. status = "okay";
  134. };
  135. &pcie0 {
  136. status = "okay";
  137. };