1 // SPDX-License-Identifier: GPL-2.0
3 * Nodes for Marvell 628x Synology devices
5 * Andrew Lunn <andrew@lunn.ch>
6 * Ben Peddell <klightspeed@killerwolves.net>
12 pinctrl: pin-controller@10000 {
13 pmx_alarmled_12: pmx-alarmled-12 {
14 marvell,pins = "mpp12";
15 marvell,function = "gpio";
18 pmx_fanctrl_15: pmx-fanctrl-15 {
19 marvell,pins = "mpp15";
20 marvell,function = "gpio";
23 pmx_fanctrl_16: pmx-fanctrl-16 {
24 marvell,pins = "mpp16";
25 marvell,function = "gpio";
28 pmx_fanctrl_17: pmx-fanctrl-17 {
29 marvell,pins = "mpp17";
30 marvell,function = "gpio";
33 pmx_fanalarm_18: pmx-fanalarm-18 {
34 marvell,pins = "mpp18";
35 marvell,function = "gpo";
38 pmx_hddled_20: pmx-hddled-20 {
39 marvell,pins = "mpp20";
40 marvell,function = "gpio";
43 pmx_hddled_21: pmx-hddled-21 {
44 marvell,pins = "mpp21";
45 marvell,function = "gpio";
48 pmx_hddled_22: pmx-hddled-22 {
49 marvell,pins = "mpp22";
50 marvell,function = "gpio";
53 pmx_hddled_23: pmx-hddled-23 {
54 marvell,pins = "mpp23";
55 marvell,function = "gpio";
58 pmx_hddled_24: pmx-hddled-24 {
59 marvell,pins = "mpp24";
60 marvell,function = "gpio";
63 pmx_hddled_25: pmx-hddled-25 {
64 marvell,pins = "mpp25";
65 marvell,function = "gpio";
68 pmx_hddled_26: pmx-hddled-26 {
69 marvell,pins = "mpp26";
70 marvell,function = "gpio";
73 pmx_hddled_27: pmx-hddled-27 {
74 marvell,pins = "mpp27";
75 marvell,function = "gpio";
78 pmx_hddled_28: pmx-hddled-28 {
79 marvell,pins = "mpp28";
80 marvell,function = "gpio";
83 pmx_hdd1_pwr_29: pmx-hdd1-pwr-29 {
84 marvell,pins = "mpp29";
85 marvell,function = "gpio";
88 pmx_hdd1_pwr_30: pmx-hdd-pwr-30 {
89 marvell,pins = "mpp30";
90 marvell,function = "gpio";
93 pmx_hdd2_pwr_31: pmx-hdd2-pwr-31 {
94 marvell,pins = "mpp31";
95 marvell,function = "gpio";
98 pmx_fanctrl_32: pmx-fanctrl-32 {
99 marvell,pins = "mpp32";
100 marvell,function = "gpio";
103 pmx_fanctrl_33: pmx-fanctrl-33 {
104 marvell,pins = "mpp33";
105 marvell,function = "gpo";
108 pmx_fanctrl_34: pmx-fanctrl-34 {
109 marvell,pins = "mpp34";
110 marvell,function = "gpio";
113 pmx_hdd2_pwr_34: pmx-hdd2-pwr-34 {
114 marvell,pins = "mpp34";
115 marvell,function = "gpio";
118 pmx_fanalarm_35: pmx-fanalarm-35 {
119 marvell,pins = "mpp35";
120 marvell,function = "gpio";
123 pmx_hddled_36: pmx-hddled-36 {
124 marvell,pins = "mpp36";
125 marvell,function = "gpio";
128 pmx_hddled_37: pmx-hddled-37 {
129 marvell,pins = "mpp37";
130 marvell,function = "gpio";
133 pmx_hddled_38: pmx-hddled-38 {
134 marvell,pins = "mpp38";
135 marvell,function = "gpio";
138 pmx_hddled_39: pmx-hddled-39 {
139 marvell,pins = "mpp39";
140 marvell,function = "gpio";
143 pmx_hddled_40: pmx-hddled-40 {
144 marvell,pins = "mpp40";
145 marvell,function = "gpio";
148 pmx_hddled_41: pmx-hddled-41 {
149 marvell,pins = "mpp41";
150 marvell,function = "gpio";
153 pmx_hddled_42: pmx-hddled-42 {
154 marvell,pins = "mpp42";
155 marvell,function = "gpio";
158 pmx_hddled_43: pmx-hddled-43 {
159 marvell,pins = "mpp43";
160 marvell,function = "gpio";
163 pmx_hddled_44: pmx-hddled-44 {
164 marvell,pins = "mpp44";
165 marvell,function = "gpio";
168 pmx_hddled_45: pmx-hddled-45 {
169 marvell,pins = "mpp45";
170 marvell,function = "gpio";
173 pmx_hdd3_pwr_44: pmx-hdd3-pwr-44 {
174 marvell,pins = "mpp44";
175 marvell,function = "gpio";
178 pmx_hdd4_pwr_45: pmx-hdd4-pwr-45 {
179 marvell,pins = "mpp45";
180 marvell,function = "gpio";
183 pmx_fanalarm_44: pmx-fanalarm-44 {
184 marvell,pins = "mpp44";
185 marvell,function = "gpio";
188 pmx_fanalarm_45: pmx-fanalarm-45 {
189 marvell,pins = "mpp45";
190 marvell,function = "gpio";
202 #address-cells = <1>;
204 compatible = "st,m25p80", "jedec,spi-nor";
206 spi-max-frequency = <20000000>;
210 reg = <0x00000000 0x00080000>;
215 reg = <0x00080000 0x00200000>;
220 reg = <0x00280000 0x00140000>;
225 reg = <0x003c0000 0x00010000>;
230 reg = <0x003d0000 0x00020000>;
231 label = "RedBoot config";
235 reg = <0x003f0000 0x00010000>;
236 label = "FIS directory";
243 clock-frequency = <400000>;
245 rs5c372: rs5c372@32 {
247 compatible = "ricoh,rs5c372a";
251 s35390a: s35390a@30 {
253 compatible = "sii,s35390a";
267 compatible = "synology,power-off";
268 reg = <0x12100 0x100>;
269 clocks = <&gate_clk 7>;
273 pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
274 pinctrl-names = "default";
282 compatible = "gpio-fan";
283 pinctrl-0 = <&pmx_fanctrl_32 &pmx_fanctrl_33 &pmx_fanctrl_34
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
301 compatible = "gpio-fan";
302 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
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
321 compatible = "gpio-fan";
322 pinctrl-0 = <&pmx_fanctrl_32 &pmx_fanctrl_33 &pmx_fanctrl_34
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
341 compatible = "gpio-fan";
342 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
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
359 gpio-fan-100-15-35-1 {
361 compatible = "gpio-fan";
362 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
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
379 gpio-fan-100-15-35-3 {
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
403 compatible = "gpio-leds";
404 pinctrl-0 = <&pmx_alarmled_12>;
405 pinctrl-names = "default";
408 label = "synology:alarm";
409 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
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";
422 label = "synology:green:hdd1";
423 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
427 label = "synology:amber:hdd1";
428 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
432 label = "synology:green:hdd2";
433 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
437 label = "synology:amber:hdd2";
438 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
442 label = "synology:green:hdd3";
443 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
447 label = "synology:amber:hdd3";
448 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
452 label = "synology:green:hdd4";
453 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
457 label = "synology:amber:hdd4";
458 gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
464 compatible = "gpio-leds";
465 pinctrl-0 = <&pmx_hddled_21 &pmx_hddled_23>;
466 pinctrl-names = "default";
469 label = "synology:green:hdd1";
470 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
474 label = "synology:amber:hdd1";
475 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
481 compatible = "gpio-leds";
482 pinctrl-0 = <&pmx_hddled_21 &pmx_hddled_23 &pmx_hddled_20 &pmx_hddled_22>;
483 pinctrl-names = "default";
486 label = "synology:green:hdd1";
487 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
491 label = "synology:amber:hdd1";
492 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
496 label = "synology:green:hdd2";
497 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
501 label = "synology:amber:hdd2";
502 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
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
513 pinctrl-names = "default";
516 label = "synology:green:hdd1";
517 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
521 label = "synology:amber:hdd1";
522 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
526 label = "synology:green:hdd2";
527 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
531 label = "synology:amber:hdd2";
532 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
536 label = "synology:green:hdd3";
537 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
541 label = "synology:amber:hdd3";
542 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
546 label = "synology:green:hdd4";
547 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
551 label = "synology:amber:hdd4";
552 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
556 label = "synology:green:hdd5";
557 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
561 label = "synology:amber:hdd5";
562 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
568 compatible = "gpio-leds";
569 pinctrl-0 = <&pmx_hddled_38 &pmx_hddled_39 &pmx_hddled_36 &pmx_hddled_37>;
570 pinctrl-names = "default";
573 label = "synology:green:hdd1";
574 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
578 label = "synology:amber:hdd1";
579 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
583 label = "synology:green:hdd2";
584 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
588 label = "synology:amber:hdd2";
589 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
595 compatible = "simple-bus";
596 #address-cells = <1>;
598 pinctrl-0 = <&pmx_hdd1_pwr_29 &pmx_hdd2_pwr_31>;
599 pinctrl-names = "default";
602 compatible = "regulator-fixed";
604 regulator-name = "hdd1power";
605 regulator-min-microvolt = <5000000>;
606 regulator-max-microvolt = <5000000>;
610 startup-delay-us = <5000000>;
611 gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
615 compatible = "regulator-fixed";
617 regulator-name = "hdd2power";
618 regulator-min-microvolt = <5000000>;
619 regulator-max-microvolt = <5000000>;
623 startup-delay-us = <5000000>;
624 gpio = <&gpio0 31 GPIO_ACTIVE_HIGH>;
628 regulators-hdd-30-1 {
630 compatible = "simple-bus";
631 #address-cells = <1>;
633 pinctrl-0 = <&pmx_hdd1_pwr_30>;
634 pinctrl-names = "default";
637 compatible = "regulator-fixed";
639 regulator-name = "hdd1power";
640 regulator-min-microvolt = <5000000>;
641 regulator-max-microvolt = <5000000>;
645 startup-delay-us = <5000000>;
646 gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
650 regulators-hdd-30-2 {
652 compatible = "simple-bus";
653 #address-cells = <1>;
655 pinctrl-0 = <&pmx_hdd1_pwr_30 &pmx_hdd2_pwr_34>;
656 pinctrl-names = "default";
659 compatible = "regulator-fixed";
661 regulator-name = "hdd1power";
662 regulator-min-microvolt = <5000000>;
663 regulator-max-microvolt = <5000000>;
667 startup-delay-us = <5000000>;
668 gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
672 compatible = "regulator-fixed";
674 regulator-name = "hdd2power";
675 regulator-min-microvolt = <5000000>;
676 regulator-max-microvolt = <5000000>;
680 startup-delay-us = <5000000>;
681 gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
685 regulators-hdd-30-4 {
687 compatible = "simple-bus";
688 #address-cells = <1>;
690 pinctrl-0 = <&pmx_hdd1_pwr_30 &pmx_hdd2_pwr_34
691 &pmx_hdd3_pwr_44 &pmx_hdd4_pwr_45>;
692 pinctrl-names = "default";
695 compatible = "regulator-fixed";
697 regulator-name = "hdd1power";
698 regulator-min-microvolt = <5000000>;
699 regulator-max-microvolt = <5000000>;
703 startup-delay-us = <5000000>;
704 gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
708 compatible = "regulator-fixed";
710 regulator-name = "hdd2power";
711 regulator-min-microvolt = <5000000>;
712 regulator-max-microvolt = <5000000>;
716 startup-delay-us = <5000000>;
717 gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
721 compatible = "regulator-fixed";
723 regulator-name = "hdd3power";
724 regulator-min-microvolt = <5000000>;
725 regulator-max-microvolt = <5000000>;
729 startup-delay-us = <5000000>;
730 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
734 compatible = "regulator-fixed";
736 regulator-name = "hdd4power";
737 regulator-min-microvolt = <5000000>;
738 regulator-max-microvolt = <5000000>;
742 startup-delay-us = <5000000>;
743 gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
749 compatible = "simple-bus";
750 #address-cells = <1>;
752 pinctrl-0 = <&pmx_hdd2_pwr_31>;
753 pinctrl-names = "default";
756 compatible = "regulator-fixed";
758 regulator-name = "hdd2power";
759 regulator-min-microvolt = <5000000>;
760 regulator-max-microvolt = <5000000>;
764 startup-delay-us = <5000000>;
765 gpio = <&gpio0 31 GPIO_ACTIVE_HIGH>;
771 compatible = "simple-bus";
772 #address-cells = <1>;
774 pinctrl-0 = <&pmx_hdd2_pwr_34 &pmx_hdd3_pwr_44
776 pinctrl-names = "default";
779 compatible = "regulator-fixed";
781 regulator-name = "hdd2power";
782 regulator-min-microvolt = <5000000>;
783 regulator-max-microvolt = <5000000>;
787 startup-delay-us = <5000000>;
788 gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
792 compatible = "regulator-fixed";
794 regulator-name = "hdd3power";
795 regulator-min-microvolt = <5000000>;
796 regulator-max-microvolt = <5000000>;
800 startup-delay-us = <5000000>;
801 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
805 compatible = "regulator-fixed";
807 regulator-name = "hdd4power";
808 regulator-min-microvolt = <5000000>;
809 regulator-max-microvolt = <5000000>;
813 startup-delay-us = <5000000>;
814 gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
822 ethphy0: ethernet-phy@0 {
823 device_type = "ethernet-phy";
827 ethphy1: ethernet-phy@1 {
828 device_type = "ethernet-phy";
837 phy-handle = <ðphy0>;
845 phy-handle = <ðphy1>;