1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+ 2*724ba675SRob Herring// Copyright 2019 YADRO 3*724ba675SRob Herring/dts-v1/; 4*724ba675SRob Herring 5*724ba675SRob Herring#include "aspeed-g4.dtsi" 6*724ba675SRob Herring#include <dt-bindings/gpio/aspeed-gpio.h> 7*724ba675SRob Herring 8*724ba675SRob Herring/ { 9*724ba675SRob Herring model = "Vesnin BMC"; 10*724ba675SRob Herring compatible = "yadro,vesnin-bmc", "aspeed,ast2400"; 11*724ba675SRob Herring 12*724ba675SRob Herring chosen { 13*724ba675SRob Herring stdout-path = &uart5; 14*724ba675SRob Herring bootargs = "console=ttyS4,115200 earlycon"; 15*724ba675SRob Herring }; 16*724ba675SRob Herring 17*724ba675SRob Herring memory@40000000 { 18*724ba675SRob Herring reg = <0x40000000 0x20000000>; 19*724ba675SRob Herring }; 20*724ba675SRob Herring 21*724ba675SRob Herring reserved-memory { 22*724ba675SRob Herring #address-cells = <1>; 23*724ba675SRob Herring #size-cells = <1>; 24*724ba675SRob Herring ranges; 25*724ba675SRob Herring 26*724ba675SRob Herring vga_memory: framebuffer@5f000000 { 27*724ba675SRob Herring no-map; 28*724ba675SRob Herring reg = <0x5f000000 0x01000000>; /* 16MB */ 29*724ba675SRob Herring }; 30*724ba675SRob Herring flash_memory: region@5c000000 { 31*724ba675SRob Herring no-map; 32*724ba675SRob Herring reg = <0x5c000000 0x02000000>; /* 32M */ 33*724ba675SRob Herring }; 34*724ba675SRob Herring }; 35*724ba675SRob Herring 36*724ba675SRob Herring leds { 37*724ba675SRob Herring compatible = "gpio-leds"; 38*724ba675SRob Herring 39*724ba675SRob Herring heartbeat { 40*724ba675SRob Herring gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>; 41*724ba675SRob Herring }; 42*724ba675SRob Herring power_red { 43*724ba675SRob Herring gpios = <&gpio ASPEED_GPIO(N, 1) GPIO_ACTIVE_LOW>; 44*724ba675SRob Herring }; 45*724ba675SRob Herring 46*724ba675SRob Herring power_green { 47*724ba675SRob Herring gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>; 48*724ba675SRob Herring }; 49*724ba675SRob Herring 50*724ba675SRob Herring id_blue { 51*724ba675SRob Herring gpios = <&gpio ASPEED_GPIO(O, 0) GPIO_ACTIVE_LOW>; 52*724ba675SRob Herring }; 53*724ba675SRob Herring 54*724ba675SRob Herring alarm_red { 55*724ba675SRob Herring gpios = <&gpio ASPEED_GPIO(N, 6) GPIO_ACTIVE_LOW>; 56*724ba675SRob Herring }; 57*724ba675SRob Herring 58*724ba675SRob Herring alarm_yel { 59*724ba675SRob Herring gpios = <&gpio ASPEED_GPIO(N, 7) GPIO_ACTIVE_HIGH>; 60*724ba675SRob Herring }; 61*724ba675SRob Herring }; 62*724ba675SRob Herring 63*724ba675SRob Herring gpio-keys { 64*724ba675SRob Herring compatible = "gpio-keys"; 65*724ba675SRob Herring 66*724ba675SRob Herring event-checkstop { 67*724ba675SRob Herring label = "checkstop"; 68*724ba675SRob Herring linux,code = <74>; 69*724ba675SRob Herring gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>; 70*724ba675SRob Herring }; 71*724ba675SRob Herring 72*724ba675SRob Herring event-identify { 73*724ba675SRob Herring label = "identify"; 74*724ba675SRob Herring linux,code = <152>; 75*724ba675SRob Herring gpios = <&gpio ASPEED_GPIO(O, 7) GPIO_ACTIVE_LOW>; 76*724ba675SRob Herring }; 77*724ba675SRob Herring }; 78*724ba675SRob Herring}; 79*724ba675SRob Herring 80*724ba675SRob Herring&fmc { 81*724ba675SRob Herring status = "okay"; 82*724ba675SRob Herring flash@0 { 83*724ba675SRob Herring status = "okay"; 84*724ba675SRob Herring m25p,fast-read; 85*724ba675SRob Herring label = "bmc"; 86*724ba675SRob Herring#include "openbmc-flash-layout.dtsi" 87*724ba675SRob Herring }; 88*724ba675SRob Herring 89*724ba675SRob Herring flash@1 { 90*724ba675SRob Herring status = "okay"; 91*724ba675SRob Herring m25p,fast-read; 92*724ba675SRob Herring label = "alt"; 93*724ba675SRob Herring }; 94*724ba675SRob Herring}; 95*724ba675SRob Herring 96*724ba675SRob Herring&spi { 97*724ba675SRob Herring status = "okay"; 98*724ba675SRob Herring pinctrl-names = "default"; 99*724ba675SRob Herring pinctrl-0 = <&pinctrl_spi1debug_default>; 100*724ba675SRob Herring 101*724ba675SRob Herring flash@0 { 102*724ba675SRob Herring status = "okay"; 103*724ba675SRob Herring label = "pnor"; 104*724ba675SRob Herring m25p,fast-read; 105*724ba675SRob Herring }; 106*724ba675SRob Herring}; 107*724ba675SRob Herring 108*724ba675SRob Herring&mac0 { 109*724ba675SRob Herring status = "okay"; 110*724ba675SRob Herring use-ncsi; 111*724ba675SRob Herring pinctrl-names = "default"; 112*724ba675SRob Herring pinctrl-0 = <&pinctrl_rmii1_default>; 113*724ba675SRob Herring}; 114*724ba675SRob Herring 115*724ba675SRob Herring 116*724ba675SRob Herring&uart5 { 117*724ba675SRob Herring status = "okay"; 118*724ba675SRob Herring}; 119*724ba675SRob Herring 120*724ba675SRob Herring&lpc_ctrl { 121*724ba675SRob Herring status = "okay"; 122*724ba675SRob Herring memory-region = <&flash_memory>; 123*724ba675SRob Herring flash = <&spi>; 124*724ba675SRob Herring}; 125*724ba675SRob Herring 126*724ba675SRob Herring&ibt { 127*724ba675SRob Herring status = "okay"; 128*724ba675SRob Herring}; 129*724ba675SRob Herring 130*724ba675SRob Herring&uart3 { 131*724ba675SRob Herring status = "okay"; 132*724ba675SRob Herring pinctrl-names = "default"; 133*724ba675SRob Herring pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>; 134*724ba675SRob Herring}; 135*724ba675SRob Herring 136*724ba675SRob Herring&i2c0 { 137*724ba675SRob Herring status = "okay"; 138*724ba675SRob Herring 139*724ba675SRob Herring eeprom@50 { 140*724ba675SRob Herring compatible = "atmel,24c256"; 141*724ba675SRob Herring reg = <0x50>; 142*724ba675SRob Herring pagesize = <64>; 143*724ba675SRob Herring }; 144*724ba675SRob Herring}; 145*724ba675SRob Herring 146*724ba675SRob Herring&i2c1 { 147*724ba675SRob Herring status = "okay"; 148*724ba675SRob Herring 149*724ba675SRob Herring tmp75@49 { 150*724ba675SRob Herring compatible = "ti,tmp75"; 151*724ba675SRob Herring reg = <0x49>; 152*724ba675SRob Herring }; 153*724ba675SRob Herring}; 154*724ba675SRob Herring 155*724ba675SRob Herring&i2c2 { 156*724ba675SRob Herring status = "okay"; 157*724ba675SRob Herring}; 158*724ba675SRob Herring 159*724ba675SRob Herring&i2c3 { 160*724ba675SRob Herring status = "okay"; 161*724ba675SRob Herring}; 162*724ba675SRob Herring 163*724ba675SRob Herring&i2c4 { 164*724ba675SRob Herring status = "okay"; 165*724ba675SRob Herring 166*724ba675SRob Herring occ-hwmon@50 { 167*724ba675SRob Herring compatible = "ibm,p8-occ-hwmon"; 168*724ba675SRob Herring reg = <0x50>; 169*724ba675SRob Herring }; 170*724ba675SRob Herring}; 171*724ba675SRob Herring 172*724ba675SRob Herring&i2c5 { 173*724ba675SRob Herring status = "okay"; 174*724ba675SRob Herring 175*724ba675SRob Herring occ-hwmon@51 { 176*724ba675SRob Herring compatible = "ibm,p8-occ-hwmon"; 177*724ba675SRob Herring reg = <0x51>; 178*724ba675SRob Herring }; 179*724ba675SRob Herring}; 180*724ba675SRob Herring 181*724ba675SRob Herring&i2c6 { 182*724ba675SRob Herring status = "okay"; 183*724ba675SRob Herring 184*724ba675SRob Herring w83795g@2f { 185*724ba675SRob Herring compatible = "nuvoton,w83795g"; 186*724ba675SRob Herring reg = <0x2f>; 187*724ba675SRob Herring }; 188*724ba675SRob Herring}; 189*724ba675SRob Herring 190*724ba675SRob Herring&i2c7 { 191*724ba675SRob Herring status = "okay"; 192*724ba675SRob Herring 193*724ba675SRob Herring occ-hwmon@56 { 194*724ba675SRob Herring compatible = "ibm,p8-occ-hwmon"; 195*724ba675SRob Herring reg = <0x56>; 196*724ba675SRob Herring }; 197*724ba675SRob Herring}; 198*724ba675SRob Herring 199*724ba675SRob Herring&i2c9 { 200*724ba675SRob Herring status = "okay"; 201*724ba675SRob Herring}; 202*724ba675SRob Herring 203*724ba675SRob Herring&i2c10 { 204*724ba675SRob Herring status = "okay"; 205*724ba675SRob Herring}; 206*724ba675SRob Herring 207*724ba675SRob Herring&i2c11 { 208*724ba675SRob Herring status = "okay"; 209*724ba675SRob Herring 210*724ba675SRob Herring occ-hwmon@57 { 211*724ba675SRob Herring compatible = "ibm,p8-occ-hwmon"; 212*724ba675SRob Herring reg = <0x57>; 213*724ba675SRob Herring }; 214*724ba675SRob Herring}; 215*724ba675SRob Herring 216*724ba675SRob Herring&i2c12 { 217*724ba675SRob Herring status = "okay"; 218*724ba675SRob Herring 219*724ba675SRob Herring rtc@68 { 220*724ba675SRob Herring compatible = "maxim,ds3231"; 221*724ba675SRob Herring reg = <0x68>; 222*724ba675SRob Herring }; 223*724ba675SRob Herring}; 224*724ba675SRob Herring 225*724ba675SRob Herring&i2c13 { 226*724ba675SRob Herring status = "okay"; 227*724ba675SRob Herring}; 228*724ba675SRob Herring 229*724ba675SRob Herring&vuart { 230*724ba675SRob Herring status = "okay"; 231*724ba675SRob Herring}; 232*724ba675SRob Herring 233*724ba675SRob Herring&wdt2 { 234*724ba675SRob Herring aspeed,alt-boot; 235*724ba675SRob Herring}; 236*724ba675SRob Herring 237*724ba675SRob Herring&sdmmc { 238*724ba675SRob Herring status = "okay"; 239*724ba675SRob Herring}; 240*724ba675SRob Herring 241*724ba675SRob Herring&sdhci1 { 242*724ba675SRob Herring status = "okay"; 243*724ba675SRob Herring 244*724ba675SRob Herring pinctrl-names = "default"; 245*724ba675SRob Herring pinctrl-0 = <&pinctrl_sd2_default>; 246*724ba675SRob Herring cd-inverted; 247*724ba675SRob Herring disable-wp; 248*724ba675SRob Herring}; 249