kirkwood-t5325.dts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree file for HP t5325 Thin Client"
  4. *
  5. * Copyright (C) 2014
  6. *
  7. * Thomas Petazzoni <[email protected]>
  8. * Andrew Lunn <[email protected]>
  9. *
  10. */
  11. /dts-v1/;
  12. #include "kirkwood.dtsi"
  13. #include "kirkwood-6281.dtsi"
  14. / {
  15. model = "HP t5325 Thin Client";
  16. compatible = "hp,t5325", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  17. memory {
  18. device_type = "memory";
  19. reg = <0x00000000 0x20000000>;
  20. };
  21. chosen {
  22. bootargs = "console=ttyS0,115200n8";
  23. stdout-path = &uart0;
  24. };
  25. ocp@f1000000 {
  26. pinctrl: pin-controller@10000 {
  27. pinctrl-0 = <&pmx_i2s &pmx_sysrst>;
  28. pinctrl-names = "default";
  29. pmx_button_power: pmx-button_power {
  30. marvell,pins = "mpp45";
  31. marvell,function = "gpio";
  32. };
  33. pmx_power_off: pmx-power-off {
  34. marvell,pins = "mpp48";
  35. marvell,function = "gpio";
  36. };
  37. pmx_led: pmx-led {
  38. marvell,pins = "mpp21";
  39. marvell,function = "gpio";
  40. };
  41. pmx_usb_sata_power_enable: pmx-usb-sata-power-enable {
  42. marvell,pins = "mpp44";
  43. marvell,function = "gpio";
  44. };
  45. pmx_spi: pmx-spi {
  46. marvell,pins = "mpp1", "mpp2", "mpp3", "mpp7";
  47. marvell,function = "spi";
  48. };
  49. pmx_sysrst: pmx-sysrst {
  50. marvell,pins = "mpp6";
  51. marvell,function = "sysrst";
  52. };
  53. pmx_i2s: pmx-i2s {
  54. marvell,pins = "mpp39", "mpp40", "mpp41", "mpp42",
  55. "mpp43";
  56. marvell,function = "audio";
  57. };
  58. };
  59. spi@10600 {
  60. status = "okay";
  61. flash@0 {
  62. #address-cells = <1>;
  63. #size-cells = <1>;
  64. compatible = "st,m25p80", "jedec,spi-nor";
  65. spi-max-frequency = <86000000>;
  66. reg = <0>;
  67. mode = <0>;
  68. partition@0 {
  69. reg = <0x0 0x80000>;
  70. label = "u-boot";
  71. };
  72. partition@1 {
  73. reg = <0x80000 0x40000>;
  74. label = "SSD firmware";
  75. };
  76. partition@2 {
  77. reg = <0xc0000 0x10000>;
  78. label = "u-boot env";
  79. };
  80. partition@3 {
  81. reg = <0xd0000 0x10000>;
  82. label = "permanent u-boot env";
  83. };
  84. partition@4 {
  85. reg = <0xd0000 0x10000>;
  86. label = "permanent u-boot env";
  87. };
  88. };
  89. };
  90. i2c@11000 {
  91. status = "okay";
  92. alc5621: alc5621@1a {
  93. compatible = "realtek,alc5621";
  94. reg = <0x1a>;
  95. #sound-dai-cells = <0>;
  96. add-ctrl = <0x3700>;
  97. jack-det-ctrl = <0x4810>;
  98. };
  99. };
  100. serial@12000 {
  101. status = "okay";
  102. };
  103. sata@80000 {
  104. status = "okay";
  105. nr-ports = <2>;
  106. };
  107. audio: audio-controller@a0000 {
  108. status = "okay";
  109. };
  110. };
  111. regulators {
  112. compatible = "simple-bus";
  113. #address-cells = <1>;
  114. #size-cells = <0>;
  115. pinctrl-0 = <&pmx_usb_sata_power_enable>;
  116. pinctrl-names = "default";
  117. usb_power: regulator@1 {
  118. compatible = "regulator-fixed";
  119. reg = <1>;
  120. regulator-name = "USB-SATA Power";
  121. regulator-min-microvolt = <5000000>;
  122. regulator-max-microvolt = <5000000>;
  123. enable-active-high;
  124. regulator-always-on;
  125. regulator-boot-on;
  126. gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
  127. };
  128. };
  129. gpio_keys {
  130. compatible = "gpio-keys";
  131. #address-cells = <1>;
  132. #size-cells = <0>;
  133. pinctrl-0 = <&pmx_button_power>;
  134. pinctrl-names = "default";
  135. power {
  136. label = "Power Button";
  137. linux,code = <KEY_POWER>;
  138. gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
  139. };
  140. };
  141. gpio_poweroff {
  142. compatible = "gpio-poweroff";
  143. pinctrl-0 = <&pmx_power_off>;
  144. pinctrl-names = "default";
  145. gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
  146. };
  147. sound {
  148. compatible = "simple-audio-card";
  149. simple-audio-card,format = "i2s";
  150. simple-audio-card,routing =
  151. "Headphone Jack", "HPL",
  152. "Headphone Jack", "HPR",
  153. "Speaker", "SPKOUT",
  154. "Speaker", "SPKOUTN",
  155. "MIC1", "Mic Jack",
  156. "MIC2", "Mic Jack";
  157. simple-audio-card,widgets =
  158. "Headphone", "Headphone Jack",
  159. "Speaker", "Speaker",
  160. "Microphone", "Mic Jack";
  161. simple-audio-card,mclk-fs = <256>;
  162. simple-audio-card,cpu {
  163. sound-dai = <&audio>;
  164. };
  165. simple-audio-card,codec {
  166. sound-dai = <&alc5621>;
  167. };
  168. };
  169. };
  170. &mdio {
  171. status = "okay";
  172. ethphy0: ethernet-phy@8 {
  173. device_type = "ethernet-phy";
  174. reg = <8>;
  175. };
  176. };
  177. &eth0 {
  178. status = "okay";
  179. ethernet0-port@0 {
  180. phy-handle = <&ethphy0>;
  181. };
  182. };
  183. &pciec {
  184. status = "okay";
  185. };
  186. &pcie0 {
  187. status = "okay";
  188. };