Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 // Copyright 2021 Inventec Corp.
0003 
0004 /dts-v1/;
0005 
0006 #include "aspeed-g6.dtsi"
0007 #include "aspeed-g6-pinctrl.dtsi"
0008 #include <dt-bindings/i2c/i2c.h>
0009 #include <dt-bindings/gpio/aspeed-gpio.h>
0010 
0011 / {
0012        model = "TRANSFORMERS BMC";
0013        compatible = "inventec,transformer-bmc", "aspeed,ast2600";
0014 
0015        aliases {
0016                serial4 = &uart5;
0017        };
0018 
0019        chosen {
0020                stdout-path = &uart5;
0021                bootargs = "console=ttyS4,115200n8";
0022        };
0023 
0024        memory@80000000 {
0025                device_type = "memory";
0026                reg = <0x80000000 0x80000000>;
0027        };
0028 
0029        leds {
0030                compatible = "gpio-leds";
0031 
0032                // UID led
0033                uid {
0034                        label = "UID_LED";
0035                        gpios = <&gpio0 ASPEED_GPIO(X, 0) GPIO_ACTIVE_LOW>;
0036                };
0037 
0038                // Heart beat led
0039                heartbeat {
0040                        label = "HB_LED";
0041                        gpios = <&gpio0 ASPEED_GPIO(P, 7) GPIO_ACTIVE_LOW>;
0042                };
0043        };
0044 };
0045 
0046 &mdio0 {
0047        status = "okay";
0048 
0049        ethphy0: ethernet-phy@0 {
0050                compatible = "ethernet-phy-ieee802.3-c22";
0051                reg = <1>;
0052        };
0053 };
0054 
0055 &mac3 {
0056        status = "okay";
0057        phy-mode = "rgmii";
0058        phy-handle = <&ethphy0>;
0059        pinctrl-names = "default";
0060        pinctrl-0 = <&pinctrl_rgmii4_default>;
0061 };
0062 
0063 &fmc {
0064        status = "okay";
0065 
0066        flash@0 {
0067                status = "okay";
0068                m25p,fast-read;
0069                label = "bmc";
0070                spi-max-frequency = <33000000>;
0071                spi-tx-bus-width = <2>;
0072                spi-rx-bus-width = <2>;
0073 #include "openbmc-flash-layout.dtsi"
0074        };
0075 
0076        flash@1 {
0077                status = "okay";
0078                m25p,fast-read;
0079                label = "bmc2";
0080                spi-max-frequency = <33000000>;
0081                spi-tx-bus-width = <2>;
0082                spi-rx-bus-width = <2>;
0083        };
0084 };
0085 
0086 &spi1 {
0087        status = "okay";
0088        pinctrl-names = "default";
0089        pinctrl-0 = <&pinctrl_spi1_default>;
0090 
0091        flash@0 {
0092                status = "okay";
0093                m25p,fast-read;
0094                label = "bios";
0095                spi-max-frequency = <33000000>;
0096                spi-tx-bus-width = <1>;
0097                spi-rx-bus-width = <1>;
0098        };
0099 };
0100 
0101 &wdt1 {
0102        status = "okay";
0103 };
0104 
0105 &uart1 {
0106        status = "okay";
0107 };
0108 
0109 &uart5 {
0110        status = "okay";
0111 };
0112 
0113 &i2c0 {
0114        status = "okay";
0115 
0116        //Set bmc' slave address;
0117        bmc_slave@10 {
0118                compatible = "ipmb-dev";
0119                reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
0120                i2c-protocol;
0121        };
0122 };
0123 
0124 &i2c2 {
0125        status = "okay";
0126 };
0127 
0128 &i2c3 {
0129        // FRU AT24C512C-SSHM-T
0130        status = "okay";
0131        eeprom@50 {
0132                compatible = "atmel,24c512";
0133                reg = <0x50>;
0134                pagesize = <128>;
0135        };
0136 };
0137 
0138 &i2c5 {
0139        status = "okay";
0140 };
0141 
0142 &i2c6 {
0143        status = "okay";
0144 
0145        tmp75@49 {
0146                compatible = "ti,tmp75";
0147                reg = <0x49>;
0148        };
0149 
0150        tmp75@4f {
0151                compatible = "ti,tmp75";
0152                reg = <0x4f>;
0153        };
0154 
0155        tmp468@48 {
0156                compatible = "ti,tmp468";
0157                reg = <0x48>;
0158        };
0159 };
0160 
0161 &i2c7 {
0162        status = "okay";
0163        adm1278@40 {
0164                compatible = "adi,adm1278";
0165                reg = <0x40>;
0166        };
0167 };
0168 
0169 
0170 &i2c8 {
0171        // FRU AT24C512C-SSHM-T
0172        status = "okay";
0173 
0174        eeprom@51 {
0175                compatible = "atmel,24c512";
0176                reg = <0x51>;
0177                pagesize = <128>;
0178        };
0179 
0180        eeprom@53 {
0181                compatible = "atmel,24c512";
0182                reg = <0x53>;
0183                pagesize = <128>;
0184        };
0185 };
0186 
0187 &i2c9 {
0188        // M.2
0189        status = "okay";
0190 };
0191 
0192 &i2c10 {
0193        // I2C EXPANDER
0194        status = "okay";
0195 
0196        i2c-switch@71 {
0197                compatible = "nxp,pca9544";
0198                #address-cells = <1>;
0199                #size-cells = <0>;
0200                reg = <0x71>;
0201        };
0202 
0203        i2c-switch@73 {
0204                compatible = "nxp,pca9544";
0205                #address-cells = <1>;
0206                #size-cells = <0>;
0207                reg = <0x73>;
0208        };
0209 };
0210 
0211 &i2c11 {
0212        // I2C EXPANDER
0213        status = "okay";
0214 
0215        i2c-switch@70 {
0216                compatible = "nxp,pca9544";
0217                #address-cells = <1>;
0218                #size-cells = <0>;
0219                reg = <0x70>;
0220 
0221                pcie_eeprom_riser1: i2c@0 {
0222                        #address-cells = <1>;
0223                        #size-cells = <0>;
0224                        reg = <0>;
0225 
0226                        eeprom@55 {
0227                                compatible = "atmel,24c512";
0228                                reg = <0x55>;
0229                                pagesize = <128>;
0230                        };
0231                };
0232 
0233                pcie_eeprom_riser2: i2c@1 {
0234                        #address-cells = <1>;
0235                        #size-cells = <0>;
0236                        reg = <1>;
0237 
0238                        eeprom@55 {
0239                                compatible = "atmel,24c512";
0240                                reg = <0x55>;
0241                                pagesize = <128>;
0242                        };
0243                };
0244 
0245                pcie_eeprom_riser3: i2c@2 {
0246                        #address-cells = <1>;
0247                        #size-cells = <0>;
0248                        reg = <2>;
0249 
0250                        eeprom@55 {
0251                                compatible = "atmel,24c512";
0252                                reg = <0x55>;
0253                                pagesize = <128>;
0254                        };
0255                };
0256        };
0257 };
0258 
0259 &i2c12 {
0260        status = "okay";
0261 
0262        psu0:psu0@58 {
0263                compatible = "pmbus";
0264                reg = <0x58>;
0265        };
0266 };
0267 
0268 &gpio0 {
0269        status = "okay";
0270        gpio-line-names =
0271        /*A0-A7*/   "","","","","","","","",
0272        /*B0-B7*/   "presence-ps0","power-chassis-good","","","","","presence-ps1","",
0273        /*C0-C7*/   "","","","","","","","",
0274        /*D0-D7*/   "","","","","","","","",
0275        /*E0-E7*/   "","","","","","","","",
0276        /*F0-F7*/   "","","","","power-chassis-control","","","",
0277        /*G0-G7*/   "","","jtag-mux","","","","","",
0278        /*H0-H7*/   "","","","","reset-button","power-button","","",
0279        /*I0-I7*/   "","","","","","","","",
0280        /*J0-J7*/   "","","","","","","","",
0281        /*K0-K7*/   "","","","","","","","",
0282        /*L0-L7*/   "","","","","","","","",
0283        /*M0-M7*/   "","","","","","","","",
0284        /*N0-N7*/   "","","","","","","","",
0285        /*O0-O7*/   "","","","","","","","",
0286        /*P0-P7*/   "","","","tck-mux","","","","",
0287        /*Q0-Q7*/   "","","","","","","","",
0288        /*R0-R7*/   "","","","","","","","",
0289        /*S0-S7*/   "","","","","","","","",
0290        /*T0-T7*/   "","","","","","","","",
0291        /*U0-U7*/   "","nmi-button","","","","","","",
0292        /*V0-V7*/   "","","","","power-config-full-load","","","",
0293        /*W0-W7*/   "","","","","","","","",
0294        /*X0-X7*/   "","","","","","","","",
0295        /*Y0-Y7*/   "","","","","","","","",
0296        /*Z0-Z7*/   "","","","","","","","",
0297        /*AA0-AA7*/ "","","","","","","","",
0298        /*AB0-AB7*/ "","","","","","","","",
0299        /*AC0-AC7*/ "","","","","","","","";
0300 };
0301 
0302 &lpc_snoop {
0303        status = "okay";
0304        snoop-ports = <0x80>;
0305 };
0306 
0307 &emmc_controller {
0308        status = "okay";
0309 };
0310 
0311 &emmc {
0312        status = "okay";
0313        non-removable;
0314        max-frequency = <52000000>;
0315        bus-width = <8>;
0316 };
0317 
0318 &vhub {
0319        status = "okay";
0320        aspeed,vhub-downstream-ports = <7>;
0321        aspeed,vhub-generic-endpoints = <21>;
0322        pinctrl-names = "default";
0323        pinctrl-0 = <&pinctrl_usb2ad_default>;
0324 };
0325 
0326 &rtc {
0327        status = "okay";
0328 };