0001 // SPDX-License-Identifier: GPL-2.0+
0002 // Copyright (c) 2018 Inventec Corporation
0003 /dts-v1/;
0004
0005 #include "aspeed-g5.dtsi"
0006 #include <dt-bindings/gpio/aspeed-gpio.h>
0007
0008 / {
0009 model = "Lanyang BMC";
0010 compatible = "inventec,lanyang-bmc", "aspeed,ast2500";
0011
0012 chosen {
0013 stdout-path = &uart5;
0014 bootargs = "console=ttyS4,115200 earlycon";
0015 };
0016
0017 memory@80000000 {
0018 reg = <0x80000000 0x40000000>;
0019 };
0020
0021 reserved-memory {
0022 #address-cells = <1>;
0023 #size-cells = <1>;
0024 ranges;
0025
0026 flash_memory: region@98000000 {
0027 no-map;
0028 reg = <0x98000000 0x04000000>; /* 64M */
0029 };
0030 };
0031
0032 leds {
0033 compatible = "gpio-leds";
0034
0035 sys_boot_status {
0036 label = "System_boot_status";
0037 gpios = <&gpio ASPEED_GPIO(B, 6) GPIO_ACTIVE_LOW>;
0038 };
0039
0040 attention {
0041 label = "Attention_locator";
0042 gpios = <&gpio ASPEED_GPIO(B, 7) GPIO_ACTIVE_HIGH>;
0043 };
0044
0045 plt_fault {
0046 label = "Platform_fault";
0047 gpios = <&gpio ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
0048 };
0049
0050 hdd_fault {
0051 label = "Onboard_drive_fault";
0052 gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_HIGH>;
0053 };
0054 bmc_err {
0055 lable = "BMC_fault";
0056 gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>;
0057 };
0058
0059 sys_err {
0060 lable = "Sys_fault";
0061 gpios = <&gpio ASPEED_GPIO(H, 7) GPIO_ACTIVE_HIGH>;
0062 };
0063 };
0064
0065 fsi: gpio-fsi {
0066 compatible = "fsi-master-gpio", "fsi-master";
0067 #address-cells = <2>;
0068 #size-cells = <0>;
0069
0070 clock-gpios = <&gpio ASPEED_GPIO(J, 0) GPIO_ACTIVE_HIGH>;
0071 data-gpios = <&gpio ASPEED_GPIO(J, 1) GPIO_ACTIVE_HIGH>;
0072 trans-gpios = <&gpio ASPEED_GPIO(D, 5) GPIO_ACTIVE_HIGH>;
0073 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
0074 mux-gpios = <&gpio ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
0075 };
0076
0077 iio-hwmon {
0078 compatible = "iio-hwmon";
0079 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
0080 <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
0081 <&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
0082 <&adc 13>, <&adc 14>, <&adc 15>;
0083 };
0084
0085 iio-hwmon-battery {
0086 compatible = "iio-hwmon";
0087 io-channels = <&adc 12>;
0088 };
0089 };
0090
0091 &pwm_tacho {
0092 status = "okay";
0093 pinctrl-names = "default";
0094 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
0095 &pinctrl_pwm2_default &pinctrl_pwm3_default>;
0096
0097 fan@0 {
0098 reg = <0x00>;
0099 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
0100 };
0101
0102 fan@1 {
0103 reg = <0x01>;
0104 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
0105 };
0106
0107 fan@2 {
0108 reg = <0x02>;
0109 aspeed,fan-tach-ch = /bits/ 8 <0x02>;
0110 };
0111
0112 fan@3 {
0113 reg = <0x03>;
0114 aspeed,fan-tach-ch = /bits/ 8 <0x03>;
0115 };
0116 };
0117
0118 &fmc {
0119 status = "okay";
0120 flash@0 {
0121 status = "okay";
0122 m25p,fast-read;
0123 label = "bmc";
0124 #include "openbmc-flash-layout.dtsi"
0125 };
0126 };
0127
0128 &spi1 {
0129 status = "okay";
0130 pinctrl-names = "default";
0131 pinctrl-0 = <&pinctrl_spi1_default>;
0132
0133 flash@0 {
0134 status = "okay";
0135 label = "pnor";
0136 m25p,fast-read;
0137 };
0138 };
0139
0140 &spi2 {
0141 status = "okay";
0142 pinctrl-names = "default";
0143 pinctrl-0 = <&pinctrl_spi2ck_default
0144 &pinctrl_spi2cs0_default
0145 &pinctrl_spi2cs1_default
0146 &pinctrl_spi2miso_default
0147 &pinctrl_spi2mosi_default>;
0148
0149 flash@0 {
0150 status = "okay";
0151 };
0152 };
0153
0154 &uart1 {
0155 status = "okay";
0156 pinctrl-names = "default";
0157 pinctrl-0 = <&pinctrl_txd1_default
0158 &pinctrl_rxd1_default>;
0159 };
0160
0161 &lpc_ctrl {
0162 status = "okay";
0163 memory-region = <&flash_memory>;
0164 flash = <&spi1>;
0165 };
0166
0167 &lpc_snoop {
0168 status = "okay";
0169 snoop-ports = <0x80>;
0170 };
0171
0172 &uart5 {
0173 status = "okay";
0174 };
0175
0176 &mac0 {
0177 status = "okay";
0178
0179 pinctrl-names = "default";
0180 pinctrl-0 = <&pinctrl_rmii1_default>;
0181 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
0182 <&syscon ASPEED_CLK_MAC1RCLK>;
0183 clock-names = "MACCLK", "RCLK";
0184 use-ncsi;
0185 };
0186
0187 &mac1 {
0188 status = "okay";
0189
0190 pinctrl-names = "default";
0191 pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
0192 };
0193
0194 &i2c0 {
0195 status = "okay";
0196
0197 eeprom@55 {
0198 compatible = "atmel,24c64";
0199 reg = <0x55>;
0200 pagesize = <32>;
0201 };
0202
0203 rtc@68 {
0204 compatible = "nxp,pcf8523";
0205 reg = <0x68>;
0206 };
0207
0208 tmp75@48 {
0209 compatible = "ti,tmp75";
0210 reg = <0x48>;
0211 };
0212 };
0213
0214 &i2c1 {
0215 status = "okay";
0216 };
0217
0218 &i2c2 {
0219 status = "okay";
0220 };
0221
0222 &i2c3 {
0223 status = "okay";
0224 };
0225
0226 &i2c4 {
0227 status = "okay";
0228 };
0229
0230 &i2c5 {
0231 status = "okay";
0232 };
0233
0234 &i2c6 {
0235 status = "okay";
0236 };
0237
0238 &i2c7 {
0239 status = "okay";
0240 };
0241
0242 &i2c8 {
0243 status = "okay";
0244 };
0245
0246 &i2c9 {
0247 status = "okay";
0248 };
0249
0250 &i2c10 {
0251 status = "okay";
0252 };
0253
0254 &i2c11 {
0255 status = "okay";
0256 };
0257
0258 &vuart {
0259 status = "okay";
0260 };
0261
0262 &gfx {
0263 status = "okay";
0264 };
0265
0266 &pinctrl {
0267 aspeed,external-nodes = <&gfx &lhc>;
0268 };
0269
0270 &gpio {
0271 pin_gpio_b0 {
0272 gpio-hog;
0273 gpios = <ASPEED_GPIO(B, 0) GPIO_ACTIVE_HIGH>;
0274 output-high;
0275 line-name = "BMC_HDD1_PWR_EN";
0276 };
0277
0278 pin_gpio_b5 {
0279 gpio-hog;
0280 gpios = <ASPEED_GPIO(B, 5) GPIO_ACTIVE_HIGH>;
0281 input;
0282 line-name = "BMC_USB1_OCI2";
0283 };
0284
0285 pin_gpio_h5 {
0286 gpio-hog;
0287 gpios = <ASPEED_GPIO(H, 5) GPIO_ACTIVE_HIGH>;
0288 output-high;
0289 line-name = "BMC_CP0_PERST_ENABLE_R";
0290 };
0291
0292 pin_gpio_z2 {
0293 gpio-hog;
0294 gpios = <ASPEED_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
0295 output-high;
0296 line-name = "RST_PCA9546_U177_N";
0297 };
0298
0299 pin_gpio_aa6 {
0300 gpio-hog;
0301 gpios = <ASPEED_GPIO(AA, 6) GPIO_ACTIVE_HIGH>;
0302 output-high;
0303 line-name = "BMC_CP0_RESET_N";
0304 };
0305
0306 pin_gpio_aa7 {
0307 gpio-hog;
0308 gpios = <ASPEED_GPIO(AA, 7) GPIO_ACTIVE_HIGH>;
0309 output-high;
0310 line-name = "BMC_TPM_RESET_N";
0311 };
0312
0313 pin_gpio_ab0 {
0314 gpio-hog;
0315 gpios = <ASPEED_GPIO(AB, 0) GPIO_ACTIVE_LOW>;
0316 output-high;
0317 line-name = "BMC_USB_PWRON_N";
0318 };
0319 };
0320
0321 &ibt {
0322 status = "okay";
0323 };
0324
0325 &adc {
0326 status = "okay";
0327 };
0328
0329 #include "ibm-power9-dual.dtsi"