0001 // SPDX-License-Identifier: GPL-2.0+
0002 /dts-v1/;
0003
0004 #include "aspeed-g4.dtsi"
0005 #include <dt-bindings/gpio/aspeed-gpio.h>
0006
0007 / {
0008 model = "Palmetto BMC";
0009 compatible = "tyan,palmetto-bmc", "aspeed,ast2400";
0010
0011 chosen {
0012 stdout-path = &uart5;
0013 bootargs = "console=ttyS4,115200 earlycon";
0014 };
0015
0016 memory@40000000 {
0017 reg = <0x40000000 0x20000000>;
0018 };
0019
0020 reserved-memory {
0021 #address-cells = <1>;
0022 #size-cells = <1>;
0023 ranges;
0024
0025 vga_memory: framebuffer@5f000000 {
0026 no-map;
0027 reg = <0x5f000000 0x01000000>; /* 16M */
0028 };
0029
0030 coldfire_memory: codefire_memory@5ee00000 {
0031 reg = <0x5ee00000 0x00200000>;
0032 no-map;
0033 };
0034
0035 flash_memory: region@5c000000 {
0036 no-map;
0037 reg = <0x5C000000 0x02000000>; /* 32MB */
0038 };
0039 };
0040
0041 leds {
0042 compatible = "gpio-leds";
0043
0044 heartbeat {
0045 gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>;
0046 };
0047
0048 power {
0049 gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
0050 };
0051
0052 identify {
0053 gpios = <&gpio ASPEED_GPIO(A, 2) GPIO_ACTIVE_LOW>;
0054 };
0055 };
0056
0057 fsi: gpio-fsi {
0058 compatible = "aspeed,ast2400-cf-fsi-master", "fsi-master";
0059 #address-cells = <2>;
0060 #size-cells = <0>;
0061
0062 memory-region = <&coldfire_memory>;
0063 aspeed,sram = <&sram>;
0064 aspeed,cvic = <&cvic>;
0065
0066 clock-gpios = <&gpio ASPEED_GPIO(A, 4) GPIO_ACTIVE_HIGH>;
0067 data-gpios = <&gpio ASPEED_GPIO(A, 5) GPIO_ACTIVE_HIGH>;
0068 mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
0069 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
0070 trans-gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>;
0071 };
0072
0073 gpio-keys {
0074 compatible = "gpio-keys";
0075
0076 event-checkstop {
0077 label = "checkstop";
0078 gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
0079 linux,code = <ASPEED_GPIO(P, 5)>;
0080 };
0081 };
0082 };
0083
0084 &fmc {
0085 status = "okay";
0086 flash@0 {
0087 status = "okay";
0088 m25p,fast-read;
0089 label = "bmc";
0090 spi-max-frequency = <50000000>;
0091 #include "openbmc-flash-layout.dtsi"
0092 };
0093 };
0094
0095 &spi {
0096 status = "okay";
0097 pinctrl-names = "default";
0098 pinctrl-0 = <&pinctrl_spi1debug_default>;
0099
0100 flash@0 {
0101 status = "okay";
0102 m25p,fast-read;
0103 spi-max-frequency = <50000000>;
0104 label = "pnor";
0105 };
0106 };
0107
0108 &pinctrl {
0109 pinctrl-names = "default";
0110 pinctrl-0 = <&pinctrl_flbusy_default &pinctrl_flwp_default
0111
0112 &pinctrl_vgahs_default &pinctrl_vgavs_default
0113 &pinctrl_ddcclk_default &pinctrl_ddcdat_default>;
0114 };
0115
0116 &uart1 {
0117 /* Rear RS-232 connector */
0118 status = "okay";
0119
0120 pinctrl-names = "default";
0121 pinctrl-0 = <&pinctrl_txd1_default
0122 &pinctrl_rxd1_default
0123 &pinctrl_nrts1_default
0124 &pinctrl_ndtr1_default
0125 &pinctrl_ndsr1_default
0126 &pinctrl_ncts1_default
0127 &pinctrl_ndcd1_default
0128 &pinctrl_nri1_default>;
0129 };
0130
0131 &uart5 {
0132 status = "okay";
0133 };
0134
0135 &mac0 {
0136 status = "okay";
0137
0138 use-ncsi;
0139
0140 pinctrl-names = "default";
0141 pinctrl-0 = <&pinctrl_rmii1_default>;
0142 };
0143
0144 &i2c0 {
0145 status = "okay";
0146
0147 eeprom@50 {
0148 compatible = "atmel,24c256";
0149 reg = <0x50>;
0150 pagesize = <64>;
0151 };
0152
0153 rtc@68 {
0154 compatible = "dallas,ds3231";
0155 reg = <0x68>;
0156 };
0157 };
0158
0159 &i2c1 {
0160 status = "okay";
0161 };
0162
0163 &i2c2 {
0164 status = "okay";
0165
0166 tmp423@4c {
0167 compatible = "ti,tmp423";
0168 reg = <0x4c>;
0169 };
0170 };
0171
0172 &i2c3 {
0173 status = "okay";
0174
0175 occ-hwmon@50 {
0176 compatible = "ibm,p8-occ-hwmon";
0177 reg = <0x50>;
0178 };
0179 };
0180
0181 &i2c4 {
0182 status = "okay";
0183 };
0184
0185 &i2c5 {
0186 status = "okay";
0187 };
0188
0189 &i2c6 {
0190 status = "okay";
0191 };
0192
0193 &i2c7 {
0194 status = "okay";
0195 };
0196
0197 &vuart {
0198 status = "okay";
0199 };
0200
0201 &ibt {
0202 status = "okay";
0203 };
0204
0205 &lpc_ctrl {
0206 status = "okay";
0207 memory-region = <&flash_memory>;
0208 flash = <&spi>;
0209 };
0210
0211 &gpio {
0212 pin_func_mode0 {
0213 gpio-hog;
0214 gpios = <ASPEED_GPIO(C, 4) GPIO_ACTIVE_HIGH>;
0215 output-low;
0216 line-name = "func_mode0";
0217 };
0218
0219 pin_func_mode1 {
0220 gpio-hog;
0221 gpios = <ASPEED_GPIO(C, 5) GPIO_ACTIVE_HIGH>;
0222 output-low;
0223 line-name = "func_mode1";
0224 };
0225
0226 pin_func_mode2 {
0227 gpio-hog;
0228 gpios = <ASPEED_GPIO(C, 6) GPIO_ACTIVE_HIGH>;
0229 output-low;
0230 line-name = "func_mode2";
0231 };
0232
0233 pin_gpio_a0 {
0234 gpio-hog;
0235 gpios = <ASPEED_GPIO(A, 0) GPIO_ACTIVE_HIGH>;
0236 input;
0237 line-name = "BMC_FAN_RESERVED_N";
0238 };
0239
0240 pin_gpio_a1 {
0241 gpio-hog;
0242 gpios = <ASPEED_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
0243 output-high;
0244 line-name = "APSS_WDT_N";
0245 };
0246
0247 pin_gpio_b1 {
0248 gpio-hog;
0249 gpios = <ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
0250 output-high;
0251 line-name = "APSS_BOOT_MODE";
0252 };
0253
0254 pin_gpio_b2 {
0255 gpio-hog;
0256 gpios = <ASPEED_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
0257 output-high;
0258 line-name = "APSS_RESET_N";
0259 };
0260
0261 pin_gpio_b7 {
0262 gpio-hog;
0263 gpios = <ASPEED_GPIO(B, 7) GPIO_ACTIVE_HIGH>;
0264 output-high;
0265 line-name = "SPIVID_STBY_RESET_N";
0266 };
0267
0268 pin_gpio_d1 {
0269 gpio-hog;
0270 gpios = <ASPEED_GPIO(D, 1) GPIO_ACTIVE_HIGH>;
0271 output-high;
0272 line-name = "BMC_POWER_UP";
0273 };
0274
0275 pin_gpio_f1 {
0276 gpio-hog;
0277 gpios = <ASPEED_GPIO(F, 1) GPIO_ACTIVE_HIGH>;
0278 input;
0279 line-name = "BMC_BATTERY_TEST";
0280 };
0281
0282 pin_gpio_f4 {
0283 gpio-hog;
0284 gpios = <ASPEED_GPIO(F, 4) GPIO_ACTIVE_HIGH>;
0285 input;
0286 line-name = "AST_HW_FAULT_N";
0287 };
0288
0289 pin_gpio_f5 {
0290 gpio-hog;
0291 gpios = <ASPEED_GPIO(F, 5) GPIO_ACTIVE_HIGH>;
0292 input;
0293 line-name = "AST_SYS_FAULT_N";
0294 };
0295
0296 pin_gpio_f7 {
0297 gpio-hog;
0298 gpios = <ASPEED_GPIO(F, 7) GPIO_ACTIVE_HIGH>;
0299 output-high;
0300 line-name = "BMC_FULL_SPEED_N";
0301 };
0302
0303 pin_gpio_g3 {
0304 gpio-hog;
0305 gpios = <ASPEED_GPIO(G, 3) GPIO_ACTIVE_HIGH>;
0306 output-high;
0307 line-name = "BMC_FAN_ERROR_N";
0308 };
0309
0310 pin_gpio_g4 {
0311 gpio-hog;
0312 gpios = <ASPEED_GPIO(G, 4) GPIO_ACTIVE_HIGH>;
0313 input;
0314 line-name = "BMC_WDT_RST1_P";
0315 };
0316
0317 pin_gpio_g5 {
0318 gpio-hog;
0319 gpios = <ASPEED_GPIO(G, 5) GPIO_ACTIVE_HIGH>;
0320 input;
0321 line-name = "BMC_WDT_RST2_P";
0322 };
0323
0324 pin_gpio_h0 {
0325 gpio-hog;
0326 gpios = <ASPEED_GPIO(H, 0) GPIO_ACTIVE_HIGH>;
0327 input;
0328 line-name = "PE_SLOT_TEST_EN_N";
0329 };
0330
0331 pin_gpio_h1 {
0332 gpio-hog;
0333 gpios = <ASPEED_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
0334 input;
0335 line-name = "BMC_RTCRST_N";
0336 };
0337
0338 pin_gpio_h2 {
0339 gpio-hog;
0340 gpios = <ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
0341 output-high;
0342 line-name = "SYS_PWROK_BMC";
0343 };
0344
0345 pin_gpio_h7 {
0346 gpio-hog;
0347 gpios = <ASPEED_GPIO(H, 7) GPIO_ACTIVE_HIGH>;
0348 output-high;
0349 line-name = "BMC_TPM_INT_N";
0350 };
0351 };
0352
0353 &fsi {
0354 cfam@0,0 {
0355 reg = <0 0>;
0356 #address-cells = <1>;
0357 #size-cells = <1>;
0358 chip-id = <0>;
0359
0360 scom@1000 {
0361 compatible = "ibm,fsi2pib";
0362 reg = <0x1000 0x400>;
0363 };
0364
0365 fsi_hub0: hub@3400 {
0366 compatible = "ibm,fsi-master-hub";
0367 reg = <0x3400 0x400>;
0368 #address-cells = <2>;
0369 #size-cells = <0>;
0370 no-scan-on-init;
0371 };
0372 };
0373 };