Alexander Filippov | 0f04377 | 2019-06-03 11:35:03 +0300 | [diff] [blame] | 1 | From 99c53c63a485a7cf929e0bae9e1db2e6a288153b Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Filippov <a.filippov@yadro.com> |
| 3 | Date: Tue, 19 Feb 2019 15:02:06 +0300 |
| 4 | Subject: [PATCH] ARM: dts: aspeed: Add YADRO VESNIN BMC |
| 5 | |
| 6 | VESNIN is an OpenPower machine with an Aspeed 2400 BMC SoC manufactured |
| 7 | by YADRO. |
| 8 | |
| 9 | Signed-off-by: Alexander Filippov <a.filippov@yadro.com> |
| 10 | --- |
| 11 | arch/arm/boot/dts/Makefile | 1 + |
| 12 | arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts | 234 ++++++++++++++++++++ |
| 13 | 2 files changed, 235 insertions(+) |
| 14 | create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts |
| 15 | |
| 16 | diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile |
| 17 | index 834cce80d1b8..811e9312cf22 100644 |
| 18 | --- a/arch/arm/boot/dts/Makefile |
| 19 | +++ b/arch/arm/boot/dts/Makefile |
| 20 | @@ -1259,6 +1259,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ |
| 21 | aspeed-bmc-microsoft-olympus.dtb \ |
| 22 | aspeed-bmc-opp-lanyang.dtb \ |
| 23 | aspeed-bmc-opp-palmetto.dtb \ |
| 24 | + aspeed-bmc-opp-vesnin.dtb \ |
| 25 | aspeed-bmc-opp-romulus.dtb \ |
| 26 | aspeed-bmc-opp-swift.dtb \ |
| 27 | aspeed-bmc-opp-witherspoon.dtb \ |
| 28 | diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts b/arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts |
| 29 | new file mode 100644 |
| 30 | index 000000000000..20f07f5bb4f4 |
| 31 | --- /dev/null |
| 32 | +++ b/arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts |
| 33 | @@ -0,0 +1,234 @@ |
| 34 | +// SPDX-License-Identifier: GPL-2.0+ |
| 35 | +// Copyright 2019 YADRO |
| 36 | +/dts-v1/; |
| 37 | + |
| 38 | +#include "aspeed-g4.dtsi" |
| 39 | +#include <dt-bindings/gpio/aspeed-gpio.h> |
| 40 | + |
| 41 | +/ { |
| 42 | + model = "Vesnin BMC"; |
| 43 | + compatible = "yadro,vesnin-bmc", "aspeed,ast2400"; |
| 44 | + |
| 45 | + chosen { |
| 46 | + stdout-path = &uart5; |
| 47 | + bootargs = "console=ttyS4,115200 earlyprintk"; |
| 48 | + }; |
| 49 | + |
| 50 | + memory { |
| 51 | + reg = <0x40000000 0x20000000>; |
| 52 | + }; |
| 53 | + |
| 54 | + reserved-memory { |
| 55 | + #address-cells = <1>; |
| 56 | + #size-cells = <1>; |
| 57 | + ranges; |
| 58 | + |
| 59 | + vga_memory: framebuffer@5f000000 { |
| 60 | + no-map; |
| 61 | + reg = <0x5f000000 0x01000000>; /* 16MB */ |
| 62 | + }; |
| 63 | + flash_memory: region@5c000000 { |
| 64 | + no-map; |
| 65 | + reg = <0x5c000000 0x02000000>; /* 32M */ |
| 66 | + }; |
| 67 | + }; |
| 68 | + |
| 69 | + leds { |
| 70 | + compatible = "gpio-leds"; |
| 71 | + |
| 72 | + heartbeat { |
| 73 | + gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>; |
| 74 | + }; |
| 75 | + power_red { |
| 76 | + gpios = <&gpio ASPEED_GPIO(N, 1) GPIO_ACTIVE_LOW>; |
| 77 | + }; |
| 78 | + |
| 79 | + id_blue { |
| 80 | + gpios = <&gpio ASPEED_GPIO(O, 0) GPIO_ACTIVE_LOW>; |
| 81 | + }; |
| 82 | + |
| 83 | + alarm_red { |
| 84 | + gpios = <&gpio ASPEED_GPIO(N, 6) GPIO_ACTIVE_LOW>; |
| 85 | + }; |
| 86 | + |
| 87 | + alarm_yel { |
| 88 | + gpios = <&gpio ASPEED_GPIO(N, 7) GPIO_ACTIVE_HIGH>; |
| 89 | + }; |
| 90 | + }; |
| 91 | + |
| 92 | + gpio-keys { |
| 93 | + compatible = "gpio-keys"; |
| 94 | + |
| 95 | + button_checkstop { |
| 96 | + label = "checkstop"; |
| 97 | + linux,code = <74>; |
| 98 | + gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>; |
| 99 | + }; |
| 100 | + |
| 101 | + button_identify { |
| 102 | + label = "identify"; |
| 103 | + linux,code = <152>; |
| 104 | + gpios = <&gpio ASPEED_GPIO(O, 7) GPIO_ACTIVE_LOW>; |
| 105 | + }; |
| 106 | + }; |
| 107 | +}; |
| 108 | + |
| 109 | +&fmc { |
| 110 | + status = "okay"; |
| 111 | + flash@0 { |
| 112 | + status = "okay"; |
| 113 | + m25p,fast-read; |
| 114 | + label = "bmc"; |
| 115 | +#include "openbmc-flash-layout.dtsi" |
| 116 | + }; |
| 117 | +}; |
| 118 | + |
| 119 | +&spi { |
| 120 | + status = "okay"; |
| 121 | + pinctrl-names = "default"; |
| 122 | + pinctrl-0 = <&pinctrl_spi1debug_default>; |
| 123 | + |
| 124 | + flash@0 { |
| 125 | + status = "okay"; |
| 126 | + label = "pnor"; |
| 127 | + m25p,fast-read; |
| 128 | + }; |
| 129 | +}; |
| 130 | + |
| 131 | +&mac0 { |
| 132 | + status = "okay"; |
| 133 | + |
| 134 | + use-ncsi; |
| 135 | + no-hw-checksum; |
| 136 | + |
| 137 | + pinctrl-names = "default"; |
| 138 | + pinctrl-0 = <&pinctrl_rmii1_default>; |
| 139 | +}; |
| 140 | + |
| 141 | + |
| 142 | +&uart5 { |
| 143 | + status = "okay"; |
| 144 | +}; |
| 145 | + |
| 146 | +&lpc_ctrl { |
| 147 | + status = "okay"; |
| 148 | + memory-region = <&flash_memory>; |
| 149 | + flash = <&spi>; |
| 150 | +}; |
| 151 | + |
| 152 | +&ibt { |
| 153 | + status = "okay"; |
| 154 | +}; |
| 155 | + |
| 156 | +&lpc_host { |
| 157 | + sio_regs: regs { |
| 158 | + compatible = "aspeed,bmc-misc"; |
| 159 | + }; |
| 160 | +}; |
| 161 | + |
| 162 | +&mbox { |
| 163 | + status = "okay"; |
| 164 | +}; |
| 165 | + |
| 166 | +&uart3 { |
| 167 | + status = "okay"; |
| 168 | + pinctrl-names = "default"; |
| 169 | + pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>; |
| 170 | +}; |
| 171 | + |
| 172 | +&i2c0 { |
| 173 | + status = "okay"; |
| 174 | + |
| 175 | + eeprom@50 { |
| 176 | + compatible = "atmel,24c256"; |
| 177 | + reg = <0x50>; |
| 178 | + pagesize = <64>; |
| 179 | + }; |
| 180 | +}; |
| 181 | + |
| 182 | +&i2c1 { |
| 183 | + status = "okay"; |
| 184 | + |
| 185 | + tmp75@49 { |
| 186 | + compatible = "ti,tmp75"; |
| 187 | + reg = <0x49>; |
| 188 | + }; |
| 189 | +}; |
| 190 | + |
| 191 | +&i2c2 { |
| 192 | + status = "okay"; |
| 193 | +}; |
| 194 | + |
| 195 | +&i2c3 { |
| 196 | + status = "okay"; |
| 197 | +}; |
| 198 | + |
| 199 | +&i2c4 { |
| 200 | + status = "okay"; |
| 201 | + |
| 202 | + occ-hwmon@50 { |
| 203 | + compatible = "ibm,p8-occ-hwmon"; |
| 204 | + reg = <0x50>; |
| 205 | + }; |
| 206 | +}; |
| 207 | + |
| 208 | +&i2c5 { |
| 209 | + status = "okay"; |
| 210 | + |
| 211 | + occ-hwmon@51 { |
| 212 | + compatible = "ibm,p8-occ-hwmon"; |
| 213 | + reg = <0x51>; |
| 214 | + }; |
| 215 | +}; |
| 216 | + |
| 217 | +&i2c6 { |
| 218 | + status = "okay"; |
| 219 | + |
| 220 | + w83795g@2f { |
| 221 | + compatible = "nuvoton,w83795g"; |
| 222 | + reg = <0x2f>; |
| 223 | + }; |
| 224 | +}; |
| 225 | + |
| 226 | +&i2c7 { |
| 227 | + status = "okay"; |
| 228 | + |
| 229 | + occ-hwmon@56 { |
| 230 | + compatible = "ibm,p8-occ-hwmon"; |
| 231 | + reg = <0x56>; |
| 232 | + }; |
| 233 | +}; |
| 234 | + |
| 235 | +&i2c9 { |
| 236 | + status = "okay"; |
| 237 | +}; |
| 238 | + |
| 239 | +&i2c10 { |
| 240 | + status = "okay"; |
| 241 | +}; |
| 242 | + |
| 243 | +&i2c11 { |
| 244 | + status = "okay"; |
| 245 | + |
| 246 | + occ-hwmon@57 { |
| 247 | + compatible = "ibm,p8-occ-hwmon"; |
| 248 | + reg = <0x57>; |
| 249 | + }; |
| 250 | +}; |
| 251 | + |
| 252 | +&i2c12 { |
| 253 | + status = "okay"; |
| 254 | + |
| 255 | + rtc@68 { |
| 256 | + compatible = "maxim,ds3231"; |
| 257 | + reg = <0x68>; |
| 258 | + }; |
| 259 | +}; |
| 260 | + |
| 261 | +&i2c13 { |
| 262 | + status = "okay"; |
| 263 | +}; |
| 264 | + |
| 265 | +&vuart { |
| 266 | + status = "okay"; |
| 267 | +}; |
| 268 | -- |
| 269 | 2.20.1 |
| 270 | |