0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003 #include "aspeed-g4.dtsi"
0004 #include <dt-bindings/gpio/aspeed-gpio.h>
0005
0006 / {
0007 model = "Quanta Q71L BMC";
0008 compatible = "quanta,q71l-bmc", "aspeed,ast2400";
0009
0010 aliases {
0011 i2c14 = &i2c_pcie2;
0012 i2c15 = &i2c_pcie3;
0013 i2c16 = &i2c_pcie6;
0014 i2c17 = &i2c_pcie7;
0015 i2c18 = &i2c_pcie1;
0016 i2c19 = &i2c_pcie4;
0017 i2c20 = &i2c_pcie5;
0018 i2c21 = &i2c_pcie8;
0019 i2c22 = &i2c_pcie9;
0020 i2c23 = &i2c_pcie10;
0021 i2c24 = &i2c_ssd1;
0022 i2c25 = &i2c_ssd2;
0023 i2c26 = &i2c_psu4;
0024 i2c27 = &i2c_psu1;
0025 i2c28 = &i2c_psu3;
0026 i2c29 = &i2c_psu2;
0027 };
0028
0029 chosen {
0030 stdout-path = &uart5;
0031 bootargs = "console=ttyS4,115200 earlycon";
0032 };
0033
0034 memory@40000000 {
0035 reg = <0x40000000 0x8000000>;
0036 };
0037
0038 reserved-memory {
0039 #address-cells = <1>;
0040 #size-cells = <1>;
0041 ranges;
0042
0043 vga_memory: framebuffer@47800000 {
0044 no-map;
0045 reg = <0x47800000 0x00800000>; /* 8MB */
0046 };
0047 };
0048
0049 leds {
0050 compatible = "gpio-leds";
0051
0052 heartbeat {
0053 gpios = <&gpio ASPEED_GPIO(B, 0) GPIO_ACTIVE_LOW>;
0054 };
0055
0056 power {
0057 gpios = <&gpio ASPEED_GPIO(B, 2) GPIO_ACTIVE_LOW>;
0058 };
0059
0060 identify {
0061 gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_LOW>;
0062 };
0063 };
0064
0065 iio-hwmon {
0066 compatible = "iio-hwmon";
0067 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
0068 <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
0069 <&adc 8>, <&adc 9>, <&adc 10>;
0070 };
0071
0072 iio-hwmon-battery {
0073 compatible = "iio-hwmon";
0074 io-channels = <&adc 11>;
0075 };
0076
0077 i2c1mux: i2cmux {
0078 compatible = "i2c-mux-gpio";
0079 #address-cells = <1>;
0080 #size-cells = <0>;
0081
0082 /* mux-gpios = <&sgpio 10 GPIO_ACTIVE_HIGH> */
0083 i2c-parent = <&i2c1>;
0084 };
0085 };
0086
0087 &fmc {
0088 status = "okay";
0089 flash@0 {
0090 status = "okay";
0091 label = "bmc";
0092 m25p,fast-read;
0093 #include "openbmc-flash-layout.dtsi"
0094 };
0095 };
0096
0097 &spi {
0098 status = "okay";
0099 pinctrl-names = "default";
0100 pinctrl-0 = <&pinctrl_spi1_default>;
0101
0102 flash@0 {
0103 status = "okay";
0104 m25p,fast-read;
0105 label = "pnor";
0106 };
0107 };
0108
0109 &pinctrl {
0110 pinctrl-names = "default";
0111 pinctrl-0 = <&pinctrl_vgahs_default &pinctrl_vgavs_default
0112 &pinctrl_ddcclk_default &pinctrl_ddcdat_default>;
0113 };
0114
0115 &p2a {
0116 status = "okay";
0117 memory-region = <&vga_memory>;
0118 };
0119
0120 &ibt {
0121 status = "okay";
0122 };
0123
0124 &lpc_ctrl {
0125 status = "okay";
0126 };
0127
0128 &lpc_snoop {
0129 status = "okay";
0130 snoop-ports = <0x80>;
0131 };
0132
0133 &mac0 {
0134 status = "okay";
0135 pinctrl-names = "default";
0136 pinctrl-0 = <&pinctrl_rmii1_default>;
0137 use-ncsi;
0138 };
0139
0140 &mac1 {
0141 status = "okay";
0142 pinctrl-names = "default";
0143 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
0144 };
0145
0146 &uart1 {
0147 status = "okay";
0148 };
0149
0150 &uart5 {
0151 status = "okay";
0152 };
0153
0154 &i2c0 {
0155 status = "okay";
0156 };
0157
0158 &i2c1 {
0159 status = "okay";
0160
0161 /* temp2 inlet */
0162 tmp75@4c {
0163 compatible = "ti,tmp75";
0164 reg = <0x4c>;
0165 };
0166
0167 /* temp3 */
0168 tmp75@4e {
0169 compatible = "ti,tmp75";
0170 reg = <0x4e>;
0171 };
0172
0173 /* temp1 */
0174 tmp75@4f {
0175 compatible = "ti,tmp75";
0176 reg = <0x4f>;
0177 };
0178
0179 /* Baseboard FRU */
0180 eeprom@54 {
0181 compatible = "atmel,24c64";
0182 reg = <0x54>;
0183 };
0184
0185 /* FP FRU */
0186 eeprom@57 {
0187 compatible = "atmel,24c64";
0188 reg = <0x57>;
0189 };
0190 };
0191
0192 &i2c2 {
0193 status = "okay";
0194
0195 /* 0: PCIe Slot 2,
0196 * Slot 3,
0197 * Slot 6,
0198 * Slot 7
0199 */
0200 i2c-switch@74 {
0201 compatible = "nxp,pca9546";
0202 reg = <0x74>;
0203 #address-cells = <1>;
0204 #size-cells = <0>;
0205 i2c-mux-idle-disconnect; /* may use mux@77 next. */
0206
0207 i2c_pcie2: i2c@0 {
0208 #address-cells = <1>;
0209 #size-cells = <0>;
0210 reg = <0>;
0211 };
0212
0213 i2c_pcie3: i2c@1 {
0214 #address-cells = <1>;
0215 #size-cells = <0>;
0216 reg = <1>;
0217 };
0218
0219 i2c_pcie6: i2c@2 {
0220 #address-cells = <1>;
0221 #size-cells = <0>;
0222 reg = <2>;
0223 };
0224
0225 i2c_pcie7: i2c@3 {
0226 #address-cells = <1>;
0227 #size-cells = <0>;
0228 reg = <3>;
0229 };
0230 };
0231
0232 /* 0: PCIe Slot 1,
0233 * Slot 4,
0234 * Slot 5,
0235 * Slot 8,
0236 * Slot 9,
0237 * Slot 10,
0238 * SSD 1,
0239 * SSD 2
0240 */
0241 i2c-switch@77 {
0242 compatible = "nxp,pca9548";
0243 #address-cells = <1>;
0244 #size-cells = <0>;
0245 reg = <0x77>;
0246 i2c-mux-idle-disconnect; /* may use mux@74 next. */
0247
0248 i2c_pcie1: i2c@0 {
0249 #address-cells = <1>;
0250 #size-cells = <0>;
0251 reg = <0>;
0252 };
0253
0254 i2c_pcie4: i2c@1 {
0255 #address-cells = <1>;
0256 #size-cells = <0>;
0257 reg = <1>;
0258 };
0259
0260 i2c_pcie5: i2c@2 {
0261 #address-cells = <1>;
0262 #size-cells = <0>;
0263 reg = <2>;
0264 };
0265
0266 i2c_pcie8: i2c@3 {
0267 #address-cells = <1>;
0268 #size-cells = <0>;
0269 reg = <3>;
0270 };
0271
0272 i2c_pcie9: i2c@4 {
0273 #address-cells = <1>;
0274 #size-cells = <0>;
0275 reg = <4>;
0276 };
0277
0278 i2c_pcie10: i2c@5 {
0279 #address-cells = <1>;
0280 #size-cells = <0>;
0281 reg = <5>;
0282 };
0283
0284 i2c_ssd1: i2c@6 {
0285 #address-cells = <1>;
0286 #size-cells = <0>;
0287 reg = <6>;
0288 };
0289
0290 i2c_ssd2: i2c@7 {
0291 #address-cells = <1>;
0292 #size-cells = <0>;
0293 reg = <7>;
0294 };
0295 };
0296 };
0297
0298 &i2c3 {
0299 status = "okay";
0300
0301 /* BIOS FRU */
0302 eeprom@56 {
0303 compatible = "atmel,24c64";
0304 reg = <0x56>;
0305 };
0306 };
0307
0308 &i2c4 {
0309 status = "okay";
0310 };
0311
0312 &i2c5 {
0313 status = "okay";
0314 };
0315
0316 &i2c6 {
0317 status = "okay";
0318 };
0319
0320 &i2c7 {
0321 status = "okay";
0322
0323 /* 0: PSU4
0324 * PSU1
0325 * PSU3
0326 * PSU2
0327 */
0328 i2c-switch@70 {
0329 compatible = "nxp,pca9546";
0330 reg = <0x70>;
0331 #address-cells = <1>;
0332 #size-cells = <0>;
0333
0334 i2c_psu4: i2c@0 {
0335 #address-cells = <1>;
0336 #size-cells = <0>;
0337 reg = <0>;
0338
0339 psu@59 {
0340 compatible = "pmbus";
0341 reg = <0x59>;
0342 };
0343 };
0344
0345 i2c_psu1: i2c@1 {
0346 #address-cells = <1>;
0347 #size-cells = <0>;
0348 reg = <1>;
0349
0350 psu@58 {
0351 compatible = "pmbus";
0352 reg = <0x58>;
0353 };
0354 };
0355
0356 i2c_psu3: i2c@2 {
0357 #address-cells = <1>;
0358 #size-cells = <0>;
0359 reg = <2>;
0360
0361 psu@58 {
0362 compatible = "pmbus";
0363 reg = <0x58>;
0364 };
0365 };
0366
0367 i2c_psu2: i2c@3 {
0368 #address-cells = <1>;
0369 #size-cells = <0>;
0370 reg = <3>;
0371
0372 psu@59 {
0373 compatible = "pmbus";
0374 reg = <0x59>;
0375 };
0376 };
0377 };
0378
0379 /* PDB FRU */
0380 eeprom@52 {
0381 compatible = "atmel,24c64";
0382 reg = <0x52>;
0383 };
0384 };
0385
0386 &i2c8 {
0387 status = "okay";
0388
0389 /* BMC FRU */
0390 eeprom@50 {
0391 compatible = "atmel,24c64";
0392 reg = <0x50>;
0393 };
0394 };
0395
0396 &vuart {
0397 status = "okay";
0398 };
0399
0400 &wdt2 {
0401 status = "okay";
0402 };
0403
0404 &adc {
0405 status = "okay";
0406 };
0407
0408 &pwm_tacho {
0409 status = "okay";
0410
0411 pinctrl-names = "default";
0412 pinctrl-0 = <&pinctrl_pwm0_default
0413 &pinctrl_pwm1_default
0414 &pinctrl_pwm2_default
0415 &pinctrl_pwm3_default>;
0416
0417 fan@0 {
0418 reg = <0x00>;
0419 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
0420 };
0421
0422 fan@1 {
0423 reg = <0x01>;
0424 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
0425 };
0426
0427 fan@2 {
0428 reg = <0x02>;
0429 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
0430 };
0431
0432 fan@3 {
0433 reg = <0x03>;
0434 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
0435 };
0436
0437 fan@4 {
0438 reg = <0x00>;
0439 aspeed,fan-tach-ch = /bits/ 8 <0x04>;
0440 };
0441
0442 fan@5 {
0443 reg = <0x01>;
0444 aspeed,fan-tach-ch = /bits/ 8 <0x05>;
0445 };
0446
0447 fan@6 {
0448 reg = <0x02>;
0449 aspeed,fan-tach-ch = /bits/ 8 <0x06>;
0450 };
0451
0452 fan@7 {
0453 reg = <0x03>;
0454 aspeed,fan-tach-ch = /bits/ 8 <0x07>;
0455 };
0456 };
0457
0458 &i2c1mux {
0459 i2c@0 {
0460 reg = <0>;
0461 #address-cells = <1>;
0462 #size-cells = <0>;
0463
0464 /* Memory Riser 1 FRU */
0465 eeprom@50 {
0466 compatible = "atmel,24c02";
0467 reg = <0x50>;
0468 };
0469
0470 /* Memory Riser 2 FRU */
0471 eeprom@51 {
0472 compatible = "atmel,24c02";
0473 reg = <0x51>;
0474 };
0475
0476 /* Memory Riser 3 FRU */
0477 eeprom@52 {
0478 compatible = "atmel,24c02";
0479 reg = <0x52>;
0480 };
0481
0482 /* Memory Riser 4 FRU */
0483 eeprom@53 {
0484 compatible = "atmel,24c02";
0485 reg = <0x53>;
0486 };
0487 };
0488
0489 i2c@1 {
0490 reg = <1>;
0491 #address-cells = <1>;
0492 #size-cells = <0>;
0493
0494 /* Memory Riser 5 FRU */
0495 eeprom@50 {
0496 compatible = "atmel,24c02";
0497 reg = <0x50>;
0498 };
0499
0500 /* Memory Riser 6 FRU */
0501 eeprom@51 {
0502 compatible = "atmel,24c02";
0503 reg = <0x51>;
0504 };
0505
0506 /* Memory Riser 7 FRU */
0507 eeprom@52 {
0508 compatible = "atmel,24c02";
0509 reg = <0x52>;
0510 };
0511
0512 /* Memory Riser 8 FRU */
0513 eeprom@53 {
0514 compatible = "atmel,24c02";
0515 reg = <0x53>;
0516 };
0517 };
0518 };