kirkwood-synology.dtsi 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Nodes for Marvell 628x Synology devices
  4. *
  5. * Andrew Lunn <[email protected]>
  6. * Ben Peddell <[email protected]>
  7. *
  8. */
  9. / {
  10. ocp@f1000000 {
  11. pinctrl: pin-controller@10000 {
  12. pmx_alarmled_12: pmx-alarmled-12 {
  13. marvell,pins = "mpp12";
  14. marvell,function = "gpio";
  15. };
  16. pmx_fanctrl_15: pmx-fanctrl-15 {
  17. marvell,pins = "mpp15";
  18. marvell,function = "gpio";
  19. };
  20. pmx_fanctrl_16: pmx-fanctrl-16 {
  21. marvell,pins = "mpp16";
  22. marvell,function = "gpio";
  23. };
  24. pmx_fanctrl_17: pmx-fanctrl-17 {
  25. marvell,pins = "mpp17";
  26. marvell,function = "gpio";
  27. };
  28. pmx_fanalarm_18: pmx-fanalarm-18 {
  29. marvell,pins = "mpp18";
  30. marvell,function = "gpo";
  31. };
  32. pmx_hddled_20: pmx-hddled-20 {
  33. marvell,pins = "mpp20";
  34. marvell,function = "gpio";
  35. };
  36. pmx_hddled_21: pmx-hddled-21 {
  37. marvell,pins = "mpp21";
  38. marvell,function = "gpio";
  39. };
  40. pmx_hddled_22: pmx-hddled-22 {
  41. marvell,pins = "mpp22";
  42. marvell,function = "gpio";
  43. };
  44. pmx_hddled_23: pmx-hddled-23 {
  45. marvell,pins = "mpp23";
  46. marvell,function = "gpio";
  47. };
  48. pmx_hddled_24: pmx-hddled-24 {
  49. marvell,pins = "mpp24";
  50. marvell,function = "gpio";
  51. };
  52. pmx_hddled_25: pmx-hddled-25 {
  53. marvell,pins = "mpp25";
  54. marvell,function = "gpio";
  55. };
  56. pmx_hddled_26: pmx-hddled-26 {
  57. marvell,pins = "mpp26";
  58. marvell,function = "gpio";
  59. };
  60. pmx_hddled_27: pmx-hddled-27 {
  61. marvell,pins = "mpp27";
  62. marvell,function = "gpio";
  63. };
  64. pmx_hddled_28: pmx-hddled-28 {
  65. marvell,pins = "mpp28";
  66. marvell,function = "gpio";
  67. };
  68. pmx_hdd1_pwr_29: pmx-hdd1-pwr-29 {
  69. marvell,pins = "mpp29";
  70. marvell,function = "gpio";
  71. };
  72. pmx_hdd1_pwr_30: pmx-hdd-pwr-30 {
  73. marvell,pins = "mpp30";
  74. marvell,function = "gpio";
  75. };
  76. pmx_hdd2_pwr_31: pmx-hdd2-pwr-31 {
  77. marvell,pins = "mpp31";
  78. marvell,function = "gpio";
  79. };
  80. pmx_fanctrl_32: pmx-fanctrl-32 {
  81. marvell,pins = "mpp32";
  82. marvell,function = "gpio";
  83. };
  84. pmx_fanctrl_33: pmx-fanctrl-33 {
  85. marvell,pins = "mpp33";
  86. marvell,function = "gpo";
  87. };
  88. pmx_fanctrl_34: pmx-fanctrl-34 {
  89. marvell,pins = "mpp34";
  90. marvell,function = "gpio";
  91. };
  92. pmx_hdd2_pwr_34: pmx-hdd2-pwr-34 {
  93. marvell,pins = "mpp34";
  94. marvell,function = "gpio";
  95. };
  96. pmx_fanalarm_35: pmx-fanalarm-35 {
  97. marvell,pins = "mpp35";
  98. marvell,function = "gpio";
  99. };
  100. pmx_hddled_36: pmx-hddled-36 {
  101. marvell,pins = "mpp36";
  102. marvell,function = "gpio";
  103. };
  104. pmx_hddled_37: pmx-hddled-37 {
  105. marvell,pins = "mpp37";
  106. marvell,function = "gpio";
  107. };
  108. pmx_hddled_38: pmx-hddled-38 {
  109. marvell,pins = "mpp38";
  110. marvell,function = "gpio";
  111. };
  112. pmx_hddled_39: pmx-hddled-39 {
  113. marvell,pins = "mpp39";
  114. marvell,function = "gpio";
  115. };
  116. pmx_hddled_40: pmx-hddled-40 {
  117. marvell,pins = "mpp40";
  118. marvell,function = "gpio";
  119. };
  120. pmx_hddled_41: pmx-hddled-41 {
  121. marvell,pins = "mpp41";
  122. marvell,function = "gpio";
  123. };
  124. pmx_hddled_42: pmx-hddled-42 {
  125. marvell,pins = "mpp42";
  126. marvell,function = "gpio";
  127. };
  128. pmx_hddled_43: pmx-hddled-43 {
  129. marvell,pins = "mpp43";
  130. marvell,function = "gpio";
  131. };
  132. pmx_hddled_44: pmx-hddled-44 {
  133. marvell,pins = "mpp44";
  134. marvell,function = "gpio";
  135. };
  136. pmx_hddled_45: pmx-hddled-45 {
  137. marvell,pins = "mpp45";
  138. marvell,function = "gpio";
  139. };
  140. pmx_hdd3_pwr_44: pmx-hdd3-pwr-44 {
  141. marvell,pins = "mpp44";
  142. marvell,function = "gpio";
  143. };
  144. pmx_hdd4_pwr_45: pmx-hdd4-pwr-45 {
  145. marvell,pins = "mpp45";
  146. marvell,function = "gpio";
  147. };
  148. pmx_fanalarm_44: pmx-fanalarm-44 {
  149. marvell,pins = "mpp44";
  150. marvell,function = "gpio";
  151. };
  152. pmx_fanalarm_45: pmx-fanalarm-45 {
  153. marvell,pins = "mpp45";
  154. marvell,function = "gpio";
  155. };
  156. };
  157. rtc@10300 {
  158. status = "disabled";
  159. };
  160. spi@10600 {
  161. status = "okay";
  162. flash@0 {
  163. #address-cells = <1>;
  164. #size-cells = <1>;
  165. compatible = "st,m25p80", "jedec,spi-nor";
  166. reg = <0>;
  167. spi-max-frequency = <20000000>;
  168. mode = <0>;
  169. partition@0 {
  170. reg = <0x00000000 0x00080000>;
  171. label = "RedBoot";
  172. };
  173. partition@80000 {
  174. reg = <0x00080000 0x00200000>;
  175. label = "zImage";
  176. };
  177. partition@280000 {
  178. reg = <0x00280000 0x00140000>;
  179. label = "rd.gz";
  180. };
  181. partition@3c0000 {
  182. reg = <0x003c0000 0x00010000>;
  183. label = "vendor";
  184. };
  185. partition@3d0000 {
  186. reg = <0x003d0000 0x00020000>;
  187. label = "RedBoot config";
  188. };
  189. partition@3f0000 {
  190. reg = <0x003f0000 0x00010000>;
  191. label = "FIS directory";
  192. };
  193. };
  194. };
  195. i2c@11000 {
  196. status = "okay";
  197. clock-frequency = <400000>;
  198. rs5c372: rs5c372@32 {
  199. status = "disabled";
  200. compatible = "ricoh,rs5c372a";
  201. reg = <0x32>;
  202. };
  203. s35390a: s35390a@30 {
  204. status = "disabled";
  205. compatible = "sii,s35390a";
  206. reg = <0x30>;
  207. };
  208. };
  209. serial@12000 {
  210. status = "okay";
  211. };
  212. serial@12100 {
  213. status = "okay";
  214. };
  215. poweroff@12100 {
  216. compatible = "synology,power-off";
  217. reg = <0x12100 0x100>;
  218. clocks = <&gate_clk 7>;
  219. };
  220. sata@80000 {
  221. pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
  222. pinctrl-names = "default";
  223. status = "okay";
  224. nr-ports = <2>;
  225. };
  226. };
  227. gpio-fan-150-32-35 {
  228. status = "disabled";
  229. compatible = "gpio-fan";
  230. pinctrl-0 = <&pmx_fanctrl_32 &pmx_fanctrl_33 &pmx_fanctrl_34
  231. &pmx_fanalarm_35>;
  232. pinctrl-names = "default";
  233. gpios = <&gpio1 0 GPIO_ACTIVE_HIGH
  234. &gpio1 1 GPIO_ACTIVE_HIGH
  235. &gpio1 2 GPIO_ACTIVE_HIGH>;
  236. gpio-fan,speed-map = < 0 0
  237. 2200 1
  238. 2500 2
  239. 3000 4
  240. 3300 3
  241. 3700 5
  242. 3800 6
  243. 4200 7 >;
  244. };
  245. gpio-fan-150-15-18 {
  246. status = "disabled";
  247. compatible = "gpio-fan";
  248. pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
  249. &pmx_fanalarm_18>;
  250. pinctrl-names = "default";
  251. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH
  252. &gpio0 16 GPIO_ACTIVE_HIGH
  253. &gpio0 17 GPIO_ACTIVE_HIGH>;
  254. alarm-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
  255. gpio-fan,speed-map = < 0 0
  256. 2200 1
  257. 2500 2
  258. 3000 4
  259. 3300 3
  260. 3700 5
  261. 3800 6
  262. 4200 7 >;
  263. };
  264. gpio-fan-100-32-35 {
  265. status = "disabled";
  266. compatible = "gpio-fan";
  267. pinctrl-0 = <&pmx_fanctrl_32 &pmx_fanctrl_33 &pmx_fanctrl_34
  268. &pmx_fanalarm_35>;
  269. pinctrl-names = "default";
  270. gpios = <&gpio1 0 GPIO_ACTIVE_HIGH
  271. &gpio1 1 GPIO_ACTIVE_HIGH
  272. &gpio1 2 GPIO_ACTIVE_HIGH>;
  273. alarm-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
  274. gpio-fan,speed-map = < 0 0
  275. 2500 1
  276. 3100 2
  277. 3800 3
  278. 4600 4
  279. 4800 5
  280. 4900 6
  281. 5000 7 >;
  282. };
  283. gpio-fan-100-15-18 {
  284. status = "disabled";
  285. compatible = "gpio-fan";
  286. pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
  287. &pmx_fanalarm_18>;
  288. pinctrl-names = "default";
  289. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH
  290. &gpio0 16 GPIO_ACTIVE_HIGH
  291. &gpio0 17 GPIO_ACTIVE_HIGH>;
  292. alarm-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
  293. gpio-fan,speed-map = < 0 0
  294. 2500 1
  295. 3100 2
  296. 3800 3
  297. 4600 4
  298. 4800 5
  299. 4900 6
  300. 5000 7 >;
  301. };
  302. gpio-fan-100-15-35-1 {
  303. status = "disabled";
  304. compatible = "gpio-fan";
  305. pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
  306. &pmx_fanalarm_35>;
  307. pinctrl-names = "default";
  308. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH
  309. &gpio0 16 GPIO_ACTIVE_HIGH
  310. &gpio0 17 GPIO_ACTIVE_HIGH>;
  311. alarm-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
  312. gpio-fan,speed-map = < 0 0
  313. 2500 1
  314. 3100 2
  315. 3800 3
  316. 4600 4
  317. 4800 5
  318. 4900 6
  319. 5000 7 >;
  320. };
  321. gpio-fan-100-15-35-3 {
  322. status = "disabled";
  323. compatible = "gpio-fan";
  324. pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
  325. &pmx_fanalarm_35 &pmx_fanalarm_44 &pmx_fanalarm_45>;
  326. pinctrl-names = "default";
  327. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH
  328. &gpio0 16 GPIO_ACTIVE_HIGH
  329. &gpio0 17 GPIO_ACTIVE_HIGH>;
  330. alarm-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH
  331. &gpio1 12 GPIO_ACTIVE_HIGH
  332. &gpio1 13 GPIO_ACTIVE_HIGH>;
  333. gpio-fan,speed-map = < 0 0
  334. 2500 1
  335. 3100 2
  336. 3800 3
  337. 4600 4
  338. 4800 5
  339. 4900 6
  340. 5000 7 >;
  341. };
  342. gpio-leds-alarm-12 {
  343. status = "disabled";
  344. compatible = "gpio-leds";
  345. pinctrl-0 = <&pmx_alarmled_12>;
  346. pinctrl-names = "default";
  347. hdd1-green {
  348. label = "synology:alarm";
  349. gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
  350. };
  351. };
  352. gpio-leds-hdd-20 {
  353. status = "disabled";
  354. compatible = "gpio-leds";
  355. pinctrl-0 = <&pmx_hddled_20 &pmx_hddled_21 &pmx_hddled_22
  356. &pmx_hddled_23 &pmx_hddled_24 &pmx_hddled_25
  357. &pmx_hddled_26 &pmx_hddled_27>;
  358. pinctrl-names = "default";
  359. hdd1-green {
  360. label = "synology:green:hdd1";
  361. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  362. };
  363. hdd1-amber {
  364. label = "synology:amber:hdd1";
  365. gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
  366. };
  367. hdd2-green {
  368. label = "synology:green:hdd2";
  369. gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
  370. };
  371. hdd2-amber {
  372. label = "synology:amber:hdd2";
  373. gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
  374. };
  375. hdd3-green {
  376. label = "synology:green:hdd3";
  377. gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
  378. };
  379. hdd3-amber {
  380. label = "synology:amber:hdd3";
  381. gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
  382. };
  383. hdd4-green {
  384. label = "synology:green:hdd4";
  385. gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
  386. };
  387. hdd4-amber {
  388. label = "synology:amber:hdd4";
  389. gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
  390. };
  391. };
  392. gpio-leds-hdd-21-1 {
  393. status = "disabled";
  394. compatible = "gpio-leds";
  395. pinctrl-0 = <&pmx_hddled_21 &pmx_hddled_23>;
  396. pinctrl-names = "default";
  397. hdd1-green {
  398. label = "synology:green:hdd1";
  399. gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
  400. };
  401. hdd1-amber {
  402. label = "synology:amber:hdd1";
  403. gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
  404. };
  405. };
  406. gpio-leds-hdd-21-2 {
  407. status = "disabled";
  408. compatible = "gpio-leds";
  409. pinctrl-0 = <&pmx_hddled_21 &pmx_hddled_23 &pmx_hddled_20 &pmx_hddled_22>;
  410. pinctrl-names = "default";
  411. hdd1-green {
  412. label = "synology:green:hdd1";
  413. gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
  414. };
  415. hdd1-amber {
  416. label = "synology:amber:hdd1";
  417. gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
  418. };
  419. hdd2-green {
  420. label = "synology:green:hdd2";
  421. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  422. };
  423. hdd2-amber {
  424. label = "synology:amber:hdd2";
  425. gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
  426. };
  427. };
  428. gpio-leds-hdd-36 {
  429. status = "disabled";
  430. compatible = "gpio-leds";
  431. pinctrl-0 = <&pmx_hddled_36 &pmx_hddled_37 &pmx_hddled_38
  432. &pmx_hddled_39 &pmx_hddled_40 &pmx_hddled_41
  433. &pmx_hddled_42 &pmx_hddled_43 &pmx_hddled_44
  434. &pmx_hddled_45>;
  435. pinctrl-names = "default";
  436. hdd1-green {
  437. label = "synology:green:hdd1";
  438. gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  439. };
  440. hdd1-amber {
  441. label = "synology:amber:hdd1";
  442. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  443. };
  444. hdd2-green {
  445. label = "synology:green:hdd2";
  446. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  447. };
  448. hdd2-amber {
  449. label = "synology:amber:hdd2";
  450. gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
  451. };
  452. hdd3-green {
  453. label = "synology:green:hdd3";
  454. gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
  455. };
  456. hdd3-amber {
  457. label = "synology:amber:hdd3";
  458. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  459. };
  460. hdd4-green {
  461. label = "synology:green:hdd4";
  462. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
  463. };
  464. hdd4-amber {
  465. label = "synology:amber:hdd4";
  466. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  467. };
  468. hdd5-green {
  469. label = "synology:green:hdd5";
  470. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  471. };
  472. hdd5-amber {
  473. label = "synology:amber:hdd5";
  474. gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
  475. };
  476. };
  477. gpio-leds-hdd-38 {
  478. status = "disabled";
  479. compatible = "gpio-leds";
  480. pinctrl-0 = <&pmx_hddled_38 &pmx_hddled_39 &pmx_hddled_36 &pmx_hddled_37>;
  481. pinctrl-names = "default";
  482. hdd1-green {
  483. label = "synology:green:hdd1";
  484. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  485. };
  486. hdd1-amber {
  487. label = "synology:amber:hdd1";
  488. gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
  489. };
  490. hdd2-green {
  491. label = "synology:green:hdd2";
  492. gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  493. };
  494. hdd2-amber {
  495. label = "synology:amber:hdd2";
  496. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  497. };
  498. };
  499. regulators-hdd-29 {
  500. status = "disabled";
  501. compatible = "simple-bus";
  502. #address-cells = <1>;
  503. #size-cells = <0>;
  504. pinctrl-0 = <&pmx_hdd1_pwr_29 &pmx_hdd2_pwr_31>;
  505. pinctrl-names = "default";
  506. regulator@1 {
  507. compatible = "regulator-fixed";
  508. reg = <1>;
  509. regulator-name = "hdd1power";
  510. regulator-min-microvolt = <5000000>;
  511. regulator-max-microvolt = <5000000>;
  512. enable-active-high;
  513. regulator-always-on;
  514. regulator-boot-on;
  515. startup-delay-us = <5000000>;
  516. gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  517. };
  518. regulator@2 {
  519. compatible = "regulator-fixed";
  520. reg = <2>;
  521. regulator-name = "hdd2power";
  522. regulator-min-microvolt = <5000000>;
  523. regulator-max-microvolt = <5000000>;
  524. enable-active-high;
  525. regulator-always-on;
  526. regulator-boot-on;
  527. startup-delay-us = <5000000>;
  528. gpio = <&gpio0 31 GPIO_ACTIVE_HIGH>;
  529. };
  530. };
  531. regulators-hdd-30-1 {
  532. status = "disabled";
  533. compatible = "simple-bus";
  534. #address-cells = <1>;
  535. #size-cells = <0>;
  536. pinctrl-0 = <&pmx_hdd1_pwr_30>;
  537. pinctrl-names = "default";
  538. regulator@1 {
  539. compatible = "regulator-fixed";
  540. reg = <1>;
  541. regulator-name = "hdd1power";
  542. regulator-min-microvolt = <5000000>;
  543. regulator-max-microvolt = <5000000>;
  544. enable-active-high;
  545. regulator-always-on;
  546. regulator-boot-on;
  547. startup-delay-us = <5000000>;
  548. gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
  549. };
  550. };
  551. regulators-hdd-30-2 {
  552. status = "disabled";
  553. compatible = "simple-bus";
  554. #address-cells = <1>;
  555. #size-cells = <0>;
  556. pinctrl-0 = <&pmx_hdd1_pwr_30 &pmx_hdd2_pwr_34>;
  557. pinctrl-names = "default";
  558. regulator@1 {
  559. compatible = "regulator-fixed";
  560. reg = <1>;
  561. regulator-name = "hdd1power";
  562. regulator-min-microvolt = <5000000>;
  563. regulator-max-microvolt = <5000000>;
  564. enable-active-high;
  565. regulator-always-on;
  566. regulator-boot-on;
  567. startup-delay-us = <5000000>;
  568. gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
  569. };
  570. regulator@2 {
  571. compatible = "regulator-fixed";
  572. reg = <2>;
  573. regulator-name = "hdd2power";
  574. regulator-min-microvolt = <5000000>;
  575. regulator-max-microvolt = <5000000>;
  576. enable-active-high;
  577. regulator-always-on;
  578. regulator-boot-on;
  579. startup-delay-us = <5000000>;
  580. gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
  581. };
  582. };
  583. regulators-hdd-30-4 {
  584. status = "disabled";
  585. compatible = "simple-bus";
  586. #address-cells = <1>;
  587. #size-cells = <0>;
  588. pinctrl-0 = <&pmx_hdd1_pwr_30 &pmx_hdd2_pwr_34
  589. &pmx_hdd3_pwr_44 &pmx_hdd4_pwr_45>;
  590. pinctrl-names = "default";
  591. regulator@1 {
  592. compatible = "regulator-fixed";
  593. reg = <1>;
  594. regulator-name = "hdd1power";
  595. regulator-min-microvolt = <5000000>;
  596. regulator-max-microvolt = <5000000>;
  597. enable-active-high;
  598. regulator-always-on;
  599. regulator-boot-on;
  600. startup-delay-us = <5000000>;
  601. gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
  602. };
  603. regulator@2 {
  604. compatible = "regulator-fixed";
  605. reg = <2>;
  606. regulator-name = "hdd2power";
  607. regulator-min-microvolt = <5000000>;
  608. regulator-max-microvolt = <5000000>;
  609. enable-active-high;
  610. regulator-always-on;
  611. regulator-boot-on;
  612. startup-delay-us = <5000000>;
  613. gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
  614. };
  615. regulator@3 {
  616. compatible = "regulator-fixed";
  617. reg = <3>;
  618. regulator-name = "hdd3power";
  619. regulator-min-microvolt = <5000000>;
  620. regulator-max-microvolt = <5000000>;
  621. enable-active-high;
  622. regulator-always-on;
  623. regulator-boot-on;
  624. startup-delay-us = <5000000>;
  625. gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
  626. };
  627. regulator@4 {
  628. compatible = "regulator-fixed";
  629. reg = <4>;
  630. regulator-name = "hdd4power";
  631. regulator-min-microvolt = <5000000>;
  632. regulator-max-microvolt = <5000000>;
  633. enable-active-high;
  634. regulator-always-on;
  635. regulator-boot-on;
  636. startup-delay-us = <5000000>;
  637. gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
  638. };
  639. };
  640. regulators-hdd-31 {
  641. status = "disabled";
  642. compatible = "simple-bus";
  643. #address-cells = <1>;
  644. #size-cells = <0>;
  645. pinctrl-0 = <&pmx_hdd2_pwr_31>;
  646. pinctrl-names = "default";
  647. regulator@1 {
  648. compatible = "regulator-fixed";
  649. reg = <1>;
  650. regulator-name = "hdd2power";
  651. regulator-min-microvolt = <5000000>;
  652. regulator-max-microvolt = <5000000>;
  653. enable-active-high;
  654. regulator-always-on;
  655. regulator-boot-on;
  656. startup-delay-us = <5000000>;
  657. gpio = <&gpio0 31 GPIO_ACTIVE_HIGH>;
  658. };
  659. };
  660. regulators-hdd-34 {
  661. status = "disabled";
  662. compatible = "simple-bus";
  663. #address-cells = <1>;
  664. #size-cells = <0>;
  665. pinctrl-0 = <&pmx_hdd2_pwr_34 &pmx_hdd3_pwr_44
  666. &pmx_hdd4_pwr_45>;
  667. pinctrl-names = "default";
  668. regulator@2 {
  669. compatible = "regulator-fixed";
  670. reg = <2>;
  671. regulator-name = "hdd2power";
  672. regulator-min-microvolt = <5000000>;
  673. regulator-max-microvolt = <5000000>;
  674. enable-active-high;
  675. regulator-always-on;
  676. regulator-boot-on;
  677. startup-delay-us = <5000000>;
  678. gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
  679. };
  680. regulator@3 {
  681. compatible = "regulator-fixed";
  682. reg = <3>;
  683. regulator-name = "hdd3power";
  684. regulator-min-microvolt = <5000000>;
  685. regulator-max-microvolt = <5000000>;
  686. enable-active-high;
  687. regulator-always-on;
  688. regulator-boot-on;
  689. startup-delay-us = <5000000>;
  690. gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
  691. };
  692. regulator@4 {
  693. compatible = "regulator-fixed";
  694. reg = <4>;
  695. regulator-name = "hdd4power";
  696. regulator-min-microvolt = <5000000>;
  697. regulator-max-microvolt = <5000000>;
  698. enable-active-high;
  699. regulator-always-on;
  700. regulator-boot-on;
  701. startup-delay-us = <5000000>;
  702. gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
  703. };
  704. };
  705. };
  706. &mdio {
  707. status = "okay";
  708. ethphy0: ethernet-phy@0 {
  709. device_type = "ethernet-phy";
  710. reg = <8>;
  711. };
  712. ethphy1: ethernet-phy@1 {
  713. device_type = "ethernet-phy";
  714. reg = <9>;
  715. };
  716. };
  717. &eth0 {
  718. status = "okay";
  719. ethernet0-port@0 {
  720. phy-handle = <&ethphy0>;
  721. };
  722. };
  723. &eth1 {
  724. status = "disabled";
  725. ethernet1-port@0 {
  726. phy-handle = <&ethphy1>;
  727. };
  728. };
  729. &pciec {
  730. status = "okay";
  731. };
  732. &pcie0 {
  733. status = "okay";
  734. };