2 * Nodes for Marvell 628x Synology devices
4 * Andrew Lunn <andrew@lunn.ch>
5 * Ben Peddell <klightspeed@killerwolves.net>
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.
14 pinctrl: pin-controller@10000 {
15 pmx_alarmled_12: pmx-alarmled-12 {
16 marvell,pins = "mpp12";
17 marvell,function = "gpio";
20 pmx_fanctrl_15: pmx-fanctrl-15 {
21 marvell,pins = "mpp15";
22 marvell,function = "gpio";
25 pmx_fanctrl_16: pmx-fanctrl-16 {
26 marvell,pins = "mpp16";
27 marvell,function = "gpio";
30 pmx_fanctrl_17: pmx-fanctrl-17 {
31 marvell,pins = "mpp17";
32 marvell,function = "gpio";
35 pmx_fanalarm_18: pmx-fanalarm-18 {
36 marvell,pins = "mpp18";
37 marvell,function = "gpo";
40 pmx_hddled_20: pmx-hddled-20 {
41 marvell,pins = "mpp20";
42 marvell,function = "gpio";
45 pmx_hddled_21: pmx-hddled-21 {
46 marvell,pins = "mpp21";
47 marvell,function = "gpio";
50 pmx_hddled_22: pmx-hddled-22 {
51 marvell,pins = "mpp22";
52 marvell,function = "gpio";
55 pmx_hddled_23: pmx-hddled-23 {
56 marvell,pins = "mpp23";
57 marvell,function = "gpio";
60 pmx_hddled_24: pmx-hddled-24 {
61 marvell,pins = "mpp24";
62 marvell,function = "gpio";
65 pmx_hddled_25: pmx-hddled-25 {
66 marvell,pins = "mpp25";
67 marvell,function = "gpio";
70 pmx_hddled_26: pmx-hddled-26 {
71 marvell,pins = "mpp26";
72 marvell,function = "gpio";
75 pmx_hddled_27: pmx-hddled-27 {
76 marvell,pins = "mpp27";
77 marvell,function = "gpio";
80 pmx_hddled_28: pmx-hddled-28 {
81 marvell,pins = "mpp28";
82 marvell,function = "gpio";
85 pmx_hdd1_pwr_29: pmx-hdd1-pwr-29 {
86 marvell,pins = "mpp29";
87 marvell,function = "gpio";
90 pmx_hdd1_pwr_30: pmx-hdd-pwr-30 {
91 marvell,pins = "mpp30";
92 marvell,function = "gpio";
95 pmx_hdd2_pwr_31: pmx-hdd2-pwr-31 {
96 marvell,pins = "mpp31";
97 marvell,function = "gpio";
100 pmx_fanctrl_32: pmx-fanctrl-32 {
101 marvell,pins = "mpp32";
102 marvell,function = "gpio";
105 pmx_fanctrl_33: pmx-fanctrl-33 {
106 marvell,pins = "mpp33";
107 marvell,function = "gpo";
110 pmx_fanctrl_34: pmx-fanctrl-34 {
111 marvell,pins = "mpp34";
112 marvell,function = "gpio";
115 pmx_hdd2_pwr_34: pmx-hdd2-pwr-34 {
116 marvell,pins = "mpp34";
117 marvell,function = "gpio";
120 pmx_fanalarm_35: pmx-fanalarm-35 {
121 marvell,pins = "mpp35";
122 marvell,function = "gpio";
125 pmx_hddled_36: pmx-hddled-36 {
126 marvell,pins = "mpp36";
127 marvell,function = "gpio";
130 pmx_hddled_37: pmx-hddled-37 {
131 marvell,pins = "mpp37";
132 marvell,function = "gpio";
135 pmx_hddled_38: pmx-hddled-38 {
136 marvell,pins = "mpp38";
137 marvell,function = "gpio";
140 pmx_hddled_39: pmx-hddled-39 {
141 marvell,pins = "mpp39";
142 marvell,function = "gpio";
145 pmx_hddled_40: pmx-hddled-40 {
146 marvell,pins = "mpp40";
147 marvell,function = "gpio";
150 pmx_hddled_41: pmx-hddled-41 {
151 marvell,pins = "mpp41";
152 marvell,function = "gpio";
155 pmx_hddled_42: pmx-hddled-42 {
156 marvell,pins = "mpp42";
157 marvell,function = "gpio";
160 pmx_hddled_43: pmx-hddled-43 {
161 marvell,pins = "mpp43";
162 marvell,function = "gpio";
165 pmx_hddled_44: pmx-hddled-44 {
166 marvell,pins = "mpp44";
167 marvell,function = "gpio";
170 pmx_hddled_45: pmx-hddled-45 {
171 marvell,pins = "mpp45";
172 marvell,function = "gpio";
175 pmx_hdd3_pwr_44: pmx-hdd3-pwr-44 {
176 marvell,pins = "mpp44";
177 marvell,function = "gpio";
180 pmx_hdd4_pwr_45: pmx-hdd4-pwr-45 {
181 marvell,pins = "mpp45";
182 marvell,function = "gpio";
185 pmx_fanalarm_44: pmx-fanalarm-44 {
186 marvell,pins = "mpp44";
187 marvell,function = "gpio";
190 pmx_fanalarm_45: pmx-fanalarm-45 {
191 marvell,pins = "mpp45";
192 marvell,function = "gpio";
204 #address-cells = <1>;
206 compatible = "st,m25p80", "jedec,spi-nor";
208 spi-max-frequency = <20000000>;
212 reg = <0x00000000 0x00080000>;
217 reg = <0x00080000 0x00200000>;
222 reg = <0x00280000 0x00140000>;
227 reg = <0x003c0000 0x00010000>;
232 reg = <0x003d0000 0x00020000>;
233 label = "RedBoot config";
237 reg = <0x003f0000 0x00010000>;
238 label = "FIS directory";
245 clock-frequency = <400000>;
247 rs5c372: rs5c372@32 {
249 compatible = "ricoh,rs5c372";
253 s35390a: s35390a@30 {
255 compatible = "sii,s35390a";
269 compatible = "synology,power-off";
270 reg = <0x12100 0x100>;
271 clocks = <&gate_clk 7>;
275 pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
276 pinctrl-names = "default";
284 compatible = "gpio-fan";
285 pinctrl-0 = <&pmx_fanctrl_32 &pmx_fanctrl_33 &pmx_fanctrl_34
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
303 compatible = "gpio-fan";
304 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
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
323 compatible = "gpio-fan";
324 pinctrl-0 = <&pmx_fanctrl_32 &pmx_fanctrl_33 &pmx_fanctrl_34
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
343 compatible = "gpio-fan";
344 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
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
361 gpio-fan-100-15-35-1 {
363 compatible = "gpio-fan";
364 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
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
381 gpio-fan-100-15-35-3 {
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
405 compatible = "gpio-leds";
406 pinctrl-0 = <&pmx_alarmled_12>;
407 pinctrl-names = "default";
410 label = "synology:alarm";
411 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
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";
424 label = "synology:green:hdd1";
425 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
429 label = "synology:amber:hdd1";
430 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
434 label = "synology:green:hdd2";
435 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
439 label = "synology:amber:hdd2";
440 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
444 label = "synology:green:hdd3";
445 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
449 label = "synology:amber:hdd3";
450 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
454 label = "synology:green:hdd4";
455 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
459 label = "synology:amber:hdd4";
460 gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
466 compatible = "gpio-leds";
467 pinctrl-0 = <&pmx_hddled_21 &pmx_hddled_23>;
468 pinctrl-names = "default";
471 label = "synology:green:hdd1";
472 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
476 label = "synology:amber:hdd1";
477 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
483 compatible = "gpio-leds";
484 pinctrl-0 = <&pmx_hddled_21 &pmx_hddled_23 &pmx_hddled_20 &pmx_hddled_22>;
485 pinctrl-names = "default";
488 label = "synology:green:hdd1";
489 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
493 label = "synology:amber:hdd1";
494 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
498 label = "synology:green:hdd2";
499 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
503 label = "synology:amber:hdd2";
504 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
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
515 pinctrl-names = "default";
518 label = "synology:green:hdd1";
519 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
523 label = "synology:amber:hdd1";
524 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
528 label = "synology:green:hdd2";
529 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
533 label = "synology:amber:hdd2";
534 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
538 label = "synology:green:hdd3";
539 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
543 label = "synology:amber:hdd3";
544 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
548 label = "synology:green:hdd4";
549 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
553 label = "synology:amber:hdd4";
554 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
558 label = "synology:green:hdd5";
559 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
563 label = "synology:amber:hdd5";
564 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
570 compatible = "gpio-leds";
571 pinctrl-0 = <&pmx_hddled_38 &pmx_hddled_39 &pmx_hddled_36 &pmx_hddled_37>;
572 pinctrl-names = "default";
575 label = "synology:green:hdd1";
576 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
580 label = "synology:amber:hdd1";
581 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
585 label = "synology:green:hdd2";
586 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
590 label = "synology:amber:hdd2";
591 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
597 compatible = "simple-bus";
598 #address-cells = <1>;
600 pinctrl-0 = <&pmx_hdd1_pwr_29 &pmx_hdd2_pwr_31>;
601 pinctrl-names = "default";
604 compatible = "regulator-fixed";
606 regulator-name = "hdd1power";
607 regulator-min-microvolt = <5000000>;
608 regulator-max-microvolt = <5000000>;
612 startup-delay-us = <5000000>;
613 gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
617 compatible = "regulator-fixed";
619 regulator-name = "hdd2power";
620 regulator-min-microvolt = <5000000>;
621 regulator-max-microvolt = <5000000>;
625 startup-delay-us = <5000000>;
626 gpio = <&gpio0 31 GPIO_ACTIVE_HIGH>;
630 regulators-hdd-30-1 {
632 compatible = "simple-bus";
633 #address-cells = <1>;
635 pinctrl-0 = <&pmx_hdd1_pwr_30>;
636 pinctrl-names = "default";
639 compatible = "regulator-fixed";
641 regulator-name = "hdd1power";
642 regulator-min-microvolt = <5000000>;
643 regulator-max-microvolt = <5000000>;
647 startup-delay-us = <5000000>;
648 gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
652 regulators-hdd-30-2 {
654 compatible = "simple-bus";
655 #address-cells = <1>;
657 pinctrl-0 = <&pmx_hdd1_pwr_30 &pmx_hdd2_pwr_34>;
658 pinctrl-names = "default";
661 compatible = "regulator-fixed";
663 regulator-name = "hdd1power";
664 regulator-min-microvolt = <5000000>;
665 regulator-max-microvolt = <5000000>;
669 startup-delay-us = <5000000>;
670 gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
674 compatible = "regulator-fixed";
676 regulator-name = "hdd2power";
677 regulator-min-microvolt = <5000000>;
678 regulator-max-microvolt = <5000000>;
682 startup-delay-us = <5000000>;
683 gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
687 regulators-hdd-30-4 {
689 compatible = "simple-bus";
690 #address-cells = <1>;
692 pinctrl-0 = <&pmx_hdd1_pwr_30 &pmx_hdd2_pwr_34
693 &pmx_hdd3_pwr_44 &pmx_hdd4_pwr_45>;
694 pinctrl-names = "default";
697 compatible = "regulator-fixed";
699 regulator-name = "hdd1power";
700 regulator-min-microvolt = <5000000>;
701 regulator-max-microvolt = <5000000>;
705 startup-delay-us = <5000000>;
706 gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
710 compatible = "regulator-fixed";
712 regulator-name = "hdd2power";
713 regulator-min-microvolt = <5000000>;
714 regulator-max-microvolt = <5000000>;
718 startup-delay-us = <5000000>;
719 gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
723 compatible = "regulator-fixed";
725 regulator-name = "hdd3power";
726 regulator-min-microvolt = <5000000>;
727 regulator-max-microvolt = <5000000>;
731 startup-delay-us = <5000000>;
732 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
736 compatible = "regulator-fixed";
738 regulator-name = "hdd4power";
739 regulator-min-microvolt = <5000000>;
740 regulator-max-microvolt = <5000000>;
744 startup-delay-us = <5000000>;
745 gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
751 compatible = "simple-bus";
752 #address-cells = <1>;
754 pinctrl-0 = <&pmx_hdd2_pwr_31>;
755 pinctrl-names = "default";
758 compatible = "regulator-fixed";
760 regulator-name = "hdd2power";
761 regulator-min-microvolt = <5000000>;
762 regulator-max-microvolt = <5000000>;
766 startup-delay-us = <5000000>;
767 gpio = <&gpio0 31 GPIO_ACTIVE_HIGH>;
773 compatible = "simple-bus";
774 #address-cells = <1>;
776 pinctrl-0 = <&pmx_hdd2_pwr_34 &pmx_hdd3_pwr_44
778 pinctrl-names = "default";
781 compatible = "regulator-fixed";
783 regulator-name = "hdd2power";
784 regulator-min-microvolt = <5000000>;
785 regulator-max-microvolt = <5000000>;
789 startup-delay-us = <5000000>;
790 gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
794 compatible = "regulator-fixed";
796 regulator-name = "hdd3power";
797 regulator-min-microvolt = <5000000>;
798 regulator-max-microvolt = <5000000>;
802 startup-delay-us = <5000000>;
803 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
807 compatible = "regulator-fixed";
809 regulator-name = "hdd4power";
810 regulator-min-microvolt = <5000000>;
811 regulator-max-microvolt = <5000000>;
815 startup-delay-us = <5000000>;
816 gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
824 ethphy0: ethernet-phy@0 {
825 device_type = "ethernet-phy";
829 ethphy1: ethernet-phy@1 {
830 device_type = "ethernet-phy";
839 phy-handle = <ðphy0>;
847 phy-handle = <ðphy1>;