ARM: dts: aspeed: Add YADRO VESNIN BMC
Subsystems (3)
PATCH v3 1/1 ARM: dts: aspeed: Add YADRO VESNIN BMC
VESNIN is an OpenPower machine with an Aspeed 2400 BMC SoC manufactured by YADRO.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts | 234 ++++++++++++++++++++ 2 files changed, 235 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -1261,6 +1261,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-opp-palmetto.dtb \ aspeed-bmc-opp-romulus.dtb \ aspeed-bmc-opp-swift.dtb \ + aspeed-bmc-opp-vesnin.dtb \ aspeed-bmc-opp-witherspoon.dtb \ aspeed-bmc-opp-zaius.dtb \ aspeed-bmc-portwell-neptune.dtb \
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +234 -0
234 lines not on this page · raw message
Signature · 1 line
2.20.1
Hello Alexander,
Quoted 15 lines · Alexander Filippov
VESNIN is an OpenPower machine with an Aspeed 2400 BMC SoC manufactured by YADRO.
Signed-off-by Alexander Filippov <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts | 234 ++++++++++++++++++++ 2 files changed, 235 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dtsarch/arm/boot/dts/Makefile +0
-0
arch/arm/boot/dts/Makefile dtb-$(CONFIG_ARCH_ASPEED) += \ · line 1264
Quoted 4 lines
arch/arm/boot/dts/Makefile +1
-0@@ -1261,6 +1261,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-opp-palmetto.dtb \ aspeed-bmc-opp-romulus.dtb \ aspeed-bmc-opp-swift.dtb \ + aspeed-bmc-opp-vesnin.dtb \
The patch doesn't apply to upstream - the Swift machine only exists in the OpenBMC kernel tree. Please rebase the patch onto upstream and resend.
Quoted 89 lines
arch/arm/boot/dts/Makefile +0
-0aspeed-bmc-opp-witherspoon.dtb \ aspeed-bmc-opp-zaius.dtb \ aspeed-bmc-portwell-neptune.dtb \arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +79
-0@@ -0,0 +1,234 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright 2019 YADRO +/dts-v1/; + +#include "aspeed-g4.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h> + +/ { + model = "Vesnin BMC"; + compatible = "yadro,vesnin-bmc", "aspeed,ast2400"; + + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,115200 earlyprintk"; + }; + + memory { + reg = <0x40000000 0x20000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + vga_memory: framebuffer at 5f000000 { + no-map; + reg = <0x5f000000 0x01000000>; /* 16MB */ + }; + flash_memory: region at 5c000000 { + no-map; + reg = <0x5c000000 0x02000000>; /* 32M */ + }; + }; + + leds { + compatible = "gpio-leds"; + + heartbeat { + gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>; + }; + power_red { + gpios = <&gpio ASPEED_GPIO(N, 1) GPIO_ACTIVE_LOW>; + }; + + id_blue { + gpios = <&gpio ASPEED_GPIO(O, 0) GPIO_ACTIVE_LOW>; + }; + + alarm_red { + gpios = <&gpio ASPEED_GPIO(N, 6) GPIO_ACTIVE_LOW>; + }; + + alarm_yel { + gpios = <&gpio ASPEED_GPIO(N, 7) GPIO_ACTIVE_HIGH>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + button_checkstop { + label = "checkstop"; + linux,code = <74>; + gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>; + }; + + button_identify { + label = "identify"; + linux,code = <152>; + gpios = <&gpio ASPEED_GPIO(O, 7) GPIO_ACTIVE_LOW>; + }; + }; +}; + +&fmc { + status = "okay"; + flash at 0 { + status = "okay";
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts line 89
Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +10
-0+ m25p,fast-read; + label = "bmc"; +#include "openbmc-flash-layout.dtsi" + }; +}; + +&spi { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi1debug_default>;
Is this how the board is strapped? I'm asking in case it's just copy/paste from Palmetto, which was (unfortunately) strapped this way.
Quoted 26 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +26
-0+ + flash at 0 { + status = "okay"; + label = "pnor"; + m25p,fast-read; + }; +}; + +&mac0 { + status = "okay"; + + use-ncsi; + no-hw-checksum; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rmii1_default>; +}; + + +&uart5 { + status = "okay"; +}; + +&lpc_ctrl { + status = "okay"; + memory-region = <&flash_memory>;
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts line 125
Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +10
-0+ flash = <&spi>; +}; + +&ibt { + status = "okay"; +}; + +&lpc_host { + sio_regs: regs { + compatible = "aspeed,bmc-misc";
The patches for this are not upstream, and won't make it in their current form. Please drop this node from the patch.
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts line 130
Quoted 5 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +5
-0+ }; +}; + +&mbox { + status = "okay";
This driver is not upstream either, and we plan on dropping it from the OpenBMC tree too. Please remove this node from the patch.
Cheers,
Andrew
Quoted 108 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +104
-0+}; + +&uart3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>; +}; + +&i2c0 { + status = "okay"; + + eeprom at 50 { + compatible = "atmel,24c256"; + reg = <0x50>; + pagesize = <64>; + }; +}; + +&i2c1 { + status = "okay"; + + tmp75 at 49 { + compatible = "ti,tmp75"; + reg = <0x49>; + }; +}; + +&i2c2 { + status = "okay"; +}; + +&i2c3 { + status = "okay"; +}; + +&i2c4 { + status = "okay"; + + occ-hwmon at 50 { + compatible = "ibm,p8-occ-hwmon"; + reg = <0x50>; + }; +}; + +&i2c5 { + status = "okay"; + + occ-hwmon at 51 { + compatible = "ibm,p8-occ-hwmon"; + reg = <0x51>; + }; +}; + +&i2c6 { + status = "okay"; + + w83795g at 2f { + compatible = "nuvoton,w83795g"; + reg = <0x2f>; + }; +}; + +&i2c7 { + status = "okay"; + + occ-hwmon at 56 { + compatible = "ibm,p8-occ-hwmon"; + reg = <0x56>; + }; +}; + +&i2c9 { + status = "okay"; +}; + +&i2c10 { + status = "okay"; +}; + +&i2c11 { + status = "okay"; + + occ-hwmon at 57 { + compatible = "ibm,p8-occ-hwmon"; + reg = <0x57>; + }; +}; + +&i2c12 { + status = "okay"; + + rtc at 68 { + compatible = "maxim,ds3231"; + reg = <0x68>; + }; +}; + +&i2c13 { + status = "okay"; +}; + +&vuart { + status = "okay"; +};Signature · 1 line
2.20.1
Quoted 1 line · Andrew Jeffery
Hello Alexander,
Hi Andrew,
Quoted 12 lines · Alexander Filippov
Quoted 10 lines
VESNIN is an OpenPower machine with an Aspeed 2400 BMC SoC manufactured by YADRO.
Signed-off-by Alexander Filippov <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts | 234 ++++++++++++++++++++ 2 files changed, 235 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts
Quoted 12 lines
arch/arm/boot/dts/Makefile dtb-$(CONFIG_ARCH_ASPEED) += \ · line 1264
Quoted 9 lines
arch/arm/boot/dts/Makefile +1
-0@@ -1261,6 +1261,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-opp-palmetto.dtb \ aspeed-bmc-opp-romulus.dtb \ aspeed-bmc-opp-swift.dtb \ + aspeed-bmc-opp-vesnin.dtb \The patch doesn't apply to upstream - the Swift machine only exists in the OpenBMC kernel tree. Please rebase the patch onto upstream and resend.
Done.
Quoted 95 lines
Quoted 95 lines
arch/arm/boot/dts/Makefile +0
-0aspeed-bmc-opp-witherspoon.dtb \ aspeed-bmc-opp-zaius.dtb \ aspeed-bmc-portwell-neptune.dtb \arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +84
-0@@ -0,0 +1,234 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright 2019 YADRO +/dts-v1/; + +#include "aspeed-g4.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h> + +/ { + model = "Vesnin BMC"; + compatible = "yadro,vesnin-bmc", "aspeed,ast2400"; + + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,115200 earlyprintk"; + }; + + memory { + reg = <0x40000000 0x20000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + vga_memory: framebuffer at 5f000000 { + no-map; + reg = <0x5f000000 0x01000000>; /* 16MB */ + }; + flash_memory: region at 5c000000 { + no-map; + reg = <0x5c000000 0x02000000>; /* 32M */ + }; + }; + + leds { + compatible = "gpio-leds"; + + heartbeat { + gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>; + }; + power_red { + gpios = <&gpio ASPEED_GPIO(N, 1) GPIO_ACTIVE_LOW>; + }; + + id_blue { + gpios = <&gpio ASPEED_GPIO(O, 0) GPIO_ACTIVE_LOW>; + }; + + alarm_red { + gpios = <&gpio ASPEED_GPIO(N, 6) GPIO_ACTIVE_LOW>; + }; + + alarm_yel { + gpios = <&gpio ASPEED_GPIO(N, 7) GPIO_ACTIVE_HIGH>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + button_checkstop { + label = "checkstop"; + linux,code = <74>; + gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>; + }; + + button_identify { + label = "identify"; + linux,code = <152>; + gpios = <&gpio ASPEED_GPIO(O, 7) GPIO_ACTIVE_LOW>; + }; + }; +}; + +&fmc { + status = "okay"; + flash at 0 { + status = "okay"; + m25p,fast-read; + label = "bmc"; +#include "openbmc-flash-layout.dtsi" + }; +};
Quoted 8 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts line 89
Quoted 5 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +5
-0+ +&spi { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi1debug_default>;Is this how the board is strapped? I'm asking in case it's just copy/paste from Palmetto, which was (unfortunately) strapped this way.
Yes, the board is strapped in such manner.
I guess it was brought from barreleye which was a prototype for vesnin.
Setting this pin to &pinctrl_spi1_default leads to warning:
kernel: aspeed-smc 1e630000.spi: Error applying setting, reverse things back
Quoted 32 lines
Quoted 32 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +31
-0+ + flash at 0 { + status = "okay"; + label = "pnor"; + m25p,fast-read; + }; +}; + +&mac0 { + status = "okay"; + + use-ncsi; + no-hw-checksum; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rmii1_default>; +}; + + +&uart5 { + status = "okay"; +}; + +&lpc_ctrl { + status = "okay"; + memory-region = <&flash_memory>; + flash = <&spi>; +}; + +&ibt { + status = "okay";
Quoted 9 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts line 125
Quoted 5 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +5
-0+}; + +&lpc_host { + sio_regs: regs { + compatible = "aspeed,bmc-misc";The patches for this are not upstream, and won't make it in their current form. Please drop this node from the patch.
Done.
Quoted 8 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts line 130
Quoted 5 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +5
-0+ }; +}; + +&mbox { + status = "okay";This driver is not upstream either, and we plan on dropping it from the OpenBMC tree too. Please remove this node from the patch.
Done.
Quoted 113 lines
Cheers,
Andrew
Quoted 108 lines
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts new file +104
-0+}; + +&uart3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>; +}; + +&i2c0 { + status = "okay"; + + eeprom at 50 { + compatible = "atmel,24c256"; + reg = <0x50>; + pagesize = <64>; + }; +}; + +&i2c1 { + status = "okay"; + + tmp75 at 49 { + compatible = "ti,tmp75"; + reg = <0x49>; + }; +}; + +&i2c2 { + status = "okay"; +}; + +&i2c3 { + status = "okay"; +}; + +&i2c4 { + status = "okay"; + + occ-hwmon at 50 { + compatible = "ibm,p8-occ-hwmon"; + reg = <0x50>; + }; +}; + +&i2c5 { + status = "okay"; + + occ-hwmon at 51 { + compatible = "ibm,p8-occ-hwmon"; + reg = <0x51>; + }; +}; + +&i2c6 { + status = "okay"; + + w83795g at 2f { + compatible = "nuvoton,w83795g"; + reg = <0x2f>; + }; +}; + +&i2c7 { + status = "okay"; + + occ-hwmon at 56 { + compatible = "ibm,p8-occ-hwmon"; + reg = <0x56>; + }; +}; + +&i2c9 { + status = "okay"; +}; + +&i2c10 { + status = "okay"; +}; + +&i2c11 { + status = "okay"; + + occ-hwmon at 57 { + compatible = "ibm,p8-occ-hwmon"; + reg = <0x57>; + }; +}; + +&i2c12 { + status = "okay"; + + rtc at 68 { + compatible = "maxim,ds3231"; + reg = <0x68>; + }; +}; + +&i2c13 { + status = "okay"; +}; + +&vuart { + status = "okay"; +};Signature · 1 line
2.20.1