Linux Audio

Check our new training course

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