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