Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Nodes for Marvell 628x Synology devices
0004  *
0005  * Andrew Lunn <andrew@lunn.ch>
0006  * Ben Peddell <klightspeed@killerwolves.net>
0007  *
0008  */
0009 
0010 / {
0011         ocp@f1000000 {
0012                 pinctrl: pin-controller@10000 {
0013                         pmx_alarmled_12: pmx-alarmled-12 {
0014                                 marvell,pins = "mpp12";
0015                                 marvell,function = "gpio";
0016                         };
0017 
0018                         pmx_fanctrl_15: pmx-fanctrl-15 {
0019                                 marvell,pins = "mpp15";
0020                                 marvell,function = "gpio";
0021                         };
0022 
0023                         pmx_fanctrl_16: pmx-fanctrl-16 {
0024                                 marvell,pins = "mpp16";
0025                                 marvell,function = "gpio";
0026                         };
0027 
0028                         pmx_fanctrl_17: pmx-fanctrl-17 {
0029                                 marvell,pins = "mpp17";
0030                                 marvell,function = "gpio";
0031                         };
0032 
0033                         pmx_fanalarm_18: pmx-fanalarm-18 {
0034                                 marvell,pins = "mpp18";
0035                                 marvell,function = "gpo";
0036                         };
0037 
0038                         pmx_hddled_20: pmx-hddled-20 {
0039                                 marvell,pins = "mpp20";
0040                                 marvell,function = "gpio";
0041                         };
0042 
0043                         pmx_hddled_21: pmx-hddled-21 {
0044                                 marvell,pins = "mpp21";
0045                                 marvell,function = "gpio";
0046                         };
0047 
0048                         pmx_hddled_22: pmx-hddled-22 {
0049                                 marvell,pins = "mpp22";
0050                                 marvell,function = "gpio";
0051                         };
0052 
0053                         pmx_hddled_23: pmx-hddled-23 {
0054                                 marvell,pins = "mpp23";
0055                                 marvell,function = "gpio";
0056                         };
0057 
0058                         pmx_hddled_24: pmx-hddled-24 {
0059                                 marvell,pins = "mpp24";
0060                                 marvell,function = "gpio";
0061                         };
0062 
0063                         pmx_hddled_25: pmx-hddled-25 {
0064                                 marvell,pins = "mpp25";
0065                                 marvell,function = "gpio";
0066                         };
0067 
0068                         pmx_hddled_26: pmx-hddled-26 {
0069                                 marvell,pins = "mpp26";
0070                                 marvell,function = "gpio";
0071                         };
0072 
0073                         pmx_hddled_27: pmx-hddled-27 {
0074                                 marvell,pins = "mpp27";
0075                                 marvell,function = "gpio";
0076                         };
0077 
0078                         pmx_hddled_28: pmx-hddled-28 {
0079                                 marvell,pins = "mpp28";
0080                                 marvell,function = "gpio";
0081                         };
0082 
0083                         pmx_hdd1_pwr_29: pmx-hdd1-pwr-29 {
0084                                 marvell,pins = "mpp29";
0085                                 marvell,function = "gpio";
0086                         };
0087 
0088                         pmx_hdd1_pwr_30: pmx-hdd-pwr-30 {
0089                                 marvell,pins = "mpp30";
0090                                 marvell,function = "gpio";
0091                         };
0092 
0093                         pmx_hdd2_pwr_31: pmx-hdd2-pwr-31 {
0094                                 marvell,pins = "mpp31";
0095                                 marvell,function = "gpio";
0096                         };
0097 
0098                         pmx_fanctrl_32: pmx-fanctrl-32 {
0099                                 marvell,pins = "mpp32";
0100                                 marvell,function = "gpio";
0101                         };
0102 
0103                         pmx_fanctrl_33: pmx-fanctrl-33 {
0104                                 marvell,pins = "mpp33";
0105                                 marvell,function = "gpo";
0106                         };
0107 
0108                         pmx_fanctrl_34: pmx-fanctrl-34 {
0109                                 marvell,pins = "mpp34";
0110                                 marvell,function = "gpio";
0111                         };
0112 
0113                         pmx_hdd2_pwr_34: pmx-hdd2-pwr-34 {
0114                                 marvell,pins = "mpp34";
0115                                 marvell,function = "gpio";
0116                         };
0117 
0118                         pmx_fanalarm_35: pmx-fanalarm-35 {
0119                                 marvell,pins = "mpp35";
0120                                 marvell,function = "gpio";
0121                         };
0122 
0123                         pmx_hddled_36: pmx-hddled-36 {
0124                                 marvell,pins = "mpp36";
0125                                 marvell,function = "gpio";
0126                         };
0127 
0128                         pmx_hddled_37: pmx-hddled-37 {
0129                                 marvell,pins = "mpp37";
0130                                 marvell,function = "gpio";
0131                         };
0132 
0133                         pmx_hddled_38: pmx-hddled-38 {
0134                                 marvell,pins = "mpp38";
0135                                 marvell,function = "gpio";
0136                         };
0137 
0138                         pmx_hddled_39: pmx-hddled-39 {
0139                                 marvell,pins = "mpp39";
0140                                 marvell,function = "gpio";
0141                         };
0142 
0143                         pmx_hddled_40: pmx-hddled-40 {
0144                                 marvell,pins = "mpp40";
0145                                 marvell,function = "gpio";
0146                         };
0147 
0148                         pmx_hddled_41: pmx-hddled-41 {
0149                                 marvell,pins = "mpp41";
0150                                 marvell,function = "gpio";
0151                         };
0152 
0153                         pmx_hddled_42: pmx-hddled-42 {
0154                                 marvell,pins = "mpp42";
0155                                 marvell,function = "gpio";
0156                         };
0157 
0158                         pmx_hddled_43: pmx-hddled-43 {
0159                                 marvell,pins = "mpp43";
0160                                 marvell,function = "gpio";
0161                         };
0162 
0163                         pmx_hddled_44: pmx-hddled-44 {
0164                                 marvell,pins = "mpp44";
0165                                 marvell,function = "gpio";
0166                         };
0167 
0168                         pmx_hddled_45: pmx-hddled-45 {
0169                                 marvell,pins = "mpp45";
0170                                 marvell,function = "gpio";
0171                         };
0172 
0173                         pmx_hdd3_pwr_44: pmx-hdd3-pwr-44 {
0174                                 marvell,pins = "mpp44";
0175                                 marvell,function = "gpio";
0176                         };
0177 
0178                         pmx_hdd4_pwr_45: pmx-hdd4-pwr-45 {
0179                                 marvell,pins = "mpp45";
0180                                 marvell,function = "gpio";
0181                         };
0182 
0183                         pmx_fanalarm_44: pmx-fanalarm-44 {
0184                                 marvell,pins = "mpp44";
0185                                 marvell,function = "gpio";
0186                         };
0187 
0188                         pmx_fanalarm_45: pmx-fanalarm-45 {
0189                                 marvell,pins = "mpp45";
0190                                 marvell,function = "gpio";
0191                         };
0192                 };
0193 
0194                 rtc@10300 {
0195                         status = "disabled";
0196                 };
0197 
0198                 spi@10600 {
0199                         status = "okay";
0200 
0201                         flash@0 {
0202                                 #address-cells = <1>;
0203                                 #size-cells = <1>;
0204                                 compatible = "st,m25p80", "jedec,spi-nor";
0205                                 reg = <0>;
0206                                 spi-max-frequency = <20000000>;
0207                                 mode = <0>;
0208 
0209                                 partition@0 {
0210                                         reg = <0x00000000 0x00080000>;
0211                                         label = "RedBoot";
0212                                 };
0213 
0214                                 partition@80000 {
0215                                         reg = <0x00080000 0x00200000>;
0216                                         label = "zImage";
0217                                 };
0218 
0219                                 partition@280000 {
0220                                         reg = <0x00280000 0x00140000>;
0221                                         label = "rd.gz";
0222                                 };
0223 
0224                                 partition@3c0000 {
0225                                         reg = <0x003c0000 0x00010000>;
0226                                         label = "vendor";
0227                                 };
0228 
0229                                 partition@3d0000 {
0230                                         reg = <0x003d0000 0x00020000>;
0231                                         label = "RedBoot config";
0232                                 };
0233 
0234                                 partition@3f0000 {
0235                                         reg = <0x003f0000 0x00010000>;
0236                                         label = "FIS directory";
0237                                 };
0238                         };
0239                 };
0240 
0241                 i2c@11000 {
0242                         status = "okay";
0243                         clock-frequency = <400000>;
0244 
0245                         rs5c372: rs5c372@32 {
0246                                 status = "disabled";
0247                                 compatible = "ricoh,rs5c372a";
0248                                 reg = <0x32>;
0249                         };
0250 
0251                         s35390a: s35390a@30 {
0252                                 status = "disabled";
0253                                 compatible = "sii,s35390a";
0254                                 reg = <0x30>;
0255                         };
0256                 };
0257 
0258                 serial@12000 {
0259                         status = "okay";
0260                 };
0261 
0262                 serial@12100 {
0263                         status = "okay";
0264                 };
0265 
0266                 poweroff@12100 {
0267                         compatible = "synology,power-off";
0268                         reg = <0x12100 0x100>;
0269                         clocks = <&gate_clk 7>;
0270                 };
0271 
0272                 sata@80000 {
0273                         pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
0274                         pinctrl-names = "default";
0275                         status = "okay";
0276                         nr-ports = <2>;
0277                 };
0278         };
0279 
0280         gpio-fan-150-32-35 {
0281                 status = "disabled";
0282                 compatible = "gpio-fan";
0283                 pinctrl-0 = <&pmx_fanctrl_32 &pmx_fanctrl_33 &pmx_fanctrl_34
0284                              &pmx_fanalarm_35>;
0285                 pinctrl-names = "default";
0286                 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH
0287                          &gpio1 1 GPIO_ACTIVE_HIGH
0288                          &gpio1 2 GPIO_ACTIVE_HIGH>;
0289                 gpio-fan,speed-map = <    0 0
0290                                        2200 1
0291                                        2500 2
0292                                        3000 4
0293                                        3300 3
0294                                        3700 5
0295                                        3800 6
0296                                        4200 7 >;
0297         };
0298 
0299         gpio-fan-150-15-18 {
0300                 status = "disabled";
0301                 compatible = "gpio-fan";
0302                 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
0303                              &pmx_fanalarm_18>;
0304                 pinctrl-names = "default";
0305                 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH
0306                          &gpio0 16 GPIO_ACTIVE_HIGH
0307                          &gpio0 17 GPIO_ACTIVE_HIGH>;
0308                 alarm-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
0309                 gpio-fan,speed-map = <    0 0
0310                                        2200 1
0311                                        2500 2
0312                                        3000 4
0313                                        3300 3
0314                                        3700 5
0315                                        3800 6
0316                                        4200 7 >;
0317         };
0318 
0319         gpio-fan-100-32-35 {
0320                 status = "disabled";
0321                 compatible = "gpio-fan";
0322                 pinctrl-0 = <&pmx_fanctrl_32 &pmx_fanctrl_33 &pmx_fanctrl_34
0323                              &pmx_fanalarm_35>;
0324                 pinctrl-names = "default";
0325                 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH
0326                          &gpio1 1 GPIO_ACTIVE_HIGH
0327                          &gpio1 2 GPIO_ACTIVE_HIGH>;
0328                 alarm-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
0329                 gpio-fan,speed-map = <    0 0
0330                                        2500 1
0331                                        3100 2
0332                                        3800 3
0333                                        4600 4
0334                                        4800 5
0335                                        4900 6
0336                                        5000 7 >;
0337         };
0338 
0339         gpio-fan-100-15-18 {
0340                 status = "disabled";
0341                 compatible = "gpio-fan";
0342                 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
0343                              &pmx_fanalarm_18>;
0344                 pinctrl-names = "default";
0345                 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH
0346                          &gpio0 16 GPIO_ACTIVE_HIGH
0347                          &gpio0 17 GPIO_ACTIVE_HIGH>;
0348                 alarm-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
0349                 gpio-fan,speed-map = <    0 0
0350                                        2500 1
0351                                        3100 2
0352                                        3800 3
0353                                        4600 4
0354                                        4800 5
0355                                        4900 6
0356                                        5000 7 >;
0357         };
0358 
0359         gpio-fan-100-15-35-1 {
0360                 status = "disabled";
0361                 compatible = "gpio-fan";
0362                 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
0363                              &pmx_fanalarm_35>;
0364                 pinctrl-names = "default";
0365                 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH
0366                          &gpio0 16 GPIO_ACTIVE_HIGH
0367                          &gpio0 17 GPIO_ACTIVE_HIGH>;
0368                 alarm-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
0369                 gpio-fan,speed-map = <    0 0
0370                                        2500 1
0371                                        3100 2
0372                                        3800 3
0373                                        4600 4
0374                                        4800 5
0375                                        4900 6
0376                                        5000 7 >;
0377         };
0378 
0379         gpio-fan-100-15-35-3 {
0380                 status = "disabled";
0381                 compatible = "gpio-fan";
0382                 pinctrl-0 = <&pmx_fanctrl_15 &pmx_fanctrl_16 &pmx_fanctrl_17
0383                              &pmx_fanalarm_35 &pmx_fanalarm_44 &pmx_fanalarm_45>;
0384                 pinctrl-names = "default";
0385                 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH
0386                          &gpio0 16 GPIO_ACTIVE_HIGH
0387                          &gpio0 17 GPIO_ACTIVE_HIGH>;
0388                 alarm-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH
0389                                &gpio1 12 GPIO_ACTIVE_HIGH
0390                                &gpio1 13 GPIO_ACTIVE_HIGH>;
0391                 gpio-fan,speed-map = <    0 0
0392                                        2500 1
0393                                        3100 2
0394                                        3800 3
0395                                        4600 4
0396                                        4800 5
0397                                        4900 6
0398                                        5000 7 >;
0399         };
0400 
0401         gpio-leds-alarm-12 {
0402                 status = "disabled";
0403                 compatible = "gpio-leds";
0404                 pinctrl-0 = <&pmx_alarmled_12>;
0405                 pinctrl-names = "default";
0406 
0407                 hdd1-green {
0408                         label = "synology:alarm";
0409                         gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
0410                 };
0411         };
0412 
0413         gpio-leds-hdd-20 {
0414                 status = "disabled";
0415                 compatible = "gpio-leds";
0416                 pinctrl-0 = <&pmx_hddled_20 &pmx_hddled_21 &pmx_hddled_22
0417                              &pmx_hddled_23 &pmx_hddled_24 &pmx_hddled_25
0418                              &pmx_hddled_26 &pmx_hddled_27>;
0419                 pinctrl-names = "default";
0420 
0421                 hdd1-green {
0422                         label = "synology:green:hdd1";
0423                         gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
0424                 };
0425 
0426                 hdd1-amber {
0427                         label = "synology:amber:hdd1";
0428                         gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
0429                 };
0430 
0431                 hdd2-green {
0432                         label = "synology:green:hdd2";
0433                         gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
0434                 };
0435 
0436                 hdd2-amber {
0437                         label = "synology:amber:hdd2";
0438                         gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
0439                 };
0440 
0441                 hdd3-green {
0442                         label = "synology:green:hdd3";
0443                         gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
0444                 };
0445 
0446                 hdd3-amber {
0447                         label = "synology:amber:hdd3";
0448                         gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
0449                 };
0450 
0451                 hdd4-green {
0452                         label = "synology:green:hdd4";
0453                         gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
0454                 };
0455 
0456                 hdd4-amber {
0457                         label = "synology:amber:hdd4";
0458                         gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
0459                 };
0460         };
0461 
0462         gpio-leds-hdd-21-1 {
0463                 status = "disabled";
0464                 compatible = "gpio-leds";
0465                 pinctrl-0 = <&pmx_hddled_21 &pmx_hddled_23>;
0466                 pinctrl-names = "default";
0467 
0468                 hdd1-green {
0469                         label = "synology:green:hdd1";
0470                         gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
0471                 };
0472 
0473                 hdd1-amber {
0474                         label = "synology:amber:hdd1";
0475                         gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
0476                 };
0477         };
0478 
0479         gpio-leds-hdd-21-2 {
0480                 status = "disabled";
0481                 compatible = "gpio-leds";
0482                 pinctrl-0 = <&pmx_hddled_21 &pmx_hddled_23 &pmx_hddled_20 &pmx_hddled_22>;
0483                 pinctrl-names = "default";
0484 
0485                 hdd1-green {
0486                         label = "synology:green:hdd1";
0487                         gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
0488                 };
0489 
0490                 hdd1-amber {
0491                         label = "synology:amber:hdd1";
0492                         gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
0493                 };
0494 
0495                 hdd2-green {
0496                         label = "synology:green:hdd2";
0497                         gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
0498                 };
0499 
0500                 hdd2-amber {
0501                         label = "synology:amber:hdd2";
0502                         gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
0503                 };
0504         };
0505 
0506         gpio-leds-hdd-36 {
0507                 status = "disabled";
0508                 compatible = "gpio-leds";
0509                 pinctrl-0 = <&pmx_hddled_36 &pmx_hddled_37 &pmx_hddled_38
0510                              &pmx_hddled_39 &pmx_hddled_40 &pmx_hddled_41
0511                              &pmx_hddled_42 &pmx_hddled_43 &pmx_hddled_44
0512                              &pmx_hddled_45>;
0513                 pinctrl-names = "default";
0514 
0515                 hdd1-green {
0516                         label = "synology:green:hdd1";
0517                         gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
0518                 };
0519 
0520                 hdd1-amber {
0521                         label = "synology:amber:hdd1";
0522                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
0523                 };
0524 
0525                 hdd2-green {
0526                         label = "synology:green:hdd2";
0527                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
0528                 };
0529 
0530                 hdd2-amber {
0531                         label = "synology:amber:hdd2";
0532                         gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
0533                 };
0534 
0535                 hdd3-green {
0536                         label = "synology:green:hdd3";
0537                         gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
0538                 };
0539 
0540                 hdd3-amber {
0541                         label = "synology:amber:hdd3";
0542                         gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
0543                 };
0544 
0545                 hdd4-green {
0546                         label = "synology:green:hdd4";
0547                         gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
0548                 };
0549 
0550                 hdd4-amber {
0551                         label = "synology:amber:hdd4";
0552                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
0553                 };
0554 
0555                 hdd5-green {
0556                         label = "synology:green:hdd5";
0557                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
0558                 };
0559 
0560                 hdd5-amber {
0561                         label = "synology:amber:hdd5";
0562                         gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
0563                 };
0564         };
0565 
0566         gpio-leds-hdd-38 {
0567                 status = "disabled";
0568                 compatible = "gpio-leds";
0569                 pinctrl-0 = <&pmx_hddled_38 &pmx_hddled_39 &pmx_hddled_36 &pmx_hddled_37>;
0570                 pinctrl-names = "default";
0571 
0572                 hdd1-green {
0573                         label = "synology:green:hdd1";
0574                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
0575                 };
0576 
0577                 hdd1-amber {
0578                         label = "synology:amber:hdd1";
0579                         gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
0580                 };
0581 
0582                 hdd2-green {
0583                         label = "synology:green:hdd2";
0584                         gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
0585                 };
0586 
0587                 hdd2-amber {
0588                         label = "synology:amber:hdd2";
0589                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
0590                 };
0591         };
0592 
0593         regulators-hdd-29 {
0594                 status = "disabled";
0595                 compatible = "simple-bus";
0596                 #address-cells = <1>;
0597                 #size-cells = <0>;
0598                 pinctrl-0 = <&pmx_hdd1_pwr_29 &pmx_hdd2_pwr_31>;
0599                 pinctrl-names = "default";
0600 
0601                 regulator@1 {
0602                         compatible = "regulator-fixed";
0603                         reg = <1>;
0604                         regulator-name = "hdd1power";
0605                         regulator-min-microvolt = <5000000>;
0606                         regulator-max-microvolt = <5000000>;
0607                         enable-active-high;
0608                         regulator-always-on;
0609                         regulator-boot-on;
0610                         startup-delay-us = <5000000>;
0611                         gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
0612                 };
0613 
0614                 regulator@2 {
0615                         compatible = "regulator-fixed";
0616                         reg = <2>;
0617                         regulator-name = "hdd2power";
0618                         regulator-min-microvolt = <5000000>;
0619                         regulator-max-microvolt = <5000000>;
0620                         enable-active-high;
0621                         regulator-always-on;
0622                         regulator-boot-on;
0623                         startup-delay-us = <5000000>;
0624                         gpio = <&gpio0 31 GPIO_ACTIVE_HIGH>;
0625                 };
0626         };
0627 
0628         regulators-hdd-30-1 {
0629                 status = "disabled";
0630                 compatible = "simple-bus";
0631                 #address-cells = <1>;
0632                 #size-cells = <0>;
0633                 pinctrl-0 = <&pmx_hdd1_pwr_30>;
0634                 pinctrl-names = "default";
0635 
0636                 regulator@1 {
0637                         compatible = "regulator-fixed";
0638                         reg = <1>;
0639                         regulator-name = "hdd1power";
0640                         regulator-min-microvolt = <5000000>;
0641                         regulator-max-microvolt = <5000000>;
0642                         enable-active-high;
0643                         regulator-always-on;
0644                         regulator-boot-on;
0645                         startup-delay-us = <5000000>;
0646                         gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
0647                 };
0648         };
0649 
0650         regulators-hdd-30-2 {
0651                 status = "disabled";
0652                 compatible = "simple-bus";
0653                 #address-cells = <1>;
0654                 #size-cells = <0>;
0655                 pinctrl-0 = <&pmx_hdd1_pwr_30 &pmx_hdd2_pwr_34>;
0656                 pinctrl-names = "default";
0657 
0658                 regulator@1 {
0659                         compatible = "regulator-fixed";
0660                         reg = <1>;
0661                         regulator-name = "hdd1power";
0662                         regulator-min-microvolt = <5000000>;
0663                         regulator-max-microvolt = <5000000>;
0664                         enable-active-high;
0665                         regulator-always-on;
0666                         regulator-boot-on;
0667                         startup-delay-us = <5000000>;
0668                         gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
0669                 };
0670 
0671                 regulator@2 {
0672                         compatible = "regulator-fixed";
0673                         reg = <2>;
0674                         regulator-name = "hdd2power";
0675                         regulator-min-microvolt = <5000000>;
0676                         regulator-max-microvolt = <5000000>;
0677                         enable-active-high;
0678                         regulator-always-on;
0679                         regulator-boot-on;
0680                         startup-delay-us = <5000000>;
0681                         gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
0682                 };
0683         };
0684 
0685         regulators-hdd-30-4 {
0686                 status = "disabled";
0687                 compatible = "simple-bus";
0688                 #address-cells = <1>;
0689                 #size-cells = <0>;
0690                 pinctrl-0 = <&pmx_hdd1_pwr_30 &pmx_hdd2_pwr_34
0691                              &pmx_hdd3_pwr_44 &pmx_hdd4_pwr_45>;
0692                 pinctrl-names = "default";
0693 
0694                 regulator@1 {
0695                         compatible = "regulator-fixed";
0696                         reg = <1>;
0697                         regulator-name = "hdd1power";
0698                         regulator-min-microvolt = <5000000>;
0699                         regulator-max-microvolt = <5000000>;
0700                         enable-active-high;
0701                         regulator-always-on;
0702                         regulator-boot-on;
0703                         startup-delay-us = <5000000>;
0704                         gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
0705                 };
0706 
0707                 regulator@2 {
0708                         compatible = "regulator-fixed";
0709                         reg = <2>;
0710                         regulator-name = "hdd2power";
0711                         regulator-min-microvolt = <5000000>;
0712                         regulator-max-microvolt = <5000000>;
0713                         enable-active-high;
0714                         regulator-always-on;
0715                         regulator-boot-on;
0716                         startup-delay-us = <5000000>;
0717                         gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
0718                 };
0719 
0720                 regulator@3 {
0721                         compatible = "regulator-fixed";
0722                         reg = <3>;
0723                         regulator-name = "hdd3power";
0724                         regulator-min-microvolt = <5000000>;
0725                         regulator-max-microvolt = <5000000>;
0726                         enable-active-high;
0727                         regulator-always-on;
0728                         regulator-boot-on;
0729                         startup-delay-us = <5000000>;
0730                         gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
0731                 };
0732 
0733                 regulator@4 {
0734                         compatible = "regulator-fixed";
0735                         reg = <4>;
0736                         regulator-name = "hdd4power";
0737                         regulator-min-microvolt = <5000000>;
0738                         regulator-max-microvolt = <5000000>;
0739                         enable-active-high;
0740                         regulator-always-on;
0741                         regulator-boot-on;
0742                         startup-delay-us = <5000000>;
0743                         gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
0744                 };
0745         };
0746 
0747         regulators-hdd-31 {
0748                 status = "disabled";
0749                 compatible = "simple-bus";
0750                 #address-cells = <1>;
0751                 #size-cells = <0>;
0752                 pinctrl-0 = <&pmx_hdd2_pwr_31>;
0753                 pinctrl-names = "default";
0754 
0755                 regulator@1 {
0756                         compatible = "regulator-fixed";
0757                         reg = <1>;
0758                         regulator-name = "hdd2power";
0759                         regulator-min-microvolt = <5000000>;
0760                         regulator-max-microvolt = <5000000>;
0761                         enable-active-high;
0762                         regulator-always-on;
0763                         regulator-boot-on;
0764                         startup-delay-us = <5000000>;
0765                         gpio = <&gpio0 31 GPIO_ACTIVE_HIGH>;
0766                 };
0767         };
0768 
0769         regulators-hdd-34 {
0770                 status = "disabled";
0771                 compatible = "simple-bus";
0772                 #address-cells = <1>;
0773                 #size-cells = <0>;
0774                 pinctrl-0 = <&pmx_hdd2_pwr_34 &pmx_hdd3_pwr_44
0775                              &pmx_hdd4_pwr_45>;
0776                 pinctrl-names = "default";
0777 
0778                 regulator@2 {
0779                         compatible = "regulator-fixed";
0780                         reg = <2>;
0781                         regulator-name = "hdd2power";
0782                         regulator-min-microvolt = <5000000>;
0783                         regulator-max-microvolt = <5000000>;
0784                         enable-active-high;
0785                         regulator-always-on;
0786                         regulator-boot-on;
0787                         startup-delay-us = <5000000>;
0788                         gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
0789                 };
0790 
0791                 regulator@3 {
0792                         compatible = "regulator-fixed";
0793                         reg = <3>;
0794                         regulator-name = "hdd3power";
0795                         regulator-min-microvolt = <5000000>;
0796                         regulator-max-microvolt = <5000000>;
0797                         enable-active-high;
0798                         regulator-always-on;
0799                         regulator-boot-on;
0800                         startup-delay-us = <5000000>;
0801                         gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
0802                 };
0803 
0804                 regulator@4 {
0805                         compatible = "regulator-fixed";
0806                         reg = <4>;
0807                         regulator-name = "hdd4power";
0808                         regulator-min-microvolt = <5000000>;
0809                         regulator-max-microvolt = <5000000>;
0810                         enable-active-high;
0811                         regulator-always-on;
0812                         regulator-boot-on;
0813                         startup-delay-us = <5000000>;
0814                         gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
0815                 };
0816         };
0817 };
0818 
0819 &mdio {
0820         status = "okay";
0821 
0822         ethphy0: ethernet-phy@0 {
0823                 device_type = "ethernet-phy";
0824                 reg = <8>;
0825         };
0826 
0827         ethphy1: ethernet-phy@1 {
0828                 device_type = "ethernet-phy";
0829                 reg = <9>;
0830         };
0831 };
0832 
0833 &eth0 {
0834         status = "okay";
0835 
0836         ethernet0-port@0 {
0837                 phy-handle = <&ethphy0>;
0838         };
0839 };
0840 
0841 &eth1 {
0842         status = "disabled";
0843 
0844         ethernet1-port@0 {
0845                 phy-handle = <&ethphy1>;
0846         };
0847 };
0848 
0849 &pciec {
0850         status = "okay";
0851 };
0852 
0853 &pcie0 {
0854         status = "okay";
0855 };