kirkwood-synology.dtsi 18 KB

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