Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 // Copyright (c) 2019 Quanta Computer lnc. Fran.Hsu@quantatw.com
0003 
0004 /dts-v1/;
0005 #include "nuvoton-npcm730.dtsi"
0006 #include "nuvoton-npcm730-gsj-gpio.dtsi"
0007 
0008 #include <dt-bindings/gpio/gpio.h>
0009 
0010 / {
0011         model = "Quanta GSJ Board (Device Tree v12)";
0012         compatible = "nuvoton,npcm750";
0013 
0014         aliases {
0015                 ethernet1 = &gmac0;
0016                 serial3 = &serial3;
0017                 i2c1 = &i2c1;
0018                 i2c2 = &i2c2;
0019                 i2c3 = &i2c3;
0020                 i2c4 = &i2c4;
0021                 i2c8 = &i2c8;
0022                 i2c9 = &i2c9;
0023                 i2c10 = &i2c10;
0024                 i2c11 = &i2c11;
0025                 i2c12 = &i2c12;
0026                 i2c15 = &i2c15;
0027                 fiu0 = &fiu0;
0028         };
0029 
0030         chosen {
0031                 stdout-path = &serial3;
0032         };
0033 
0034         memory {
0035                 reg = <0 0x40000000>;
0036         };
0037 
0038         leds {
0039                 compatible = "gpio-leds";
0040 
0041                 led-bmc-live {
0042                         gpios = <&gpio4 15 GPIO_ACTIVE_HIGH>;
0043                         linux,default-trigger = "heartbeat";
0044                 };
0045 
0046                 LED_U2_0_LOCATE {
0047                         gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
0048                         default-state = "off";
0049                 };
0050 
0051                 LED_U2_1_LOCATE {
0052                         gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
0053                         default-state = "off";
0054                 };
0055 
0056                 LED_U2_2_LOCATE {
0057                         gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
0058                         default-state = "off";
0059                 };
0060 
0061                 LED_U2_3_LOCATE {
0062                         gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
0063                         default-state = "off";
0064                 };
0065 
0066                 LED_U2_4_LOCATE {
0067                         gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
0068                         default-state = "off";
0069                 };
0070 
0071                 LED_U2_5_LOCATE {
0072                         gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
0073                         default-state = "off";
0074                 };
0075 
0076                 LED_BMC_TRAY_PWRGD {
0077                         gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
0078                         default-state = "off";
0079                 };
0080 
0081                 LED_U2_7_FAULT {
0082                         gpios = <&gpio6 8 GPIO_ACTIVE_HIGH>;
0083                         default-state = "off";
0084                 };
0085 
0086                 LED_U2_6_LOCATE {
0087                         gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
0088                         default-state = "off";
0089                 };
0090 
0091                 LED_U2_7_LOCATE {
0092                         gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
0093                         default-state = "off";
0094                 };
0095 
0096                 LED_U2_0_FAULT {
0097                         gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
0098                         default-state = "off";
0099                 };
0100 
0101                 LED_U2_1_FAULT {
0102                         gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
0103                         default-state = "off";
0104                 };
0105 
0106                 LED_U2_2_FAULT {
0107                         gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;
0108                         default-state = "off";
0109                 };
0110 
0111                 LED_U2_3_FAULT {
0112                         gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>;
0113                         default-state = "off";
0114                 };
0115 
0116                 LED_U2_4_FAULT {
0117                         gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>;
0118                         default-state = "off";
0119                 };
0120 
0121                 LED_U2_5_FAULT {
0122                         gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
0123                         default-state = "off";
0124                 };
0125 
0126                 LED_U2_6_FAULT {
0127                         gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
0128                         default-state = "off";
0129                 };
0130         };
0131 };
0132 
0133 &fiu0 {
0134         pinctrl-names = "default";
0135         pinctrl-0 = <&spi0cs1_pins>;
0136         status = "okay";
0137 
0138         flash@0 {
0139                 compatible = "jedec,spi-nor";
0140                 #address-cells = <1>;
0141                 #size-cells = <1>;
0142                 reg = <0>;
0143                 spi-rx-bus-width = <2>;
0144 
0145                 partitions@80000000 {
0146                         compatible = "fixed-partitions";
0147                         #address-cells = <1>;
0148                         #size-cells = <1>;
0149                         bmc@0{
0150                                 label = "bmc";
0151                                 reg = <0x000000 0x2000000>;
0152                         };
0153                         u-boot@0 {
0154                                 label = "u-boot";
0155                                 reg = <0x0000000 0x80000>;
0156                                 read-only;
0157                         };
0158                         u-boot-env@100000{
0159                                 label = "u-boot-env";
0160                                 reg = <0x00100000 0x40000>;
0161                         };
0162                         kernel@200000 {
0163                                 label = "kernel";
0164                                 reg = <0x0200000 0x600000>;
0165                         };
0166                         rofs@800000 {
0167                                 label = "rofs";
0168                                 reg = <0x800000 0x1400000>;
0169                         };
0170                         rwfs@1c00000 {
0171                                 label = "rwfs";
0172                                 reg = <0x1c00000 0x300000>;
0173                         };
0174                         reserved@1f00000 {
0175                                 label = "reserved";
0176                                 reg = <0x1f00000 0x100000>;
0177                         };
0178                 };
0179         };
0180 };
0181 
0182 &gmac0 {
0183         phy-mode = "rgmii-id";
0184         status = "okay";
0185 };
0186 
0187 &ehci1 {
0188         status = "okay";
0189 };
0190 
0191 &watchdog1 {
0192         status = "okay";
0193 };
0194 
0195 &rng {
0196         status = "okay";
0197 };
0198 
0199 &serial0 {
0200         status = "okay";
0201 };
0202 
0203 &serial1 {
0204         status = "okay";
0205 };
0206 
0207 &serial2 {
0208         status = "okay";
0209 };
0210 
0211 &serial3 {
0212         status = "okay";
0213 };
0214 
0215 &adc {
0216         status = "okay";
0217 };
0218 
0219 &i2c1 {
0220         status = "okay";
0221 
0222         lm75@5c {
0223                 compatible = "maxim,max31725";
0224                 reg = <0x5c>;
0225                 status = "okay";
0226         };
0227 };
0228 
0229 &i2c2 {
0230         status = "okay";
0231 
0232         lm75@5c {
0233                 compatible = "maxim,max31725";
0234                 reg = <0x5c>;
0235                 status = "okay";
0236         };
0237 };
0238 
0239 &i2c3 {
0240         status = "okay";
0241 
0242         lm75@5c {
0243                 compatible = "maxim,max31725";
0244                 reg = <0x5c>;
0245         };
0246 };
0247 
0248 &i2c4 {
0249         status = "okay";
0250 
0251         lm75@5c {
0252                 compatible = "maxim,max31725";
0253                 reg = <0x5c>;
0254         };
0255 };
0256 
0257 &i2c8 {
0258         status = "okay";
0259 };
0260 
0261 &i2c9 {
0262         status = "okay";
0263 
0264         eeprom@55 {
0265                 compatible = "atmel,24c64";
0266                 reg = <0x55>;
0267         };
0268 };
0269 
0270 &i2c10 {
0271         status = "okay";
0272 
0273         eeprom@55 {
0274                 compatible = "atmel,24c64";
0275                 reg = <0x55>;
0276         };
0277 };
0278 
0279 &i2c11 {
0280         status = "okay";
0281 
0282         /* P12V Quarter Brick DC/DC Power Module Q54SH12050 @60 */
0283         power-brick@36 {
0284                 compatible = "delta,dps800";
0285                 reg = <0x36>;
0286         };
0287 
0288         hotswap@15 {
0289                 compatible = "ti,lm5066i";
0290                 reg = <0x15>;
0291         };
0292 };
0293 
0294 &i2c12 {
0295         status = "okay";
0296 
0297         ucd90160@6b {
0298                 compatible = "ti,ucd90160";
0299                 reg = <0x6b>;
0300         };
0301 };
0302 
0303 &i2c15 {
0304         status = "okay";
0305 
0306         i2c-switch@75 {
0307                 compatible = "nxp,pca9548";
0308                 #address-cells = <1>;
0309                 #size-cells = <0>;
0310                 reg = <0x75>;
0311                 i2c-mux-idle-disconnect;
0312 
0313                 i2c_u20: i2c@0 {
0314                         #address-cells = <1>;
0315                         #size-cells = <0>;
0316                         reg = <0>;
0317                 };
0318 
0319                 i2c_u21: i2c@1 {
0320                         #address-cells = <1>;
0321                         #size-cells = <0>;
0322                         reg = <1>;
0323                 };
0324 
0325                 i2c_u22: i2c@2 {
0326                         #address-cells = <1>;
0327                         #size-cells = <0>;
0328                         reg = <2>;
0329                 };
0330 
0331                 i2c_u23: i2c@3 {
0332                         #address-cells = <1>;
0333                         #size-cells = <0>;
0334                         reg = <3>;
0335                 };
0336 
0337                 i2c_u24: i2c@4 {
0338                         #address-cells = <1>;
0339                         #size-cells = <0>;
0340                         reg = <4>;
0341                 };
0342 
0343                 i2c_u25: i2c@5 {
0344                         #address-cells = <1>;
0345                         #size-cells = <0>;
0346                         reg = <5>;
0347                 };
0348 
0349                 i2c_u26: i2c@6 {
0350                         #address-cells = <1>;
0351                         #size-cells = <0>;
0352                         reg = <6>;
0353                 };
0354 
0355                 i2c_u27: i2c@7 {
0356                         #address-cells = <1>;
0357                         #size-cells = <0>;
0358                         reg = <7>;
0359                 };
0360         };
0361 };
0362 
0363 &pwm_fan {
0364         pinctrl-names = "default";
0365         pinctrl-0 = <&pwm0_pins &pwm1_pins &pwm2_pins
0366                         &fanin0_pins &fanin1_pins
0367                         &fanin2_pins &fanin3_pins
0368                         &fanin4_pins &fanin5_pins>;
0369         status = "okay";
0370 
0371         fan@0 {
0372                 reg = <0x00>;
0373                 fan-tach-ch = /bits/ 8 <0x00 0x01>;
0374                 cooling-levels = <127 255>;
0375         };
0376 
0377         fan@1 {
0378                 reg = <0x01>;
0379                 fan-tach-ch = /bits/ 8 <0x02 0x03>;
0380                 cooling-levels = /bits/ 8 <127 255>;
0381         };
0382 
0383         fan@2 {
0384                 reg = <0x02>;
0385                 fan-tach-ch = /bits/ 8 <0x04 0x05>;
0386                 cooling-levels = /bits/ 8 <127 255>;
0387         };
0388 };
0389 
0390 &pinctrl {
0391         pinctrl-names = "default";
0392         pinctrl-0 = <
0393                         /* GPI pins*/
0394                         &gpio8_pins
0395                         &gpio9_pins
0396                         &gpio12_pins
0397                         &gpio13_pins
0398                         &gpio14_pins
0399                         &gpio60_pins
0400                         &gpio83_pins
0401                         &gpio91_pins
0402                         &gpio92_pins
0403                         &gpio95_pins
0404                         &gpio136_pins
0405                         &gpio137_pins
0406                         &gpio141_pins
0407                         &gpio144_pins
0408                         &gpio145_pins
0409                         &gpio146_pins
0410                         &gpio147_pins
0411                         &gpio148_pins
0412                         &gpio149_pins
0413                         &gpio150_pins
0414                         &gpio151_pins
0415                         &gpio152_pins
0416                         &gpio153_pins
0417                         &gpio154_pins
0418                         &gpio155_pins
0419                         &gpio156_pins
0420                         &gpio157_pins
0421                         &gpio158_pins
0422                         &gpio159_pins
0423                         &gpio161_pins
0424                         &gpio162_pins
0425                         &gpio163_pins
0426                         &gpio164_pins
0427                         &gpio165_pins
0428                         &gpio166_pins
0429                         &gpio167_pins
0430                         &gpio168_pins
0431                         &gpio169_pins
0432                         &gpio170_pins
0433                         &gpio177_pins
0434                         &gpio191_pins
0435                         &gpio192_pins
0436                         &gpio203_pins
0437                         /* GPO pins*/
0438                         &gpio0pp_pins
0439                         &gpio1pp_pins
0440                         &gpio2pp_pins
0441                         &gpio3pp_pins
0442                         &gpio4pp_pins
0443                         &gpio5pp_pins
0444                         &gpio6pp_pins
0445                         &gpio7pp_pins
0446                         &gpio10pp_pins
0447                         &gpio11pp_pins
0448                         &gpio15od_pins
0449                         &gpio17pp_pins
0450                         &gpio18pp_pins
0451                         &gpio19pp_pins
0452                         &gpio24pp_pins
0453                         &gpio25pp_pins
0454                         &gpio37od_pins
0455                         &gpio59pp_pins
0456                         &gpio72od_pins
0457                         &gpio73od_pins
0458                         &gpio74od_pins
0459                         &gpio75od_pins
0460                         &gpio76od_pins
0461                         &gpio77od_pins
0462                         &gpio78od_pins
0463                         &gpio79od_pins
0464                         &gpio84pp_pins
0465                         &gpio85pp_pins
0466                         &gpio86pp_pins
0467                         &gpio87pp_pins
0468                         &gpio88pp_pins
0469                         &gpio89pp_pins
0470                         &gpio90pp_pins
0471                         &gpio93pp_pins
0472                         &gpio94pp_pins
0473                         &gpio125pp_pins
0474                         &gpio126od_pins
0475                         &gpio127od_pins
0476                         &gpio142od_pins
0477                         &gpio143ol_pins
0478                         &gpio175od_pins
0479                         &gpio176od_pins
0480                         &gpio190od_pins
0481                         &gpio194pp_pins
0482                         &gpio195od_pins
0483                         &gpio196od_pins
0484                         &gpio197od_pins
0485                         &gpio198od_pins
0486                         &gpio199od_pins
0487                         &gpio200pp_pins
0488                         &gpio202od_pins
0489                         >;
0490 };