Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 // Copyright 2019 YADRO
0003 /dts-v1/;
0004 
0005 #include "aspeed-g4.dtsi"
0006 #include <dt-bindings/gpio/aspeed-gpio.h>
0007 
0008 / {
0009         model = "Vesnin BMC";
0010         compatible = "yadro,vesnin-bmc", "aspeed,ast2400";
0011 
0012         chosen {
0013                 stdout-path = &uart5;
0014                 bootargs = "console=ttyS4,115200 earlycon";
0015         };
0016 
0017         memory@40000000 {
0018                 reg = <0x40000000 0x20000000>;
0019         };
0020 
0021         reserved-memory {
0022                 #address-cells = <1>;
0023                 #size-cells = <1>;
0024                 ranges;
0025 
0026                 vga_memory: framebuffer@5f000000 {
0027                         no-map;
0028                         reg = <0x5f000000 0x01000000>; /* 16MB */
0029                 };
0030                 flash_memory: region@5c000000 {
0031                         no-map;
0032                         reg = <0x5c000000 0x02000000>; /* 32M */
0033                 };
0034         };
0035 
0036         leds {
0037                 compatible = "gpio-leds";
0038 
0039                 heartbeat {
0040                         gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>;
0041                 };
0042                 power_red {
0043                         gpios = <&gpio ASPEED_GPIO(N, 1) GPIO_ACTIVE_LOW>;
0044                 };
0045 
0046                 power_green {
0047                         gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
0048                 };
0049 
0050                 id_blue {
0051                         gpios = <&gpio ASPEED_GPIO(O, 0) GPIO_ACTIVE_LOW>;
0052                 };
0053 
0054                 alarm_red {
0055                         gpios = <&gpio ASPEED_GPIO(N, 6) GPIO_ACTIVE_LOW>;
0056                 };
0057 
0058                 alarm_yel {
0059                         gpios = <&gpio ASPEED_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
0060                 };
0061         };
0062 
0063         gpio-keys {
0064                 compatible = "gpio-keys";
0065 
0066                 event-checkstop {
0067                         label = "checkstop";
0068                         linux,code = <74>;
0069                         gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
0070                 };
0071 
0072                 event-identify {
0073                         label = "identify";
0074                         linux,code = <152>;
0075                         gpios = <&gpio ASPEED_GPIO(O, 7) GPIO_ACTIVE_LOW>;
0076                 };
0077         };
0078 };
0079 
0080 &fmc {
0081         status = "okay";
0082         flash@0 {
0083                 status = "okay";
0084                 m25p,fast-read;
0085         label = "bmc";
0086 #include "openbmc-flash-layout.dtsi"
0087         };
0088 
0089         flash@1 {
0090                 status = "okay";
0091                 m25p,fast-read;
0092                 label = "alt";
0093         };
0094 };
0095 
0096 &spi {
0097         status = "okay";
0098         pinctrl-names = "default";
0099         pinctrl-0 = <&pinctrl_spi1debug_default>;
0100 
0101         flash@0 {
0102                 status = "okay";
0103                 label = "pnor";
0104                 m25p,fast-read;
0105         };
0106 };
0107 
0108 &mac0 {
0109         status = "okay";
0110         use-ncsi;
0111         pinctrl-names = "default";
0112         pinctrl-0 = <&pinctrl_rmii1_default>;
0113 };
0114 
0115 
0116 &uart5 {
0117         status = "okay";
0118 };
0119 
0120 &lpc_ctrl {
0121         status = "okay";
0122         memory-region = <&flash_memory>;
0123         flash = <&spi>;
0124 };
0125 
0126 &ibt {
0127         status = "okay";
0128 };
0129 
0130 &uart3 {
0131         status = "okay";
0132         pinctrl-names = "default";
0133         pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
0134 };
0135 
0136 &i2c0 {
0137         status = "okay";
0138 
0139         eeprom@50 {
0140                 compatible = "atmel,24c256";
0141                 reg = <0x50>;
0142                 pagesize = <64>;
0143         };
0144 };
0145 
0146 &i2c1 {
0147         status = "okay";
0148 
0149         tmp75@49 {
0150                 compatible = "ti,tmp75";
0151                 reg = <0x49>;
0152         };
0153 };
0154 
0155 &i2c2 {
0156         status = "okay";
0157 };
0158 
0159 &i2c3 {
0160         status = "okay";
0161 };
0162 
0163 &i2c4 {
0164         status = "okay";
0165 
0166         occ-hwmon@50 {
0167                 compatible = "ibm,p8-occ-hwmon";
0168                 reg = <0x50>;
0169         };
0170 };
0171 
0172 &i2c5 {
0173         status = "okay";
0174 
0175         occ-hwmon@51 {
0176                 compatible = "ibm,p8-occ-hwmon";
0177                 reg = <0x51>;
0178         };
0179 };
0180 
0181 &i2c6 {
0182         status = "okay";
0183 
0184         w83795g@2f {
0185                 compatible = "nuvoton,w83795g";
0186                 reg = <0x2f>;
0187         };
0188 };
0189 
0190 &i2c7 {
0191         status = "okay";
0192 
0193         occ-hwmon@56 {
0194                 compatible = "ibm,p8-occ-hwmon";
0195                 reg = <0x56>;
0196         };
0197 };
0198 
0199 &i2c9 {
0200         status = "okay";
0201 };
0202 
0203 &i2c10 {
0204         status = "okay";
0205 };
0206 
0207 &i2c11 {
0208         status = "okay";
0209 
0210         occ-hwmon@57 {
0211                 compatible = "ibm,p8-occ-hwmon";
0212                 reg = <0x57>;
0213         };
0214 };
0215 
0216 &i2c12 {
0217         status = "okay";
0218 
0219         rtc@68 {
0220                 compatible = "maxim,ds3231";
0221                 reg = <0x68>;
0222         };
0223 };
0224 
0225 &i2c13 {
0226         status = "okay";
0227 };
0228 
0229 &vuart {
0230         status = "okay";
0231 };
0232 
0233 &wdt2 {
0234         aspeed,alt-boot;
0235 };
0236 
0237 &sdmmc {
0238         status = "okay";
0239 };
0240 
0241 &sdhci1 {
0242         status = "okay";
0243 
0244         pinctrl-names = "default";
0245         pinctrl-0 = <&pinctrl_sd2_default>;
0246         cd-inverted;
0247         disable-wp;
0248 };