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.
28 pinctrl: pin-controller@10000 {
29 pmx_alarmled_12: pmx-alarmled-12 {
30 marvell,pins = "mpp12";
31 marvell,function = "gpio";
34 pmx_fanctrl_15: pmx-fanctrl-15 {
35 marvell,pins = "mpp15";
36 marvell,function = "gpio";
39 pmx_fanctrl_16: pmx-fanctrl-16 {
40 marvell,pins = "mpp16";
41 marvell,function = "gpio";
44 pmx_fanctrl_17: pmx-fanctrl-17 {
45 marvell,pins = "mpp17";
46 marvell,function = "gpio";
49 pmx_fanalarm_18: pmx-fanalarm-18 {
50 marvell,pins = "mpp18";
51 marvell,function = "gpo";
54 pmx_hddled_20: pmx-hddled-20 {
55 marvell,pins = "mpp20";
56 marvell,function = "gpio";
59 pmx_hddled_21: pmx-hddled-21 {
60 marvell,pins = "mpp21";
61 marvell,function = "gpio";
64 pmx_hddled_22: pmx-hddled-22 {
65 marvell,pins = "mpp22";
66 marvell,function = "gpio";
69 pmx_hddled_23: pmx-hddled-23 {
70 marvell,pins = "mpp23";
71 marvell,function = "gpio";
74 pmx_hddled_24: pmx-hddled-24 {
75 marvell,pins = "mpp24";
76 marvell,function = "gpio";
79 pmx_hddled_25: pmx-hddled-25 {
80 marvell,pins = "mpp25";
81 marvell,function = "gpio";
84 pmx_hddled_26: pmx-hddled-26 {
85 marvell,pins = "mpp26";
86 marvell,function = "gpio";
89 pmx_hddled_27: pmx-hddled-27 {
90 marvell,pins = "mpp27";
91 marvell,function = "gpio";
94 pmx_hddled_28: pmx-hddled-28 {
95 marvell,pins = "mpp28";
96 marvell,function = "gpio";
99 pmx_hdd1_pwr_29: pmx-hdd1-pwr-29 {
100 marvell,pins = "mpp29";
101 marvell,function = "gpio";
104 pmx_hdd1_pwr_30: pmx-hdd-pwr-30 {
105 marvell,pins = "mpp30";
106 marvell,function = "gpio";
109 pmx_hdd2_pwr_31: pmx-hdd2-pwr-31 {
110 marvell,pins = "mpp31";
111 marvell,function = "gpio";
114 pmx_fanctrl_32: pmx-fanctrl-32 {
115 marvell,pins = "mpp32";
116 marvell,function = "gpio";
119 pmx_fanctrl_33: pmx-fanctrl-33 {
120 marvell,pins = "mpp33";
121 marvell,function = "gpo";
124 pmx_fanctrl_34: pmx-fanctrl-34 {
125 marvell,pins = "mpp34";
126 marvell,function = "gpio";
129 pmx_hdd2_pwr_34: pmx-hdd2-pwr-34 {
130 marvell,pins = "mpp34";
131 marvell,function = "gpio";
134 pmx_fanalarm_35: pmx-fanalarm-35 {
135 marvell,pins = "mpp35";
136 marvell,function = "gpio";
139 pmx_hddled_36: pmx-hddled-36 {
140 marvell,pins = "mpp36";
141 marvell,function = "gpio";
144 pmx_hddled_37: pmx-hddled-37 {
145 marvell,pins = "mpp37";
146 marvell,function = "gpio";
149 pmx_hddled_38: pmx-hddled-38 {
150 marvell,pins = "mpp38";
151 marvell,function = "gpio";
154 pmx_hddled_39: pmx-hddled-39 {
155 marvell,pins = "mpp39";
156 marvell,function = "gpio";
159 pmx_hddled_40: pmx-hddled-40 {
160 marvell,pins = "mpp40";
161 marvell,function = "gpio";
164 pmx_hddled_41: pmx-hddled-41 {
165 marvell,pins = "mpp41";
166 marvell,function = "gpio";
169 pmx_hddled_42: pmx-hddled-42 {
170 marvell,pins = "mpp42";
171 marvell,function = "gpio";
174 pmx_hddled_43: pmx-hddled-43 {
175 marvell,pins = "mpp43";
176 marvell,function = "gpio";
179 pmx_hddled_44: pmx-hddled-44 {
180 marvell,pins = "mpp44";
181 marvell,function = "gpio";
184 pmx_hddled_45: pmx-hddled-45 {
185 marvell,pins = "mpp45";
186 marvell,function = "gpio";
189 pmx_hdd3_pwr_44: pmx-hdd3-pwr-44 {
190 marvell,pins = "mpp44";
191 marvell,function = "gpio";
194 pmx_hdd4_pwr_45: pmx-hdd4-pwr-45 {
195 marvell,pins = "mpp45";
196 marvell,function = "gpio";
199 pmx_fanalarm_44: pmx-fanalarm-44 {
200 marvell,pins = "mpp44";
201 marvell,function = "gpio";
204 pmx_fanalarm_45: pmx-fanalarm-45 {
205 marvell,pins = "mpp45";
206 marvell,function = "gpio";
218 #address-cells = <1>;
220 compatible = "st,m25p80", "jedec,spi-nor";
222 spi-max-frequency = <20000000>;
226 reg = <0x00000000 0x00080000>;
231 reg = <0x00080000 0x00200000>;
236 reg = <0x00280000 0x00140000>;
241 reg = <0x003c0000 0x00010000>;
246 reg = <0x003d0000 0x00020000>;
247 label = "RedBoot config";
251 reg = <0x003f0000 0x00010000>;
252 label = "FIS directory";
259 clock-frequency = <400000>;
261 rs5c372: rs5c372@32 {
263 compatible = "ricoh,rs5c372";
267 s35390a: s35390a@30 {
269 compatible = "sii,s35390a";
283 compatible = "synology,power-off";
284 reg = <0x12100 0x100>;
285 clocks = <&gate_clk 7>;
289 pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
290 pinctrl-names = "default";
298 compatible = "gpio-fan";
299 pinctrl-0 = <&pmx_fanctrl_32 &pmx_fanctrl_33 &pmx_fanctrl_34
301 pinctrl-names = "default";
302 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH
303 &gpio1 1 GPIO_ACTIVE_HIGH
304 &gpio1 2 GPIO_ACTIVE_HIGH>;
305 gpio-fan,speed-map = < 0 0
317 compatible = "gpio-fan";
318 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
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 = <&gpio0 18 GPIO_ACTIVE_HIGH>;
325 gpio-fan,speed-map = < 0 0
337 compatible = "gpio-fan";
338 pinctrl-0 = <&pmx_fanctrl_32 &pmx_fanctrl_33 &pmx_fanctrl_34
340 pinctrl-names = "default";
341 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH
342 &gpio1 1 GPIO_ACTIVE_HIGH
343 &gpio1 2 GPIO_ACTIVE_HIGH>;
344 alarm-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
345 gpio-fan,speed-map = < 0 0
357 compatible = "gpio-fan";
358 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
360 pinctrl-names = "default";
361 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH
362 &gpio0 16 GPIO_ACTIVE_HIGH
363 &gpio0 17 GPIO_ACTIVE_HIGH>;
364 alarm-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
365 gpio-fan,speed-map = < 0 0
375 gpio-fan-100-15-35-1 {
377 compatible = "gpio-fan";
378 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
380 pinctrl-names = "default";
381 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH
382 &gpio0 16 GPIO_ACTIVE_HIGH
383 &gpio0 17 GPIO_ACTIVE_HIGH>;
384 alarm-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
385 gpio-fan,speed-map = < 0 0
395 gpio-fan-100-15-35-3 {
397 compatible = "gpio-fan";
398 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
399 &pmx_fanalarm_35 &pmx_fanalarm_44 &pmx_fanalarm_45>;
400 pinctrl-names = "default";
401 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH
402 &gpio0 16 GPIO_ACTIVE_HIGH
403 &gpio0 17 GPIO_ACTIVE_HIGH>;
404 alarm-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH
405 &gpio1 12 GPIO_ACTIVE_HIGH
406 &gpio1 13 GPIO_ACTIVE_HIGH>;
407 gpio-fan,speed-map = < 0 0
419 compatible = "gpio-leds";
420 pinctrl-0 = <&pmx_alarmled_12>;
421 pinctrl-names = "default";
424 label = "synology:alarm";
425 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
431 compatible = "gpio-leds";
432 pinctrl-0 = <&pmx_hddled_20 &pmx_hddled_21 &pmx_hddled_22
433 &pmx_hddled_23 &pmx_hddled_24 &pmx_hddled_25
434 &pmx_hddled_26 &pmx_hddled_27>;
435 pinctrl-names = "default";
438 label = "synology:green:hdd1";
439 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
443 label = "synology:amber:hdd1";
444 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
448 label = "synology:green:hdd2";
449 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
453 label = "synology:amber:hdd2";
454 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
458 label = "synology:green:hdd3";
459 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
463 label = "synology:amber:hdd3";
464 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
468 label = "synology:green:hdd4";
469 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
473 label = "synology:amber:hdd4";
474 gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
480 compatible = "gpio-leds";
481 pinctrl-0 = <&pmx_hddled_21 &pmx_hddled_23>;
482 pinctrl-names = "default";
485 label = "synology:green:hdd1";
486 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
490 label = "synology:amber:hdd1";
491 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
497 compatible = "gpio-leds";
498 pinctrl-0 = <&pmx_hddled_21 &pmx_hddled_23 &pmx_hddled_20 &pmx_hddled_22>;
499 pinctrl-names = "default";
502 label = "synology:green:hdd1";
503 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
507 label = "synology:amber:hdd1";
508 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
512 label = "synology:green:hdd2";
513 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
517 label = "synology:amber:hdd2";
518 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
524 compatible = "gpio-leds";
525 pinctrl-0 = <&pmx_hddled_36 &pmx_hddled_37 &pmx_hddled_38
526 &pmx_hddled_39 &pmx_hddled_40 &pmx_hddled_41
527 &pmx_hddled_42 &pmx_hddled_43 &pmx_hddled_44
529 pinctrl-names = "default";
532 label = "synology:green:hdd1";
533 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
537 label = "synology:amber:hdd1";
538 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
542 label = "synology:green:hdd2";
543 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
547 label = "synology:amber:hdd2";
548 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
552 label = "synology:green:hdd3";
553 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
557 label = "synology:amber:hdd3";
558 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
562 label = "synology:green:hdd4";
563 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
567 label = "synology:amber:hdd4";
568 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
572 label = "synology:green:hdd5";
573 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
577 label = "synology:amber:hdd5";
578 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
584 compatible = "gpio-leds";
585 pinctrl-0 = <&pmx_hddled_38 &pmx_hddled_39 &pmx_hddled_36 &pmx_hddled_37>;
586 pinctrl-names = "default";
589 label = "synology:green:hdd1";
590 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
594 label = "synology:amber:hdd1";
595 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
599 label = "synology:green:hdd2";
600 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
604 label = "synology:amber:hdd2";
605 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
611 compatible = "simple-bus";
612 #address-cells = <1>;
614 pinctrl-0 = <&pmx_hdd1_pwr_29 &pmx_hdd2_pwr_31>;
615 pinctrl-names = "default";
618 compatible = "regulator-fixed";
620 regulator-name = "hdd1power";
621 regulator-min-microvolt = <5000000>;
622 regulator-max-microvolt = <5000000>;
626 startup-delay-us = <5000000>;
627 gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
631 compatible = "regulator-fixed";
633 regulator-name = "hdd2power";
634 regulator-min-microvolt = <5000000>;
635 regulator-max-microvolt = <5000000>;
639 startup-delay-us = <5000000>;
640 gpio = <&gpio0 31 GPIO_ACTIVE_HIGH>;
644 regulators-hdd-30-1 {
646 compatible = "simple-bus";
647 #address-cells = <1>;
649 pinctrl-0 = <&pmx_hdd1_pwr_30>;
650 pinctrl-names = "default";
653 compatible = "regulator-fixed";
655 regulator-name = "hdd1power";
656 regulator-min-microvolt = <5000000>;
657 regulator-max-microvolt = <5000000>;
661 startup-delay-us = <5000000>;
662 gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
666 regulators-hdd-30-2 {
668 compatible = "simple-bus";
669 #address-cells = <1>;
671 pinctrl-0 = <&pmx_hdd1_pwr_30 &pmx_hdd2_pwr_34>;
672 pinctrl-names = "default";
675 compatible = "regulator-fixed";
677 regulator-name = "hdd1power";
678 regulator-min-microvolt = <5000000>;
679 regulator-max-microvolt = <5000000>;
683 startup-delay-us = <5000000>;
684 gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
688 compatible = "regulator-fixed";
690 regulator-name = "hdd2power";
691 regulator-min-microvolt = <5000000>;
692 regulator-max-microvolt = <5000000>;
696 startup-delay-us = <5000000>;
697 gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
701 regulators-hdd-30-4 {
703 compatible = "simple-bus";
704 #address-cells = <1>;
706 pinctrl-0 = <&pmx_hdd1_pwr_30 &pmx_hdd2_pwr_34
707 &pmx_hdd3_pwr_44 &pmx_hdd4_pwr_45>;
708 pinctrl-names = "default";
711 compatible = "regulator-fixed";
713 regulator-name = "hdd1power";
714 regulator-min-microvolt = <5000000>;
715 regulator-max-microvolt = <5000000>;
719 startup-delay-us = <5000000>;
720 gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
724 compatible = "regulator-fixed";
726 regulator-name = "hdd2power";
727 regulator-min-microvolt = <5000000>;
728 regulator-max-microvolt = <5000000>;
732 startup-delay-us = <5000000>;
733 gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
737 compatible = "regulator-fixed";
739 regulator-name = "hdd3power";
740 regulator-min-microvolt = <5000000>;
741 regulator-max-microvolt = <5000000>;
745 startup-delay-us = <5000000>;
746 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
750 compatible = "regulator-fixed";
752 regulator-name = "hdd4power";
753 regulator-min-microvolt = <5000000>;
754 regulator-max-microvolt = <5000000>;
758 startup-delay-us = <5000000>;
759 gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
765 compatible = "simple-bus";
766 #address-cells = <1>;
768 pinctrl-0 = <&pmx_hdd2_pwr_31>;
769 pinctrl-names = "default";
772 compatible = "regulator-fixed";
774 regulator-name = "hdd2power";
775 regulator-min-microvolt = <5000000>;
776 regulator-max-microvolt = <5000000>;
780 startup-delay-us = <5000000>;
781 gpio = <&gpio0 31 GPIO_ACTIVE_HIGH>;
787 compatible = "simple-bus";
788 #address-cells = <1>;
790 pinctrl-0 = <&pmx_hdd2_pwr_34 &pmx_hdd3_pwr_44
792 pinctrl-names = "default";
795 compatible = "regulator-fixed";
797 regulator-name = "hdd2power";
798 regulator-min-microvolt = <5000000>;
799 regulator-max-microvolt = <5000000>;
803 startup-delay-us = <5000000>;
804 gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
808 compatible = "regulator-fixed";
810 regulator-name = "hdd3power";
811 regulator-min-microvolt = <5000000>;
812 regulator-max-microvolt = <5000000>;
816 startup-delay-us = <5000000>;
817 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
821 compatible = "regulator-fixed";
823 regulator-name = "hdd4power";
824 regulator-min-microvolt = <5000000>;
825 regulator-max-microvolt = <5000000>;
829 startup-delay-us = <5000000>;
830 gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
838 ethphy0: ethernet-phy@0 {
839 device_type = "ethernet-phy";
843 ethphy1: ethernet-phy@1 {
844 device_type = "ethernet-phy";
853 phy-handle = <ðphy0>;
861 phy-handle = <ðphy1>;