1// SPDX-License-Identifier: GPL-2.0 2// Copyright (c) 2017 Facebook Inc. 3/dts-v1/; 4 5#include "aspeed-g5.dtsi" 6#include <dt-bindings/gpio/aspeed-gpio.h> 7 8/ { 9 model = "Portwell Neptune BMC"; 10 compatible = "portwell,neptune-bmc", "aspeed,ast2500"; 11 aliases { 12 serial0 = &uart1; 13 serial4 = &uart5; 14 }; 15 chosen { 16 stdout-path = &uart5; 17 bootargs = "console=ttyS4,115200 earlyprintk"; 18 }; 19 20 memory@80000000 { 21 reg = <0x80000000 0x20000000>; 22 }; 23 24 leds { 25 compatible = "gpio-leds"; 26 postcode0 { 27 label="BMC_UP"; 28 gpios = <&gpio ASPEED_GPIO(H, 0) GPIO_ACTIVE_HIGH>; 29 default-state = "on"; 30 }; 31 postcode1 { 32 label="BMC_HB"; 33 gpios = <&gpio ASPEED_GPIO(H, 1) GPIO_ACTIVE_HIGH>; 34 linux,default-trigger = "heartbeat"; 35 }; 36 postcode2 { 37 label="FAULT"; 38 gpios = <&gpio ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>; 39 }; 40 // postcode3-7 are GPIOH3-H7 41 }; 42}; 43 44&fmc { 45 status = "okay"; 46 flash@0 { 47 status = "okay"; 48 m25p,fast-read; 49#include "openbmc-flash-layout.dtsi" 50 }; 51}; 52 53&spi1 { 54 status = "okay"; 55 pinctrl-names = "default"; 56 pinctrl-0 = <&pinctrl_spi1_default>; 57 flash@0 { 58 status = "okay"; 59 m25p,fast-read; 60 label = "pnor"; 61 }; 62}; 63 64&uart1 { 65 // Host Console 66 status = "okay"; 67 pinctrl-names = "default"; 68 pinctrl-0 = <&pinctrl_txd1_default 69 &pinctrl_rxd1_default>; 70}; 71 72&uart5 { 73 // BMC Console 74 status = "okay"; 75}; 76 77&mac0 { 78 status = "okay"; 79 80 pinctrl-names = "default"; 81 pinctrl-0 = <&pinctrl_rmii1_default 82 &pinctrl_mdio1_default>; 83 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>, 84 <&syscon ASPEED_CLK_MAC1RCLK>; 85 clock-names = "MACCLK", "RCLK"; 86}; 87 88&mac1 { 89 status = "okay"; 90 pinctrl-names = "default"; 91 pinctrl-0 = <&pinctrl_rmii2_default>; 92 clocks = <&syscon ASPEED_CLK_GATE_MAC2CLK>, 93 <&syscon ASPEED_CLK_MAC2RCLK>; 94 clock-names = "MACCLK", "RCLK"; 95 use-ncsi; 96}; 97 98&i2c1 { 99 status = "okay"; 100 // To PCIe slot SMBUS 101}; 102 103&i2c2 { 104 status = "okay"; 105 // To LAN I210 106}; 107 108&i2c3 { 109 status = "okay"; 110 // SMBus to COMe AB 111}; 112 113&i2c4 { 114 status = "okay"; 115 // I2C to COMe AB 116}; 117 118&i2c5 { 119 status = "okay"; 120// USB Debug card 121 pca9555@27 { 122 compatible = "nxp,pca9555"; 123 reg = <0x27>; 124 }; 125}; 126 127&i2c6 { 128 status = "okay"; 129 tpm@20 { 130 compatible = "infineon,slb9645tt"; 131 reg = <0x20>; 132 }; 133 tmp421@4e { 134 compatible = "ti,tmp421"; 135 reg = <0x4e>; 136 }; 137 tmp421@4f { 138 compatible = "ti,tmp421"; 139 reg = <0x4f>; 140 }; 141}; 142 143&i2c8 { 144 status = "okay"; 145 eeprom@51 { 146 compatible = "atmel,24c128"; 147 reg = <0x51>; 148 pagesize = <32>; 149 }; 150}; 151 152&pwm_tacho { 153 status = "okay"; 154 pinctrl-names = "default"; 155 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>; 156 fan@0 { 157 reg = <0x00>; 158 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 159 }; 160 161 fan@1 { 162 reg = <0x00>; 163 aspeed,fan-tach-ch = /bits/ 8 <0x01>; 164 }; 165}; 166